/*
 * VIEM. — Index: cover, statement, selected-works rail, PLACE, disciplines, numbers.
 * The cover and rail are scroll-driven (home.js); with reduced motion or touch
 * they become ordinary static sections.
 */

body.view-home { background: var(--ink); color: var(--ivory); }

/* Cover ------------------------------------------------------------------------ */
.hero-scroll { position: relative; height: 100svh; }
.hero { position: sticky; top: 0; height: 100svh; overflow: hidden; isolation: isolate; }
.hero-sky { position: absolute; inset: -8%; width: 116%; height: 116%; object-fit: cover; filter: saturate(.83) contrast(1.06); will-change: transform; }
.hero-shade { position: absolute; inset: 0; background: #000; opacity: var(--hero-shade, .24); pointer-events: none; }
.hero-vignette { position: absolute; z-index: 1; inset: 0; background: linear-gradient(to bottom, transparent 55%, rgba(0, 0, 0, .58)); }

/* The signature: two stacked copies, so the letters blend with the photograph
 * while the gold point stays gold. */
.hero-logo {
	position: absolute; z-index: 6; left: 50%; top: 50%; margin: 0;
	transform: translate(-50%, -50%);
	display: inline-flex; align-items: baseline; gap: .035em;
	font: 400 clamp(5rem, 24vw, 26rem)/1 var(--display); letter-spacing: 0;
	font-kerning: none; font-synthesis: none; white-space: nowrap; direction: ltr;
	color: #fff; mix-blend-mode: difference;
	opacity: calc(.76 * var(--signature-visibility, 1)); will-change: opacity;
}
.hero-logo > * { font: inherit; }
.hero-logo i { color: var(--gold); margin-inline-start: -.025em; }
.hero-logo:not(.hero-dot) i, .hero-dot span { visibility: hidden; }
.hero-dot { mix-blend-mode: normal; pointer-events: none; }

.hero-line { position: absolute; z-index: 7; left: var(--side); right: var(--side); bottom: 30px; display: flex; justify-content: space-between; align-items: end; font-size: var(--small); line-height: 1.35; }
.hero-line > span:last-child { text-align: right; }
.hero-line .coordinates { font: 400 .9375rem/1.4 var(--text); letter-spacing: 0; white-space: nowrap; }
.hero-project { position: absolute; z-index: 8; left: var(--side); bottom: 80px; }
.hero-project h2 { margin: 0; font-size: clamp(4.5rem, 10vw, 11rem); }
.hero-project p { margin: 18px 0 0; font-size: 1rem; }
.scroll-mark { position: absolute; z-index: 8; right: var(--side); top: 50%; writing-mode: vertical-rl; font-size: var(--small); line-height: 1.35; }

/* Statement --------------------------------------------------------------------- */
.statement { background: var(--ivory); color: var(--ink); padding: 10vh var(--side); display: grid; grid-template-columns: 1fr 4fr; gap: 6vw; align-items: start; }
.statement blockquote { margin: 0; font: 400 clamp(3.6rem, 8.5vw, 10rem)/.91 var(--display); letter-spacing: -.06em; }
.statement-note { grid-column: 2; display: grid; grid-template-columns: 1fr 1fr; gap: 5vw; margin-top: 7vh; border-top: 1px solid rgba(10, 10, 9, .25); padding-top: 20px; }
.statement-note p { margin: 0; line-height: 1.65; max-width: 540px; font-size: 1.05rem; }
.statement-note span { text-align: right; font-size: var(--small); line-height: 1.35; }

/* Selected works rail ------------------------------------------------------------ */
.rail-wrap { position: relative; height: 300svh; background: var(--ink); }
.rail-stage { position: sticky; top: 0; height: 100svh; overflow: hidden; }
.rail-head { position: absolute; z-index: 4; left: var(--side); right: var(--side); top: 110px; display: flex; justify-content: space-between; font-size: var(--small); line-height: 1.35; }
.rail-head h2 { margin: 0; font: inherit; }
.rail-head a:hover { color: var(--gold); }
.rail { position: absolute; left: 0; top: 0; height: 100%; display: flex; align-items: center; gap: 5vw; padding: 0 12vw; will-change: transform; }
.rail-card { position: relative; flex: none; overflow: hidden; }
.rail-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 48%, rgba(0, 0, 0, .72)); }
.rail-card img { display: block; width: auto; height: 60svh; max-width: 86vw; object-fit: contain; filter: saturate(.72); transition: filter var(--motion-medium); }
.rail-card:hover img { filter: saturate(1); }
.rail-copy { position: absolute; z-index: 2; left: 25px; right: 25px; bottom: 22px; }
.rail-copy b { display: block; font-size: clamp(2.5rem, 5vw, 6rem); }
.rail-copy i { display: block; margin-top: 12px; font-size: var(--small); line-height: 1.35; }

