/* ==========================================================================
   RR Line — home page
   Warm light canvas, charcoal panels, uppercase serif titles, pill buttons.
   ========================================================================== */

.view-home {
	--h-bg: #f1ede7;
	--h-paper: #f8f6f2;
	--h-dark: #2b2724;
	--h-dark-2: #37322e;
	--h-on-dark: #efe9e1;
	--h-line-dark: rgba(239, 233, 225, 0.16);
	--h-radius: 12px;
	background: var(--h-bg);
}

.h-sr {
	position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
	overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.h-wrap { max-width: 1680px; margin: 0 auto; padding: 0 var(--gutter); }

.h-eyebrow {
	display: flex; align-items: center; gap: 0.9em;
	margin-bottom: 1.4rem;
	font-size: 0.72rem; font-weight: 600; letter-spacing: 0.26em; text-transform: uppercase;
	color: var(--ink-soft);
}
.h-eyebrow::before { content: ""; width: 2.2em; height: 1px; background: currentColor; }
.h-eyebrow--center { justify-content: center; }
.h-eyebrow--center::before { display: none; }
.h-eyebrow--light { color: rgba(239, 233, 225, 0.65); }

.h-title {
	font-family: var(--serif); font-weight: 400;
	font-size: clamp(2.6rem, 5.6vw, 6.2rem); line-height: 0.92; letter-spacing: 0.005em;
	text-transform: uppercase;
}
.h-title em { font-style: italic; font-weight: 300; }
.h-title--light { color: var(--h-on-dark); }
.h-title--center { text-align: center; }

/* ---------- Buttons & tags ---------- */
.pill {
	display: inline-flex; align-items: center; justify-content: space-between; gap: 1.6rem;
	height: 52px; padding: 0 1.4rem 0 1.8rem; border-radius: 999px;
	font-size: 0.72rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; white-space: nowrap;
	border: 1px solid transparent;
	transition: background-color 0.4s, color 0.4s, border-color 0.4s;
}
.pill i { font-style: normal; font-size: 1rem; transition: transform 0.5s var(--ease-out); }
.pill:hover i, .pill:focus-visible i { transform: translateX(5px); }
.pill--dark { background: var(--ink); color: var(--h-bg); }
.pill--dark:hover { background: var(--accent); }
.pill--light { background: var(--h-paper); color: var(--ink); }
.pill--light:hover { background: #fff; }
.pill--glass { border-color: rgba(255, 255, 255, 0.55); color: #fff; backdrop-filter: blur(6px); background: rgba(255, 255, 255, 0.06); }
.pill--glass:hover { background: rgba(255, 255, 255, 0.18); }
.pill--line { height: 44px; padding: 0 1.4rem; border-color: currentColor; }
.pill--line:hover { background: currentColor; }
.pill--line:hover { color: inherit; }
.pill--wide { width: min(100%, 360px); justify-self: center; }
.pill[disabled] { opacity: 0.6; pointer-events: none; }

.h-round {
	display: inline-grid; place-items: center; flex-shrink: 0;
	width: 52px; height: 52px; border-radius: 50%;
	border: 1px solid rgba(22, 20, 18, 0.35); font-size: 1rem;
	transition: background-color 0.4s, color 0.4s, border-color 0.4s;
}
.h-round:hover { background: var(--ink); color: var(--h-bg); border-color: var(--ink); }
.h-round--light { border-color: rgba(239, 233, 225, 0.35); color: var(--h-on-dark); }
.h-round--light:hover { background: var(--h-on-dark); color: var(--h-dark); border-color: var(--h-on-dark); }

.h-tag {
	display: inline-flex; align-items: center; height: 30px; padding: 0 0.95rem; border-radius: 999px;
	background: rgba(248, 246, 242, 0.92); color: var(--ink);
	font-size: 0.64rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase;
}
.h-tag--dark { background: rgba(22, 20, 18, 0.78); color: #fff; }

/* ---------- Header ---------- */
.h-header {
	position: fixed; inset: 0 0 auto; z-index: 300;
	display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
	height: 92px; padding: 0 var(--gutter);
	color: #fff;
	border-bottom: 1px solid rgba(255, 255, 255, 0.18);
	transition: height 0.5s var(--ease-out), background-color 0.5s, color 0.5s, border-color 0.5s, transform 0.6s var(--ease-out);
}
.h-header.is-solid {
	height: 74px; color: var(--ink);
	background: rgba(241, 237, 231, 0.9); backdrop-filter: blur(12px);
	border-bottom-color: var(--line);
}
.is-menu-open .h-header { color: var(--ink); background: transparent; backdrop-filter: none; border-bottom-color: var(--line); }
.h-header__left { display: flex; align-items: center; gap: clamp(1.4rem, 2.6vw, 2.8rem); }
.h-header__logo { display: block; width: clamp(108px, 9.5vw, 148px); }
.h-header__svg { width: 100%; height: auto; }
.h-header__right { justify-self: end; display: flex; align-items: center; gap: clamp(1rem, 2vw, 1.8rem); }
.h-header__cta:hover { color: var(--h-bg); }
.h-header.is-solid .h-header__cta:hover, .is-menu-open .h-header__cta:hover { color: var(--h-bg); background: var(--ink); }
.h-header:not(.is-solid) .h-header__cta:hover { background: #fff; color: var(--ink); }
.h-header__burger { padding: 10px 0; }

/* ---------- Hero ---------- */
.h-hero { position: relative; height: 100vh; height: 100svh; min-height: 600px; overflow: hidden; color: #fff; background: var(--h-dark); }
.h-hero__media { position: absolute; inset: 0; will-change: transform; }
.h-hero__slide { position: absolute; inset: 0; margin: 0; opacity: 0; transition: opacity 1.6s ease; }
.h-hero__slide.is-active { opacity: 1; }
.h-hero__slide img { width: 100%; height: 100%; object-fit: cover; }
.h-hero__canvas { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; transition: opacity 0.9s ease; }
.has-hero-gl .h-hero__canvas { opacity: 1; }
.h-hero__shade {
	position: absolute; inset: 0; pointer-events: none;
	background:
		linear-gradient(180deg, rgba(16, 13, 11, 0.55) 0%, rgba(16, 13, 11, 0.12) 30%, rgba(16, 13, 11, 0.18) 62%, rgba(16, 13, 11, 0.72) 100%),
		radial-gradient(ellipse at center, rgba(16, 13, 11, 0.28), transparent 70%);
}
.h-hero__content {
	position: absolute; inset: 0;
	display: flex; flex-direction: column; align-items: center; justify-content: center;
	padding: 0 var(--gutter); text-align: center;
}
.h-hero__words {
	display: flex; align-items: center; justify-content: center; gap: clamp(0.8rem, 1.6vw, 1.6rem);
	margin-bottom: 2rem; overflow: hidden; padding: 0.3em 0;
	font-size: clamp(0.7rem, 0.85vw, 0.84rem); font-weight: 600; letter-spacing: 0.3em; text-transform: uppercase;
}
.h-hero__word { position: relative; display: inline-flex; align-items: baseline; gap: 0.7em; padding-bottom: 0.55em; transition: opacity 0.8s ease; }
.h-hero__word em { font-style: normal; font-size: 0.78em; letter-spacing: 0.2em; opacity: 0.6; }
.h-hero__word::after {
	content: ""; position: absolute; left: 0; right: 0.3em; bottom: 0; height: 1px; background: currentColor;
	transform: scaleX(0); transform-origin: right; transition: transform 1.1s var(--ease-out);
}
.has-words .h-hero__word { opacity: 0.55; }
.has-words .h-hero__word.is-active { opacity: 1; }
.h-hero__word.is-active::after { transform: scaleX(1); transform-origin: left; }
.h-hero__sep { width: clamp(28px, 4vw, 64px); height: 1px; margin-bottom: 0.55em; background: rgba(255, 255, 255, 0.55); transform-origin: left; }
.h-hero__title {
	font-family: var(--serif); font-weight: 400; text-transform: uppercase;
	font-size: clamp(3rem, 8.4vw, 9.4rem); line-height: 0.88; letter-spacing: 0.005em;
	text-shadow: 0 10px 50px rgba(0, 0, 0, 0.25);
}
.h-hero__title em { font-style: italic; font-weight: 300; display: inline-block; }
.h-hero__bottom {
	position: absolute; left: var(--gutter); right: var(--gutter); bottom: clamp(20px, 4vh, 40px);
	display: grid; grid-template-columns: 1fr auto 1fr; align-items: end;
	font-size: 0.68rem; font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase;
}
.h-hero__scroll { grid-column: 2; display: flex; flex-direction: column; align-items: center; gap: 1.1rem; font-size: clamp(0.8rem, 0.95vw, 0.95rem); letter-spacing: 0.32em; text-shadow: 0 2px 18px rgba(0, 0, 0, 0.35); transition: opacity 0.4s; }
.h-hero__scroll span { padding-left: 0.32em; }
.h-hero__scroll:hover { opacity: 0.75; }
.h-hero__scroll i { position: relative; width: 1px; height: clamp(56px, 9vh, 88px); background: rgba(255, 255, 255, 0.35); overflow: hidden; }
.h-hero__scroll i::after { content: ""; position: absolute; inset: 0; background: #fff; animation: scrollcue 2.2s var(--ease-inout) infinite; }
@keyframes scrollcue { 0% { transform: translateY(-100%); } 60%, 100% { transform: translateY(100%); } }
.h-hero__dots { grid-column: 3; justify-self: end; display: flex; gap: 0.6rem; }
.h-hero__dot { position: relative; width: 44px; height: 2px; background: rgba(255, 255, 255, 0.3); overflow: hidden; }
.h-hero__dot i { position: absolute; inset: 0; background: #fff; transform-origin: left; transform: scaleX(0); }

/* ---------- Hub: "Votre projet clé en main" ---------- */
.h-hub { position: relative; background: var(--h-paper); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.h-hub__pin {
	--hub-w: min(1180px, 90vw, calc((100vh - 300px) * 1.6667));
	position: relative; height: 100vh; height: 100svh; min-height: 640px; overflow: hidden; display: grid; place-items: center;
}
@supports (height: 100svh) { .h-hub__pin { --hub-w: min(1180px, 90vw, calc((100svh - 300px) * 1.6667)); } }
.h-hub__bg { position: absolute; inset: 0; opacity: 0.14; mix-blend-mode: multiply; }
.h-hub__bg img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.1); }
/* The architect's plan fills the screen; the veil whitens its centre once it is drawn. */
.h-hub__plan {
	position: absolute; left: 50%; top: calc(50% + 38px);
	width: min(92vw, calc((100vh - 170px) * 2.0139)); height: auto; aspect-ratio: 1450 / 720; max-width: none;
	transform: translate(-50%, -50%);
}
@supports (height: 100svh) { .h-hub__plan { width: min(92vw, calc((100svh - 170px) * 2.0139)); } }
.h-hub__plan path { fill: none; stroke: var(--ink); }
.h-hub__plan-walls, .h-hub__plan-partitions { opacity: 0.84; }
.h-hub__plan-walls path { stroke-width: 28; }
.h-hub__plan-partitions path { stroke-width: 10; }
.h-hub__plan-openings { opacity: 0.75; }
.h-hub__plan-openings path { stroke-width: 2; }
.h-hub__plan-furniture { opacity: 0.5; }
.h-hub__plan-furniture path { stroke-width: 1.6; stroke-linejoin: round; }
.h-hub__plan-notes path { stroke-width: 1.3; stroke-dasharray: 9 7; opacity: 0.4; }
.h-hub__veil {
	position: absolute; left: 50%; top: calc(50% + 20px);
	width: calc(var(--hub-w) * 1.46); height: calc(var(--hub-w) * 0.98);
	transform: translate(-50%, -50%); pointer-events: none;
	background: radial-gradient(closest-side, rgba(255, 255, 255, 0.985) 0%, rgba(255, 255, 255, 0.97) 64%, rgba(255, 255, 255, 0.66) 84%, rgba(255, 255, 255, 0) 100%);
}
.h-hub__stage {
	position: relative;
	width: var(--hub-w);
	margin-top: 40px;
	aspect-ratio: 1000 / 600;
}
.h-hub__lines { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.h-hub__lines line { stroke: var(--ink); stroke-width: 1.3; }
.h-hub__ring { fill: rgba(255, 255, 255, 0.7); stroke: var(--ink); stroke-width: 1; }
.h-hub__ring--dash {
	fill: none; stroke-width: 1; stroke-dasharray: 2 9; opacity: 0.55;
	transform-box: fill-box; transform-origin: center; animation: hubspin 60s linear infinite;
}
@keyframes hubspin { to { transform: rotate(360deg); } }
.h-hub__dot { fill: var(--ink); }
.h-hub__center {
	position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
	width: 28%; text-align: center;
}
.h-hub__center .h-eyebrow { margin-bottom: 0.8rem; font-size: clamp(0.46rem, calc(var(--hub-w) * 0.0095), 0.62rem); white-space: nowrap; }
.h-hub__title {
	font-family: var(--serif); font-weight: 400; text-transform: uppercase;
	font-size: clamp(1.2rem, calc(var(--hub-w) * 0.037), 2.7rem); line-height: 0.95;
}
.h-hub__title em { display: block; font-style: italic; font-weight: 300; }
.h-hub__item { position: absolute; width: 22%; padding: 0.7rem 1rem; }
.h-hub__item--top { left: 50%; top: 9.17%; transform: translate(-50%, -100%); text-align: center; width: 30%; }
.h-hub__item--bottom { left: 50%; top: 90.83%; transform: translate(-50%, 0); text-align: center; width: 30%; }
.h-hub__item--right { left: 76%; top: 50%; width: 21%; transform: translate(0, -50%); }
.h-hub__item--left { left: 24%; top: 50%; width: 21%; transform: translate(-100%, -50%); text-align: right; }
.h-hub__num { display: block; margin-bottom: 0.45rem; font-size: 0.66rem; font-weight: 700; letter-spacing: 0.22em; color: var(--accent); }
.h-hub__name { font-family: var(--serif); font-weight: 500; font-size: clamp(1.25rem, 1.65vw, 1.75rem); line-height: 1.08; }
.h-hub__text { margin-top: 0.45rem; font-size: 0.86rem; line-height: 1.5; color: var(--ink-soft); }

/* ---------- Plan: from concept to reality ---------- */
.h-plan { --neon: #6fe3ee; --neon-2: #ec5fb4; position: relative; background: #0e0c0b; color: var(--h-on-dark); }
.h-plan__pin { position: relative; height: 100vh; height: 100svh; min-height: 560px; overflow: hidden; isolation: isolate; }
.h-plan__real, .h-plan__concept { position: absolute; inset: 0; margin: 0; overflow: hidden; }
.h-plan__real img, .h-plan__concept img { width: 100%; height: 100%; object-fit: cover; }
.h-plan__real img { transform: scale(1.12); will-change: transform; }
.h-plan__concept { z-index: 1; background: #0e0c0b; }
.h-plan__concept img { filter: blur(18px) saturate(0.75) brightness(0.42); transform: scale(1.18); }
.h-plan__pin::after {
	content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none;
	background: linear-gradient(90deg, rgba(14, 12, 11, 0.78) 0%, rgba(14, 12, 11, 0.25) 42%, transparent 65%), linear-gradient(0deg, rgba(14, 12, 11, 0.55), transparent 35%);
}
.h-plan__cut { position: absolute; inset: 0; z-index: 3; pointer-events: none; }
.h-plan__cut svg { width: 100%; height: 100%; overflow: visible; }
.h-plan__cut line { stroke: rgba(255, 255, 255, 0.55); stroke-width: 1.5; vector-effect: non-scaling-stroke; }
.h-plan__svg {
	position: absolute; z-index: 4; left: 58%; top: 50%; transform: translate(-50%, -50%);
	height: min(80vh, 60vw); width: auto; aspect-ratio: 560 / 600; overflow: visible;
}
.h-plan__svg path { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.h-plan__walls path { stroke: var(--neon); stroke-width: 4.5; }
.h-plan__stairs path { stroke: var(--neon-2); stroke-width: 1.6; }
.h-plan__glass { fill: rgba(111, 227, 238, 0.07); stroke: none; }
.h-plan__labels {
	position: absolute; z-index: 5; left: var(--gutter); right: var(--gutter); top: calc(74px + 4vh);
	display: flex; justify-content: space-between; pointer-events: none;
	font-size: 0.68rem; font-weight: 600; letter-spacing: 0.24em; text-transform: uppercase;
}
.h-plan__label { display: inline-flex; gap: 0.8em; }
.h-plan__label em { font-style: normal; color: var(--neon); }
.h-plan__label--right em { color: var(--neon-2); }
.h-plan__content { position: absolute; z-index: 5; left: var(--gutter); bottom: clamp(36px, 9vh, 96px); max-width: min(34rem, 40vw); }
.h-plan__content .h-title { font-size: clamp(2.4rem, 4.6vw, 5.2rem); }
.h-plan__text { margin-top: 1.4rem; max-width: 26rem; color: rgba(239, 233, 225, 0.75); }
.h-plan__text strong { font-weight: 600; color: #efe9e1; }

/* ---------- Services ---------- */
.h-services { display: grid; grid-template-columns: 1fr 1fr; min-height: 100vh; min-height: 100svh; background: var(--h-dark); }
/* Sized to fit one screen under the fixed header. */
.h-services__panel {
	display: flex; flex-direction: column; justify-content: center; align-items: flex-start;
	padding: calc(74px + clamp(16px, 3vh, 36px)) clamp(28px, 6vw, 110px) clamp(16px, 3vh, 36px);
	color: var(--h-on-dark);
}
.h-services__panel .h-eyebrow { margin-bottom: clamp(0.8rem, 1.6vh, 1.4rem); }
.h-services__panel .h-title { font-size: clamp(2.4rem, min(4.4vw, 7.4vh), 4.8rem); }
.h-services__list { width: 100%; margin: clamp(18px, 3.2vh, 40px) 0 clamp(20px, 3.4vh, 40px); border-bottom: 1px solid var(--h-line-dark); }
.h-acc { border-top: 1px solid var(--h-line-dark); }
.h-acc__head { display: flex; align-items: center; gap: 1.4rem; width: 100%; padding: clamp(0.7rem, 1.6vh, 1.15rem) 0; text-align: left; }
.h-acc__num { font-size: 0.68rem; font-weight: 600; letter-spacing: 0.2em; opacity: 0.55; }
.h-acc__name { font-family: var(--serif); font-weight: 400; font-size: clamp(1.6rem, min(2.4vw, 4.2vh), 2.5rem); line-height: 1; text-transform: uppercase; transition: color 0.3s; }
.h-acc__head:hover .h-acc__name { color: #d6bc98; }
.h-acc__icon { position: relative; width: 18px; height: 18px; margin-left: auto; flex-shrink: 0; }
.h-acc__icon::before, .h-acc__icon::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: currentColor; transition: transform 0.5s var(--ease-out); }
.h-acc__icon::after { transform: rotate(90deg); }
.h-acc.is-open .h-acc__icon::after { transform: rotate(0deg); }
.h-acc__body { overflow: hidden; }
.h-acc__body p { padding: 0 0 clamp(0.9rem, 2vh, 1.4rem) 2.9rem; max-width: 34rem; color: rgba(239, 233, 225, 0.72); font-size: 0.98rem; line-height: 1.6; }
.h-services__media { position: relative; overflow: hidden; min-height: 60vh; }
.h-services__img { position: absolute; inset: 0; margin: 0; clip-path: inset(0 0 0 100%); transition: clip-path 1.2s var(--ease-inout); }
.h-services__img img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.12); transition: transform 1.8s var(--ease-out); }
.h-services__img.is-active { clip-path: inset(0 0 0 0); z-index: 2; }
.h-services__img.is-active img { transform: scale(1); }
.h-services__img.was-active { clip-path: inset(0 0 0 0); z-index: 1; }

/* ---------- Projects ring (WebGL, shared with the immersive view) ---------- */
.h-ring { display: none; position: relative; background: var(--h-bg); }
.h-ring.is-on { display: block; }
.h-ring__stage { position: relative; height: 100vh; height: 100svh; overflow: hidden; }
.h-ring__canvas { position: absolute; inset: 0; width: 100%; height: 100%; touch-action: pan-y; cursor: grab; }
.h-ring__canvas:active { cursor: grabbing; }
.h-ring__canvas.is-over { cursor: zoom-in; }
.h-ring__head { position: absolute; left: var(--gutter); top: calc(92px + 5vh); z-index: 2; pointer-events: none; }
.h-ring__head .h-title { font-size: clamp(2.4rem, 4.8vw, 5.4rem); }
.h-ring__hud {
	position: absolute; left: var(--gutter); right: var(--gutter); bottom: clamp(20px, 4vh, 40px); z-index: 2;
	display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 1.5rem; pointer-events: none;
	font-size: 0.68rem; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: var(--ink-soft);
}
.h-ring__count b { color: var(--ink); font-weight: 600; font-variant-numeric: tabular-nums; }
.h-ring__bar { position: relative; width: clamp(120px, 16vw, 220px); height: 1px; background: var(--line); overflow: hidden; }
.h-ring__bar i { position: absolute; inset: 0; background: var(--ink); transform-origin: left; transform: scaleX(0); }
.h-ring__hint { justify-self: end; }
.h-ring__veil { position: absolute; inset: 0; z-index: 3; background: var(--h-bg); opacity: 0; pointer-events: none; }

/* ---------- Projects ---------- */
/* Heading + cards fit one screen under the fixed header: the cards are sized on the height too. */
.h-projects {
	display: flex; flex-direction: column; justify-content: center;
	min-height: 100vh; min-height: 100svh;
	padding: calc(74px + clamp(16px, 3vh, 40px)) 0 clamp(20px, 4vh, 48px); overflow: hidden;
}
.h-projects > .h-wrap { width: 100%; }
.h-projects__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 2rem; margin-bottom: clamp(20px, 3.4vh, 44px); }
.h-projects__head .h-eyebrow { margin-bottom: clamp(0.8rem, 1.6vh, 1.4rem); }
.h-projects__head .h-title { max-width: 24ch; font-size: clamp(2.2rem, min(3.8vw, 6.4vh), 4.4rem); }
.h-projects__actions { display: flex; align-items: center; gap: 0.6rem; }
.h-projects__track {
	display: flex; gap: clamp(14px, 1.4vw, 22px);
	padding: 0 var(--gutter) 6px; scroll-padding: 0 var(--gutter);
	overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory;
	scrollbar-width: none; cursor: grab;
}
.h-projects__track::-webkit-scrollbar { display: none; }
.h-projects__track.is-dragging { cursor: grabbing; scroll-snap-type: none; }
.h-projects__track.is-dragging * { pointer-events: none; }
.h-card { flex: 0 0 clamp(250px, min(30vw, (100vh - 400px) / 1.08), 500px); scroll-snap-align: start; perspective: 1200px; }
@supports (height: 100svh) { .h-card { flex-basis: clamp(250px, min(30vw, (100svh - 400px) / 1.08), 500px); } }
.h-card__media { position: relative; display: block; width: 100%; aspect-ratio: 1 / 1.08; border-radius: var(--h-radius); overflow: hidden; background: var(--bg-2); transform-style: preserve-3d; will-change: transform; }
.h-card__img, .h-card__img img { display: block; width: 100%; height: 100%; }
.h-card__img img { object-fit: cover; transform: scale(1.02); transition: transform 1.4s var(--ease-out); }
.h-card:hover .h-card__img img { transform: scale(1.08); }
.h-card__tags { position: absolute; top: 1rem; left: 1rem; display: flex; gap: 0.45rem; }
.h-card__foot { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; padding: clamp(0.7rem, 1.6vh, 1.1rem) 0.2rem clamp(0.6rem, 1.4vh, 1rem); border-bottom: 1px solid var(--line); }
.h-card__title { font-family: var(--serif); font-weight: 400; font-size: clamp(1.5rem, min(2vw, 3.4vh), 2.2rem); line-height: 1.05; }
.h-card__more { font-size: 0.66rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-soft); white-space: nowrap; transition: color 0.3s; }
.h-card:hover .h-card__more { color: var(--accent); }

/* ---------- About ---------- */
/* One screen: the square render is sized on the viewport height and shown whole (logo included). */
.h-about {
	display: flex; align-items: center;
	min-height: 100vh; min-height: 100svh;
	padding: calc(74px + clamp(20px, 4vh, 48px)) 0 clamp(24px, 5vh, 60px);
}
.h-about > .h-wrap { width: 100%; }
.h-about__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(48px, 6vw, 110px); align-items: center; }
.h-about__media { position: relative; width: min(100%, calc((100vh - 74px - 12vh) * 1.16)); padding: 0 14% 0 0; justify-self: end; }
@supports (height: 100svh) { .h-about__media { width: min(100%, calc((100svh - 74px - 12vh) * 1.16)); } }
.h-about__big { position: relative; aspect-ratio: 1; border-radius: var(--h-radius); overflow: hidden; margin: 0; }
.h-about__big > span { position: absolute; inset: 0; display: block; }
.h-about__big img { width: 100%; height: 100%; object-fit: cover; }
.h-about__small {
	position: absolute; right: 0; top: 12%; width: 38%; aspect-ratio: 1; margin: 0;
	border-radius: var(--h-radius); overflow: hidden; border: 10px solid var(--h-bg);
}
.h-about__small > span, .h-about__small img { display: block; width: 100%; height: 100%; object-fit: cover; }
.h-about__content .h-title { margin-bottom: clamp(1.2rem, 3vh, 2rem); font-size: clamp(2.4rem, min(4.6vw, 8vh), 5.2rem); }
.h-about__lead { font-family: var(--serif); font-size: clamp(1.35rem, 1.8vw, 1.75rem); line-height: 1.3; margin-bottom: 1.2rem; }
.h-about__text { color: var(--ink-soft); margin-bottom: 2.4rem; max-width: 36rem; }

/* ---------- Signature (dark interlude) ---------- */
.h-sig {
	--gold: #c9a97e;
	position: relative; overflow: hidden; isolation: isolate;
	padding: clamp(110px, 16vh, 190px) 0;
	background: #1d1a18; color: var(--h-on-dark);
}
.h-sig::before {
	content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
	background: radial-gradient(ellipse 34% 48% at 50% 55%, rgba(201, 169, 126, 0.16), transparent 70%);
}
.h-sig__band {
	position: absolute; inset: 0; z-index: -1; pointer-events: none;
	display: flex; flex-direction: column; justify-content: center; gap: 2vh; overflow: hidden;
}
.h-sig__row {
	white-space: nowrap; will-change: transform;
	font-family: var(--serif); font-weight: 400; text-transform: uppercase; line-height: 1;
	font-size: clamp(4.5rem, 12vw, 14rem);
	color: transparent; -webkit-text-stroke: 1px rgba(239, 233, 225, 0.075);
}
.h-sig__row--alt { font-style: italic; font-weight: 300; }
.h-eyebrow--gold { color: var(--gold); }
.h-sig__grid {
	display: grid; grid-template-columns: 1fr minmax(240px, 27vw) 1fr; align-items: center;
	gap: clamp(32px, 5vw, 96px);
}
.h-sig__text .pill { margin-top: 2.4rem; }
.h-sig__arch-wrap { position: relative; width: 100%; aspect-ratio: 100 / 140; }
.h-sig__outline { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.h-sig__outline path { fill: none; stroke: var(--gold); stroke-width: 0.35; }
.h-sig__arch {
	position: absolute; inset: 4.5% 4.5% 0; margin: 0;
	border-radius: 999px 999px 0 0; overflow: hidden; background: #2b2724;
	box-shadow: 0 50px 100px -40px rgba(0, 0, 0, 0.7);
}
/* Anchored at the bottom: the zoom never pushes the RR LINE logo out of the arch. */
.h-sig__arch img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 100%; transform-origin: 50% 100%; will-change: transform; }
.h-sig__keys { justify-self: end; width: min(100%, 22rem); border-top: 1px solid rgba(201, 169, 126, 0.28); }
.h-sig__keys li {
	display: flex; align-items: baseline; gap: 1.2rem; padding: 1.25rem 0;
	border-bottom: 1px solid rgba(201, 169, 126, 0.28);
	font-family: var(--serif); font-size: clamp(1.4rem, 1.9vw, 1.9rem); text-transform: uppercase; line-height: 1.05;
}
.h-sig__keys span { font-family: var(--sans); font-size: 0.66rem; font-weight: 600; letter-spacing: 0.2em; color: var(--gold); }

/* ---------- Contact (sized to fit one screen) ---------- */
.h-contact {
	display: flex; flex-direction: column; min-height: 100vh; min-height: 100svh;
	padding: calc(74px + clamp(10px, 1vw, 16px)) clamp(10px, 1vw, 16px) clamp(10px, 1vw, 16px);
	background: var(--h-dark);
}
.h-contact .h-box--dark { background: var(--h-dark-2); border: 1px solid var(--h-line-dark); }
.h-contact__grid { flex: 1; display: grid; grid-template-columns: 1fr 1fr; gap: clamp(10px, 1vw, 14px); }
.h-contact__cards { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 1fr auto; gap: clamp(10px, 1vw, 14px); }
.h-box { border-radius: var(--h-radius); padding: clamp(24px, 3vw, 48px); }
.h-box--dark { display: grid; place-content: center; text-align: center; min-height: 160px; background: var(--h-dark); color: var(--h-on-dark); }
.h-box--light { background: var(--h-paper); }
.h-contact__brand { grid-column: 1 / -1; min-height: 220px; }
.h-contact__logo { width: min(300px, 60vw); height: auto; margin: 0 auto; overflow: visible; color: var(--h-on-dark); }
.h-contact__logo path { fill: currentColor; stroke: currentColor; stroke-width: 2.5; }
.h-contact__tagline { margin-top: 1.2rem; font-family: var(--serif); font-style: italic; font-size: 1.2rem; opacity: 0.65; }
.h-box__title { font-family: var(--serif); font-weight: 400; font-size: clamp(1.4rem, 1.9vw, 1.9rem); text-transform: uppercase; margin-bottom: 0.6rem; }
.h-box--dark p { font-size: 0.98rem; line-height: 1.7; }
.h-contact__form-box { display: flex; flex-direction: column; justify-content: center; padding: clamp(20px, 3.4vh, 56px) clamp(28px, 4vw, 72px); }
.h-contact__form-box .h-eyebrow { margin-bottom: 1rem; }
.h-contact__form-box .h-title { font-size: clamp(2rem, min(3.2vw, 5.6vh), 3.6rem); }
.h-contact__text { max-width: 34rem; margin: 1rem auto 0; text-align: center; color: var(--ink-soft); font-size: 0.95rem; }

.h-form { display: grid; gap: 0.7rem; margin-top: clamp(1.2rem, 3vh, 2rem); }
.h-form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 0.7rem; }
.h-field { position: relative; }
.h-input {
	display: block; width: 100%; height: clamp(46px, 6vh, 54px); padding: 0 1.5rem;
	border: 1px solid rgba(22, 20, 18, 0.32); border-radius: 999px; background: transparent;
	font: inherit; font-size: 0.98rem; color: var(--ink);
	transition: border-color 0.3s, background-color 0.3s;
	appearance: none;
}
.h-input::placeholder { color: var(--ink); opacity: 0.9; font-size: 0.72rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; }
.h-input:focus { outline: none; border-color: var(--ink); background: rgba(255, 255, 255, 0.6); }
select.h-input { font-size: 0.72rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; cursor: pointer; padding-right: 3rem; }
.h-field--select::after {
	content: ""; position: absolute; right: 1.5rem; top: 50%; width: 8px; height: 8px; margin-top: -6px;
	border-right: 1.5px solid var(--ink); border-bottom: 1.5px solid var(--ink); transform: rotate(45deg); pointer-events: none;
}
.h-input--area { height: clamp(84px, 12vh, 120px); min-height: 84px; padding: 1.2rem 1.5rem 2rem; border-radius: 28px; resize: vertical; }
.h-field__count { position: absolute; right: 1.5rem; bottom: 0.8rem; font-size: 0.68rem; color: var(--ink-faint); font-variant-numeric: tabular-nums; }
.h-field .field__error { display: block; padding: 0.4rem 1.5rem 0; font-size: 0.78rem; color: #a3402c; }
.h-field .field__error:empty { display: none; }
.h-field.is-invalid .h-input { border-color: #a3402c; }
.h-form__privacy { text-align: center; font-size: 0.8rem; color: var(--ink-faint); margin: 0.2rem 0; }
.h-form__status { min-height: 1.4em; text-align: center; font-family: var(--serif); font-size: 1.3rem; }
.h-form__status:empty { min-height: 0; }
.h-form__status.is-error { color: #a3402c; }
.contact-form__hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Footer ---------- */
.h-footer { margin-top: 0; border-top: 1px solid var(--h-line-dark); padding: clamp(70px, 10vh, 120px) var(--gutter) 1.6rem; background: var(--h-dark); color: var(--h-on-dark); }
.h-footer__grid { display: grid; grid-template-columns: 1fr 1.25fr 1.25fr; gap: clamp(40px, 6vw, 110px); }
.h-footer__brand { padding-right: clamp(20px, 3vw, 60px); border-right: 1px solid var(--h-line-dark); font-size: 0.95rem; }
.h-footer__logo { width: 168px; height: auto; color: var(--h-on-dark); margin-bottom: 2.2rem; }
.h-footer__label { margin: 1.4rem 0 0.35rem; font-size: 0.66rem; font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase; opacity: 0.5; }
.h-footer__col .h-footer__label { margin-top: 0; }
.h-footer__big {
	display: block; padding: 0.75rem 0; border-bottom: 1px solid var(--h-line-dark);
	font-family: var(--serif); font-size: clamp(1.6rem, 2.3vw, 2.4rem); line-height: 1.05; text-transform: uppercase;
	transition: color 0.3s, padding 0.5s var(--ease-out);
}
.h-footer__big:hover { color: #d6bc98; padding-left: 0.5rem; }
.h-footer__bottom {
	position: relative; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 1.5rem;
	margin-top: clamp(56px, 9vh, 100px); padding-top: 1.4rem; border-top: 1px solid var(--h-line-dark);
	font-size: 0.72rem; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; color: rgba(239, 233, 225, 0.7);
}
.h-footer__lang { justify-self: center; }
.h-footer__credits { justify-self: end; }
/* The "back to top" arrow sits above the bottom bar so it never covers the credits. */
.h-footer__top { position: absolute; right: 0; bottom: calc(100% + 1.2rem); }

/* ---------- Inner pages ---------- */
.is-inner.view-home .inner { padding-top: calc(74px + 10vh); }

/* ---------- Responsive ---------- */
@media (max-width: 1180px) {
	.h-form__row { grid-template-columns: 1fr; }
	.h-sig__text .h-title { font-size: clamp(2.2rem, 4.2vw, 3.4rem); }
}
@media (max-width: 900px) {
	.h-header { height: 72px; }
	.h-header.is-solid { height: 64px; }
	.h-header__cta { display: none; }
	.h-header__logo { width: 104px; }

	.h-hero__bottom { grid-template-columns: 1fr; }
	.h-hero__dots { grid-column: 1; }
	.h-hero__words { gap: 0.7rem; letter-spacing: 0.2em; }
	.h-hero__word em { display: none; }
	.h-hero__sep { width: 18px; }
	.h-hero__scroll { grid-column: 1; grid-row: 1; justify-self: center; margin-bottom: 1.4rem; }
	.h-hero__dots { grid-row: 2; justify-self: center; }

	.h-hub__pin { height: auto; min-height: 0; display: block; padding: clamp(96px, 12vh, 124px) var(--gutter) clamp(64px, 9vh, 96px); }
	.h-hub__plan { position: relative; left: auto; top: auto; width: 100%; transform: none; margin-bottom: 2.6rem; }
	.h-hub__veil { display: none; }
	.h-hub__stage { width: 100%; aspect-ratio: auto; }
	.h-hub__lines { display: none; }
	.h-hub__center, .h-hub__item { position: relative; left: auto; top: auto; transform: none; width: auto; text-align: left; }
	.h-hub__center { margin-bottom: 2.6rem; }
	.h-hub__center .h-eyebrow { justify-content: flex-start; font-size: 0.62rem; white-space: normal; }
	.h-hub__title { font-size: clamp(2.2rem, 9vw, 3rem); }
	.h-hub__item { padding: 0 0 2rem 1.6rem; border-left: 1px solid var(--ink); }
	.h-hub__item::before { content: ""; position: absolute; left: -5px; top: 0.2rem; width: 9px; height: 9px; border-radius: 50%; background: var(--ink); }
	.h-hub__item:last-child { padding-bottom: 0; }
	@media (min-width: 600px) {
		.h-hub__stage { display: grid; grid-template-columns: 1fr 1fr; column-gap: 2.4rem; }
		.h-hub__center { grid-column: 1 / -1; }
		.h-hub__item:nth-last-child(2) { padding-bottom: 0; }
	}

	.h-plan__svg { left: 50%; top: 40%; height: auto; width: min(86vw, 52vh); }
	.h-plan__content { right: var(--gutter); max-width: none; }
	.h-plan__pin::after { background: linear-gradient(0deg, rgba(14, 12, 11, 0.85) 0%, rgba(14, 12, 11, 0.2) 50%, transparent 70%); }

	.h-services { grid-template-columns: 1fr; min-height: 0; }
	.h-services__media { min-height: 0; aspect-ratio: 4 / 3; }

	.h-ring__head { top: calc(72px + 4vh); right: var(--gutter); }
	.h-ring__hud { grid-template-columns: auto 1fr; }
	.h-ring__bar { justify-self: end; }
	.h-ring__hint { display: none; }

	.h-projects__head { flex-direction: column; align-items: flex-start; }
	.h-card { flex-basis: 82vw; }

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

	.h-sig__grid { grid-template-columns: 1fr; }
	.h-sig__arch-wrap { width: min(78vw, 380px); justify-self: center; }
	.h-sig__keys { justify-self: stretch; width: 100%; }

	.h-contact__grid { grid-template-columns: 1fr; }
	.h-form__row { grid-template-columns: 1fr; }

	.h-footer__grid { grid-template-columns: 1fr; }
	.h-footer__brand { border-right: 0; padding-right: 0; }
	.h-footer__bottom { grid-template-columns: 1fr; justify-items: center; text-align: center; gap: 1rem; }
	.h-footer__credits { justify-self: center; }
}
@media (max-width: 520px) {
	.h-header__lang { font-size: 0.68rem; }
	.h-projects__actions .pill { display: none; }
	.h-contact__cards { grid-template-columns: 1fr; }
}

/* ---------- Project viewer (framed, never upscaled) ---------- */
.h-lb { position: fixed; inset: 0; z-index: 400; display: grid; grid-template-columns: minmax(0, 1fr); place-items: center; overflow: hidden; padding: clamp(12px, 3vw, 40px); }
.h-lb__backdrop { position: absolute; inset: 0; background: rgba(28, 25, 22, 0.72); backdrop-filter: blur(8px); }
.h-lb__panel {
	position: relative; display: flex; flex-direction: column; gap: clamp(12px, 2vh, 20px);
	width: min(1180px, 100%); min-width: 0; max-height: 100%;
	padding: clamp(16px, 2.4vw, 32px); border-radius: 16px; background: var(--h-paper);
	box-shadow: 0 40px 120px -30px rgba(0, 0, 0, 0.5);
}
.h-lb__top { display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.h-lb__title { font-family: var(--serif); font-size: clamp(1.4rem, 2vw, 2rem); line-height: 1.05; text-transform: uppercase; }
.h-lb__count { margin-top: 0.3rem; font-size: 0.68rem; font-weight: 600; letter-spacing: 0.2em; color: var(--ink-faint); font-variant-numeric: tabular-nums; }
.h-lb__count b { color: var(--ink); font-weight: 600; }
.h-lb__close i { font-size: 1.1rem; }
.h-lb__close:hover { color: var(--h-bg); background: var(--ink); border-color: var(--ink); }
.h-lb__stage { position: relative; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: clamp(10px, 1.6vw, 20px); min-height: 0; }
.h-lb__figure {
	position: relative; margin: 0; justify-self: center;
	width: min(100%, var(--nw, 1200px));
	max-height: min(62vh, var(--nh, 900px));
	aspect-ratio: var(--ratio, 16 / 9);
	max-width: calc(min(62vh, var(--nh, 900px)) * (var(--ratio, 16 / 9)));
	border-radius: 8px; overflow: hidden; background: var(--bg-2);
	touch-action: pan-y;
}
.h-lb__img { display: block; width: 100%; height: 100%; object-fit: contain; user-select: none; -webkit-user-drag: none; }
.h-lb__loading { position: absolute; left: 0; right: 0; top: 0; height: 2px; background: var(--ink); transform-origin: left; transform: scaleX(0); opacity: 0; }
.h-lb__thumbs { position: relative; min-width: 0; display: flex; gap: 8px; overflow-x: auto; padding-bottom: 2px; scrollbar-width: thin; }
.h-lb__thumb { flex: 0 0 auto; width: 84px; height: 56px; border-radius: 6px; overflow: hidden; opacity: 0.5; outline: 2px solid transparent; outline-offset: 2px; transition: opacity 0.3s, outline-color 0.3s; }
.h-lb__thumb img { width: 100%; height: 100%; object-fit: cover; }
.h-lb__thumb:hover { opacity: 0.85; }
.h-lb__thumb.is-active { opacity: 1; outline-color: var(--ink); }
@media (max-width: 900px) {
	.h-lb__stage { grid-template-columns: 1fr; }
	.h-lb__nav { position: absolute; z-index: 2; top: 50%; transform: translateY(-50%); background: rgba(248, 246, 242, 0.9); }
	.h-lb__nav--prev { left: 8px; }
	.h-lb__nav--next { right: 8px; }
	.h-lb__figure { max-height: 52vh; max-width: calc(52vh * (var(--ratio, 16 / 9))); }
	.h-lb__thumb { width: 64px; height: 44px; }
}
