/* ==========================================================================
   RR Line — main stylesheet
   Light, warm, architectural. Cream paper, ink lines, bronze accents.
   ========================================================================== */

@font-face {
	font-family: "Cormorant Garamond";
	src: url("../fonts/cormorant-garamond.woff2") format("woff2");
	font-weight: 300 700;
	font-style: normal;
	font-display: swap;
}
@font-face {
	font-family: "Cormorant Garamond";
	src: url("../fonts/cormorant-garamond-italic.woff2") format("woff2");
	font-weight: 300 700;
	font-style: italic;
	font-display: swap;
}
@font-face {
	font-family: "Manrope";
	src: url("../fonts/manrope.woff2") format("woff2");
	font-weight: 300 700;
	font-style: normal;
	font-display: swap;
}

:root {
	--bg: #f2eee8;
	--bg-2: #e9e3da;
	--paper: #fbf9f6;
	--ink: #161412;
	--ink-soft: #5f5850;
	--ink-faint: #8f877c;
	--line: rgba(22, 20, 18, 0.14);
	--accent: #9c7b55;
	--dark: #0f0e0d;

	--serif: "Cormorant Garamond", "Times New Roman", Times, serif;
	--sans: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;

	--gutter: clamp(16px, 4vw, 56px);
	--header-h: clamp(64px, 8vw, 96px);
	--ease-out: cubic-bezier(0.16, 1, 0.3, 1);
	--ease-inout: cubic-bezier(0.76, 0, 0.24, 1);

	--fs-eyebrow: 0.72rem;
	--fs-body: clamp(0.98rem, 0.25vw + 0.92rem, 1.1rem);
	--fs-h2: clamp(2.6rem, 6.4vw, 7.2rem);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; 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(--bg);
	color: var(--ink);
	font-family: var(--sans);
	font-size: var(--fs-body);
	line-height: 1.65;
	font-weight: 400;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	overflow-x: clip;
}
body.is-loading { overflow: hidden; }
img, svg, canvas, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3, h4, p, figure, ul, ol { margin: 0; }
ul, ol { list-style: none; padding: 0; }
::selection { background: var(--ink); color: var(--bg); }
:focus-visible { outline: 1px solid var(--accent); outline-offset: 4px; }
[hidden] { display: none !important; }

.skip-link {
	position: fixed; top: 12px; left: 12px; z-index: 10000;
	padding: 0.7em 1.2em; background: var(--ink); color: var(--bg);
	transform: translateY(-200%); transition: transform 0.3s var(--ease-out);
}
.skip-link:focus { transform: none; }

/* ---------- Type ---------- */
.display {
	font-family: var(--serif);
	font-weight: 300;
	font-size: var(--fs-h2);
	line-height: 0.95;
	letter-spacing: -0.015em;
}
.display em, .hero__title em { font-style: italic; font-weight: 300; }
.eyebrow {
	display: inline-flex; align-items: center; gap: 0.9em;
	font-size: var(--fs-eyebrow);
	font-weight: 600;
	letter-spacing: 0.24em;
	text-transform: uppercase;
	color: var(--ink-soft);
	margin-bottom: 1.6rem;
}
.eyebrow::before { content: ""; width: 2.4em; height: 1px; background: currentColor; }

.link-line {
	background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat;
	transition: background-size 0.6s var(--ease-out);
	padding-bottom: 2px;
}
.link-line:hover, .link-line:focus-visible { background-size: 100% 1px; }

/* SplitText masks */
.split-mask { overflow: clip; padding-bottom: 0.08em; margin-bottom: -0.08em; }

/* ---------- Loader ---------- */
.loader {
	position: fixed; inset: 0; z-index: 1000;
	display: grid; place-items: center;
	background: var(--bg);
	color: var(--ink);
}
.loader__inner { position: relative; width: min(56vw, 440px); }
.loader__logo-wrap { will-change: transform; }
.loader__logo { width: 100%; height: auto; overflow: visible; }
.loader__logo path {
	fill: currentColor;
	fill-opacity: 0;
	stroke: currentColor;
	stroke-width: 3.2;
	stroke-linejoin: round;
}
html:not(.js) .loader { display: none; }
.loader__line {
	display: block; height: 1px; margin-top: 2.2rem;
	background: var(--ink); transform-origin: left; transform: scaleX(0);
}
.loader__meta {
	display: flex; justify-content: space-between; margin-top: 0.9rem;
	font-size: 0.7rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--ink-soft);
}
.loader__count { font-variant-numeric: tabular-nums; }