/* PLACE ---------------------------------------------------------------------------- */
.mask-break { position: relative; height: 145svh; background: var(--ink); color: var(--ink); }
.mask-stage { position: sticky; top: 0; height: 100svh; overflow: hidden; display: grid; place-items: center; background: var(--ink); }
.mask-stage img { position: absolute; inset: -8% 0 auto; height: 116%; object-fit: cover; filter: saturate(.7); }
.mask-type { position: relative; z-index: 2; margin: 0; font: 400 clamp(7rem, 23vw, 25rem)/.69 var(--display); letter-spacing: -.08em; text-align: center; color: var(--ivory); mix-blend-mode: difference; }
.mask-type small { display: block; font: 1rem/1.3 var(--text); letter-spacing: 0; margin-bottom: 28px; }
.mask-outline { position: absolute; z-index: 3; inset: auto var(--side) 28px; display: flex; justify-content: space-between; font-size: var(--small); line-height: 1.35; color: #fff; }

/* Disciplines ---------------------------------------------------------------------- */
.disciplines { background: var(--red); color: var(--ivory); padding: 10vh var(--side); }
.disciplines-head { display: grid; grid-template-columns: 1fr 3fr; gap: 5vw; margin-bottom: 8vh; }
.disciplines-head > span { font-size: var(--small); line-height: 1.35; }
.disciplines-head h2 { margin: 0; font: 400 clamp(4rem, 10vw, 11rem)/.82 var(--display); letter-spacing: -.06em; }
.discipline { display: grid; grid-template-columns: 70px 1fr 1fr; gap: 25px; padding: 25px 0; border-top: 1px solid rgba(240, 237, 229, .35); align-items: center; }
.discipline:last-child { border-bottom: 1px solid rgba(240, 237, 229, .35); }
.discipline h3 { margin: 0; font: 400 clamp(2.5rem, 5vw, 6rem)/.9 var(--display); letter-spacing: -.05em; transition: transform var(--motion-medium) var(--ease-luxury); }
.discipline:hover h3, .discipline:focus-visible h3 { transform: translateX(8px); }
.discipline p { margin: 0; max-width: 480px; line-height: 1.6; font-size: 1.05rem; }

/* Numbers ---------------------------------------------------------------------------- */
.numbers { background: var(--ivory); color: var(--ink); padding: 10vh var(--side); display: grid; grid-template-columns: 1fr 2fr; gap: 7vw; align-content: center; }
.numbers h2 { margin: 0; font: 400 clamp(3rem, 6vw, 7rem)/.92 var(--display); letter-spacing: -.05em; }
.number-grid { display: grid; grid-template-columns: 1fr 1fr; }
.number { padding: 30px 0; border-top: 1px solid rgba(10, 10, 9, .25); }
.number:nth-child(odd) { border-right: 1px solid rgba(10, 10, 9, .25); }
.number:nth-child(even) { padding-left: 30px; }
.number b { display: block; font: 400 clamp(4rem, 9vw, 10rem)/.8 var(--display); letter-spacing: -.07em; }
.number i { font-size: var(--small); line-height: 1.35; }

/* Scroll-driven version (full motion, fine pointer) ----------------------------------- */
@media (prefers-reduced-motion: no-preference) and (not (any-pointer: coarse)) {
	.hero-scroll { height: 168svh; }
	.hero-project { opacity: 0; transform: translateY(30px); }
}

@media (max-width: 760px) {
	.hero-project h2 { font-size: 18vw; }
	.statement { grid-template-columns: 1fr; }
	.statement blockquote { font-size: 13vw; }
	.statement-note { grid-column: 1; grid-template-columns: 1fr; }
	.statement-note span { text-align: left; }
	.rail-card img { height: auto; max-height: 60svh; max-width: 86vw; }
	.mask-break { height: 125svh; }
	.mask-type { font-size: 30vw; }
	.disciplines-head, .numbers { grid-template-columns: 1fr; }
	.discipline { grid-template-columns: 35px 1fr; }
	.discipline p { grid-column: 2; }
	.number-grid { margin-top: 40px; }
}

/* Static version: reduced motion or touch ------------------------------------------------ */
@media (prefers-reduced-motion: reduce), (any-pointer: coarse) {
	.hero { position: relative; }
	.rail-wrap, .rail-stage { height: auto; }
	.rail-stage { position: relative; overflow: visible; padding: 36px 0; }
	.rail-head { position: static; padding: 0 var(--side) 28px; }
	.rail { position: static; height: auto; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; padding: 0 var(--side); transform: none; }
	.rail-card { align-self: center; }
	.rail-card img { width: 100%; height: auto; max-width: 100%; max-height: none; }
	.mask-break, .mask-stage { height: 75svh; }
	.mask-stage { position: relative; }
}
@media (prefers-reduced-motion: reduce) and (max-width: 760px), (any-pointer: coarse) and (max-width: 760px) {
	.rail { grid-template-columns: 1fr; }
}
