/* ==========================================================================
   8F Arq
   An architecture publication on screen: 12-column grid, generous margins,
   one sober Swiss-inspired sans (Inter 400/500), photographs first.
   ========================================================================== */

@font-face {
	font-family: "Inter";
	src: url("../fonts/inter-latin.woff2") format("woff2");
	font-weight: 400 500; font-style: normal; font-display: swap;
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
	font-family: "Inter";
	src: url("../fonts/inter-latin-ext.woff2") format("woff2");
	font-weight: 400 500; font-style: normal; font-display: swap;
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
	font-family: "EB Garamond";
	src: url("../fonts/garamond-latin-400.woff2") format("woff2");
	font-weight: 400; font-style: normal; font-display: swap;
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2197, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
	font-family: "EB Garamond";
	src: url("../fonts/garamond-latin-ext-400.woff2") format("woff2");
	font-weight: 400; font-style: normal; font-display: swap;
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+1EF2-1EFF, U+20A0-20AB, U+20AD-20C0, U+2C60-2C7F, U+A720-A7FF;
}

:root {
	/* Palette: off-white ground, anthracite text, stone for details, sand only as a rare accent. */
	--paper: #F6F5F2;
	--ink: #2A2A28;
	--stone: #6F6C66;      /* secondary text, about 5:1 on paper */
	--stone-light: #A9A59D;/* rules and quiet details */
	--sand: #D8D1C4;       /* rare accent: image placeholders, selection */
	--line: rgba(42, 42, 40, .12);

	--sans: "Inter", ui-sans-serif, "Helvetica Neue", Helvetica, Arial, sans-serif;

	/* One type scale for every page */
	--fs-label: 11px;
	--fs-small: 14px;
	--fs-body: clamp(16px, 0.25vw + 15px, 18px);
	--fs-lead: clamp(19px, 0.8vw + 14px, 24px);
	--fs-title: clamp(26px, 1.6vw + 18px, 40px);

	--gutter: clamp(20px, 5vw, 80px);
	--col-gap: clamp(16px, 2vw, 32px);
	--header: 72px;
	--ease: cubic-bezier(.25, .1, .25, 1);
	--t: .25s;
	--mnav: 0px;
	color-scheme: light;
}

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

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: var(--header); }
body {
	margin: 0;
	background: var(--paper);
	color: var(--ink);
	font: 400 var(--fs-body)/1.6 var(--sans);
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; text-align: inherit; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
h1, h2, h3 { font-weight: 500; text-wrap: balance; }
ul, ol { padding: 0; list-style: none; }
[hidden] { display: none !important; }
:focus-visible { outline: 1px solid var(--ink); outline-offset: 4px; }
::selection { background: var(--sand); }

.wrap { padding-inline: var(--gutter); }
.eyebrow { font: 500 var(--fs-label)/1.4 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--stone); }
.muted { color: var(--stone); }
.num { font-variant-numeric: tabular-nums; }

.skip { position: absolute; left: var(--gutter); top: -100px; z-index: 100; background: var(--ink); color: var(--paper); padding: 10px 14px; font-size: var(--fs-small); }
.skip:focus { top: 8px; }

/* Typographic links: a fine underline that firms up on hover. */
.link-quiet { font-size: var(--fs-small); color: var(--stone); transition: color var(--t) var(--ease); }
.link-quiet:hover { color: var(--ink); }
.link-line { padding-bottom: 1px; border-bottom: 1px solid var(--stone-light); transition: border-color var(--t) var(--ease); }
.link-line:hover { border-color: var(--ink); }

/* ------------------------------------------------------------- Images */

/* Photographs: no frame, no radius. Painted with their own colour while loading. */
.frame { display: block; position: relative; overflow: hidden; background: var(--c, var(--sand)); }
.frame img { width: 100%; height: auto; }
.js .arq-img { opacity: 0; transition: opacity .5s var(--ease); }
.js .arq-img.is-in { opacity: 1; }
.js .arq-img:not(.is-in) { animation: arq-show 0s 5s forwards; }
@keyframes arq-show { to { opacity: 1; } }

