/* ==========================================================================
   Studio Ventura: stile del tema
   ========================================================================== */

@font-face {
	font-family: "Marcellus";
	src: url("../fonts/marcellus.woff2") format("woff2");
	font-weight: 400;
	font-style: normal;
	font-display: swap;
}
@font-face {
	font-family: "Hanken Grotesk";
	src: url("../fonts/hanken-grotesk.woff2") format("woff2");
	font-weight: 400 600;
	font-style: normal;
	font-display: swap;
}
@font-face {
	font-family: "Source Serif 4";
	src: url("../fonts/source-serif-4.woff2") format("woff2");
	font-weight: 400 600;
	font-style: normal;
	font-display: swap;
}
@font-face {
	font-family: "Source Serif 4";
	src: url("../fonts/source-serif-4-italic.woff2") format("woff2");
	font-weight: 400;
	font-style: italic;
	font-display: swap;
}

:root {
	--ink-950: #08111e;
	--ink-900: #0b1524;
	--ink-800: #0f1b2d;
	--ink-700: #16243a;
	--ink-600: #22324b;
	--ink-400: #5d6b80;
	--stone-50: #f3f1ec;
	--stone-100: #eeebe5;
	--stone-200: #dfdad1;
	--stone-300: #c9c2b5;
	--gold-300: #d9be98;
	--gold-500: #b48961;
	--gold-700: #7c5832;
	--text: #18212f;
	--text-soft: #475264;
	--on-ink: #eef0f3;
	--on-ink-soft: #aab4c3;

	--font-display: "Marcellus", "Times New Roman", serif;
	--font-text: "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
	--font-read: "Source Serif 4", Georgia, serif;

	--wrap: 1240px;
	--gutter: clamp(20px, 4vw, 48px);
	--section: clamp(80px, 11vw, 152px);
	--ease-out: cubic-bezier(0.16, 1, 0.3, 1);
	--header-h: 76px;
}

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

*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	-webkit-text-size-adjust: 100%;
	scroll-behavior: smooth;
	scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
	margin: 0;
	background: var(--stone-50);
	color: var(--text);
	font-family: var(--font-text);
	font-size: 1rem;
	line-height: 1.65;
	font-variant-numeric: lining-nums;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}

img,
svg,
video {
	display: block;
	max-width: 100%;
	height: auto;
}

a {
	color: var(--gold-700);
	text-decoration-thickness: 1px;
	text-underline-offset: 0.22em;
	transition: color 0.25s var(--ease-out);
}
a:hover {
	color: var(--ink-800);
}

::selection {
	background: var(--gold-300);
	color: var(--ink-900);
}

:focus-visible {
	outline: 2px solid var(--gold-500);
	outline-offset: 3px;
}

html {
	scrollbar-color: var(--ink-400) var(--stone-100);
}

h1,
h2,
h3,
h4 {
	font-family: var(--font-display);
	font-weight: 400;
	line-height: 1.12;
	margin: 0;
	text-wrap: balance;
	color: var(--ink-800);
}

p {
	margin: 0 0 1.1em;
	text-wrap: pretty;
}

.wrap {
	width: 100%;
	max-width: var(--wrap);
	margin-inline: auto;
	padding-inline: var(--gutter);
}

.screen-reader-text,
.sr-only {
	position: absolute !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
}

.skip-link {
	position: absolute;
	left: 16px;
	top: -60px;
	z-index: 100;
	padding: 10px 16px;
	background: var(--gold-500);
	color: var(--ink-900);
	text-decoration: none;
}
.skip-link:focus {
	top: 12px;
}

/* --- Running text: justified, words never split across lines.
   Display copy (leads, headings, cards) stays ragged-left. --- */

.prose p,
.intro__body p:not(.t-lead),
.member__bio p,
.areas__panel p {
	text-align: justify;
	text-justify: inter-word;
	-webkit-hyphens: manual;
	hyphens: manual;
	overflow-wrap: normal;
	word-break: normal;
	text-wrap: pretty;
}

/* --- Smooth scrolling (Lenis): the library drives the scroll, so the native
   smooth behaviour is switched off while it runs --- */

html.lenis,
html.lenis body {
	height: auto;
}
.lenis.lenis-smooth {
	scroll-behavior: auto !important;
}
.lenis.lenis-smooth [data-lenis-prevent] {
	overscroll-behavior: contain;
}
.lenis.lenis-stopped {
	overflow: hidden;
}

/* --- Typographic roles ------------------------------------------------------ */

.t-caps {
	text-transform: uppercase;
	letter-spacing: 0.06em;
}

.t-display {
	font-size: clamp(2.5rem, 5.6vw, 5.25rem);
	line-height: 1.02;
	letter-spacing: 0.02em;
	text-transform: uppercase;
}

.t-h2 {
	font-size: clamp(2rem, 3.6vw, 3.25rem);
	letter-spacing: 0.03em;
	text-transform: uppercase;
}

.t-h3 {
	font-size: clamp(1.35rem, 1.8vw, 1.6rem);
	letter-spacing: 0.02em;
}

.t-lead {
	font-size: clamp(1.125rem, 1.4vw, 1.3rem);
	line-height: 1.55;
	color: var(--text-soft);
	max-width: 56ch;
}

.t-meta {
	font-size: 0.8125rem;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--text-soft);
}

/* The gold rule: a short hairline under section headings, drawn on reveal */
.rule {
	display: block;
	width: 72px;
	height: 1px;
	margin-top: 22px;
	background: var(--gold-500);
	transform-origin: left center;
}
.rule--center {
	margin-inline: auto;
	transform-origin: center;
}

/* --- Buttons --------------------------------------------------------------- */

.btn {
	--btn-bg: var(--gold-500);
	--btn-fg: var(--ink-900);
	position: relative;
	display: inline-flex;
	align-items: center;
	gap: 12px;
	min-height: 52px;
	padding: 0 26px;
	border: 1px solid var(--btn-bg);
	background: var(--btn-bg);
	color: var(--btn-fg);
	font-family: var(--font-text);
	font-size: 0.875rem;
	font-weight: 600;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	text-decoration: none;
	cursor: pointer;
	overflow: hidden;
	isolation: isolate;
	transition: color 0.4s var(--ease-out), border-color 0.4s var(--ease-out);
}
.btn::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background: var(--ink-900);
	transform: scaleY(0);
	transform-origin: bottom;
	transition: transform 0.45s var(--ease-out);
}
.btn:hover {
	color: var(--gold-300);
	border-color: var(--gold-500);
}
.btn:hover::before {
	transform: scaleY(1);
}
.btn svg {
	width: 16px;
	height: 16px;
	transition: transform 0.4s var(--ease-out);
}
.btn:hover svg {
	transform: translateX(4px);
}

.btn--ghost {
	--btn-bg: transparent;
	--btn-fg: var(--on-ink);
	border-color: rgba(217, 190, 152, 0.55);
}
.btn--ghost::before {
	background: var(--gold-500);
}
.btn--ghost:hover {
	color: var(--ink-900);
}

