/*
 * LT Portfolio — layout and behaviour after Forte Architetti (fortearch.it), our own code.
 * Phone first (390 px is the main view). Forte's breakpoints: 760 px (two columns) and
 * 1100 px (desktop sizes). Type sizes are fluid between 312 and 1440 px, as Forte's.
 */

/* ---------- Fonts (SIL OFL, self-hosted; licences in ../fonts) ---------- */
@font-face { font-family: "Italiana"; font-style: normal; font-weight: 400; font-display: swap; src: url(../fonts/italiana-latin-400-normal.woff2) format("woff2"); }
@font-face { font-family: "Libre Franklin"; font-style: normal; font-weight: 300; font-display: swap; src: url(../fonts/libre-franklin-latin-300-normal.woff2) format("woff2"); }
@font-face { font-family: "Libre Franklin"; font-style: normal; font-weight: 400; font-display: swap; src: url(../fonts/libre-franklin-latin-400-normal.woff2) format("woff2"); }
@font-face { font-family: "Libre Franklin"; font-style: normal; font-weight: 500; font-display: swap; src: url(../fonts/libre-franklin-latin-500-normal.woff2) format("woff2"); }

/* ---------- Tokens ---------- */
:root {
	--slate: #2e4650;          /* Projects page, slider band */
	--charcoal: #333;          /* menu panel, contact page, buttons */
	--ink: #111;
	--paper: #fff;
	--accent: #f3dca8;         /* warm light: project names on the slider */
	--grey: #575757;           /* small text on white (7:1) */
	--on-dark-muted: rgba(255, 255, 255, .74);
	--line-on-dark: rgba(255, 255, 255, .35);
	--pc: var(--slate);        /* a project's own colour (set per project) */

	/* The display font in one place: swap for a licensed Bigilla later (and set --display-scale to 1). */
	--font-display: "Italiana", "Didot", "Bodoni MT", serif;
	--font-text: "Libre Franklin", "Franklin Gothic Book", system-ui, sans-serif;
	--display-scale: .94;      /* Italiana runs about 6 % wider than Bigilla */

	--fluid: calc((100vw - 312px) / 1128);   /* 0 at 312 px, 1 at 1440 px */
	--t-main: clamp(55px, calc(55px + 95 * var(--fluid)), 150px);    /* hero and page titles */
	--t-page: clamp(85px, calc(85px + 65 * var(--fluid)), 150px);    /* About title */
	--t-slide: clamp(52px, calc(52px + 98 * var(--fluid)), 150px);   /* names on the slider */
	--t-title: clamp(75px, calc(75px + 75 * var(--fluid)), 150px);   /* big section titles */
	--t-21: clamp(14px, calc(14px + 7 * var(--fluid)), 21px);
	--t-kick: clamp(13px, calc(13px + 8 * var(--fluid)), 21px);

	--pad: 20px;
	--header-h: 92px;
	--wrap: 1130px;
	--ease: cubic-bezier(.25, .1, .25, 1);
}
@media (min-width: 1100px) {
	:root { --pad: 35px; --header-h: 153px; }
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
	margin: 0;
	font-family: var(--font-text);
	font-weight: 400;
	font-size: 14px;
	line-height: 1.6;
	color: var(--ink);
	background: var(--paper);
	overflow-x: hidden;
}
@supports (overflow: clip) { body { overflow-x: clip; } }
/* Forte's page fade-in (0.3 s). A white cover fades away rather than the page fading in: a page
   faded up from opacity 0 is never counted as painted by Chromium (no first contentful paint). */
body::before {
	content: ""; position: fixed; inset: 0; z-index: 1000; background: #fff; pointer-events: none;
	animation: lt-page-in .3s ease both;
}
@keyframes lt-page-in { from { opacity: 1; } to { opacity: 0; visibility: hidden; } }
img, svg { max-width: 100%; }
img { height: auto; }
a { color: inherit; }
p { margin: 0 0 1em; }
h1, h2, h3 { margin: 0; font-weight: 400; }
ul, ol { margin: 0; padding: 0; }
button { font: inherit; color: inherit; }
.site-main { display: block; outline: none; }
.is-projects { background: var(--slate); }
.is-contact { background: var(--charcoal); }