.frame--empty { background: #ECEAE5; aspect-ratio: 3 / 2; max-width: 100%; }
.frame-mark { position: absolute; left: 50%; top: 50%; width: 14%; max-width: 56px; transform: translate(-50%, -50%); color: var(--ink); opacity: .08; }

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

.site-header {
	position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20;
	background: color-mix(in srgb, var(--paper) 94%, transparent);
	-webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
	border-bottom: 1px solid var(--line);
}
.site-header__inner { display: flex; align-items: center; gap: 32px; height: var(--header); }
.brand { display: flex; align-items: center; gap: 12px; margin-right: auto; }
.brand__mark { width: 28px; height: 28px; color: var(--ink); }
.brand__name { font-size: 13px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; }
.nav { display: flex; gap: clamp(20px, 2.6vw, 40px); font-size: 15px; font-weight: 500; }
.nav a { position: relative; padding-block: 6px; color: var(--stone); transition: color var(--t) var(--ease); }
.nav a:hover, .nav a[aria-current] { color: var(--ink); }
.nav a[aria-current]::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: currentColor; }
.lang { display: flex; gap: 10px; font-size: 13px; font-weight: 500; color: var(--stone-light); padding-left: clamp(16px, 2vw, 28px); border-left: 1px solid var(--line); }
.lang a { color: var(--stone); transition: color var(--t) var(--ease); }
.lang a:hover, .lang [aria-current] { color: var(--ink); }

/* ---------------------------------------------------------------- Home */

/* One large frame where the projects follow one another; nothing covers the architecture. */
.slides { padding-top: clamp(16px, 2vw, 32px); }
.slides__stage { position: relative; height: min(74vh, 820px); min-height: 360px; background: #ECEAE5; overflow: hidden; }
.slide { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity .8s var(--ease), visibility 0s linear .8s; }
.slide.is-active { opacity: 1; visibility: visible; transition: opacity .8s var(--ease), visibility 0s; }
.slide .frame { position: absolute; inset: 0; }
.slide .frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%; }
.slides__stage > .frame--empty { position: absolute; inset: 0; aspect-ratio: auto; }
.slides__bar { display: flex; justify-content: space-between; align-items: baseline; gap: 16px 32px; flex-wrap: wrap; padding-top: 16px; }
.slides__caption { display: flex; gap: 6px 16px; flex-wrap: wrap; align-items: baseline; min-width: 0; }
.slides__title { font-weight: 500; }
a.slides__title:hover { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.slides__meta { font-size: var(--fs-small); color: var(--stone); }
.slides__controls { display: flex; align-items: center; gap: 4px; font-size: var(--fs-small); color: var(--stone); }
.slides__controls button { min-width: 44px; min-height: 44px; display: inline-grid; place-items: center; color: var(--stone); transition: color var(--t) var(--ease); }
.slides__controls button:hover { color: var(--ink); }
.slides__pause { min-width: auto !important; padding-left: 16px; margin-left: 8px; border-left: 1px solid var(--line) !important; }
.slides__count { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

.intro {
	display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 12px var(--col-gap); align-items: baseline;
	padding-block: clamp(48px, 7vw, 112px) clamp(48px, 6vw, 96px);
}
.intro__title { grid-column: 1 / 5; font-size: var(--fs-title); line-height: 1.1; letter-spacing: -.01em; }
.intro__meta { grid-column: 5 / 8; font-size: var(--fs-small); line-height: 1.6; }
.intro__text { grid-column: 8 / 13; line-height: 1.65; max-width: 44ch; }
.intro__text .link-line { white-space: nowrap; }

.section-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; border-top: 1px solid var(--line); padding-block: 20px 32px; }

/* ---------------------------------------------------------- Project grid */

.grid {
	display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: clamp(48px, 6vw, 96px) var(--col-gap);
	padding-bottom: clamp(80px, 10vw, 160px);
}
.card { display: block; min-width: 0; }
/* Every card shares one proportion; photos are cropped from the centre, never stretched. */
.card .frame { aspect-ratio: 3 / 2; max-width: 100%; }
.card .frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%; }
@media (hover: hover) { .card:hover .frame img.is-in { opacity: .88; } }
.card-info { display: grid; gap: 2px; padding-top: 16px; }
.card-title { font-weight: 500; line-height: 1.35; }
.card-meta { font-size: var(--fs-small); color: var(--stone); }
.card:hover .card-title { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.grid--single { grid-template-columns: minmax(0, 1fr); max-width: 58rem; }

.grid > .card { transition: opacity .2s var(--ease); }
.grid.is-filtering > .card { opacity: 0; }

/* ------------------------------------------------------------ Page head */

.page-head { padding-block: clamp(48px, 7vw, 112px) 0; }
.page-title { font-size: var(--fs-title); line-height: 1.15; letter-spacing: -.01em; }

.filters {
	display: flex; flex-wrap: wrap; gap: 4px 28px;
	border-block: 1px solid var(--line); padding-block: 14px;
	margin-block: clamp(32px, 4vw, 48px);
}
.filters a, .filters__empty { display: flex; gap: 6px; align-items: baseline; padding-block: 6px; font-size: 12px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--stone); transition: color var(--t) var(--ease); }
.filters a span { border-bottom: 1px solid transparent; padding-bottom: 2px; transition: border-color var(--t) var(--ease); }
.filters a:hover, .filters a[aria-current] { color: var(--ink); }
.filters a[aria-current] span { border-color: currentColor; }
.filters sup { display: none; }
.filters__empty { color: var(--stone-light); }