.btn--ink {
	--btn-bg: var(--ink-800);
	--btn-fg: var(--on-ink);
}
.btn--ink::before {
	background: var(--gold-500);
}
.btn--ink:hover {
	color: var(--ink-900);
}

.btn[disabled],
.btn.is-loading {
	opacity: 0.6;
	pointer-events: none;
}

.link-arrow {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	font-size: 0.875rem;
	font-weight: 600;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	text-decoration: none;
	color: var(--gold-700);
}
.link-arrow svg {
	width: 16px;
	height: 16px;
	transition: transform 0.4s var(--ease-out);
}
.link-arrow:hover svg {
	transform: translateX(5px);
}
.on-ink .link-arrow {
	color: var(--gold-300);
}
.on-ink .link-arrow:hover {
	color: #fff;
}

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

.site-header {
	position: fixed;
	inset: 0 0 auto;
	z-index: 50;
	color: var(--on-ink);
	transition: background-color 0.5s var(--ease-out), box-shadow 0.5s var(--ease-out), transform 0.5s var(--ease-out);
}
.site-header__bar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 32px;
	height: var(--header-h);
	transition: height 0.5s var(--ease-out);
}
.site-header.is-solid {
	background: var(--ink-900);
	box-shadow: 0 1px 0 rgba(180, 137, 97, 0.25), 0 12px 32px -18px rgba(0, 0, 0, 0.6);
}
.site-header.is-solid .site-header__bar {
	height: 72px;
}
.admin-bar .site-header {
	top: 46px;
}

/* The wordmark: kept from the studio's original logo (two-line serif in antique gold) */
.wordmark {
	display: inline-block;
	font-family: var(--font-display);
	font-size: 1.3rem;
	line-height: 1;
	letter-spacing: 0.01em;
	color: var(--gold-500);
	text-decoration: none;
}
.wordmark span {
	display: block;
}
.wordmark span + span {
	margin-top: 2px;
}
.wordmark:hover {
	color: var(--gold-300);
}

.nav-primary {
	display: none;
}
.nav-primary ul {
	display: flex;
	align-items: center;
	gap: clamp(18px, 2.4vw, 36px);
	margin: 0;
	padding: 0;
	list-style: none;
}
.nav-primary a {
	position: relative;
	display: inline-block;
	padding: 8px 0;
	color: var(--on-ink);
	font-size: 0.8125rem;
	font-weight: 500;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	text-decoration: none;
}
.nav-primary a::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: 2px;
	height: 1px;
	background: var(--gold-500);
	transform: scaleX(0);
	transform-origin: right;
	transition: transform 0.45s var(--ease-out);
}
.nav-primary a:hover,
.nav-primary .current-menu-item > a,
.nav-primary .current-menu-ancestor > a,
.nav-primary .current_page_item > a,
.nav-primary .current_page_parent > a {
	color: var(--gold-300);
}
.nav-primary a:hover::after,
.nav-primary .current-menu-item > a::after,
.nav-primary .current-menu-ancestor > a::after,
.nav-primary .current_page_item > a::after,
.nav-primary .current_page_parent > a::after {
	transform: scaleX(1);
	transform-origin: left;
}
.nav-primary .sub-menu {
	display: none;
}

.site-header__actions {
	display: flex;
	align-items: center;
	gap: 20px;
}
.site-header__phone {
	display: none;
	align-items: center;
	gap: 8px;
	color: var(--on-ink);
	font-size: 0.875rem;
	font-weight: 500;
	letter-spacing: 0.04em;
	text-decoration: none;
	white-space: nowrap;
}
.site-header__phone svg {
	width: 16px;
	height: 16px;
	color: var(--gold-500);
}
.site-header__phone:hover {
	color: var(--gold-300);
}
.site-header .btn {
	min-height: 44px;
	padding: 0 20px;
	font-size: 0.75rem;
}
.site-header__actions .btn {
	display: none;
}

.menu-toggle {
	display: block;
	position: relative;
	width: 44px;
	height: 44px;
	margin-right: -10px;
	border: 0;
	background: transparent;
	color: var(--on-ink);
	cursor: pointer;
}
.menu-toggle span {
	position: absolute;
	left: 11px;
	right: 11px;
	height: 1px;
	background: currentColor;
	transition: transform 0.45s var(--ease-out), opacity 0.3s;
}
.menu-toggle span:nth-child(1) {
	top: 16px;
}
.menu-toggle span:nth-child(2) {
	top: 22px;
}
.menu-toggle span:nth-child(3) {
	top: 28px;
}
.menu-open .menu-toggle span:nth-child(1) {
	transform: translateY(6px) rotate(45deg);
}
.menu-open .menu-toggle span:nth-child(2) {
	opacity: 0;
}
.menu-open .menu-toggle span:nth-child(3) {
	transform: translateY(-6px) rotate(-45deg);
}

/* Mobile menu panel */
.mobile-panel {
	position: fixed;
	inset: 0;
	z-index: 49;
	display: flex;
	flex-direction: column;
	padding: calc(var(--header-h) + 24px) var(--gutter) 32px;
	background: var(--ink-900);
	color: var(--on-ink);
	visibility: hidden;
	clip-path: inset(0 0 100% 0);
	transition: clip-path 0.6s var(--ease-out), visibility 0s 0.6s;
}
.menu-open .mobile-panel {
	visibility: visible;
	clip-path: inset(0 0 0 0);
	transition: clip-path 0.6s var(--ease-out), visibility 0s;
}
.mobile-panel ul {
	margin: 0;
	padding: 0;
	list-style: none;
}
.mobile-panel li + li {
	border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.mobile-panel a {
	display: block;
	padding: 14px 0;
	font-family: var(--font-display);
	font-size: 1.75rem;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: var(--on-ink);
	text-decoration: none;
}
.mobile-panel .sub-menu {
	display: none;
}
.mobile-panel__contacts {
	margin-top: auto;
	padding-top: 32px;
	font-size: 0.9375rem;
	color: var(--on-ink-soft);
}
.mobile-panel__contacts a {
	display: inline;
	padding: 0;
	font-family: var(--font-text);
	font-size: inherit;
	letter-spacing: 0;
	text-transform: none;
	color: var(--gold-300);
}
.menu-open {
	overflow: hidden;
}

/* --- Hero (home) ----------------------------------------------------------- */

.hero {
	position: relative;
	overflow: hidden;
	background: linear-gradient(180deg, var(--ink-950) 0%, var(--ink-800) 100%);
	color: var(--on-ink);
}
.hero__inner {
	position: relative;
	z-index: 2;
	padding-top: calc(var(--header-h) + 28px);
}
.hero__title {
	color: #fff;
	max-width: 15ch;
	font-size: clamp(2.3rem, 5.6vw, 5.25rem);
}
.hero__title .line {
	display: block;
}
.hero__lead {
	max-width: 52ch;
	margin-top: 18px;
	font-size: 1rem;
	line-height: 1.55;
	color: var(--on-ink-soft);
}
.hero__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-top: 24px;
}
.hero__actions .btn {
	flex: 1 1 auto;
	justify-content: center;
	padding: 0 16px;
}
.hero__photo {
	display: block;
	position: relative;
	z-index: 1;
	margin: 8px 0 0;
	pointer-events: none;
}
.hero__photo img {
	width: 100%;
	aspect-ratio: 4 / 3;
	object-fit: cover;
	object-position: 50% 100%;
	/* the photo has no top edge: its sky fades out into the field behind it */
	-webkit-mask-image: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.35) 22%, #000 55%);
	mask-image: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.35) 22%, #000 55%);
}
.hero__photo::before,
.hero__photo::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	z-index: 1;
}
.hero__photo::before {
	/* the Roman sky dissolves into the ink field above it */
	top: 0;
	height: 62%;
	background: linear-gradient(
		180deg,
		rgba(15, 27, 45, 0) 0%,
		rgba(15, 27, 45, 0.45) 35%,
		rgba(15, 27, 45, 0.2) 70%,
		rgba(15, 27, 45, 0) 100%
	);
}
.hero__photo::after {
	/* the travertine meets the page: a soft fade into the next section */
	bottom: 0;
	height: 18%;
	background: linear-gradient(180deg, rgba(243, 241, 236, 0) 0%, var(--stone-50) 100%);
}
/* The two seats of the studio: the Palazzo di Giustizia (Rome) and the Pontile (Ostia)
   take turns in the hero with a slow cross-fade. The facade stays underneath. */