.visually-hidden {
	position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden;
	clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0;
}
.skip-link {
	position: absolute; left: 12px; top: -60px; z-index: 200; padding: 12px 16px;
	background: var(--ink); color: #fff; text-decoration: none;
}
.skip-link:focus { top: 12px; }
:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }
.tone-dark :focus-visible, .tone-on-dark .site-header :focus-visible { outline-color: #fff; }

.display {
	font-family: var(--font-display);
	font-weight: 400;
	text-transform: uppercase;
	letter-spacing: 0;
	overflow-wrap: normal;
}
.tone-dark { color: #fff; }
.text-link { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; letter-spacing: .05em; }
.text-link:hover { text-decoration-thickness: 2px; }
.btn {
	display: inline-flex; align-items: center; justify-content: center;
	min-height: 58px; padding: 18px 35px;
	background: var(--charcoal); color: #fff;
	font-family: var(--font-text); font-weight: 300; font-size: 18px; letter-spacing: .05em;
	text-decoration: none; border: 0; cursor: pointer;
}
.btn:hover { opacity: .9; }
@media (min-width: 1000px) {
	.btn { min-height: 92px; font-size: 21px; min-width: 300px; }
}
.empty { padding: 40px var(--pad); }

/* Section fade-ins (Forte: fade up 100 px). Only with JavaScript, never under reduced motion. */
.js .reveal { opacity: 0; transform: translate3d(0, 100px, 0); transition: opacity 1.2s ease, transform 1.2s ease; }
.js .reveal.is-in { opacity: 1; transform: none; }

/* ---------- Header ---------- */
.site-header { position: relative; z-index: 50; min-height: var(--header-h); }
.has-hero .site-header { position: absolute; top: 0; left: 0; right: 0; }
.site-header__bar {
	display: flex; align-items: center; justify-content: space-between;
	width: 100%; margin: 0 auto; padding: var(--pad);
	transition: background-color .3s ease;
}
.logo { display: block; width: 52px; height: 52px; color: #fff; text-decoration: none; }
.logo__mark { display: block; width: 100%; height: 100%; overflow: visible; }
.logo__mark text { font-family: var(--font-text); font-weight: 400; fill: currentColor; }
@media (min-width: 1100px) { .logo { width: 83px; height: 83px; } }
.tone-on-light .site-header .logo, .tone-on-light .menu-btn { color: var(--ink); }
.logo--dark { color: var(--ink); }
.has-hero .site-header .logo, .has-hero .menu-btn { filter: drop-shadow(0 0 5px rgba(0, 0, 0, .35)); }

.menu-btn {
	display: flex; align-items: center; justify-content: center;
	width: 44px; height: 44px; margin-right: -2px; padding: 0;
	background: none; border: 0; color: #fff; cursor: pointer;
}
.menu-btn__icon { position: relative; display: block; width: 20px; height: 14px; }
.menu-btn__icon span {
	position: absolute; left: 0; width: 20px; height: 1.5px; background: currentColor; border-radius: 1px;
	transition: transform .3s ease, opacity .2s ease, top .3s ease;
}
.menu-btn__icon span:nth-child(1) { top: 0; }
.menu-btn__icon span:nth-child(2) { top: 6.25px; }
.menu-btn__icon span:nth-child(3) { top: 12.5px; }
.menu-open .menu-btn__icon span:nth-child(1) { top: 6.25px; transform: rotate(45deg); }
.menu-open .menu-btn__icon span:nth-child(2) { opacity: 0; }
.menu-open .menu-btn__icon span:nth-child(3) { top: 6.25px; transform: rotate(-45deg); }

/* Open: the bar turns charcoal and stays at the top of the window; the panel comes down under it. */
.menu-open .site-header__bar { position: fixed; top: 0; left: 0; right: 0; max-width: none; z-index: 61; background: var(--charcoal); }
.menu-open .site-header__bar > * { position: relative; }
.menu-open .site-header .logo, .menu-open .menu-btn { color: #fff; filter: none; }

.menu-panel {
	position: fixed; left: 0; right: 0; top: var(--header-h); z-index: 60;
	max-height: calc(100vh - var(--header-h)); overflow-y: auto;
	background: var(--charcoal); color: #fff;
	transform: translateY(calc(-100% - 100px - var(--header-h)));
	visibility: hidden;
	transition: transform .3s ease, visibility 0s linear .3s;
}
.menu-open .menu-panel { transform: none; visibility: visible; transition: transform .3s ease; }
.menu-panel__list { list-style: none; margin: 0; padding: 27px 30px; }
@media (min-width: 1100px) { .menu-panel__list { padding: 27px var(--pad); } }
.menu-panel__item { margin: 0 0 18px; opacity: 0; transform: translateY(-10px); transition: opacity .2s ease, transform .2s ease; }
.menu-panel__item:last-child { margin-bottom: 0; }
/* The items arrive one after another, 70 ms apart, once the panel is down. */
.menu-open .menu-panel__item { opacity: 1; transform: none; transition: opacity .3s ease calc(150ms + var(--i) * 70ms), transform .3s ease calc(150ms + var(--i) * 70ms); }
.menu-panel__link {
	position: relative; display: inline-block; padding: 13px 0;
	font-size: 14px; line-height: 18px; letter-spacing: .1em; text-transform: uppercase;
	color: #fff; text-decoration: none;
}
.menu-panel__link::after {
	content: ""; position: absolute; left: 0; top: calc(13px + 18px + 2px); width: 0; height: 1px; background: currentColor;
	transition: width .3s ease;
}
.menu-panel__link:hover::after, .menu-panel__link[aria-current="page"]::after { width: 100%; }

/* Without JavaScript: the links sit in a row under the header. */
.no-js .menu-btn { display: none; }
.no-js .menu-panel { position: static; transform: none; visibility: visible; background: transparent; color: inherit; max-height: none; }
.no-js .menu-panel__list { display: flex; flex-wrap: wrap; gap: 0 24px; padding: 0 var(--pad); }
.no-js .menu-panel__item { opacity: 1; transform: none; margin: 0; }
.no-js .menu-panel__link { color: inherit; }
.no-js .has-hero .site-header, .no-js.has-hero .site-header { position: relative; background: var(--charcoal); }

/* ---------- Projects slider (Projects page, home page) ---------- */
.projects-page { color: #fff; background: var(--slate); padding: 0 0 100px; }
.pslider {
	--sw: calc(100cqw + 80px);          /* slide pitch: picture + 60 px each side (neighbours off screen) */
	--name-box: calc(100cqw - 40px);    /* room for the name */
	--media-h: 362px;
	--speed: 500ms;                     /* Forte: 500 ms, linear */
	container-type: inline-size;
	position: relative;
	color: #fff;
}
@media (min-width: 1100px) {
	.pslider { --sw: calc(100cqw - 480px); --name-box: calc(var(--sw) - 30px); --media-h: min(519px, max(330px, 100vh - 400px)); }
}
@media (min-width: 1400px) { .pslider { --sw: calc(100cqw - 580px); } }
@media (min-width: 1700px) { .pslider { --sw: calc(100cqw - 880px); } }

.pslider__slide {
	/* Set on each slide, where its name's width (--name-em) is known: the name's size, and the room above the picture. */
	--fs: min(var(--t-slide) * var(--display-scale), calc(var(--name-box) / var(--name-em, .001)));
	--media-mt: max(0px, calc(var(--fs) * .46 - 28px));
	--lines: var(--lines-s, 2);   /* lines the name takes */
}
@media (min-width: 1100px) { .pslider__slide { --lines: var(--lines-l, 2); --media-mt: max(50px, calc(var(--fs) * .46 - 28px)); } }
.pslider__dots { display: flex; justify-content: center; margin: -8px auto 0; padding: 0 10px; }
.pslider__dot {
	position: relative; flex: 0 0 24px; height: 44px; min-width: 0; padding: 0;
	background: none; border: 0; cursor: pointer; color: #fff;
}
.pslider__dot::before {
	content: ""; position: absolute; left: 50%; top: 50%; width: 6px; height: 6px; margin: -3px 0 0 -3px;
	border: 1px solid currentColor; border-radius: 50%; transition: background-color .3s ease;
}
.pslider__dot[aria-current="true"]::before { background: currentColor; }
.pslider__dot:focus-visible { outline-offset: -8px; }

.pslider__viewport { position: relative; overflow: hidden; touch-action: pan-y; }
@supports (overflow: clip) { .pslider__viewport { overflow: clip; } }
.pslider__track { display: grid; list-style: none; margin: 0; padding: 0; }
.pslider__slide {
	grid-area: 1 / 1;
	width: var(--sw);
	margin-left: calc((100% - var(--sw)) / 2);
	padding: 0 60px;
	transform: translate3d(calc(var(--o, 0) * 100% + var(--drag, 0px)), 0, 0);
	transition: transform var(--speed) linear;
	-webkit-user-select: none; user-select: none;
}
.pslider.is-dragging .pslider__slide, .pslider.no-anim .pslider__slide { transition: none; }
/* Slides far to the side are not drawn (or read out) until a move brings them in. */
.pslider:not(.is-moving):not(.is-dragging) .pslider__slide.is-far { visibility: hidden; }
.pslider__meta {
	display: flex; flex-direction: column; align-items: center; gap: 7px;
	margin: 6px 0 35px; text-align: center; font-size: 14px; line-height: 27px;
}
.pslider__type { line-height: 17px; }
.pslider__place { display: inline-flex; align-items: center; }
.pin { flex: none; width: 12px; height: 16px; margin-right: 14px; }
@media (min-width: 760px) {
	.pslider__meta { flex-direction: row; justify-content: space-between; text-align: left; }
}
@media (min-width: 1100px) {
	.pslider__meta { font-size: 21px; margin-bottom: 35px; }
	.pin { width: 14px; height: 19px; }
}
.pslider__link { position: relative; display: flow-root; color: #fff; text-decoration: none; -webkit-tap-highlight-color: transparent; }
.pslider__media { position: relative; display: block; height: var(--media-h); margin-top: var(--media-mt); background: rgba(255, 255, 255, .06); }
.pslider__img { display: block; width: 100%; height: 100%; max-width: var(--nw, none); max-height: var(--nh, none); margin: 0 auto; object-fit: cover; -webkit-user-drag: none; } /* never wider than its own pixels */
/* A light shade under the name, so it reads over bright pictures. */
.pslider__media::before {
	content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
	/* As deep as the name runs into the picture (its number of lines), then fading out. */
	background: linear-gradient(180deg, rgba(10, 16, 20, .66) 0, rgba(10, 16, 20, .62) calc(var(--fs) * (var(--lines, 2) * 1.3 - .5)), rgba(10, 16, 20, 0) calc(var(--fs) * (var(--lines, 2) * 1.3 + .8)));
}
.pslider__name {
	position: absolute; z-index: 2; left: 0; right: 0;
	top: calc(var(--media-mt) - .72em);
	font-family: var(--font-display); font-weight: 400; text-transform: uppercase;
	font-size: var(--fs); line-height: 1.3; color: var(--accent);
	text-shadow: 0 0 .3em rgba(10, 16, 20, .45);
	pointer-events: none;
}
.pslider__more {
	position: relative; display: block; margin: 40px auto 0; padding: 0 0 110px; width: max-content; max-width: 100%;
	text-align: center; font-size: 14px; line-height: 17px; letter-spacing: .05em;
	text-decoration: underline; text-underline-offset: 3px;
}
.pslider__more::before { content: ""; position: absolute; left: 50%; bottom: 25px; width: 1px; height: 45px; background: currentColor; }
.pslider__more::after {
	content: ""; position: absolute; left: calc(50% - 4px); bottom: 3px; width: 9px; height: 9px;
	background: linear-gradient(currentColor, currentColor) center / 1px 9px no-repeat, linear-gradient(currentColor, currentColor) center / 9px 1px no-repeat;
}
.pslider__link:hover .pslider__more { text-decoration-thickness: 2px; }
@media (min-width: 1100px) {
	.pslider__name { left: -50px; right: -40px; }
	.pslider__more { margin-top: 35px; font-size: 21px; padding-bottom: 90px; }
	/* Only the centre slide shows its words; the neighbours' pictures are tinted slate. */
	.pslider__meta, .pslider__name, .pslider__more { transition: opacity .5s ease, visibility .5s; }
	.pslider__slide:not(.is-current) .pslider__meta,
	.pslider__slide:not(.is-current) .pslider__name,
	.pslider__slide:not(.is-current) .pslider__more { opacity: 0; visibility: hidden; }
	.pslider__media::after { content: ""; position: absolute; inset: 0; z-index: 3; background: rgba(46, 70, 80, .75); transition: opacity .5s ease; pointer-events: none; }
	.pslider__slide.is-current .pslider__media::after { opacity: 0; }
	.pslider__slide:not(.is-current) .pslider__link { cursor: pointer; }
}
/* Without JavaScript the slides stack. */
.no-js .pslider__track { display: block; }
.no-js .pslider__slide { width: auto; margin: 0 0 40px; padding: 0 var(--pad); transform: none; }
.no-js .pslider__dots { display: none; }

/* ---------- Home ---------- */
.home-top { position: relative; color: #fff; background: #1d2427; overflow: hidden; }
.home-top__picture { position: absolute; inset: 0; display: flex; justify-content: center; align-items: flex-start; }
.home-top__img { width: 100%; height: 100%; max-width: var(--nw); max-height: var(--nh); object-fit: cover; object-position: 50% 40%; }
.home-top::after {
	content: ""; position: absolute; inset: 0; pointer-events: none;
	background: linear-gradient(180deg, rgba(12, 16, 18, .72) 0%, rgba(12, 16, 18, .5) 22%, rgba(12, 16, 18, .3) 42%, rgba(12, 16, 18, .66) 62%, rgba(12, 16, 18, .84) 100%);
}
.home-hero, .home-intro { position: relative; z-index: 1; max-width: 1440px; margin: 0 auto; }
.home-hero { min-height: 100vh; min-height: 100svh; padding: calc(var(--header-h) + 20px) var(--pad) 60px; }
.home-hero__kicker { margin: 0 0 20px; font-size: var(--t-kick); line-height: 1.4; letter-spacing: .1em; text-shadow: 0 0 12px rgba(0, 0, 0, .4); }
.home-hero__statement {
	--name-box: calc(100vw - 2 * var(--pad));
	font-size: var(--t-main); font-size: calc(var(--t-main) * var(--display-scale)); line-height: 1.02; max-width: 15ch;
	text-shadow: 0 0 .3em rgba(0, 0, 0, .25);
}
@media (min-width: 1100px) {
	.home-hero { padding: calc(var(--header-h) + 50px) 75px 60px; }
	.home-hero__statement { max-width: 18ch; }
}
.home-intro { padding: 0 var(--pad) 80px; }
.home-intro__text { max-width: 560px; margin: 0 0 40px; font-weight: 300; font-size: 21px; line-height: 1.67; letter-spacing: .1em; text-transform: uppercase; }
.home-intro__menu { display: none; list-style: none; margin: 0 0 30px; } /* phones: not shown (as Forte) - the menu is under the button */
@media (min-width: 760px) { .home-intro__menu { display: block; } }
.home-intro__menu a { display: inline-block; padding: 13px 0; font-size: 14px; line-height: 18px; letter-spacing: .1em; text-transform: uppercase; color: #fff; text-decoration: none; }
.home-intro__menu a:hover { text-decoration: underline; text-underline-offset: 4px; }
.home-intro__contact { font-size: 14px; line-height: 27px; }
.home-intro__areas { display: flex; align-items: flex-start; }
.home-intro__areas .pin { margin-top: 5px; }
.home-intro__contact .text-link { display: inline-block; padding: 9px 0; line-height: 26px; }
@media (min-width: 760px) {
	.home-intro { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 60px; align-items: start; }
	.home-intro__side { display: flex; gap: 100px; }
}
@media (min-width: 1100px) { .home-intro { padding: 40px 75px 120px; } }
.home-projects { background: var(--slate); padding: 40px 0; }
@media (min-width: 1100px) { .home-projects { padding: 80px 0; } }
.home-about { max-width: 1440px; margin: 0 auto; padding: 60px var(--pad); text-align: center; }
.home-about__pictures { position: relative; max-width: 420px; height: 250px; margin: 0 auto 50px; }
.home-about__pic { position: absolute; display: block; overflow: hidden; }
.home-about__img { display: block; width: 100%; height: 100%; object-fit: cover; }
.home-about__pic--1 { left: 0; top: 0; width: 46%; height: 62%; }
.home-about__pic--2 { left: 30%; top: 22%; width: 42%; height: 72%; z-index: 1; }
.home-about__pic--3 { right: 0; top: 8%; width: 30%; height: 46%; }
.home-about__title { --name-em: 3; font-size: calc(var(--t-main) * var(--display-scale)); line-height: 1.02; margin-bottom: 30px; }
.home-about__text p { max-width: 560px; margin: 0 auto 20px; line-height: 2.14; letter-spacing: .05em; }
.home-about__text .text-link { display: inline-block; padding: 10px 0; }
@media (min-width: 1100px) {
	.home-about { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; padding: 120px 75px; text-align: left; }
	.home-about__pictures { max-width: none; width: 100%; height: 520px; margin: 0; }
	.home-about__text p { margin-left: 0; }
}

/* ---------- Project page ---------- */
.project { --inner: min(760px, calc(100vw - 40px)); }
.phero {
	position: relative; display: flex; align-items: center; justify-content: center;
	min-height: 100vh; min-height: 100svh; overflow: hidden;
	background: var(--pc); color: #fff; text-align: center;
}
.phero__picture { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; }
.phero__img { width: 100%; height: 100%; max-width: var(--nw); max-height: var(--nh); object-fit: cover; }
.phero::after {
	content: ""; position: absolute; inset: 0; pointer-events: none;
	background: linear-gradient(180deg, rgba(8, 10, 12, .7) 0%, rgba(8, 10, 12, .58) 30%, rgba(8, 10, 12, .58) 64%, rgba(8, 10, 12, .74) 100%);
}
.phero__inner { position: relative; z-index: 1; width: min(830px, 100%); padding: calc(var(--header-h) + 24px) var(--pad) 40px; text-shadow: 0 0 10px rgba(0, 0, 0, .35); }
.phero__meta { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin: 0 -10px 50px; font-size: 14px; line-height: 1.3; text-align: left; }
.phero__place { display: inline-flex; align-items: center; }
.phero__type { text-align: right; }
.phero__title {
	font-size: min(var(--t-main) * var(--display-scale), calc(var(--inner) / var(--name-em, .001)));
	line-height: 1; margin: 0 0 30px;
}
.phero__line { max-width: 760px; margin: 0 auto; font-size: var(--t-21); line-height: 2.14; letter-spacing: .1em; text-transform: uppercase; }
.phero__explore {
	position: relative; display: inline-block; margin-top: 60px; padding: 0 0 84px; color: #fff;
	font-size: 14px; line-height: 17px; letter-spacing: .05em; text-decoration: underline; text-underline-offset: 3px;
}
.phero__explore::before { content: ""; position: absolute; left: 50%; bottom: 25px; width: 1px; height: 45px; background: currentColor; }
.phero__explore::after {
	content: ""; position: absolute; left: calc(50% - 4px); bottom: 3px; width: 9px; height: 9px;
	background: linear-gradient(currentColor, currentColor) center / 1px 9px no-repeat, linear-gradient(currentColor, currentColor) center / 9px 1px no-repeat;
}
.phero__view {
	display: block; width: max-content; max-width: 100%; margin: 14px auto 0; padding: 12px 4px;
	font-size: 12px; line-height: 20px; letter-spacing: .14em; text-transform: uppercase; color: #fff; text-decoration: underline; text-underline-offset: 4px;
}
@media (min-width: 1100px) {
	.phero__meta { margin: 0 0 20px; font-size: 21px; }
	.phero__title { margin: 50px 0 20px; }
	.phero__explore { margin-top: 70px; font-size: 21px; }
	.phero__view { font-size: 13px; }
}

/* Pictures shown whole: never wider than their own pixels, never taller than 85 % of the window. */
.pic { margin: 0; }
.pic__open { display: block; cursor: zoom-in; color: inherit; text-decoration: none; }
.pic__img { display: block; width: 100%; height: auto; background: #f1f1f1; }
.pic__caption { margin-top: 10px; font-size: 13px; line-height: 1.5; letter-spacing: .05em; color: var(--grey); }
.tone-dark .pic__caption { color: var(--on-dark-muted); }
.tone-dark .pic__img { background: rgba(255, 255, 255, .08); }

.pdetails { background: var(--pc); color: #fff; padding: 30px var(--pad) 40px; }
.pdetails__text { max-width: 500px; line-height: 2.14; letter-spacing: .05em; }
.pdetails__scope { list-style: none; margin: 0 0 32px; font-weight: 300; font-size: 21px; line-height: 1.67; letter-spacing: .1em; text-transform: uppercase; }
.pdetails__scope li + li { margin-top: 6px; }
.pdetails__facts { display: flex; flex-wrap: wrap; gap: 14px 40px; margin: 0 0 30px; }
.pdetails__facts dt { font-size: 12px; line-height: 1.4; letter-spacing: .12em; text-transform: uppercase; color: var(--on-dark-muted); }
.pdetails__facts dd { margin: 0; font-size: 14px; line-height: 1.6; }
.pdetails__desc { margin-bottom: 30px; }
.pdetails__credit { font-size: 13px; letter-spacing: .06em; }
.pdetails__pic { margin-top: 40px; }
.pdetails__pic .pic { width: min(100%, var(--nw), calc(85vh * var(--a))); margin: 0 auto; }
@media (min-width: 760px) {
	.pdetails { display: flex; justify-content: space-between; gap: 4%; }
	.pdetails__text { flex: 0 1 48%; }
	.pdetails__pic { flex: 0 1 48%; margin-top: 0; }
	.pdetails__pic .pic { margin: 0 0 0 auto; }
}
@media (min-width: 1100px) {
	.pdetails { padding: 80px max(var(--pad), calc((100vw - var(--wrap)) / 2)); }
	.pdetails__text { flex-basis: 46%; }
	.pdetails__pic { flex-basis: 46%; }
}

.pgroup { max-width: calc(var(--wrap) + 2 * var(--pad)); margin: 0 auto; padding: 50px var(--pad) 10px; }
.pgroup__title {
	font-size: min(var(--t-title) * var(--display-scale), calc((100vw - 2 * var(--pad)) / var(--name-em, .001)));
	line-height: 1.02; color: var(--pc); margin: 0 0 40px;
}
.prow { margin: 0 auto 40px; }
.prow--one .pic { width: min(100%, var(--nw), calc(85vh * var(--a))); margin: 0 auto; }
.prow--two .pic { width: min(100%, var(--nw)); margin: 0 auto 40px; }
.prow--two .pic:last-child { margin-bottom: 0; }
@media (min-width: 760px) {
	.prow--two { display: flex; gap: 24px; align-items: flex-start; width: min(100%, calc(85vh * var(--sum) + 24px), var(--cap)); }
	.prow--two .pic { flex: var(--a) 1 0; min-width: 0; width: auto; margin: 0; }
}
@media (min-width: 1100px) {
	.pgroup { padding-top: 80px; }
	.pgroup__title { margin-bottom: 50px; }
	.prow { margin-bottom: 70px; }
}

/* The strip of views: moves slowly to the left (Forte: 12 s per picture, linear). */
.pstrip { padding: 30px 0 10px; overflow: hidden; }
.pstrip__viewport { overflow: hidden; }
.pstrip__track { display: flex; width: max-content; list-style: none; margin: 0; padding: 0; animation: lt-strip calc(var(--count) * 12s) linear infinite; }
@keyframes lt-strip { to { transform: translate3d(-50%, 0, 0); } }
.pstrip__viewport:hover .pstrip__track, .pstrip__viewport:focus-within .pstrip__track, .pstrip.is-paused .pstrip__track { animation-play-state: paused; }
.pstrip__item { flex: none; width: 100vw; height: 81.8vw; }
.pstrip__open { display: block; width: 100%; height: 100%; cursor: zoom-in; }
.pstrip__img { display: block; width: 100%; height: 100%; object-fit: cover; }
.pstrip__controls { max-width: calc(var(--wrap) + 2 * var(--pad)); margin: 0 auto; padding: 6px var(--pad) 0; text-align: right; }
.pstrip__toggle { min-height: 44px; padding: 8px 0; background: none; border: 0; cursor: pointer; font-size: 13px; letter-spacing: .05em; text-decoration: underline; text-underline-offset: 3px; color: var(--grey); }
@media (min-width: 760px) { .pstrip__item { width: 50vw; height: 41vw; } }
@media (min-width: 1100px) { .pstrip { padding-top: 80px; } .pstrip__item { width: 32.8vw; height: 26.85vw; } }

.project-end {
	display: grid; gap: 30px; max-width: calc(var(--wrap) + 2 * var(--pad)); margin: 0 auto; padding: 40px var(--pad) 60px;
}
.project-end__all { order: 2; }
.project-end__next { display: grid; gap: 14px; width: 100%; max-width: 640px; color: var(--ink); text-decoration: none; container-type: inline-size; }
.project-end__photo { display: block; aspect-ratio: 3 / 2; overflow: hidden; background: #f1f1f1; }
.project-end__img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .8s ease; }
.project-end__next:hover .project-end__img { transform: scale(1.03); }
.project-end__label { display: block; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--grey); }
.project-end__name { display: block; margin-top: 6px; font-size: min(calc(60px * var(--display-scale)), calc(100cqw / var(--name-em, .001))); line-height: 1.04; color: var(--pc); }
@media (min-width: 760px) {
	.project-end { grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 60px; padding: 80px var(--pad); }
	.project-end__all { order: 0; }
	.project-end__next { justify-self: end; }
}

/* ---------- The picture viewer (one at a time, full screen) ---------- */
.has-viewer, .has-viewer body { overflow: hidden; }
.viewer { position: fixed; inset: 0; z-index: 100; background: rgba(28, 28, 28, .97); color: #fff; touch-action: none; }
.viewer[hidden] { display: none; }
.viewer:focus { outline: none; }
.viewer__stage { position: absolute; top: 56px; bottom: 64px; left: 0; right: 0; display: flex; align-items: center; justify-content: center; overflow: hidden; cursor: pointer; }
.viewer__img {
	display: block; max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain;
	transform: translate3d(var(--tx, 0px), var(--ty, 0px), 0) scale(var(--s, 1)); transform-origin: 50% 50%;
	transition: transform .2s ease, opacity .2s ease; -webkit-user-drag: none; user-select: none;
}
.viewer.is-zoomed .viewer__stage { cursor: grab; }
.viewer.is-panning .viewer__img { transition: none; cursor: grabbing; }
.viewer.is-loading .viewer__img { opacity: .55; }
.viewer__bar { position: absolute; top: 0; left: 0; right: 0; display: flex; justify-content: space-between; align-items: center; height: 56px; padding: 0 6px 0 16px; }
.viewer__count { margin: 0; font-size: 13px; letter-spacing: .08em; font-variant-numeric: tabular-nums; }
.viewer__tools { display: flex; }
.viewer__btn, .viewer__arrow { display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; padding: 0; background: rgba(28, 28, 28, .6); border: 0; cursor: pointer; color: #fff; }
.viewer__btn svg, .viewer__arrow svg { width: 22px; height: 22px; }
.viewer__btn:disabled { opacity: .35; cursor: default; }
.viewer:not(.can-zoom) [data-v-zoom] { display: none; }
.viewer__arrow { position: absolute; top: 50%; margin-top: -44px; height: 88px; }
.viewer__arrow--prev { left: 0; }
.viewer__arrow--next { right: 0; }
.viewer__label { position: absolute; left: 0; right: 0; bottom: 0; min-height: 64px; margin: 0; padding: 12px 20px 16px; text-align: center; font-size: 14px; line-height: 1.45; letter-spacing: .05em; }
@media (min-width: 760px) {
	.viewer__stage { top: 60px; bottom: 70px; left: 60px; right: 60px; }
	.viewer__arrow { width: 56px; }
}

/* ---------- Page heads and white pages (Forte team / static pages) ---------- */
.page-head { max-width: calc(1140px + 2 * var(--pad)); margin: 0 auto; padding: 50px var(--pad) 30px; text-align: center; }
.page-head__kicker { margin: 0 0 12px; font-size: 14px; letter-spacing: .1em; text-transform: uppercase; }
.page-head__title {
	font-size: min(var(--t-page) * var(--display-scale), calc((100vw - 2 * var(--pad)) / var(--name-em, .001)));
	line-height: 1.02; margin: 0 0 20px;
}
.page-head__lead { max-width: 640px; margin: 0 auto 10px; font-size: var(--t-21); line-height: 2.14; letter-spacing: .05em; }
@media (min-width: 1100px) {
	.page-head { padding: 40px var(--pad) 70px; text-align: left; }
	.page-head__lead { margin-left: 0; }
	.page-head--centre { text-align: center; }
	.page-head--centre .page-head__lead { margin-left: auto; }
}
.prose { line-height: 2.14; letter-spacing: .05em; }
.prose h2, .prose h3 { margin: 50px 0 15px; font-family: var(--font-text); font-weight: 300; font-size: 21px; line-height: 1.67; letter-spacing: .1em; text-transform: uppercase; }
.prose ul { padding-left: 1.2em; margin-bottom: 1em; }
.prose a { text-underline-offset: 3px; }
.prose--column { max-width: calc(730px + 2 * var(--pad)); margin: 0 auto; padding: 0 var(--pad) 80px; }
.links-404 { display: flex; flex-wrap: wrap; gap: 20px 40px; align-items: center; margin-top: 30px; }

.statement { font-weight: 300; font-size: 21px; line-height: 1.67; letter-spacing: .1em; text-transform: uppercase; }
.statement--small { font-size: 18px; }

/* About (Forte studio.html) */
.page-hero {
	position: relative; display: flex; align-items: center; justify-content: center;
	min-height: max(560px, 85vh); overflow: hidden; background: var(--slate); color: #fff; text-align: center;
}
.page-hero__picture { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; }
.page-hero__img { width: 100%; height: 100%; max-width: var(--nw); max-height: var(--nh); object-fit: cover; }
.page-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(8, 10, 12, .66), rgba(8, 10, 12, .58) 40%, rgba(8, 10, 12, .66)); pointer-events: none; }
.page-hero__inner { position: relative; z-index: 1; width: min(850px, 100%); padding: calc(var(--header-h) + 20px) var(--pad) 60px; }
.page-hero__title { font-size: calc(var(--t-page) * var(--display-scale)); line-height: 1.02; margin: 0 0 20px; }
.page-hero__lead { max-width: 560px; margin: 0 auto; font-size: 14px; line-height: 1.45; }
@media (min-width: 1100px) { .page-hero { min-height: min(78vh, 760px); } .page-hero__lead { font-size: 16px; } }
.about-statement { max-width: calc(1030px + 2 * var(--pad)); margin: 0 auto; padding: 60px var(--pad) 20px; }
.about-statement .statement { margin-bottom: 50px; }
.three-pics { display: flex; gap: 20px; }
.three-pics__item { flex: 1 1 0; min-width: 0; height: 315px; margin: 0; }
.three-pics__img { display: block; width: 100%; height: 100%; object-fit: cover; }
.cols { max-width: calc(1030px + 2 * var(--pad)); margin: 0 auto; padding: 50px var(--pad); }
.cols__b { margin-top: 30px; }
@media (min-width: 760px) {
	.cols { display: flex; justify-content: space-between; gap: 4%; }
	.cols__a, .cols__b { flex: 0 1 48%; }
	.cols__b { margin-top: 0; }
	.cols--60-40 .cols__a { flex-basis: 58%; }
	.cols--mirror { justify-content: flex-end; }
	.cols--60-40 .cols__b { flex-basis: 38%; }
}
@media (min-width: 1100px) { .about-statement { padding-top: 110px; } .cols { padding: 80px var(--pad); } }

.team { max-width: calc(1140px + 2 * var(--pad)); margin: 0 auto; padding: 40px var(--pad) 80px; }
.team__title { font-size: calc(var(--t-title) * var(--display-scale)); line-height: 1.02; margin-bottom: 40px; }
.team__list { list-style: none; }
.team__member { margin: 0 0 30px; }
.team__member--in { padding-left: 3em; }
.team__name { display: block; font-size: clamp(42px, calc(42px + 108 * var(--fluid)), 150px); font-size: min(clamp(42px, calc(42px + 108 * var(--fluid)), 150px) * var(--display-scale), calc((100vw - 2 * var(--pad) - 3em) / 9)); line-height: 1.02; letter-spacing: .05em; color: var(--charcoal); }
.team__role { display: block; margin-top: 6px; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--grey); }
.team__photo { display: block; width: 200px; margin-top: 14px; }
.team__img { display: block; width: 100%; height: auto; }

/* Services */
.services-list ul { list-style: none; padding: 0; }
.services-list li { padding: 14px 0; border-top: 1px solid #d6d6d6; font-weight: 300; font-size: 21px; line-height: 1.5; letter-spacing: .1em; text-transform: uppercase; }
.services-list li:last-child { border-bottom: 1px solid #d6d6d6; }
.lt-page--services .cols__b { line-height: 2.14; letter-spacing: .05em; }
.btn--dark { background: var(--charcoal); color: #fff; }

/* Contact (Forte contact.html: charcoal page) */
.lt-page--contact { background: var(--charcoal); padding-bottom: 80px; }
.lt-page--contact .page-head { padding-bottom: 50px; }
.lt-page--contact .page-head__title { font-size: min(var(--t-main) * var(--display-scale), calc((100vw - 2 * var(--pad)) / var(--name-em, .001))); }
.lt-page--contact .page-head__lead { color: var(--on-dark-muted); font-size: 14px; }
.contact { display: grid; gap: 40px; max-width: calc(1030px + 2 * var(--pad)); margin: 0 auto; padding: 0 var(--pad); }
.contact__block { margin-bottom: 30px; }
.contact__title { margin: 0 0 18px; font-size: 14px; line-height: 1.2; letter-spacing: .02em; text-transform: uppercase; color: rgba(255, 255, 255, .7); }
.contact__side { font-size: 17px; line-height: 1.5; }
.contact-list { list-style: none; }
.contact-list li { margin-bottom: 10px; }
.contact-list__label { display: block; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--on-dark-muted); }
.contact-list a { display: inline-block; padding: 6px 0; }
@media (min-width: 760px) {
	.contact { grid-template-columns: minmax(0, 720px) minmax(0, 260px); grid-template-areas: "form side"; gap: 50px; }
	.contact__side { grid-area: side; }
	.contact__form { grid-area: form; }
}
.lt-form { counter-reset: lt-q; }
.lt-field { position: relative; margin: 0 0 40px; padding-left: 30px; }
.lt-field:not(.lt-consent)::before { counter-increment: lt-q; content: counter(lt-q, decimal-leading-zero); position: absolute; left: 0; top: 2px; font-size: 13px; color: rgba(255, 255, 255, .72); }
.lt-field label { display: block; margin-bottom: 14px; font-size: 15px; line-height: 1.3; }
.lt-optional { color: rgba(255, 255, 255, .72); }
.lt-field input[type="text"], .lt-field input[type="email"], .lt-field input[type="tel"], .lt-field textarea {
	display: block; width: 100%; padding: 0 0 20px; border: 0; border-bottom: 1px solid var(--line-on-dark); border-radius: 0;
	background: transparent; color: #fff; font: inherit; font-size: 21px; line-height: 1.3; outline: none;
}
.lt-field textarea { resize: vertical; min-height: 110px; }
.lt-field input:focus, .lt-field textarea:focus { border-bottom-color: #fff; }
.lt-field input:focus-visible, .lt-field textarea:focus-visible { outline: 2px solid #fff; outline-offset: 6px; }
.lt-consent { display: flex; gap: 12px; align-items: flex-start; padding-left: 0; font-size: 14px; line-height: 1.5; color: rgba(255, 255, 255, .78); }
.lt-consent input { flex: none; width: 18px; height: 18px; margin: 2px 0 0; accent-color: #fff; }
.lt-consent label { margin: 0; font-size: 14px; }
.lt-consent a { color: #fff; }
.lt-consent .lt-error { flex-basis: 100%; }
.lt-hp { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.lt-error, .lt-form-error { margin: 8px 0 0; font-size: 14px; color: #ffbdb0; }
.lt-submit {
	display: flex; align-items: center; justify-content: center; width: 100%; min-height: 72px; margin-top: 20px;
	background: #000; color: #fff; border: 0; cursor: pointer; font-weight: 300; font-size: 21px; letter-spacing: .05em;
}
.lt-submit:hover { background: #111; }
.lt-submit:disabled { opacity: .6; cursor: wait; }
.lt-success { margin-top: 20px; font-size: 17px; }
@media (min-width: 760px) {
	.lt-field { padding-left: 80px; }
	.lt-field:not(.lt-consent)::before { font-size: 20px; top: 0; }
	.lt-field label { font-size: 20px; }
	.lt-field input[type="text"], .lt-field input[type="email"], .lt-field input[type="tel"], .lt-field textarea { font-size: 26px; }
	.lt-submit { width: 388px; min-height: 92px; margin: 30px auto 0; }
}
@media (min-width: 1100px) {
	.lt-field label { font-size: 24px; }
	.lt-field input[type="text"], .lt-field input[type="email"], .lt-field input[type="tel"], .lt-field textarea { font-size: 32px; }
}

/* ---------- Footer (Forte: white, logo, links in lower case) ---------- */
.site-footer { background: var(--paper); color: var(--ink); }
.site-footer__inner {
	display: grid; grid-template-columns: auto 1fr; grid-template-areas: "nav nav" "logo credit";
	align-items: center; gap: 16px 20px; max-width: 1440px; margin: 0 auto; padding: 20px var(--pad) 24px;
}
.site-footer__logo { grid-area: logo; }
.site-footer__logo .logo { width: 44px; height: 44px; }
.site-footer__nav { grid-area: nav; }
.site-footer__menu { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0 16px; list-style: none; }
.site-footer__menu li:last-child { margin-right: auto; }
.site-footer__menu a { display: inline-block; min-width: 44px; text-align: center; padding: 13px 0; font-size: 14px; line-height: 18px; letter-spacing: .05em; text-transform: lowercase; text-decoration: none; }
.site-footer__menu a:hover, .site-footer__menu a[aria-current="page"] { text-decoration: underline; text-underline-offset: 3px; }
.site-footer__credit { grid-area: credit; margin: 0; justify-self: end; text-align: right; font-size: 12px; line-height: 1.4; color: var(--grey); }
@media (min-width: 760px) {
	.site-footer__inner { grid-template-columns: auto 1fr auto; grid-template-areas: "logo nav credit"; gap: 30px; }
	.site-footer__menu { justify-content: center; gap: 0 40px; }
}
@media (min-width: 1100px) {
	.site-footer__inner { padding: 30px var(--pad); }
	.site-footer__logo .logo { width: 83px; height: 83px; }
	.site-footer__menu { gap: 0 70px; }
}

/* ---------- Reduced motion: nothing moves ---------- */
@media (prefers-reduced-motion: reduce) {
	body::before { display: none; }
	*, *::before, *::after { transition-duration: 0s !important; transition-delay: 0s !important; animation-duration: 0s !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; }
	.js .reveal { opacity: 1; transform: none; }
	.menu-panel__item { transform: none; }
	.pstrip__track { animation: none; }
	.pstrip__viewport { overflow-x: auto; }
	.pstrip__item[aria-hidden="true"] { display: none; }
	.pstrip__controls { display: none; }
	.pslider { --speed: 0ms; }
}