.empty { grid-column: 1 / -1; color: var(--stone); padding-block: 40px 120px; border-top: 1px solid var(--line); max-width: 60ch; }

/* --------------------------------------------------------- Project page */

.project-head { display: grid; gap: 12px; padding-block: clamp(48px, 7vw, 112px) clamp(48px, 6vw, 96px); }
.project-head h1 { font-size: var(--fs-title); line-height: 1.12; letter-spacing: -.01em; max-width: 24ch; }
.project-head a.eyebrow { justify-self: start; transition: color var(--t) var(--ease); }
.project-head a.eyebrow:hover { color: var(--ink); }

/* Text on the left, the project's emblem on the right. */
.project-intro { display: grid; grid-template-columns: minmax(0, 60ch) clamp(150px, 15vw, 220px); justify-content: space-between; gap: 32px clamp(32px, 6vw, 120px); align-items: start; margin-top: clamp(20px, 2.5vw, 36px); max-width: 1240px; }
.project-intro__text { min-width: 0; }
/* A small square, black and white: the most recognisable detail of the project, read like a mark. */
.project-emblem { margin: 0; aspect-ratio: 1; max-width: 100%; overflow: hidden; background: #E9E7E2; }
.project-emblem img { width: 100%; height: 100%; object-fit: cover; object-position: var(--focus, 50% 50%); filter: grayscale(1) contrast(1.12) brightness(1.02); mix-blend-mode: multiply; }

/* The text: quiet, light and narrow, read before the images without competing with them. */
.project-text { max-width: 60ch; color: #55534E; }
.project-text p { font-size: 15px; line-height: 1.85; font-weight: 400; letter-spacing: .005em; hyphens: auto; -webkit-hyphens: auto; }
.project-text p + p { margin-top: 1.1em; }

.facts { display: flex; flex-wrap: wrap; gap: 8px 40px; margin-top: clamp(20px, 2.5vw, 32px); font-size: 13px; }
.facts div { display: flex; gap: 10px; align-items: baseline; }
.facts dt { color: var(--stone); font-size: var(--fs-label); letter-spacing: .12em; text-transform: uppercase; font-weight: 500; }

/* Project photographs keep their own proportions (no cropping), within generous margins. */
.project-main, .gallery { max-width: 1240px; margin-inline: auto; }
.project-main { display: block; width: 100%; cursor: zoom-in; }
.project-main .frame, .gallery .frame { width: fit-content; max-width: 100%; margin-inline: auto; }
.project-main img { max-height: 78vh; width: auto; max-width: 100%; }
.gallery img { width: auto; max-width: 100%; }


.gallery { display: grid; gap: clamp(48px, 7vw, 120px); }
.gallery > button { cursor: zoom-in; }
.gallery img { max-height: 80vh; }

.drawings { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); gap: var(--col-gap); }
.drawing { display: block; cursor: zoom-in; }
a.drawing { cursor: pointer; }
.drawing__sheet { display: grid; place-items: center; aspect-ratio: 1 / 1.414; max-width: 100%; background: #FBFAF8; border: 1px solid var(--line); padding: 8%; transition: border-color var(--t) var(--ease); }
.drawing__sheet .frame { background: transparent; width: 100%; }
.drawing__sheet .frame--empty { aspect-ratio: 1 / 1.2; }
.drawing:hover .drawing__sheet { border-color: var(--stone-light); }
.drawing__info { display: flex; justify-content: space-between; gap: 12px; padding-top: 10px; font-size: var(--fs-small); }

.project > section.wrap { margin-top: clamp(64px, 8vw, 128px); }
.drawings-label { margin-bottom: 24px; }

.pager { display: grid; grid-template-columns: 1fr 1fr; margin-top: clamp(80px, 10vw, 160px); }
.pager a { display: grid; gap: 8px; align-content: start; padding-block: 28px clamp(56px, 7vw, 112px); border-top: 1px solid var(--line); }
.pager a + a { text-align: right; padding-left: 24px; }
.pager strong { font-size: var(--fs-lead); font-weight: 500; line-height: 1.25; }
.pager a:hover strong { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 5px; }

/* --------------------------------------------------------------- Prose */

.prose { max-width: 66ch; }
.prose p, .prose ul, .prose ol { margin-bottom: 1em; }
.prose ul { list-style: disc; padding-left: 1.2em; }
.prose a { border-bottom: 1px solid var(--stone-light); }
.prose a:hover { border-color: var(--ink); }
.prose h2, .prose h3 { font-size: var(--fs-lead); line-height: 1.3; margin: 1.6em 0 .6em; }

/* -------------------------------------------------------------- Studio */

.studio__head { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 16px var(--col-gap); padding-block: clamp(48px, 7vw, 112px) clamp(40px, 5vw, 72px); }
.studio__head .eyebrow { grid-column: 1 / -1; }
.studio__lead { grid-column: 1 / 10; font-size: var(--fs-title); font-weight: 500; line-height: 1.2; letter-spacing: -.01em; text-wrap: balance; }
.studio__image .frame { aspect-ratio: 16 / 9; max-width: 100%; }
.studio__image .frame img { position: absolute; inset: 0; height: 100%; object-fit: cover; }
.studio__text { columns: 2 30ch; column-gap: var(--col-gap); max-width: none; width: min(100%, 60rem); margin-left: auto; padding-block: clamp(48px, 6vw, 96px) clamp(80px, 10vw, 160px); }
.studio__text p { break-inside: avoid; }

/* Studio page fed by the ESTUDIO folder — editorial, with a serif for display */
.st { --serif: "EB Garamond", "Iowan Old Style", "Palatino Linotype", Georgia, serif; --st-text: #4A4843; }
.st-label { display: flex; align-items: center; gap: 14px; font: 500 var(--fs-label)/1.4 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--stone); }
.st-label .num { letter-spacing: .08em; }
.st-rule { display: block; width: 40px; height: 1px; background: currentColor; opacity: .6; }
.st-label--top .st-rule { width: 56px; }
.st-cap { margin-top: 10px; font: 400 15px/1.4 var(--serif); color: var(--stone); }
.st-cap a { transition: color var(--t) var(--ease); }
.st-cap a:hover { color: var(--ink); }
.st-text, .st-small { font-family: var(--serif); color: var(--st-text); }
.st-text { font-size: clamp(18px, .4vw + 16px, 21px); line-height: 1.5; max-width: 40ch; }
.st-small { font-size: clamp(16px, .2vw + 15px, 18px); line-height: 1.5; color: var(--stone); max-width: 42ch; }
.st-text p + p, .st-small p + p { margin-top: .8em; }

.st-hero { padding-block: clamp(36px, 5vw, 72px) clamp(40px, 6vw, 88px); }
.st-phrase { margin-top: clamp(16px, 2vw, 28px); max-width: 17ch; font: 400 clamp(46px, 6.4vw, 104px)/1 var(--serif); letter-spacing: -.015em; color: var(--ink); text-wrap: balance; }
.st-hero__fig { margin-top: clamp(28px, 3.5vw, 48px); }
.st-hero__fig .frame { aspect-ratio: 2 / 1; }
.st-hero__fig .frame img, .st-work__fig .frame img, .st-person__img .frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

.st-row { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 28px var(--col-gap); padding-block: clamp(48px, 6vw, 96px); border-top: 1px solid var(--line); }
.st-row > .st-label { grid-column: 1 / 7; align-self: start; padding-top: .9em; }
.st-row__body { grid-column: 7 / 13; display: grid; gap: 20px; align-content: start; }
.st-headline { font: 400 clamp(30px, 3.1vw, 50px)/1.08 var(--serif); letter-spacing: -.01em; color: var(--ink); max-width: 19ch; text-wrap: balance; }

.st-people { gap: 36px; }
.st-person { display: grid; grid-template-columns: minmax(0, 200px) minmax(0, 1fr); gap: 28px; align-items: end; }
.st-person__img .frame { aspect-ratio: 4 / 5; }
.st-person__img .frame img { object-position: 50% 30%; }
.st-person__name { font: 400 clamp(24px, 1.6vw, 30px)/1.15 var(--serif); }
.st-person__role { margin: 6px 0 12px; font: 500 var(--fs-label)/1.4 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--stone); }

.st-work { align-items: start; row-gap: 40px; }
.st-work__fig { grid-column: 1 / 7; }
.st-work__fig .frame { aspect-ratio: 3 / 2; }
.st-work__body { grid-column: 7 / 13; display: grid; gap: 32px; align-content: start; }
.st-work--text .st-work__body { grid-column: 1 / -1; grid-template-columns: repeat(12, minmax(0, 1fr)); }
.st-work--text .st-label { grid-column: 1 / 7; }
.st-work--text .st-steps { grid-column: 7 / 13; }
.st-steps { display: grid; gap: clamp(28px, 3vw, 44px); }
.st-step { display: grid; grid-template-columns: 56px minmax(0, 1fr); column-gap: 24px; }
.st-step__n { font: 400 clamp(28px, 2.2vw, 36px)/1 var(--serif); color: var(--ink); padding-top: 2px; }
.st-step__body { display: grid; gap: 8px; padding-left: 24px; border-left: 1px solid var(--stone-light); }
.st-step__title { font: 400 clamp(22px, 1.5vw, 27px)/1.15 var(--serif); color: var(--ink); }

.st-contact { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 28px 40px; padding-block: clamp(48px, 6vw, 88px) clamp(72px, 9vw, 140px); border-top: 1px solid var(--line); }
.st-contact__body { display: grid; gap: 12px; }
.st-contact__title { font: 400 clamp(38px, 4.6vw, 72px)/1.02 var(--serif); letter-spacing: -.015em; color: var(--ink); }
.st-btn { display: inline-flex; align-items: center; gap: 10px; padding: 14px 30px; border: 1px solid var(--ink); font: 400 19px/1 var(--serif); color: var(--ink); transition: background var(--t) var(--ease), color var(--t) var(--ease); }
.st-btn:hover, .st-btn:focus-visible { background: var(--ink); color: var(--paper); }

@media (max-width: 760px) {
	.st-hero__fig .frame { aspect-ratio: 4 / 3; }
	.st-row > .st-label, .st-row__body, .st-work__fig, .st-work__body,
	.st-work--text .st-label, .st-work--text .st-steps { grid-column: 1 / -1; }
	.st-row > .st-label { padding-top: 0; }
	.st-person { grid-template-columns: minmax(0, 140px) minmax(0, 1fr); gap: 20px; }
	.st-step { grid-template-columns: 44px minmax(0, 1fr); column-gap: 16px; }
	.st-step__body { padding-left: 16px; }
}

/* ------------------------------------------------------------- Contact */

.contact { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 24px var(--col-gap); align-items: start; padding-block: clamp(56px, 9vw, 140px) clamp(80px, 10vw, 160px); }
.contact__logo { grid-column: 1 / 4; width: min(100%, 140px); color: var(--ink); }
.contact__logo svg { width: 100%; height: auto; display: block; }
.contact__info { grid-column: 6 / 13; display: grid; gap: 32px; }
.contact__who { display: grid; gap: 2px; }
.contact__list { display: grid; gap: 12px; border-top: 1px solid var(--line); padding-top: 24px; }
.contact__list div { display: grid; grid-template-columns: 120px 1fr; gap: 24px; }
.contact__list dt { color: var(--stone); font-size: var(--fs-small); padding-top: 2px; }
.contact__list a { border-bottom: 1px solid var(--stone-light); transition: border-color var(--t) var(--ease); }
.contact__list a:hover { border-color: var(--ink); }

/* -------------------------------------------------------- Publications */

.pubs { border-top: 1px solid var(--line); margin-block: clamp(32px, 4vw, 48px) clamp(80px, 10vw, 160px); }
.pub a { display: grid; grid-template-columns: 4.5em minmax(0, 1fr) minmax(0, 14em) 10em; gap: 24px; align-items: baseline; padding-block: 18px; border-bottom: 1px solid var(--line); }
.pub a:hover .pub__title { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.pub__title { font-weight: 500; }
.pub .eyebrow { text-align: right; }
.publication { padding-bottom: clamp(80px, 10vw, 160px); }
.publication .page-head p.eyebrow { margin-bottom: 16px; }
.publication__medium { margin-top: 12px; color: var(--stone); }
.publication__image { margin-block: clamp(32px, 5vw, 64px); max-width: 66rem; }
.publication__text { margin-top: clamp(24px, 3vw, 40px); }
.actions { display: flex; flex-wrap: wrap; gap: 28px; margin-top: 32px; }
.related { margin-top: clamp(56px, 7vw, 112px); }

.page .prose { margin-top: clamp(32px, 4vw, 48px); padding-bottom: clamp(80px, 10vw, 160px); }
.notfound { padding-block: clamp(64px, 10vw, 160px); display: grid; gap: 24px; }

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

.site-footer { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 16px; border-top: 1px solid var(--line); padding-block: 28px calc(28px + var(--mnav)); font-size: 13px; color: var(--stone); }
.site-footer__links { display: flex; gap: 24px; }
.site-footer a { transition: color var(--t) var(--ease); }
.site-footer a:hover { color: var(--ink); }
.mnav { display: none; }

/* ------------------------------------------------- Fullscreen viewer */

.lb { position: fixed; inset: 0; width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; border: 0; padding: calc(env(safe-area-inset-top, 0px) + 12px) var(--gutter) calc(env(safe-area-inset-bottom, 0px) + 12px); background: var(--paper); color: var(--ink); }
.lb[open] { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; animation: lb-in .25s var(--ease); }
.lb::backdrop { background: var(--paper); }
@keyframes lb-in { from { opacity: 0; } }
.lb__bar { display: flex; justify-content: space-between; align-items: center; gap: 16px; font-size: 13px; font-weight: 500; color: var(--stone); }
.lb__bar button { padding: 12px 0; min-height: 44px; transition: color var(--t) var(--ease); }
.lb__bar button:hover { color: var(--ink); }
.lb__stage { display: grid; place-items: center; min-height: 0; padding: clamp(16px, 4vh, 48px) clamp(0px, 6vw, 120px); touch-action: pan-y; }
.lb__stage img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; opacity: 0; transition: opacity .3s var(--ease); }
.lb__stage img.is-in { opacity: 1; }

/* ---------------------------------------------------- Page transitions */

@view-transition { navigation: auto; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .2s; animation-timing-function: var(--ease); }

/* ==========================================================================
   Tablet
   ========================================================================== */

@media (max-width: 1080px) {
	.intro__title { grid-column: 1 / 7; }
	.intro__meta { grid-column: 7 / 13; }
	.intro__text { grid-column: 1 / 13; margin-top: 16px; }
}

/* ==========================================================================
   Mobile: own layout — bottom navigation, one column, swipeable filters.
   ========================================================================== */

@media (max-width: 760px) {
	:root { --header: 60px; --mnav: calc(60px + env(safe-area-inset-bottom, 0px)); }
	.nav { display: none; }
	.lang { border-left: 0; padding-left: 0; }

	.mnav {
		display: grid; grid-auto-flow: column; grid-auto-columns: 1fr;
		position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
		background: color-mix(in srgb, var(--paper) 96%, transparent);
		-webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
		border-top: 1px solid var(--line);
		padding-bottom: env(safe-area-inset-bottom, 0px);
	}
	.mnav a { text-align: center; font-size: 13px; font-weight: 500; color: var(--stone); padding-block: 20px; }
	.mnav a[aria-current] { color: var(--ink); }

	.slides__bar { padding-top: 12px; }
	.intro, .studio__head, .contact { grid-template-columns: minmax(0, 1fr); }
	.intro > *, .studio__head > *, .contact > * { grid-column: 1 / -1 !important; }
	.project-text p { font-size: 15px; line-height: 1.8; }
	.project-intro { grid-template-columns: minmax(0, 1fr); }
	.project-emblem { grid-row: 1; width: 96px; }
	.intro { padding-block: 40px 48px; }
	.intro__text { margin-top: 8px; }

	.grid { grid-template-columns: minmax(0, 1fr); gap: 48px; }
	.card .frame { aspect-ratio: 4 / 3; }

	.filters { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); scroll-snap-type: x proximity; }
	.filters::-webkit-scrollbar { display: none; }
	.filters a, .filters__empty { white-space: nowrap; scroll-snap-align: start; }

	.gallery { gap: 32px; }
	.drawings { grid-template-columns: 1fr 1fr; }

	.pager { grid-template-columns: 1fr; }
	.pager a + a { text-align: left; padding-left: 0; }
	.studio__image .frame { aspect-ratio: 4 / 5; }
	.studio__text { columns: 1; }
	.contact__logo { width: 88px; }
	.contact__list div { grid-template-columns: 1fr; gap: 2px; }
	.pub a { grid-template-columns: 3.5em minmax(0, 1fr); gap: 4px 16px; }
	.pub a > :nth-child(3), .pub a > :nth-child(4) { grid-column: 2; text-align: left; }
}

/* Phones and tablets held upright: show each photograph whole, never cropped. */
@media (max-width: 760px), (orientation: portrait) and (max-width: 1080px) {
	.slides__stage { height: auto; min-height: 0; aspect-ratio: 3 / 2; background: transparent; }
	.slide .frame { background: transparent; }
	.slide .frame img { object-fit: contain; object-position: 50% 100%; } /* sits on its caption; any spare space goes above */
}

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { transition: none !important; animation: none !important; }
	.js .arq-img { opacity: 1; }
	@view-transition { navigation: none; }
}