.hero__slide {
	display: block;
}
.hero__slide--alt {
	position: absolute;
	inset: 0;
	opacity: 0;
}
.hero__slide--alt img {
	height: 100%;
	aspect-ratio: auto;
	/* keep the horizon below the faded sky, so the sea and the lamps stay bright */
	object-position: 50% 0%;
}
.hero__caption {
	display: grid;
	position: absolute;
	right: var(--gutter);
	bottom: 14px;
	z-index: 3;
	margin: 0;
	font-size: 0.625rem;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	text-align: right;
	color: var(--text-soft);
}
.hero__cap {
	grid-area: 1 / 1;
}
.hero__cap--alt {
	visibility: hidden;
	opacity: 0;
}
.hero__cap a {
	color: inherit;
	text-decoration-color: var(--gold-500);
}

/* Phone: the hero fills the screen. The photograph takes the upper part, full bleed,
   and dissolves into the ink field; the headline and the actions sit at the bottom,
   within reach of the thumb. */
@media (max-width: 600px) {
	.hero {
		display: flex;
		flex-direction: column;
		justify-content: flex-end;
		min-height: 100svh;
		background: var(--ink-900);
	}
	.hero__photo {
		position: absolute;
		top: 0;
		left: 0;
		right: 0;
		height: 66svh;
		margin: 0;
		z-index: 0;
	}
	.hero__slide,
	.hero__photo img {
		height: 100%;
	}
	.hero__photo img {
		aspect-ratio: auto;
		object-position: 50% 100%;
		-webkit-mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.55) 0%, #000 22%, #000 58%, transparent 100%);
		mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.55) 0%, #000 22%, #000 58%, transparent 100%);
	}
	.hero__slide--alt img {
		object-position: 50% 50%;
	}
	.hero__photo::before {
		/* keeps the header legible over the sky */
		height: 30%;
		background: linear-gradient(180deg, rgba(11, 21, 36, 0.7) 0%, rgba(11, 21, 36, 0) 100%);
	}
	.hero__photo::after {
		/* the lower edge of the photograph darkens under the headline */
		top: 40%;
		bottom: 0;
		height: auto;
		background: linear-gradient(180deg, rgba(11, 21, 36, 0) 0%, rgba(11, 21, 36, 0.55) 60%, rgba(11, 21, 36, 0.85) 100%);
	}
	.hero__inner {
		padding-top: 44svh;
		padding-bottom: 64px;
	}
	.hero__title {
		max-width: none;
		/* "Diritto del lavoro" is about 10.2em wide: one line per verse, edge to edge */
		font-size: min(calc((100vw - 2 * var(--gutter)) / 10.4), 3rem);
		line-height: 1.06;
		text-shadow: 0 1px 24px rgba(11, 21, 36, 0.5);
	}
	.hero__title .line {
		/* a line edited longer than the original wraps evenly instead of overflowing */
		text-wrap: balance;
	}
	.hero__lead {
		margin-top: 16px;
		font-size: 0.9375rem;
		color: rgba(255, 255, 255, 0.82);
	}
	.hero__actions {
		margin-top: 24px;
	}
	.hero__caption {
		left: var(--gutter);
		right: auto;
		bottom: 22px;
		text-align: left;
		color: var(--on-ink-soft);
		opacity: 0.75;
	}
}
/* Short phones (iPhone SE and similar): less photograph, so the actions stay on screen. */
@media (max-width: 600px) and (max-height: 700px) {
	.hero__photo {
		height: 54svh;
	}
	.hero__inner {
		padding-top: 30svh;
		padding-bottom: 52px;
	}
	.hero__lead {
		margin-top: 12px;
		font-size: 0.875rem;
	}
	.hero__actions {
		margin-top: 18px;
	}
}
@media (prefers-reduced-motion: no-preference) {
	.hero__slide--alt {
		animation: seat-alt 18s ease-in-out 4s infinite both;
	}
	.hero__cap--alt {
		animation: seat-alt 18s ease-in-out 4s infinite both;
	}
	.hero__cap:not(.hero__cap--alt),
	.hero__slide:not(.hero__slide--alt) {
		animation: seat-main 18s ease-in-out 4s infinite both;
	}
}
@keyframes seat-alt {
	0%,
	38% {
		opacity: 0;
		visibility: hidden;
	}
	50%,
	88% {
		opacity: 1;
		visibility: visible;
	}
	100% {
		opacity: 0;
		visibility: hidden;
	}
}
@keyframes seat-main {
	0%,
	38% {
		opacity: 1;
	}
	50%,
	88% {
		opacity: 0;
	}
	100% {
		opacity: 1;
	}
}

/* Orchestrated entrance: the facade rises out of its frame, then the words */
@media (prefers-reduced-motion: no-preference) {
	.hero__photo img {
		animation: photo-in 2s var(--ease-out) 0.1s both;
	}
	.hero__title .line {
		animation: line-up 1.1s var(--ease-out) both;
	}
	.hero__title .line:nth-child(1) {
		animation-delay: 0.35s;
	}
	.hero__title .line:nth-child(2) {
		animation-delay: 0.47s;
	}
	.hero__title .line:nth-child(3) {
		animation-delay: 0.59s;
	}
	.hero__lead,
	.hero__actions {
		animation: fade-up 1s var(--ease-out) 0.8s both;
	}
	.hero__actions {
		animation-delay: 0.92s;
	}
}