/* ---------- Header ---------- */
.site-header {
	position: fixed; inset: 0 0 auto; z-index: 300;
	height: var(--header-h);
	display: flex; align-items: center; justify-content: space-between;
	padding: 0 var(--gutter);
	color: #fff;
	mix-blend-mode: difference;
	pointer-events: none;
	transition: transform 0.7s var(--ease-out);
}
.site-header > * { pointer-events: auto; }
.site-header.is-hidden { transform: translateY(-110%); }
.site-header__logo { display: block; width: clamp(92px, 9vw, 128px); }
.site-header__svg { width: 100%; height: auto; }
.site-header__right { display: flex; align-items: center; gap: clamp(1.2rem, 3vw, 2.8rem); }

.lang-switch { display: flex; gap: 0.5em; font-size: 0.74rem; letter-spacing: 0.18em; font-weight: 600; }
.lang-switch a { opacity: 0.45; transition: opacity 0.3s; }
.lang-switch a[aria-current], .lang-switch a:hover { opacity: 1; }
.lang-switch span { opacity: 0.35; }

.menu-toggle {
	display: flex; align-items: center; gap: 0.9rem;
	font-size: 0.74rem; letter-spacing: 0.22em; text-transform: uppercase; font-weight: 600;
}
.menu-toggle__icon { position: relative; width: 30px; height: 10px; }
.menu-toggle__icon i {
	position: absolute; left: 0; right: 0; height: 1px; background: currentColor;
	transition: transform 0.6s var(--ease-out), top 0.6s var(--ease-out);
}
.menu-toggle__icon i:first-child { top: 0; }
.menu-toggle__icon i:last-child { top: 9px; }
.is-menu-open .menu-toggle__icon i:first-child { top: 5px; transform: rotate(18deg); }
.is-menu-open .menu-toggle__icon i:last-child { top: 5px; transform: rotate(-18deg); }

/* ---------- Menu ---------- */
.site-menu { position: fixed; inset: 0; z-index: 250; }
.site-menu__panel {
	position: absolute; inset: 0;
	display: grid; grid-template-columns: 1.4fr 1fr; align-items: end;
	gap: var(--gutter);
	padding: calc(var(--header-h) + 4vh) var(--gutter) clamp(28px, 6vh, 64px);
	background: var(--bg-2);
	overflow: hidden;
	clip-path: inset(0 0 100% 0);
}
.site-menu__list { counter-reset: m; }
.site-menu__link {
	display: flex; align-items: flex-start; gap: 1.2rem;
	font-family: var(--serif); font-weight: 300;
	font-size: clamp(2.6rem, 7.4vh, 6.6rem); line-height: 1.02; letter-spacing: -0.01em;
}
.site-menu__label { display: block; overflow: clip; }
.site-menu__label > span { display: inline-block; transition: transform 0.7s var(--ease-out), font-style 0s; }
.site-menu__link:hover .site-menu__label > span, .site-menu__link:focus-visible .site-menu__label > span { transform: translateX(0.25em); font-style: italic; }
.site-menu__num { font-family: var(--sans); font-size: 0.72rem; letter-spacing: 0.2em; margin-top: 1.4em; color: var(--ink-faint); }
.site-menu__aside { display: grid; gap: 2rem; max-width: 380px; justify-self: end; color: var(--ink-soft); z-index: 1; }
.site-menu__text { font-family: var(--serif); font-size: 1.5rem; line-height: 1.25; color: var(--ink); }
.site-menu__contact { display: grid; gap: 0.3rem; }
.site-menu__contact a { justify-self: start; color: var(--ink); }
.site-menu__preview {
	position: absolute; left: 0; top: 0; z-index: 0;
	width: clamp(200px, 22vw, 360px); aspect-ratio: 4 / 3;
	pointer-events: none; overflow: hidden; border-radius: 4px;
	opacity: 0; transform: translate(-50%, -50%) scale(0.8);
}
.site-menu__preview img { width: 100%; height: 100%; object-fit: cover; }
.site-menu__mono { position: absolute; right: -6vw; top: 8vh; width: 46vw; color: var(--ink); opacity: 0.045; pointer-events: none; }
.site-menu__mono svg { width: 100%; height: auto; }

