/* ==========================================================================
   Home page.
   Same tokens as main.css (red, black, white, Inter Tight) pushed further:
   headlines sized on the viewport, very wide spacing, every large movement
   driven by the scroll position (assets/js/home.js).
   Without JS or with reduced motion everything below is a plain, readable page.
   ========================================================================== */

.ha {
	--hp: var(--edge);                     /* side gutter: the site standard (main.css) */
	--air: clamp(7rem, 22vh, 15rem);       /* vertical breathing room */
	--sheet: 40px;                         /* radius of a sheet that overlaps the previous section */
	overflow-x: clip;
}
.ha-wrap { width: 100%; margin-inline: auto; padding-inline: var(--hp); }

/* Type */
.ha-kicker { display: inline-flex; align-items: center; gap: 14px; margin: 0; font-size: .82rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; }
.ha-kicker::before { content: ""; width: 10px; height: 10px; background: var(--red); flex: none; }
.ha-sec--dark .ha-kicker::before, .ha-hero .ha-kicker::before { background: var(--red-hi); }
.ha-lead { max-width: 36ch; font-size: clamp(1.12rem, 1rem + .7vw, 1.6rem); line-height: 1.42; letter-spacing: -.01em; }
.ha-title { font-size: clamp(3.2rem, 10.5vw, 12.5rem); font-weight: 700; line-height: .9; letter-spacing: -.06em; }
/* The logo-like block: white on red (red on white over red grounds) */
.ha-block { display: inline-block; padding: 0 .12em .06em; background: var(--red); color: #fff; }
.ha-cta__wall .ha-block { background: #fff; color: var(--red); }

/* Grounds */
.ha-sec { position: relative; padding-block: var(--air); }
.ha-sec--light { background: var(--g-light); color: var(--text); }
.ha-sec--dark { background: var(--g-dark); color: #fff; }
.ha-sec--dark .ha-lead, .ha-hero .ha-lead { color: rgba(255, 255, 255, .8); }
.ha-sec--light .ha-lead { color: var(--text-2); }
/* A sheet slides over the end of the section before it */
.ha-sheet { position: relative; z-index: 1; margin-top: calc(-1 * var(--sheet)); border-radius: var(--sheet) var(--sheet) 0 0; }
.ha-pinwrap { position: relative; }

/* ---------- 1. Hero ---------- */
.ha-hero {
	position: relative; isolation: isolate; overflow: hidden;
	height: 100svh; min-height: 620px; margin-top: calc(-1 * (var(--bar-h) + var(--bar-top)));
	background: var(--g-dark); color: #fff;
}
.ha-hero__media { position: absolute; inset: 0; z-index: 0; margin: 0; overflow: hidden; container-type: size; --shade: 0; clip-path: inset(13% 5% 33% 60% round 24px); }
/* The picture layer the script moves and scales; inside it, a box with the picture's
   own proportions that always covers the hero (so parts of the picture can be
   addressed in percentages, whatever the screen). */
.ha-hero__pic { position: absolute; inset: 0; transform: scale(1.12); will-change: transform; }
.ha-hero__cover { position: absolute; left: 50%; top: 50%; translate: -50% -50%; width: max(100cqw, calc(100cqh * var(--ar, 1.7778))); aspect-ratio: var(--ar, 1.7778); }
.ha-hero__cover > img { display: block; width: 100%; height: 100%; object-fit: cover; }
/* A dark veil over the picture whenever text sits on it */
.ha-hero__cover::after { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(8, 8, 9, .7) 0%, rgba(8, 8, 9, .58) 45%, rgba(8, 8, 9, .84) 100%); opacity: var(--shade); }
/* The brand panel (default hero visual): red, with the logo's asterisk */
.ha-hero__media--brand { background: var(--g-red); clip-path: inset(22% 6% 30% 66% round 24px); }
/* The asterisk grows through its real size (--g), not a scale transform: an SVG scaled as a
   layer is upscaled from a small bitmap and blurs on 1x screens (Windows); resized, it is redrawn sharp. */
.ha-hero__ast { position: absolute; left: 80%; top: 46%; width: calc(min(16vw, 22svh) * var(--g, 1)); translate: -50% -50%; color: #fff; }
.ha-hero__ast svg { display: block; width: 100%; height: auto; }
@media (prefers-reduced-motion: no-preference) { .ha-hero__ast svg { animation: spin 50s linear infinite; } }
/* On the hero the main button is white: it reads on the dark start and on the red panel */
.ha-hero .btn--pop { background: #fff; color: var(--black); }
@media (hover: hover) and (pointer: fine) { .ha-hero .btn--pop:hover { background: var(--black); color: #fff; } }
.ha-hero__inner {
	position: relative; z-index: 1; height: 100%; display: grid; grid-template-rows: auto 1fr auto; gap: clamp(1rem, 3vh, 2.5rem);
	padding: calc(var(--bar-h) + var(--bar-top) + clamp(1.5rem, 5vh, 3.5rem)) var(--hp) clamp(2rem, 6vh, 4.5rem);
}
.ha-hero__h1 { display: contents; }
.ha-hero__h1 > .ha-kicker { justify-self: start; line-height: 1.6; }
.ha-hero__title { display: block; align-self: center; margin: 0; font-size: min(15.2vw, 20.5svh); font-weight: 700; line-height: .88; letter-spacing: -.065em; }
.ha-line { display: block; width: max-content; white-space: nowrap; will-change: transform; }
.ha-line:nth-child(2) { margin-left: 7vw; }
.ha-hero__foot { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px 48px; flex-wrap: wrap; }

/* ---------- 2. Manifesto ---------- */
.ha-manifesto .ha-wrap { display: grid; gap: clamp(2.5rem, 7vh, 5rem); justify-items: start; }
.ha-manifesto__text { max-width: 19em; font-size: clamp(1.9rem, 4.5vw, 5.4rem); font-weight: 600; line-height: 1.08; letter-spacing: -.04em; }
.ha-manifesto__text .bw { transition: color .35s; }
html.has-motion .ha-manifesto__text .bw { color: rgba(18, 18, 20, .13); }
html.has-motion .ha-manifesto__text .bw.on { color: var(--text); }

/* ---------- 3. Services ---------- */
.ha-svc { --svc-bg: #0b0b0c; position: relative; color: #fff; padding: var(--air) var(--hp); background: radial-gradient(42% 46% at 100% 0%, rgba(226, 52, 58, .5) 0%, rgba(183, 33, 38, .16) 45%, transparent 72%), var(--svc-bg); }
.ha-svc__head { display: flex; justify-content: space-between; align-items: baseline; gap: 24px; margin-bottom: clamp(2rem, 6vh, 4rem); }
.ha-svc__list { --ih: clamp(4.2rem, 13vw, 6rem); }
.ha-svc__item a { display: grid; gap: 6px; padding: 18px 0; border-bottom: 1px solid var(--line-d); text-decoration: none; color: #fff; }
.ha-svc__name { justify-self: start; padding: 0 .12em .06em; margin-left: -.12em; font-size: clamp(2rem, 8.6vw, 3.2rem); font-weight: 700; line-height: 1.04; letter-spacing: -.05em; }
.ha-svc__text { max-width: 34ch; font-size: 1rem; line-height: 1.5; color: rgba(255, 255, 255, .72); }
.ha-svc__all { margin-top: clamp(2rem, 5vh, 3rem); }

@media (min-width: 900px) {
	/* One screen: the list is a tall column that the scroll drives upward; the row
	   crossing the middle is the lit one. */
	.ha-svc { height: 100svh; min-height: 620px; display: grid; grid-template-rows: auto 1fr auto; padding-block: calc(var(--bar-h) + var(--bar-top) + clamp(1.5rem, 4vh, 3rem)) clamp(2rem, 5vh, 3.5rem); }
	.ha-svc__head { margin-bottom: 0; }
	.ha-svc__stage { position: relative; overflow: hidden; }
	.ha-svc__list { --ih: min(8.8vw, 16svh); position: absolute; left: 0; right: 0; top: 50%; margin-top: calc(var(--ih) / -2); will-change: transform; }
	.ha-svc__item a { display: flex; align-items: center; gap: clamp(24px, 3.5vw, 64px); height: var(--ih); padding: 0; border: 0; }
	/* Outlined names. A stroke alone would show the overlapping contours inside the
	   letters of a variable font (the bar of the t, the e), so the stroke is painted
	   first and the fill, in the colour of the ground, covers everything inside. */
	.ha-svc__name { flex: none; font-size: calc(var(--ih) * .74); line-height: 1; color: var(--svc-bg); -webkit-text-stroke: 3px #74747a; paint-order: stroke fill; transition: color .25s, background-color .25s, -webkit-text-stroke-color .25s; }
	.ha-svc__text { max-width: 30ch; font-size: clamp(.95rem, .8rem + .35vw, 1.15rem); opacity: 0; transform: translateX(-12px); transition: opacity .3s, transform .5s var(--ease); }
	.ha-svc__item.is-on .ha-svc__name { color: #fff; background: var(--red); -webkit-text-stroke-color: transparent; }
	.ha-svc__item.is-on .ha-svc__text { opacity: 1; transform: none; }
	.ha-svc__item:not(.is-on) a:hover .ha-svc__name, .ha-svc__item:not(.is-on) a:focus-visible .ha-svc__name { -webkit-text-stroke-color: #fff; }
	.ha-svc__all { margin-top: 0; justify-self: end; }
	/* No JS / reduced motion: the column simply flows and everything is lit */
	html:not(.has-motion) .ha-svc { height: auto; }
	html:not(.has-motion) .ha-svc__list { position: static; margin: 0; }
	html:not(.has-motion) .ha-svc__name { color: #fff; -webkit-text-stroke: 0; }
	html:not(.has-motion) .ha-svc__text { opacity: 1; transform: none; }
}

/* ---------- 4. Projects ---------- */
.ha-work { position: relative; color: var(--text); padding-block: var(--air) calc(var(--air) * .7); }
.ha-work__track { display: grid; gap: clamp(2.5rem, 6vh, 4rem); }
.ha-work__intro { display: grid; gap: clamp(1.5rem, 4vh, 2.5rem); padding-inline: var(--hp); }
.ha-work__list { display: flex; gap: 18px; padding-inline: var(--hp); scroll-padding-inline: var(--hp); overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.ha-work__list::-webkit-scrollbar { display: none; }
.ha-card { flex: none; width: min(78vw, 360px); scroll-snap-align: start; }
.ha-card__link { display: grid; gap: 6px; text-decoration: none; color: inherit; }
.ha-card__photo { display: block; aspect-ratio: 4 / 5; overflow: hidden; border-radius: 20px; background: var(--paper-2); margin-bottom: 12px; }
.ha-card__photo img { width: 116%; max-width: none; height: 100%; margin-left: -8%; object-fit: cover; }
.ha-card__name { font-size: clamp(1.6rem, 1.1rem + 1.5vw, 2.8rem); font-weight: 700; line-height: 1.02; letter-spacing: -.045em; transition: color .25s; }
.ha-card__meta { font-size: .95rem; color: var(--text-2); }
.ha-card__link:hover .ha-card__name { color: var(--red); }
.ha-work__all { display: inline-flex; align-items: center; gap: .3em; margin-inline: var(--hp); justify-self: start; font-size: clamp(2rem, 6vw, 6.5rem); font-weight: 700; letter-spacing: -.055em; line-height: 1; text-decoration: none; color: inherit; transition: color .25s; }
.ha-work__all .icon { width: .7em; height: .7em; }
.ha-work__all:hover { color: var(--red); }
.ha-work__all:hover .icon { transform: translateX(.18em); }
.ha-work__bar { display: none; }

@media (min-width: 900px) {
	html.has-motion .ha-work { height: 100svh; min-height: 620px; padding: 0; overflow: hidden; }
	html.has-motion .ha-work__track { display: flex; align-items: center; gap: clamp(48px, 6vw, 120px); width: max-content; height: 100%; padding: calc(var(--bar-h) + var(--bar-top) + 1.5rem) var(--hp) clamp(3.5rem, 8vh, 5rem); will-change: transform; }
	html.has-motion .ha-work__intro { flex: none; width: 52vw; padding: 0; }
	html.has-motion .ha-work__list { flex: none; gap: clamp(28px, 3.4vw, 64px); padding: 0; overflow: visible; }
	html.has-motion .ha-card { width: calc(min(56svh, 620px) * .8); }
	html.has-motion .ha-work__all { flex: none; margin: 0 6vw 0 2vw; }
	html.has-motion .ha-work__bar { display: block; position: absolute; left: var(--hp); right: var(--hp); bottom: clamp(1.4rem, 3.5vh, 2.2rem); height: 2px; background: var(--line-l); }
	.ha-work__bar i { display: block; height: 100%; background: var(--red); transform-origin: left; transform: scaleX(0); }
}

/* ---------- 5. People ---------- */
.ha-team { overflow: hidden; }
.ha-team__head { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 32px 64px; align-items: end; margin-bottom: clamp(3rem, 9vh, 6rem); }
.ha-team__row { display: flex; gap: clamp(12px, 1.4vw, 24px); width: max-content; padding-inline: var(--hp); will-change: transform; }
.ha-team__row + .ha-team__row { margin-top: clamp(12px, 1.4vw, 24px); }
.ha-face { flex: none; width: clamp(190px, 21vw, 340px); }
.ha-team__foot { margin-top: clamp(3rem, 8vh, 5rem); }
@media (max-width: 899px) {
	.ha-team__head { grid-template-columns: 1fr; }
	html:not(.has-motion) .ha-team__row { width: auto; overflow-x: auto; }
}

/* ---------- FAQ ---------- */
.ha-title--md { font-size: clamp(2.8rem, 7vw, 8rem); }
.ha-faq__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(40px, 7vw, 140px); align-items: start; }
.ha-faq__head { display: grid; gap: clamp(1.5rem, 4vh, 2.5rem); position: sticky; top: calc(var(--bar-h) + var(--bar-top) + 2rem); }
.ha-faq .qa h3 { font-size: clamp(1.2rem, 1rem + .8vw, 1.7rem); }
.ha-faq .qa summary { padding: clamp(22px, 3.2vh, 34px) 0; }
@media (max-width: 899px) {
	.ha-faq__grid { grid-template-columns: 1fr; }
	.ha-faq__head { position: static; }
}

/* ---------- 6. Quote request ---------- */
.ha-cta { position: relative; background: var(--g-red); color: #fff; }
.ha-cta__wall { position: sticky; top: 0; min-height: 100svh; display: grid; align-content: center; gap: clamp(1.5rem, 5vh, 3rem); padding: calc(var(--bar-h) + var(--bar-top) + 2rem) var(--hp) clamp(3rem, 8vh, 5rem); }
.ha-cta__title { font-size: min(14vw, 26svh); font-weight: 700; line-height: .9; letter-spacing: -.065em; transform-origin: left center; will-change: transform; }
.ha-cta__wall .ha-lead { color: rgba(255, 255, 255, .88); }
.ha-cta__sheet { position: relative; z-index: 1; background: var(--g-light); color: var(--text); border-radius: var(--sheet) var(--sheet) 0 0; padding-block: clamp(4.5rem, 14vh, 9rem); }
.ha-cta__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(40px, 6vw, 120px); align-items: start; }
.ha-cta__copy { display: grid; gap: clamp(2rem, 5vh, 3.5rem); }
.ha-cta__say { font-size: clamp(1.9rem, 3.4vw, 3.8rem); font-weight: 700; line-height: 1.02; letter-spacing: -.05em; }
.ha-direct { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line-l); }
.ha-direct a { display: flex; align-items: center; gap: 16px; min-height: 68px; border-bottom: 1px solid var(--line-l); font-size: 1.1rem; font-weight: 500; text-decoration: none; color: inherit; transition: padding .4s var(--ease), color .2s; }
.ha-direct a:hover { padding-left: 10px; color: var(--red); }
.ha-direct .icon { color: var(--red); }
.ha-cta .ticket { box-shadow: 0 40px 90px rgba(18, 18, 20, .12); border: 1px solid var(--line-l); }
@media (max-width: 899px) {
	.ha-cta__wall { position: relative; min-height: 0; padding-block: calc(var(--air) * .8); }
	.ha-cta__grid { grid-template-columns: 1fr; }
}

/* ---------- Phones ---------- */
@media (max-width: 899px) {
	.ha { --sheet: 28px; --air: clamp(5rem, 14vh, 7rem); }
	.ha-hero { height: auto; min-height: 100svh; }
	.ha-hero__inner { height: auto; min-height: 100svh; }
	.ha-hero__title { font-size: min(17.5vw, 13svh); }
	.ha-line:nth-child(2) { margin-left: 0; }
	/* The window of work becomes a plain picture under the headline */
	.ha-hero__media { position: relative; inset: auto; order: 2; aspect-ratio: 4 / 3; margin: 0 var(--hp); clip-path: none; border-radius: 20px; overflow: hidden; }
	.ha-hero__pic { transform: none; }
	.ha-hero__media--brand { clip-path: none; }
	.ha-hero__ast { left: 50%; top: 50%; width: 34%; }
	.ha-hero__cover::after { display: none; }
	.ha-hero { display: flex; flex-direction: column; padding-bottom: clamp(2rem, 6vh, 4rem); }
	.ha-hero__inner { order: 1; min-height: 0; padding-bottom: clamp(2rem, 5vh, 3rem); }
	.ha-hero__foot .btn { width: 100%; }
	.ha-title { font-size: clamp(3rem, 15vw, 6rem); }
}

/* ==========================================================================
   Project page (single-progetto.php): the same bold language as the home.
   Head with the facts, a wide cover, "Il punto di partenza" in large type,
   the story in blocks, the gallery, "Com'è andata" on red.
   ========================================================================== */
.pj-head { position: relative; margin-top: calc(-1 * (var(--bar-h) + var(--bar-top))); padding: calc(var(--bar-h) + var(--bar-top) + clamp(3rem, 9vh, 6rem)) 0 calc(clamp(4rem, 10vh, 7rem) + 12vw); background: var(--g-dark); color: #fff; }
.pj-head .ha-wrap { display: grid; gap: clamp(1.5rem, 4vh, 2.5rem); }
.pj-head__title { overflow-wrap: anywhere; }
.pj-head__lead { max-width: 44ch; color: rgba(255, 255, 255, .82); }
.pj-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 0 clamp(20px, 3vw, 48px); margin: clamp(1rem, 3vh, 2rem) 0 0; border-top: 1px solid var(--line-d); }
.pj-facts > div { padding: 18px 0; border-bottom: 1px solid var(--line-d); }
.pj-facts dt { font-size: .74rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: rgba(255, 255, 255, .5); }
.pj-facts dd { margin: 6px 0 0; font-size: 1.12rem; font-weight: 600; letter-spacing: -.01em; overflow-wrap: anywhere; }
.pj-facts a { color: inherit; text-decoration-color: var(--red-hi); text-underline-offset: 4px; }
.pj-tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; }
.pj-tag { display: inline-flex; align-items: center; min-height: 38px; padding: 0 16px; border: 1px solid var(--line-d); border-radius: 999px; font-size: .9rem; font-weight: 500; text-decoration: none; color: #fff; transition: background-color .2s, color .2s, border-color .2s; }
.pj-tag:hover { background: #fff; border-color: #fff; color: var(--black); }

/* The cover sits across the edge between the dark head and the light page */
/* Full width between the gutters; the height follows 16:9 but never passes 86% of the screen.
   (aspect-ratio + max-height would shrink the width instead and push the picture to the left.) */
.pj-cover { position: relative; z-index: 1; margin: -12vw var(--hp) 0; overflow: hidden; border-radius: clamp(18px, 2.4vw, 36px); height: min(calc((100vw - 2 * var(--hp)) * 9 / 16), 86svh); background: var(--paper-2); }
.pj-cover img { width: 100%; height: 100%; object-fit: cover; }

.pj-start .ha-wrap { display: grid; gap: clamp(2rem, 5vh, 3.5rem); }
.pj-start .ha-manifesto__text { max-width: 24em; font-size: clamp(1.7rem, 3.4vw, 4rem); }

/* The story: every H2 written in the editor opens a block of the story (no numbers) */
.pj-work__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(40px, 7vw, 140px); align-items: start; }
.pj-work__grid > .ha-title { position: sticky; top: calc(var(--bar-h) + var(--bar-top) + 2rem); }
.pj-steps > h2, .pj-steps > h3 { margin: clamp(2.5rem, 6vh, 4rem) 0 0; padding-top: clamp(1.5rem, 3.5vh, 2.2rem); border-top: 1px solid var(--line-d); font-size: clamp(1.6rem, 1rem + 2vw, 3rem); font-weight: 700; line-height: 1.04; letter-spacing: -.045em; }
.pj-steps > :first-child { margin-top: 0; }
.pj-steps > p, .pj-steps > ul, .pj-steps > ol { max-width: 54ch; margin: 16px 0 0; font-size: clamp(1.05rem, 1rem + .3vw, 1.25rem); line-height: 1.6; color: rgba(255, 255, 255, .8); }
.pj-steps > ul, .pj-steps > ol { padding-left: 1.2em; }
.pj-steps img { max-width: 100%; height: auto; border-radius: 18px; margin-top: 20px; }
.pj-steps a { color: #fff; text-decoration-color: var(--red-hi); text-underline-offset: 4px; }

.pj-gallery__wrap { display: grid; gap: clamp(1.25rem, 3vh, 2rem); }
.pj-gallery__head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; }
.pj-gallery__count { font-size: .9rem; color: var(--text-2); }
.pj-gallery__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(8px, 1vw, 14px); margin: 0; padding: 0; list-style: none; }
.pj-shot { margin: 0; }
.pj-shot__link { display: block; aspect-ratio: 3 / 4; overflow: hidden; border-radius: clamp(10px, 1vw, 14px); background: var(--paper-2); cursor: zoom-in; outline-offset: 3px; }
.pj-shot__link img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.pj-shot__link:focus-visible { outline: 2px solid var(--red); }

/* Full-screen viewer (a native dialog): no fades, the picture just appears */
.lb { width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: rgba(8, 8, 9, .96); color: #fff; overscroll-behavior: contain; }
.lb::backdrop { background: rgba(8, 8, 9, .96); }
.lb[open] { display: grid; grid-template-rows: auto minmax(0, 1fr); }
.lb__bar { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 14px clamp(14px, 3vw, 28px); font-size: .9rem; color: rgba(255, 255, 255, .7); }
.lb__stage { position: relative; display: grid; place-items: center; min-height: 0; overflow: hidden; padding: 0 clamp(56px, 7vw, 96px) clamp(14px, 3vh, 28px); }
.lb__img { display: block; max-width: calc(100vw - 2 * clamp(56px, 7vw, 96px)); max-height: calc(100dvh - 76px - clamp(14px, 3vh, 28px)); width: auto; height: auto; object-fit: contain; border-radius: 6px; user-select: none; }
.lb__btn { display: grid; place-items: center; width: 48px; height: 48px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .1); color: #fff; cursor: pointer; }
.lb__btn:hover, .lb__btn:focus-visible { background: rgba(255, 255, 255, .22); outline: none; }
.lb__btn svg { width: 22px; height: 22px; }
.lb__prev, .lb__next { position: absolute; top: 50%; translate: 0 -50%; }
.lb__prev { left: clamp(6px, 2vw, 24px); } .lb__next { right: clamp(6px, 2vw, 24px); }
.lb__prev svg { rotate: 180deg; }

.pj-result { background: var(--g-red); color: #fff; padding-block: var(--air); }
.pj-result .ha-wrap { display: grid; gap: clamp(2rem, 6vh, 4rem); }
.pj-result .ha-kicker::before { background: #fff; }
.pj-result__text { max-width: 22em; font-size: clamp(1.7rem, 3.6vw, 4.2rem); font-weight: 700; line-height: 1.06; letter-spacing: -.045em; }
.pj-numbers { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: clamp(24px, 4vw, 64px); margin: 0; }
.pj-numbers > div { display: flex; flex-direction: column-reverse; gap: 6px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, .35); }
.pj-numbers dd { margin: 0; font-size: clamp(3rem, 7vw, 7.5rem); font-weight: 700; line-height: .95; letter-spacing: -.06em; }
.pj-numbers dt { font-size: 1.05rem; color: rgba(255, 255, 255, .85); }
.pj-quote { margin: 0; padding-top: clamp(1.5rem, 4vh, 2.5rem); border-top: 1px solid rgba(255, 255, 255, .35); max-width: 40ch; font-size: clamp(1.15rem, 1rem + .6vw, 1.6rem); font-weight: 500; line-height: 1.4; }
.pj-quote p::before { content: "“"; } .pj-quote p::after { content: "”"; }

.pj-next__link { display: grid; gap: clamp(1rem, 3vh, 2rem); text-decoration: none; color: var(--text); }
.pj-next__name { margin: 0; }
.pj-next__link:hover .pj-next__name { color: var(--red); }
.pj-next__link:hover .pj-next__name .icon { transform: translateX(.18em); }

@media (max-width: 899px) {
	.pj-work__grid { grid-template-columns: 1fr; }
	.pj-work__grid > .ha-title { position: static; }
	.pj-gallery__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.pj-cover { height: min(calc((100vw - 2 * var(--hp)) * 3 / 4), 86svh); }
}

/* ---------- Project: the kinds of work involved ---------- */
.pj-crafts .ha-wrap { display: grid; gap: clamp(1.5rem, 4vh, 2.5rem); }
.pj-crafts__list { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 0 clamp(20px, 3vw, 48px); margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line-l); }
.pj-crafts__list li { display: grid; gap: 8px; align-content: start; padding: 22px 0; border-bottom: 1px solid var(--line-l); }
.pj-crafts__list h3 { font-size: 1.3rem; font-weight: 700; letter-spacing: -.02em; }
.pj-crafts__list h3 a { color: inherit; text-decoration: none; }
.pj-crafts__list h3 a:hover { color: var(--red); }
.pj-crafts__list p { color: var(--text-2); }
.pj-crafts__svc a { color: var(--text); font-weight: 600; text-decoration-color: var(--red); text-underline-offset: 4px; }

@media (max-width: 599px) {
	.pj-gallery__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.lb__stage { padding-inline: 8px; }
	.lb__prev, .lb__next { top: auto; bottom: 18px; translate: none; }
	.lb__stage { padding-bottom: 80px; }
	.lb__img { max-width: calc(100vw - 16px); max-height: calc(100dvh - 76px - 80px); }
}