@keyframes facade-rise {
	from {
		clip-path: inset(100% 0 0 0);
		transform: translateY(8%);
	}
	to {
		clip-path: inset(0 0 0 0);
		transform: none;
	}
}
@keyframes photo-in {
	from {
		opacity: 0;
		transform: scale(1.06);
	}
	to {
		opacity: 1;
		transform: none;
	}
}
@keyframes line-up {
	from {
		opacity: 0;
		transform: translateY(0.45em);
		filter: blur(6px);
	}
	to {
		opacity: 1;
		transform: none;
		filter: blur(0);
	}
}
@keyframes fade-up {
	from {
		opacity: 0;
		transform: translateY(16px);
	}
	to {
		opacity: 1;
		transform: none;
	}
}
@keyframes fade-in {
	from {
		opacity: 0;
	}
	to {
		opacity: 1;
	}
}

/* --- Scroll reveals (JS adds .js to <html>) ------------------------------- */

/* Content is always visible; on scroll only the gold rules draw themselves. */
@media (prefers-reduced-motion: no-preference) {
	.js .reveal .rule {
		transform: scaleX(0);
		transition: transform 1.2s var(--ease-out) 0.2s;
	}
	.js .reveal.is-in .rule {
		transform: scaleX(1);
	}
}

/* --- Sections ------------------------------------------------------------- */

.section {
	padding-block: var(--section);
}
.section--tight {
	padding-block: calc(var(--section) * 0.7);
}
.section--ink {
	background: var(--ink-800);
	color: var(--on-ink);
}
.section--ink h2,
.section--ink h3 {
	color: #fff;
}
.section--white {
	background: #fff;
}
.section--stone {
	background: var(--stone-100);
}

.section-head {
	margin-bottom: clamp(40px, 6vw, 72px);
}
.section-head--center {
	text-align: center;
}
.section-head--center .t-lead {
	margin-inline: auto;
}
.section-head .t-lead {
	margin-top: 22px;
}
.section-head--split {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 32px;
	flex-wrap: wrap;
}

/* --- Studio intro (home) --------------------------------------------------- */

.intro {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: clamp(40px, 7vw, 112px);
	align-items: center;
}
.intro__media {
	position: relative;
	aspect-ratio: 16 / 11;
	overflow: hidden;
	background: var(--ink-700);
}
.intro__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: 42% 50%;
	transform: scale(1.06);
	transition: transform 1.6s var(--ease-out);
}
.intro__media.is-in img {
	transform: scale(1);
}
.intro__media figcaption {
	position: absolute;
	left: 0;
	bottom: 0;
	padding: 10px 16px;
	background: rgba(11, 21, 36, 0.82);
	color: var(--on-ink-soft);
	font-size: 0.6875rem;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}
.intro__body .t-h2 {
	max-width: 14ch;
}
.intro__body p {
	color: var(--text-soft);
	max-width: 60ch;
}
.intro__body .t-lead {
	color: var(--text);
	margin: 28px 0 20px;
}

/* The chronology: four dated facts on one gold line */
.chrono {
	position: relative;
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 40px 24px;
	margin: 44px 0 36px;
	padding: 28px 0 0;
	list-style: none;
}
.chrono::before {
	display: none;
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 1px;
	background: var(--stone-300);
}
.chrono li {
	position: relative;
	padding-top: 22px;
	border-top: 1px solid var(--stone-300);
}
.chrono li::before {
	content: "";
	position: absolute;
	top: -5px;
	left: 0;
	width: 9px;
	height: 9px;
	background: var(--stone-50);
	border: 1px solid var(--gold-500);
	transform: rotate(45deg);
}
.chrono__year {
	display: block;
	font-family: var(--font-display);
	font-size: 1.75rem;
	line-height: 1;
	color: var(--ink-800);
	font-variant-numeric: tabular-nums;
}
.chrono__what {
	display: block;
	margin-top: 8px;
	font-size: 0.875rem;
	line-height: 1.45;
	color: var(--text-soft);
}

/* --- Practice areas index: the signature ---------------------------------- */

.areas {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: clamp(40px, 6vw, 96px);
	align-items: start;
}
.areas__list {
	margin: 0;
	padding: 0;
	list-style: none;
	border-top: 1px solid rgba(217, 190, 152, 0.22);
}
.areas__item {
	border-bottom: 1px solid rgba(217, 190, 152, 0.22);
}
.areas__link {
	position: relative;
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	align-items: start;
	gap: 8px 24px;
	padding: 22px 0;
	color: var(--on-ink);
	text-decoration: none;
}
.areas__link::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: -1px;
	height: 1px;
	background: var(--gold-500);
	transform: scaleX(0);
	transform-origin: left;
	transition: transform 0.7s var(--ease-out);
}
.areas__name {
	font-family: var(--font-display);
	font-size: clamp(1.4rem, 2.3vw, 2.05rem);
	line-height: 1.15;
	letter-spacing: 0.03em;
	text-transform: uppercase;
	transition: transform 0.6s var(--ease-out), color 0.4s var(--ease-out);
}
.areas__arrow {
	width: 22px;
	height: 22px;
	color: var(--gold-500);
	transition: opacity 0.4s var(--ease-out), transform 0.6s var(--ease-out);
}
.areas__excerpt {
	grid-column: 1 / -1;
	margin-top: -4px;
	font-family: var(--font-text);
	font-size: 0.9375rem;
	line-height: 1.55;
	color: var(--on-ink-soft);
}
.areas__link:hover,
.areas__link:focus-visible {
	color: var(--gold-300);
}
.areas__link:hover::after,
.areas__link:focus-visible::after {
	transform: scaleX(1);
}

.areas__panel {
	display: none;
	position: sticky;
	top: calc(var(--header-h) + 40px);
	min-height: 340px;
	padding: 28px 22px;
	border: 1px solid rgba(217, 190, 152, 0.28);
	background: var(--ink-700);
}
.areas__panel-item {
	display: none;
}
.areas__panel-item.is-active {
	display: block;
	animation: panel-in 0.7s var(--ease-out) both;
}
.areas__panel h3 {
	font-size: 1.5rem;
	letter-spacing: 0.03em;
	text-transform: uppercase;
	color: var(--gold-300);
}
.areas__panel p {
	margin-top: 18px;
	color: var(--on-ink-soft);
}
.areas__panel ul {
	margin: 0 0 28px;
	padding: 0;
	list-style: none;
	font-size: 0.9375rem;
	color: var(--on-ink);
}
.areas__panel li {
	position: relative;
	padding: 7px 0 7px 22px;
	border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}
.areas__panel li::before {
	content: "";
	position: absolute;
	left: 2px;
	top: 1.05em;
	width: 7px;
	height: 7px;
	border: 1px solid var(--gold-500);
	transform: rotate(45deg);
}
@keyframes panel-in {
	from {
		opacity: 0;
		transform: translateY(10px);
	}
	to {
		opacity: 1;
		transform: none;
	}
}

/* --- Article cards: image on top, then section, date, title, preview ----- */