/* ---------- Cursor ---------- */
.cursor { position: fixed; inset: 0; z-index: 9999; pointer-events: none; display: none; opacity: 0; transition: opacity 0.3s; }
html.has-cursor .cursor { display: block; }
html.has-cursor, html.has-cursor * { cursor: none !important; }
.cursor__dot, .cursor__ring { position: absolute; top: 0; left: 0; border-radius: 50%; will-change: transform; }
.cursor__dot { width: 6px; height: 6px; margin: -3px 0 0 -3px; background: #fff; mix-blend-mode: difference; }
.cursor__ring {
	width: 44px; height: 44px; margin: -22px 0 0 -22px;
	border: 1px solid rgba(255, 255, 255, 0.9); mix-blend-mode: difference;
	display: grid; place-items: center;
	transition: width 0.5s var(--ease-out), height 0.5s var(--ease-out), margin 0.5s var(--ease-out), background-color 0.4s, border-color 0.4s;
}
.cursor__label {
	font-size: 0.66rem; letter-spacing: 0.2em; text-transform: uppercase; font-weight: 600; color: #000;
	opacity: 0; transition: opacity 0.3s;
}
.cursor.is-label .cursor__ring { width: 96px; height: 96px; margin: -48px 0 0 -48px; background: #fff; border-color: #fff; }
.cursor.is-label .cursor__label { opacity: 1; }
.cursor.is-hover .cursor__ring { width: 70px; height: 70px; margin: -35px 0 0 -35px; }
.cursor.is-down .cursor__ring { transform: scale(0.85); }

/* ---------- Grain ---------- */
.grain {
	position: fixed; inset: -50%; z-index: 9000; pointer-events: none;
	opacity: 0.07;
	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='0.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 0.9s steps(5) 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); }
}

/* ---------- Hero ---------- */
.hero { position: relative; }
.hero__stage { position: relative; height: 100vh; height: 100svh; overflow: hidden; background: var(--bg); }
.hero__canvas, .hero__fallback, .hero__veil { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero__fallback { display: none; }
.hero__fallback img { width: 100%; height: 100%; object-fit: cover; }
html:not(.fx) .hero__fallback { display: block; }
html:not(.fx) .hero__canvas { display: none; }
html:not(.fx) .hero__content { color: #fff; text-shadow: 0 2px 30px rgba(0, 0, 0, 0.35); }
html:not(.fx) .hero__content .eyebrow { color: #fff; }
.hero__veil { background: var(--bg); opacity: 0; pointer-events: none; }

.hero__content {
	position: absolute; inset: 0;
	display: flex; flex-direction: column; align-items: center; justify-content: center;
	text-align: center; padding: 0 var(--gutter);
	pointer-events: none;
}
.hero__eyebrow { margin-bottom: 2rem; }
.hero__eyebrow::before { display: none; }
.hero__title {
	font-family: var(--serif); font-weight: 300;
	font-size: clamp(3.4rem, 12.5vw, 15rem);
	line-height: 0.86; letter-spacing: -0.03em;
	perspective: 900px;
}
.hero__title em { display: inline-block; }
.hero__title .char { display: inline-block; will-change: transform; }

.hero__words { position: absolute; inset: 0; display: grid; place-items: center; pointer-events: none; }
.hero__word {
	grid-area: 1 / 1;
	display: flex; align-items: flex-start; gap: 0.15em;
	font-family: var(--serif); font-weight: 300; font-style: italic;
	font-size: clamp(3.6rem, 13vw, 14rem); line-height: 1;
	color: var(--ink);
	opacity: 0;
}
.hero__word em { font-family: var(--sans); font-style: normal; font-size: 0.09em; letter-spacing: 0.2em; margin-top: 1.1em; font-weight: 600; }

.hero__hud {
	position: absolute; left: var(--gutter); right: var(--gutter); bottom: clamp(18px, 3.5vh, 36px);
	display: flex; justify-content: space-between; align-items: center; gap: 2rem;
	font-size: 0.66rem; letter-spacing: 0.22em; text-transform: uppercase; font-weight: 600;
	color: var(--ink-soft); pointer-events: none;
}
.hero__depth b { font-weight: 600; color: var(--ink); font-variant-numeric: tabular-nums; }
.hero__bar { position: absolute; left: 0; right: 0; bottom: -12px; height: 1px; background: var(--line); }
.hero__bar i { position: absolute; inset: 0; background: var(--ink); transform-origin: left; transform: scaleX(0); }
.hero__scroll {
	position: absolute; left: 50%; bottom: clamp(48px, 9vh, 96px); transform: translateX(-50%);
	display: flex; flex-direction: column; align-items: center; gap: 1rem;
	font-size: 0.66rem; letter-spacing: 0.24em; text-transform: uppercase; font-weight: 600;
}
.hero__scroll i { position: relative; width: 1px; height: 56px; background: var(--line); overflow: hidden; }
.hero__scroll i::after {
	content: ""; position: absolute; inset: 0; background: var(--ink);
	animation: scrollcue 2.2s var(--ease-inout) infinite;
}
@keyframes scrollcue {
	0% { transform: translateY(-100%); }
	60%, 100% { transform: translateY(100%); }
}

/* ---------- Manifesto ---------- */
.manifesto { position: relative; padding: clamp(140px, 28vh, 320px) var(--gutter); overflow: clip; }
.manifesto__inner { position: relative; z-index: 1; max-width: 1180px; margin: 0 auto; }
.manifesto__eyebrow { gap: 1rem; }
.manifesto__eyebrow::before { display: none; }
.manifesto__mono { width: 34px; color: var(--ink); }
.manifesto__mono svg { width: 100%; height: auto; }
.manifesto__text {
	font-family: var(--serif); font-weight: 300;
	font-size: clamp(2rem, 4.5vw, 4.9rem); line-height: 1.08; letter-spacing: -0.01em;
	text-wrap: balance;
}
.manifesto__text .word { display: inline-block; }
.manifesto__floats { position: absolute; inset: 0; pointer-events: none; }
.manifesto__float { position: absolute; overflow: hidden; border-radius: 3px; opacity: 0.95; }
.manifesto__float img { width: 100%; height: 100%; object-fit: cover; }
.manifesto__float--a { width: clamp(150px, 19vw, 330px); aspect-ratio: 4 / 5; left: 3vw; top: 6%; }
.manifesto__float--b { width: clamp(130px, 15vw, 260px); aspect-ratio: 3 / 4; right: 4vw; top: 30%; }
.manifesto__float--c { width: clamp(150px, 17vw, 300px); aspect-ratio: 16 / 10; right: 16vw; bottom: -2%; }

/* ---------- Services ---------- */
.services { position: relative; background: var(--bg); }
.services__pin { position: relative; height: 100vh; height: 100svh; overflow: hidden; }
.services__track { display: flex; height: 100%; width: max-content; will-change: transform; }
.panel { position: relative; height: 100%; flex-shrink: 0; }
.services__intro {
	width: 52vw; padding: 0 6vw 0 var(--gutter);
	display: flex; flex-direction: column; justify-content: center;
}
.services__hint { max-width: 26rem; margin-top: 2.2rem; color: var(--ink-soft); }
.services__arrow { display: block; width: 96px; height: 1px; margin-top: 2.6rem; background: var(--ink); position: relative; }
.services__arrow::after {
	content: ""; position: absolute; right: 0; top: -4px; width: 9px; height: 9px;
	border-top: 1px solid var(--ink); border-right: 1px solid var(--ink); transform: rotate(45deg);
}
.service {
	width: 78vw; padding: 0 4vw;
	display: grid; grid-template-columns: 1.25fr 1fr; align-items: center; gap: 4vw;
	perspective: 1600px;
}
.service__num {
	position: absolute; top: 50%; left: 1vw; transform: translateY(-50%);
	font-family: var(--serif); font-weight: 300; font-size: clamp(14rem, 34vw, 36rem); line-height: 0.8;
	color: transparent; -webkit-text-stroke: 1px rgba(22, 20, 18, 0.16);
	pointer-events: none; user-select: none;
}
.service__media {
	position: relative; z-index: 1;
	height: 64vh; border-radius: 4px; overflow: hidden;
	transform-style: preserve-3d; will-change: transform;
	box-shadow: 0 50px 80px -40px rgba(40, 30, 20, 0.35);
}
.service__media img { width: 118%; max-width: none; height: 100%; object-fit: cover; margin-left: -9%; will-change: transform; }
.service__body { position: relative; z-index: 1; max-width: 26rem; }
.service__index { display: block; font-size: 0.7rem; letter-spacing: 0.24em; font-weight: 600; color: var(--ink-faint); margin-bottom: 1.4rem; }
.service__title { font-family: var(--serif); font-weight: 300; font-size: clamp(3rem, 6vw, 6.4rem); line-height: 0.95; margin-bottom: 1.4rem; }
.service__text { color: var(--ink-soft); font-size: 1.08rem; }
.services__progress { position: absolute; left: var(--gutter); right: var(--gutter); bottom: clamp(24px, 5vh, 48px); height: 1px; background: var(--line); }
.services__progress i { position: absolute; inset: 0; background: var(--ink); transform-origin: left; transform: scaleX(0); }

/* ---------- Projects ---------- */
.projects { position: relative; background: var(--bg); }
.projects__stage { position: relative; height: 100vh; height: 100svh; overflow: hidden; }
.projects__canvas { position: absolute; inset: 0; width: 100%; height: 100%; touch-action: pan-y; }
.projects__head { position: absolute; left: var(--gutter); top: calc(var(--header-h) + 3vh); z-index: 2; pointer-events: none; max-width: 70vw; }
.projects__title { font-size: clamp(2.4rem, 5.4vw, 6rem); }
.projects__hud {
	position: absolute; left: var(--gutter); right: var(--gutter); bottom: clamp(20px, 4vh, 40px); z-index: 2;
	display: flex; justify-content: space-between; gap: 2rem;
	font-size: 0.68rem; letter-spacing: 0.22em; text-transform: uppercase; font-weight: 600; color: var(--ink-soft);
	pointer-events: none;
}
.projects__count b { color: var(--ink); font-variant-numeric: tabular-nums; font-weight: 600; }
.projects__grid {
	display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
	gap: clamp(10px, 1.2vw, 18px); padding: 0 var(--gutter) clamp(80px, 12vh, 160px);
}
html.fx .projects__grid { display: none; }
html:not(.fx) .projects__stage { height: auto; padding: calc(var(--header-h) + 10vh) 0 6vh; }
html:not(.fx) .projects__head { position: relative; top: 0; }
html:not(.fx) .projects__canvas, html:not(.fx) .projects__hud { display: none; }
.projects__thumb { display: block; width: 100%; aspect-ratio: 16 / 10; overflow: hidden; border-radius: 3px; background: var(--bg-2); }
.projects__thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease-out); }
.projects__thumb:hover img { transform: scale(1.06); }

/* ---------- Viewer ---------- */
.viewer { position: fixed; inset: 0; z-index: 400; color: #fff; }
.viewer__bg { position: absolute; inset: 0; background: var(--dark); }
.viewer__canvas, .viewer__img { position: absolute; inset: 0; width: 100%; height: 100%; }
.viewer__img { object-fit: contain; display: none; }
.viewer.no-webgl .viewer__img { display: block; }
.viewer.no-webgl .viewer__canvas { display: none; }
.viewer__ui {
	position: absolute; inset: 0; pointer-events: none;
	font-size: 0.7rem; letter-spacing: 0.22em; text-transform: uppercase; font-weight: 600;
}
.viewer__ui > * { pointer-events: auto; position: absolute; }
.viewer__ui::before, .viewer__ui::after {
	content: ""; position: absolute; left: 0; right: 0; height: 22vh; pointer-events: none;
}
.viewer__ui::before { top: 0; background: linear-gradient(rgba(10, 9, 8, 0.45), transparent); }
.viewer__ui::after { bottom: 0; background: linear-gradient(transparent, rgba(10, 9, 8, 0.5)); }
.viewer__count { left: var(--gutter); top: calc(var(--header-h) * 0.38); font-variant-numeric: tabular-nums; }
.viewer__hint { left: 50%; bottom: clamp(22px, 4vh, 40px); transform: translateX(-50%); opacity: 0.75; white-space: nowrap; pointer-events: none; }
.viewer__close {
	right: var(--gutter); top: calc(var(--header-h) * 0.3);
	display: flex; align-items: center; gap: 0.9rem; text-transform: uppercase; letter-spacing: 0.22em; font-size: 0.7rem; font-weight: 600;
}
.viewer__close i { position: relative; width: 22px; height: 22px; }
.viewer__close i::before, .viewer__close i::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: currentColor; transform: rotate(45deg); }
.viewer__close i::after { transform: rotate(-45deg); }
.viewer__nav { right: var(--gutter); bottom: clamp(16px, 3vh, 32px); display: flex; gap: 0.6rem; }
.viewer__btn {
	width: 58px; height: 58px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, 0.4);
	font-size: 1.1rem; display: grid; place-items: center; transition: background 0.4s, color 0.4s;
}
.viewer__btn:hover { background: #fff; color: var(--ink); }
.viewer__loading { left: 0; right: 0; top: 0; height: 2px; background: #fff; transform-origin: left; transform: scaleX(0); pointer-events: none; }

/* ---------- About ---------- */
.about { position: relative; background: var(--bg); }
.about__sticky { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
.about__media { position: absolute; inset: 0; margin: 0; clip-path: inset(16% 24% 16% 24% round 6px); will-change: clip-path; }
.about__media img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.3); will-change: transform; }
.about__content {
	position: relative; z-index: 2;
	width: min(620px, calc(100% - 2 * var(--gutter)));
	margin: -42vh var(--gutter) 0 auto;
	padding: clamp(36px, 5vw, 72px);
	background: var(--paper);
	box-shadow: 0 60px 120px -60px rgba(30, 22, 14, 0.45);
}
.about__num {
	position: absolute; right: clamp(24px, 3vw, 48px); top: -0.48em;
	font-family: var(--serif); font-weight: 300; font-size: clamp(6rem, 12vw, 11rem); line-height: 1;
	color: transparent; -webkit-text-stroke: 1px var(--ink); opacity: 0.5;
}
.about__title { font-size: clamp(2.4rem, 4.6vw, 4.6rem); margin-bottom: 2rem; }
.about__text { display: grid; gap: 1.2rem; color: var(--ink-soft); }
.about__lead { font-family: var(--serif); font-size: clamp(1.35rem, 1.8vw, 1.7rem); line-height: 1.3; color: var(--ink); }
.about::after { content: ""; display: block; height: 18vh; }

/* ---------- Marquee ---------- */
.marquee { padding: clamp(60px, 10vh, 120px) 0; overflow: hidden; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.marquee__row { white-space: nowrap; }
.marquee__inner { display: inline-flex; will-change: transform; }
.marquee__item {
	display: inline-flex; align-items: center; gap: 0.35em; padding-right: 0.35em;
	font-family: var(--serif); font-weight: 300; font-size: clamp(3.4rem, 10vw, 11rem); line-height: 1.05; letter-spacing: -0.02em;
}
.marquee__row:nth-child(2) .marquee__item { font-style: italic; color: transparent; -webkit-text-stroke: 1px var(--ink); }
.marquee__mono { width: 0.9em; height: auto; color: var(--accent); flex-shrink: 0; }
.marquee__row:nth-child(2) .marquee__mono { color: var(--ink); }

/* ---------- Contact ---------- */
.contact {
	display: grid; grid-template-columns: 1fr 1fr; gap: clamp(48px, 7vw, 140px);
	padding: clamp(120px, 20vh, 220px) var(--gutter);
}
.contact__title { font-size: clamp(2.8rem, 5.6vw, 6.2rem); margin-bottom: 2rem; }
.contact__text { max-width: 30rem; color: var(--ink-soft); margin-bottom: 3rem; }
.contact__links { display: grid; gap: 0.4rem; }
.contact__big { font-family: var(--serif); font-size: clamp(1.7rem, 2.6vw, 2.5rem); line-height: 1.2; }
.contact__place { margin-top: 1rem; font-size: 0.72rem; letter-spacing: 0.22em; text-transform: uppercase; font-weight: 600; color: var(--ink-faint); }

.contact-form { align-self: end; display: grid; gap: 2.2rem; }
.field { position: relative; }
.field__input {
	display: block; width: 100%;
	padding: 1.6rem 0 0.7rem;
	font: inherit; font-size: 1.15rem; color: var(--ink);
	background: transparent; border: 0; border-bottom: 1px solid var(--line); border-radius: 0;
	transition: border-color 0.4s;
	resize: vertical;
}
.field__input:focus { outline: none; border-color: var(--ink); }
.field__label {
	position: absolute; left: 0; top: 1.6rem;
	color: var(--ink-faint); pointer-events: none;
	transform-origin: left top;
	transition: transform 0.5s var(--ease-out), color 0.4s;
}
.field__label small { font-size: 0.75em; }
.field__input:focus + .field__label,
.field__input:not(:placeholder-shown) + .field__label { transform: translateY(-1.5rem) scale(0.72); color: var(--ink-soft); }
.field::after {
	content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--ink);
	transform: scaleX(0); transform-origin: left; transition: transform 0.8s var(--ease-out);
}
.field:focus-within::after { transform: scaleX(1); }
.field__count { position: absolute; right: 0; bottom: -1.5rem; font-size: 0.7rem; color: var(--ink-faint); font-variant-numeric: tabular-nums; }
.field__error { display: block; min-height: 0; font-size: 0.78rem; color: #a3402c; margin-top: 0.4rem; }
.field__error:empty { display: none; }
.field.is-invalid .field__input { border-color: #a3402c; }
.contact-form__hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.contact-form__foot { display: flex; align-items: center; justify-content: space-between; gap: 2rem; margin-top: 1rem; }
.contact-form__privacy { font-size: 0.82rem; color: var(--ink-faint); max-width: 18rem; }
.contact-form__status { min-height: 1.6em; font-family: var(--serif); font-size: 1.35rem; }
.contact-form__status.is-error { color: #a3402c; }

.btn-round {
	position: relative; flex-shrink: 0;
	display: inline-grid; place-items: center;
	width: clamp(124px, 11vw, 160px); aspect-ratio: 1; border-radius: 50%;
	background: var(--ink); color: var(--bg);
	font-size: 0.72rem; letter-spacing: 0.18em; text-transform: uppercase; font-weight: 600; text-align: center;
	overflow: hidden; isolation: isolate;
	transition: transform 0.6s var(--ease-out);
}
.btn-round::before {
	content: ""; position: absolute; inset: 0; z-index: -1; border-radius: 50%;
	background: var(--accent); transform: scale(0); transition: transform 0.7s var(--ease-out);
}
.btn-round:hover::before, .btn-round:focus-visible::before { transform: scale(1); }
.btn-round__label { padding: 0 1.2em; line-height: 1.5; }
.btn-round[disabled] { opacity: 0.6; pointer-events: none; }

/* ---------- Footer ---------- */
.site-footer { position: relative; padding: clamp(80px, 14vh, 160px) var(--gutter) clamp(20px, 3vh, 32px); background: var(--bg-2); overflow: hidden; }
.site-footer__top { display: grid; gap: 4rem; }
.site-footer__tagline { font-size: clamp(2.6rem, 6vw, 6.8rem); max-width: 12ch; }
.site-footer__cols { display: grid; grid-template-columns: 1fr 1fr auto; gap: 2rem; align-items: end; }
.site-footer__nav, .site-footer__contact { display: grid; gap: 0.35rem; justify-items: start; color: var(--ink-soft); }
.site-footer__nav a, .site-footer__contact a { color: var(--ink); }
.site-footer__top-link { display: inline-flex; align-items: center; gap: 0.8rem; font-size: 0.72rem; letter-spacing: 0.22em; text-transform: uppercase; font-weight: 600; }
.site-footer__top-link i { display: grid; place-items: center; width: 52px; height: 52px; border: 1px solid var(--ink); border-radius: 50%; font-style: normal; }
.site-footer__logo { margin: clamp(60px, 12vh, 140px) 0 clamp(24px, 4vh, 40px); }
.site-footer__svg { width: 100%; height: auto; overflow: visible; color: var(--ink); }
.site-footer__svg path { fill: currentColor; stroke: currentColor; stroke-width: 2; }
html.fx .site-footer__svg path { fill-opacity: 0; }
.site-footer__bottom {
	display: flex; justify-content: space-between; align-items: center; gap: 1.5rem; flex-wrap: wrap;
	padding-top: 1.4rem; border-top: 1px solid var(--line);
	font-size: 0.78rem; color: var(--ink-soft);
}

/* ---------- Inner pages ---------- */
.inner { padding: calc(var(--header-h) + 12vh) var(--gutter) 16vh; min-height: 80vh; }
.inner__wrap { max-width: 900px; margin: 0 auto; }
.inner__title { font-size: clamp(2.6rem, 6vw, 6rem); margin-bottom: 2.4rem; }
.inner__code { display: block; font-family: var(--serif); font-size: clamp(8rem, 26vw, 24rem); line-height: 0.8; color: transparent; -webkit-text-stroke: 1px var(--ink); opacity: 0.4; }
.inner--404 p { max-width: 32rem; color: var(--ink-soft); margin-bottom: 3rem; }
.entry { padding: 2.4rem 0; border-bottom: 1px solid var(--line); }
.entry__title { font-family: var(--serif); font-weight: 400; font-size: 2rem; margin-bottom: 0.8rem; }
.entry__content > * + * { margin-top: 1.2em; }
.entry__content img { border-radius: 3px; }
.is-inner .site-header { mix-blend-mode: normal; color: var(--ink); }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
	.site-header__lang { display: none; }
	.site-menu__panel { grid-template-columns: 1fr; align-content: space-between; }
	.site-menu__aside { justify-self: start; }
	.site-menu__preview { display: none; }

	.services__pin { height: auto; overflow: visible; }
	.services__track { flex-direction: column; width: 100%; height: auto; }
	.panel { height: auto; }
	.services__intro { width: 100%; padding: 18vh var(--gutter) 8vh; }
	.service { width: 100%; grid-template-columns: 1fr; padding: 6vh var(--gutter); gap: 2rem; }
	.service__num { top: 0; transform: none; font-size: 42vw; }
	.service__media { height: 58vw; }
	.services__progress { display: none; }

	.projects__head { max-width: none; right: var(--gutter); }
	.projects__hud { flex-direction: column; gap: 0.5rem; }

	.about__media { clip-path: inset(10% 8% 10% 8% round 6px); }
	.about__content { margin: -30vh auto 0; }

	.contact { grid-template-columns: 1fr; }
	.contact-form__foot { flex-direction: column; align-items: flex-start; }

	.site-footer__cols { grid-template-columns: 1fr 1fr; }
	.site-footer__top-link { grid-column: 1 / -1; }

	.manifesto__float--b { top: auto; bottom: 10%; }
	.manifesto__float--c { display: none; }
	.viewer__hint { white-space: normal; text-align: center; width: 80%; }
}

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
	.grain { display: none; }
	.about__media { clip-path: none; }
	.about__media img { transform: none; }
}