.cards {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 40px 28px;
	margin: 0;
	padding: 0;
	list-style: none;
}
.card__link {
	display: flex;
	flex-direction: column;
	height: 100%;
	color: inherit;
	text-decoration: none;
	background: #fff;
	border: 1px solid var(--stone-200);
	transition: border-color 0.4s var(--ease-out), box-shadow 0.5s var(--ease-out);
}
.card__media {
	position: relative;
	aspect-ratio: 16 / 10;
	overflow: hidden;
	background: var(--ink-700);
}
.card__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 1.2s var(--ease-out);
}
.card__media::after {
	/* the gold rule that closes every heading, here drawn under the image */
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	height: 2px;
	background: var(--gold-500);
	transform: scaleX(0);
	transform-origin: left;
	transition: transform 0.7s var(--ease-out);
}
.card__body {
	display: flex;
	flex-direction: column;
	flex: 1;
	padding: 24px 22px 26px;
}
.card__meta {
	display: flex;
	flex-wrap: wrap;
	gap: 4px 16px;
	font-size: 0.8125rem;
	color: var(--text-soft);
	font-variant-numeric: tabular-nums;
}
.card__section {
	font-size: 0.75rem;
	font-weight: 600;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--gold-700);
}
.card__title {
	margin-top: 12px;
	font-family: var(--font-display);
	font-size: clamp(1.3rem, 1.6vw, 1.5rem);
	line-height: 1.22;
	color: var(--ink-800);
	transition: color 0.3s var(--ease-out);
}
.card__excerpt {
	margin: 12px 0 20px;
	font-size: 0.9375rem;
	color: var(--text-soft);
}
.card__more {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	margin-top: auto;
	font-size: 0.75rem;
	font-weight: 600;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--gold-700);
}
.card__more svg {
	width: 16px;
	height: 16px;
	transition: transform 0.4s var(--ease-out);
}
.card__link:hover {
	border-color: var(--stone-300);
	box-shadow: 0 18px 40px -24px rgba(11, 21, 36, 0.35);
}
.card__link:hover .card__media img {
	transform: scale(1.04);
}
.card__link:hover .card__media::after {
	transform: scaleX(1);
}
.card__link:hover .card__title {
	color: var(--gold-700);
}
.card__link:hover .card__more svg {
	transform: translateX(5px);
}
.section--stone .card__link {
	border-color: var(--stone-200);
}

.empty-note {
	padding: 48px 0;
	border-top: 1px solid var(--stone-200);
	border-bottom: 1px solid var(--stone-200);
	color: var(--text-soft);
}

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

.contact-band {
	position: relative;
	overflow: hidden;
	background: var(--ink-900);
	color: var(--on-ink);
}
.contact-band__grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: clamp(40px, 7vw, 112px);
	align-items: start;
}
.contact-band h2 {
	color: #fff;
	max-width: 13ch;
}
.contact-band .t-lead {
	margin-top: 24px;
	color: var(--on-ink-soft);
}
.contact-band__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 14px;
	margin-top: 36px;
}
.offices {
	display: grid;
	gap: 28px;
}
.office {
	padding-top: 24px;
	border-top: 1px solid rgba(217, 190, 152, 0.28);
}
.office__label {
	font-size: 0.75rem;
	font-weight: 600;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--gold-300);
}
.office address {
	margin-top: 8px;
	font-style: normal;
	font-size: 1.1875rem;
	font-weight: 500;
	line-height: 1.4;
	color: #fff;
}
.office a {
	display: inline-block;
	margin-top: 10px;
	font-size: 0.875rem;
	color: var(--on-ink-soft);
}
.office a:hover {
	color: var(--gold-300);
}
.contact-lines {
	display: grid;
	gap: 10px;
	margin: 0;
	padding: 24px 0 0;
	border-top: 1px solid rgba(217, 190, 152, 0.28);
	list-style: none;
}
.contact-lines li {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 2px;
	align-items: baseline;
}
.contact-lines span {
	font-size: 0.75rem;
	font-weight: 600;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--on-ink-soft);
}
.contact-lines a {
	color: #fff;
	text-decoration: none;
	overflow-wrap: break-word;
}
.contact-lines a:hover {
	color: var(--gold-300);
}

/* An office address is itself the link to Google Maps */
.office .maps-link,
.maps-link {
	display: block;
	margin-top: 0;
	font-size: inherit;
	color: inherit;
	text-decoration: none;
}
.maps-link__hint {
	display: flex;
	width: fit-content;
	align-items: center;
	gap: 6px;
	margin-top: 8px;
	font-family: var(--font-text);
	font-size: 0.8125rem;
	font-weight: 400;
	color: var(--on-ink-soft);
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 0.22em;
	transition: color 0.25s var(--ease-out);
}
.maps-link__hint svg {
	width: 14px;
	height: 14px;
	color: var(--gold-500);
}
.maps-link:hover,
.maps-link:hover .maps-link__hint {
	color: var(--gold-300);
}
.site-footer .maps-link__hint {
	margin-top: 4px;
}

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

.site-footer {
	background: var(--ink-950);
	color: var(--on-ink-soft);
	font-size: 0.9375rem;
}
.site-footer__top {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 40px;
	padding-block: 72px 56px;
}
.site-footer h2 {
	margin-bottom: 16px;
	font-family: var(--font-text);
	font-size: 0.75rem;
	font-weight: 600;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--gold-300);
}
.site-footer ul {
	margin: 0;
	padding: 0;
	list-style: none;
}
.site-footer li + li {
	margin-top: 8px;
}
.site-footer a {
	color: var(--on-ink);
	text-decoration: none;
}
.site-footer a:hover {
	color: var(--gold-300);
}
.site-footer address {
	font-style: normal;
}
.site-footer address + address {
	margin-top: 14px;
}
.site-footer__claim {
	margin-top: 18px;
	max-width: 32ch;
}
.site-footer__bottom {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 12px 32px;
	padding-block: 24px;
	border-top: 1px solid rgba(255, 255, 255, 0.08);
	font-size: 0.8125rem;
}
.site-footer__bottom p {
	margin: 0;
}
.site-footer__credit a {
	color: var(--gold-300);
}
.site-footer__credit a:hover {
	color: #fff;
}
.site-footer__bottom ul {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 24px;
}
.site-footer__bottom li + li {
	margin-top: 0;
}

/* --- Inner page header ----------------------------------------------------- */

.page-hero {
	position: relative;
	overflow: hidden;
	padding: calc(var(--header-h) + clamp(56px, 9vw, 120px)) 0 clamp(56px, 7vw, 96px);
	background: var(--ink-800);
	color: var(--on-ink);
}
.page-hero::after {
	/* the Palazzo di Giustizia, quoted at the side of every inner page */
	content: "";
	position: absolute;
	inset: 0 0 0 auto;
	width: 100%;
	background: url("../img/cassazione-hero-1200.webp") no-repeat 70% 100% / cover;
	opacity: 0.14;
	-webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 60%), linear-gradient(180deg, transparent 0%, #000 70%);
	-webkit-mask-composite: source-in;
	mask-image: linear-gradient(90deg, transparent 0%, #000 60%), linear-gradient(180deg, transparent 0%, #000 70%);
	mask-composite: intersect;
	pointer-events: none;
}
.page-hero .wrap {
	position: relative;
	z-index: 1;
}
.page-hero h1 {
	max-width: 20ch;
	color: #fff;
	font-size: clamp(2.25rem, 4.6vw, 4rem);
	letter-spacing: 0.03em;
	text-transform: uppercase;
}
.page-hero .t-lead {
	margin-top: 24px;
	color: #d3d9e2;
}
.breadcrumb {
	margin: 0 0 28px;
	padding: 0;
	list-style: none;
	display: flex;
	flex-wrap: wrap;
	gap: 6px 10px;
	font-size: 0.75rem;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--on-ink-soft);
}
.breadcrumb li + li::before {
	content: "/";
	margin-right: 10px;
	color: var(--gold-500);
}
.breadcrumb a {
	color: var(--on-ink-soft);
	text-decoration: none;
}
.breadcrumb a:hover {
	color: var(--gold-300);
}
.page-hero .rule {
	margin-top: 26px;
}
@media (prefers-reduced-motion: no-preference) {
	.page-hero .rule {
		animation: rule-draw 1.2s var(--ease-out) 0.2s both;
	}
	.page-hero::after {
		/* fades up to its own opacity, never to full strength behind the text */
		animation: fade-from-zero 1.6s var(--ease-out) both;
	}
}
@keyframes fade-from-zero {
	from {
		opacity: 0;
	}
}
@keyframes rule-draw {
	from {
		transform: scaleX(0);
	}
	to {
		transform: scaleX(1);
	}
}

/* --- Prose (page content) -------------------------------------------------- */

.prose {
	max-width: 68ch;
}
.prose > * + * {
	margin-top: 1.1em;
}
.prose p {
	margin-bottom: 0;
}
.prose h2 {
	margin-top: 2em;
	font-size: clamp(1.5rem, 2.2vw, 1.9rem);
	letter-spacing: 0.03em;
	text-transform: uppercase;
}
.prose h3 {
	margin-top: 1.8em;
	font-size: 1.35rem;
}
.prose h2 + *,
.prose h3 + * {
	margin-top: 0.7em;
}
.prose ul,
.prose ol {
	padding-left: 1.2em;
}
.prose li + li {
	margin-top: 0.4em;
}
.prose ul li::marker {
	color: var(--gold-500);
}
.prose blockquote {
	margin: 2em 0;
	padding: 4px 0 4px 28px;
	border-left: 1px solid var(--gold-500);
	font-family: var(--font-read);
	font-size: 1.25rem;
	font-style: italic;
	color: var(--ink-700);
}
.prose strong {
	font-weight: 600;
	color: var(--ink-800);
}
/* Images placed in the text from the editor (Add media): full width on phones,
   left/right alignment only where there is room for text beside them */
.prose img {
	display: block;
	max-width: 100%;
	height: auto;
}
.prose p > img,
.prose > img,
.prose a > img {
	margin-block: 0.4em;
}
.prose .wp-caption,
.prose figure {
	max-width: 100% !important;
	margin: 2em 0;
}
.prose .wp-caption-text,
.prose figcaption {
	margin-top: 10px;
	padding-left: 12px;
	border-left: 1px solid var(--gold-500);
	font-family: var(--font-text);
	font-size: 0.875rem;
	line-height: 1.5;
	color: var(--text-soft);
}
.prose .aligncenter {
	margin-inline: auto;
}
.prose .alignleft,
.prose .alignright {
	margin-block: 0.4em 1em;
}
.prose::after {
	content: "";
	display: table;
	clear: both;
}
@media (min-width: 601px) {
	.prose .alignleft {
		float: left;
		max-width: 46%;
		margin: 0.4em 1.6em 1em 0;
	}
	.prose .alignright {
		float: right;
		max-width: 46%;
		margin: 0.4em 0 1em 1.6em;
	}
}

/* --- Layout with aside ------------------------------------------------------ */

.with-aside {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: clamp(40px, 7vw, 112px);
	align-items: start;
}
.aside-box {
	position: static;
	top: calc(var(--header-h) + 32px);
	padding: 28px 22px;
	background: #fff;
	border: 1px solid var(--stone-200);
}
.aside-box + .aside-box {
	margin-top: 24px;
}
.aside-box h2 {
	font-size: 1.125rem;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	margin-bottom: 16px;
}
.aside-box p {
	color: var(--text-soft);
	font-size: 0.9375rem;
}
.aside-nav {
	margin: 0;
	padding: 0;
	list-style: none;
}
.aside-nav li + li {
	border-top: 1px solid var(--stone-200);
}
.aside-nav a {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 12px;
	padding: 8px 0;
	color: var(--text);
	font-size: 0.9375rem;
	text-decoration: none;
}
.aside-nav a::after {
	content: "";
	width: 6px;
	height: 6px;
	border-top: 1px solid var(--gold-500);
	border-right: 1px solid var(--gold-500);
	transform: rotate(45deg);
	transition: transform 0.4s var(--ease-out);
}
.aside-nav a:hover {
	color: var(--gold-700);
}
.aside-nav a:hover::after {
	transform: translateX(4px) rotate(45deg);
}
.aside-nav .is-current a {
	color: var(--gold-700);
	font-weight: 600;
}
.aside-box--ink {
	background: var(--ink-800);
	border-color: var(--ink-800);
	color: var(--on-ink);
}
.aside-box--ink h2 {
	color: #fff;
}
.aside-box--ink p {
	color: var(--on-ink-soft);
}
.aside-box--ink .btn {
	width: 100%;
	justify-content: center;
}
.aside-box__phone {
	display: block;
	margin: 0 0 20px;
	font-family: var(--font-display);
	font-size: 1.6rem;
	color: #fff;
	text-decoration: none;
}
.aside-box__phone:hover {
	color: var(--gold-300);
}

/* --- Areas index page ------------------------------------------------------ */

.area-index {
	margin: 0;
	padding: 0;
	list-style: none;
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	column-gap: clamp(40px, 6vw, 96px);
	border-top: 1px solid var(--stone-300);
}
.area-index li {
	border-bottom: 1px solid var(--stone-300);
}
.area-index a {
	display: block;
	padding: 34px 0 30px;
	color: inherit;
	text-decoration: none;
}
.area-index h2 {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	gap: 16px;
	font-size: clamp(1.4rem, 2.2vw, 1.85rem);
	letter-spacing: 0.03em;
	text-transform: uppercase;
	transition: color 0.3s var(--ease-out);
}
.area-index h2 svg {
	flex: none;
	width: 20px;
	height: 20px;
	color: var(--gold-500);
	transition: transform 0.5s var(--ease-out);
}
.area-index p {
	margin: 12px 0 0;
	color: var(--text-soft);
	max-width: 52ch;
}
.area-index a:hover h2 {
	color: var(--gold-700);
}
.area-index a:hover h2 svg {
	transform: translateX(6px);
}

/* --- Team ------------------------------------------------------------------ */

.team {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: clamp(32px, 4vw, 56px) clamp(24px, 3vw, 40px);
}
.team--lead {
	grid-template-columns: minmax(0, 1fr);
	gap: clamp(40px, 7vw, 112px);
	align-items: center;
	margin-bottom: var(--section);
}
.member__photo {
	position: relative;
	aspect-ratio: 4 / 5;
	overflow: hidden;
	background: var(--ink-700);
}
.member__photo img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	filter: grayscale(0.15);
	transition: transform 1s var(--ease-out), filter 0.6s var(--ease-out);
}
.member:hover .member__photo img {
	transform: scale(1.03);
	filter: none;
}
.member__monogram {
	position: absolute;
	inset: 0;
	display: grid;
	place-items: center;
	font-family: var(--font-display);
	font-size: clamp(3rem, 6vw, 5rem);
	letter-spacing: 0.06em;
	color: var(--gold-300);
	background:
		linear-gradient(180deg, var(--ink-700), var(--ink-900));
}
.member__monogram::after {
	content: "";
	position: absolute;
	inset: 14px;
	border: 1px solid rgba(217, 190, 152, 0.3);
}
.member__name {
	margin-top: 20px;
	font-size: 1.375rem;
	letter-spacing: 0.02em;
}
.member__role {
	margin-top: 4px;
	font-size: 0.8125rem;
	font-weight: 600;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--gold-700);
}
.member__bio {
	margin-top: 12px;
	color: var(--text-soft);
	font-size: 0.9375rem;
}
.member__bio p:last-child {
	margin-bottom: 0;
}
.member__mail {
	display: inline-block;
	margin-top: 10px;
	font-size: 0.875rem;
}
.team--lead .member__name {
	margin-top: 0;
	font-size: clamp(2rem, 3.4vw, 3rem);
	text-transform: uppercase;
	letter-spacing: 0.03em;
}
.team--lead .member__bio {
	font-size: 1.0625rem;
	margin-top: 24px;
}
.placeholder-tag {
	display: inline-block;
	margin-top: 10px;
	padding: 2px 8px;
	border: 1px dashed var(--stone-300);
	font-size: 0.75rem;
	color: var(--text-soft);
}

/* --- Forms ----------------------------------------------------------------- */

.form {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 26px 24px;
}
.form__field {
	display: flex;
	flex-direction: column;
	gap: 8px;
}
.form__field--full {
	grid-column: 1 / -1;
}
.form label {
	font-size: 0.75rem;
	font-weight: 600;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--ink-700);
}
.form .req {
	color: var(--gold-700);
}
.form input[type="text"],
.form input[type="email"],
.form input[type="tel"],
.form select,
.form textarea {
	width: 100%;
	min-height: 52px;
	padding: 12px 0;
	border: 0;
	border-bottom: 1px solid var(--stone-300);
	border-radius: 0;
	background: transparent;
	color: var(--text);
	font: inherit;
	transition: border-color 0.3s var(--ease-out);
	-webkit-appearance: none;
	appearance: none;
}
.form select {
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%23b48961'%3E%3Cpath d='M1 1l5 5 5-5'/%3E%3C/svg%3E") no-repeat right 4px center;
	padding-right: 28px;
}
.form textarea {
	min-height: 150px;
	resize: vertical;
}
.form input::placeholder,
.form textarea::placeholder {
	color: #6b7484;
}
.form input:focus,
.form select:focus,
.form textarea:focus {
	outline: none;
	border-bottom-color: var(--gold-500);
	box-shadow: 0 1px 0 var(--gold-500);
}
.form [aria-invalid="true"] {
	border-bottom-color: #a33a2f;
}
.form__error {
	font-size: 0.8125rem;
	color: #9b2f25;
}
.form__check {
	display: grid;
	grid-template-columns: 22px minmax(0, 1fr);
	gap: 12px;
	align-items: start;
	font-size: 0.875rem;
	color: var(--text-soft);
}
.form__check label {
	font-size: 0.875rem;
	font-weight: 400;
	letter-spacing: 0;
	text-transform: none;
	color: var(--text-soft);
}
.form__check input {
	width: 20px;
	height: 20px;
	margin: 2px 0 0;
	accent-color: var(--gold-700);
}
.form__hp {
	position: absolute;
	left: -9999px;
}
.form__submit {
	grid-column: 1 / -1;
	display: flex;
	align-items: center;
	gap: 24px;
	flex-wrap: wrap;
}
.form__note {
	font-size: 0.8125rem;
	color: var(--text-soft);
}
.notice {
	grid-column: 1 / -1;
	padding: 18px 22px;
	border: 1px solid var(--stone-300);
	background: #fff;
	font-size: 0.9375rem;
}
.notice--ok {
	border-color: #6f8f6a;
	background: #f1f5ef;
	color: #24401f;
}
.notice--error {
	border-color: #c08a82;
	background: #fbf0ee;
	color: #6d1f17;
}

.contact-grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: clamp(40px, 7vw, 112px);
	align-items: start;
}
.contact-aside {
	padding: 28px 22px;
	background: var(--ink-800);
	color: var(--on-ink);
}
.contact-aside .office:first-child {
	padding-top: 0;
	border-top: 0;
}

/* --- Article archive & single ---------------------------------------------- */

.sections-nav {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin: 0 0 48px;
	padding: 0;
	list-style: none;
}
.sections-nav a {
	display: inline-flex;
	align-items: center;
	min-height: 40px;
	padding: 0 16px;
	border: 1px solid var(--stone-300);
	color: var(--text);
	font-size: 0.8125rem;
	font-weight: 500;
	letter-spacing: 0.06em;
	text-decoration: none;
	transition: background-color 0.3s var(--ease-out), border-color 0.3s var(--ease-out), color 0.3s;
}
.sections-nav a:hover {
	border-color: var(--gold-500);
	color: var(--gold-700);
}
.sections-nav .is-current a {
	background: var(--ink-800);
	border-color: var(--ink-800);
	color: #fff;
}
.sections-nav span {
	margin-left: 8px;
	font-size: 0.75rem;
	color: inherit;
	opacity: 0.7;
	font-variant-numeric: tabular-nums;
}

.pagination {
	display: flex;
	justify-content: center;
	gap: 8px;
	margin-top: 56px;
}
.pagination .page-numbers {
	display: inline-grid;
	place-items: center;
	min-width: 44px;
	height: 44px;
	padding: 0 12px;
	border: 1px solid var(--stone-300);
	color: var(--text);
	text-decoration: none;
	font-variant-numeric: tabular-nums;
}
.pagination .current {
	background: var(--ink-800);
	border-color: var(--ink-800);
	color: #fff;
}

.article-hero {
	position: relative;
	display: flex;
	align-items: flex-end;
	min-height: 64svh;
	padding: calc(var(--header-h) + 48px) 0 40px;
	overflow: hidden;
	background: var(--ink-800);
	color: var(--on-ink);
}
.article-hero__bg {
	position: absolute;
	inset: 0;
	margin: 0;
}
.article-hero__bg img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}
.article-hero__bg::after {
	/* ink veil: dense under the title, lighter towards the top of the photo */
	content: "";
	position: absolute;
	inset: 0;
	background:
		linear-gradient(0deg, rgba(11, 21, 36, 0.94) 0%, rgba(11, 21, 36, 0.78) 38%, rgba(11, 21, 36, 0.4) 70%, rgba(11, 21, 36, 0.75) 100%);
}
.article-hero > .wrap {
	position: relative;
	z-index: 1;
}
.article-hero__inner {
	max-width: 880px;
}
.article-hero h1 {
	color: #fff;
	font-size: clamp(2rem, 4vw, 3.4rem);
	line-height: 1.12;
	letter-spacing: 0.01em;
}
.article-hero__meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px 22px;
	margin-top: 28px;
	font-size: 0.875rem;
	color: var(--on-ink-soft);
}
.article-hero__meta a {
	color: var(--gold-300);
	font-weight: 600;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	font-size: 0.75rem;
	text-decoration: none;
}
/* separators only when the meta fits on one line */
.article-hero__meta span + span::before,
.article-hero__meta a + span::before {
	content: "";
	display: none;
	width: 5px;
	height: 5px;
	margin-right: 22px;
	vertical-align: middle;
	border: 1px solid var(--gold-500);
	transform: rotate(45deg);
}
.article-body {
	padding-block: clamp(56px, 8vw, 104px);
}
.article-body .prose {
	margin-inline: auto;
	font-family: var(--font-read);
	font-size: clamp(1.125rem, 1.25vw, 1.2rem);
	line-height: 1.72;
	color: #1f2735;
}
.article-body .prose h2,
.article-body .prose h3 {
	font-family: var(--font-display);
}
.article-body .prose a {
	color: var(--gold-700);
}
.author-box {
	display: grid;
	grid-template-columns: 64px minmax(0, 1fr);
	gap: 20px;
	align-items: center;
	max-width: 68ch;
	margin: 64px auto 0;
	padding-top: 32px;
	border-top: 1px solid var(--stone-300);
	font-family: var(--font-text);
}
.author-box__mono {
	display: grid;
	place-items: center;
	width: 64px;
	height: 64px;
	background: var(--ink-800);
	color: var(--gold-300);
	font-family: var(--font-display);
	font-size: 1.25rem;
	letter-spacing: 0.04em;
}
.author-box strong {
	display: block;
	font-family: var(--font-display);
	font-size: 1.2rem;
	font-weight: 400;
	color: var(--ink-800);
}
.author-box p {
	margin: 2px 0 0;
	font-size: 0.9375rem;
	color: var(--text-soft);
}

/* --- 404 ------------------------------------------------------------------- */

.not-found {
	min-height: 70vh;
	display: grid;
	align-content: center;
}

/* --- Larger screens (mobile first: the rules above are the phone layout) --- */

@media (min-width: 601px) {
	body {
		font-size: 1.0625rem;
	}
	.wordmark {
		font-size: 1.5rem;
	}
	.form {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
	.team {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
	.cards {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
	.site-footer__top {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
	.contact-aside,
	.areas__panel {
		padding: 40px;
	}
	.aside-box {
		padding: 32px;
	}
	.hero__inner {
		padding-top: calc(var(--header-h) + clamp(40px, 6vh, 80px));
	}
	.hero__lead {
		margin-top: 28px;
		font-size: clamp(1.0625rem, 1.3vw, 1.2rem);
		line-height: 1.6;
	}
	.hero__actions {
		gap: 14px;
		margin-top: 36px;
	}
	.hero__actions .btn {
		flex: 0 0 auto;
		padding: 0 26px;
	}
	.hero__photo img {
		aspect-ratio: 16 / 9;
	}
	.article-hero {
		min-height: 70svh;
		padding-bottom: 64px;
	}
	.article-hero__meta span + span::before,
	.article-hero__meta a + span::before {
		display: inline-block;
	}
	.contact-lines li {
		grid-template-columns: 92px minmax(0, 1fr);
		gap: 12px;
	}
}

@media (min-width: 783px) {
	.admin-bar .site-header {
		top: 32px;
	}
}

@media (min-width: 901px) {
	:root {
		--header-h: 88px;
	}
	.intro {
		grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
	}
	.intro__media {
		aspect-ratio: 4 / 5;
	}
	.areas {
		grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
	}
	.contact-band__grid {
		grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
	}
	.with-aside {
		grid-template-columns: minmax(0, 8fr) minmax(0, 4fr);
	}
	.contact-grid {
		grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
	}
	.team {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
	.cards {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
	.team--lead {
		grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
	}
	.area-index {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
	.with-aside > aside {
		position: sticky;
		top: calc(var(--header-h) + 32px);
	}

	/* the chronology becomes one gold line */
	.chrono {
		grid-template-columns: repeat(4, minmax(0, 1fr));
		gap: 24px;
	}
	.chrono::before {
		display: block;
	}
	.chrono li {
		padding-top: 0;
		border-top: 0;
	}
	.chrono li::before {
		top: -32px;
	}

	/* areas index: the side panel follows the pointer */
	.areas__panel {
		display: block;
	}
	.areas__excerpt {
		display: none;
	}
	.areas__link {
		align-items: center;
	}
	.areas__arrow {
		opacity: 0;
		transform: translateX(-12px);
	}
	.areas__item.is-active .areas__link {
		color: var(--gold-300);
	}
	.areas__link:hover .areas__name,
	.areas__link:focus-visible .areas__name,
	.areas__item.is-active .areas__name {
		transform: translateX(12px);
	}
	.areas__item.is-active .areas__link::after {
		transform: scaleX(1);
	}
	.areas__link:hover .areas__arrow,
	.areas__link:focus-visible .areas__arrow,
	.areas__item.is-active .areas__arrow {
		opacity: 1;
		transform: none;
	}

	/* the photograph tucks under the headline, where its sky has already faded */
	.hero__photo {
		margin-top: -13vw;
	}
	.hero__photo img {
		aspect-ratio: 2.4 / 1;
	}
	.page-hero::after {
		width: 62%;
		opacity: 0.4;
	}
}

@media (min-width: 1101px) {
	.nav-primary {
		display: block;
	}
	.site-header__phone {
		display: inline-flex;
	}
	.site-header__actions .btn {
		display: inline-flex;
	}
	.menu-toggle {
		display: none;
	}
	.site-footer__top {
		grid-template-columns: minmax(0, 4fr) repeat(3, minmax(0, 3fr));
	}
}

@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
		scroll-behavior: auto !important;
	}
}
