/* =========================================================================
   Delmonte International — single stylesheet
   Paper, ink, one signal. Typography is the design.
   ========================================================================= */

@layer reset, base, layout, components, sections, motion;

/* -------------------------------------------------------------------------
   Fonts — self-hosted, swap, metric-adjusted fallbacks to hold CLS near zero
   ---------------------------------------------------------------------- */

@font-face {
	font-family: "Clash Display";
	src: url("../fonts/ClashDisplay-Medium.woff2") format("woff2");
	font-weight: 500;
	font-style: normal;
	font-display: swap;
}

@font-face {
	font-family: "Clash Display";
	src: url("../fonts/ClashDisplay-Semibold.woff2") format("woff2");
	font-weight: 600;
	font-style: normal;
	font-display: swap;
}

@font-face {
	font-family: "Clash Display Fallback";
	src: local("Helvetica Neue"), local("Arial");
	size-adjust: 98%;
	ascent-override: 96%;
	descent-override: 24%;
	line-gap-override: 0%;
}

@font-face {
	font-family: "Archivo";
	src: url("../fonts/Archivo-Variable.woff2") format("woff2");
	font-weight: 400 600;
	font-style: normal;
	font-display: swap;
}

@font-face {
	font-family: "Archivo Fallback";
	src: local("Arial");
	size-adjust: 103%;
	ascent-override: 90%;
	descent-override: 22%;
	line-gap-override: 0%;
}

/* -------------------------------------------------------------------------
   Design tokens
   ---------------------------------------------------------------------- */

:root {
	/* Palette: paper, ink, one signal (see README for the chartreuse swap) */
	--paper: #f4f1ea;
	--ink: #141414;
	--accent: #ff4d00;        /* on ink, and as a surface with ink text */
	--accent-deep: #e04500;   /* accent as text on paper — holds 3:1 at display sizes */

	--ink-soft: color-mix(in srgb, var(--ink) 68%, var(--paper));
	--rule: color-mix(in srgb, var(--ink) 16%, transparent);

	--font-display: "Clash Display", "Clash Display Fallback", "Helvetica Neue", sans-serif;
	--font-body: "Archivo", "Archivo Fallback", "Helvetica Neue", sans-serif;

	--text-hero: clamp(3.25rem, 8.6vw, 8rem);
	--text-h2: clamp(2.25rem, 5vw, 4.25rem);
	--text-lede: clamp(1.625rem, 2.6vw, 2.25rem);
	--text-service: clamp(1.625rem, 3.4vw, 3.125rem);
	--text-contact: clamp(2.75rem, 7vw, 6.25rem);

	--space-section: clamp(6rem, 12vh, 10rem);
	--container-max: 90rem;
	--gutter: clamp(1.25rem, 5vw, 4.5rem);

	--ease: cubic-bezier(0.16, 1, 0.3, 1);
}

/* -------------------------------------------------------------------------
   Reset
   ---------------------------------------------------------------------- */

@layer reset {
	*,
	*::before,
	*::after {
		box-sizing: border-box;
		margin: 0;
	}

	ul,
	ol {
		padding: 0;
		list-style: none;
	}

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

	button,
	input,
	textarea {
		font: inherit;
	}
}

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

@layer base {
	html {
		scroll-padding-top: 5.5rem;
	}

	@media (prefers-reduced-motion: no-preference) {
		html {
			scroll-behavior: smooth;
		}
	}

	body {
		background: var(--paper);
		color: var(--ink);
		font-family: var(--font-body);
		font-size: 1rem;
		line-height: 1.55;
		-webkit-font-smoothing: antialiased;
		text-rendering: optimizeLegibility;
	}

	::selection {
		background: var(--accent);
		color: var(--ink);
	}

	a {
		color: inherit;
	}

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

	.skip-link {
		position: absolute;
		top: -100%;
		left: var(--gutter);
		z-index: 200;
		padding: 0.85rem 1.25rem;
		background: var(--ink);
		color: var(--paper);
		font-size: 0.8125rem;
		text-decoration: none;
	}

	.skip-link:focus {
		top: 0.75rem;
	}
}

/* -------------------------------------------------------------------------
   Layout
   ---------------------------------------------------------------------- */

@layer layout {
	.container {
		width: 100%;
		max-width: var(--container-max);
		margin-inline: auto;
		padding-inline: var(--gutter);
	}

	.section {
		padding-block: var(--space-section);
	}

	.services,
	.approach,
	.about,
	.contact {
		border-top: 1px solid var(--rule);
	}
}

/* -------------------------------------------------------------------------
   Components
   ---------------------------------------------------------------------- */

@layer components {
	.eyebrow {
		display: flex;
		align-items: center;
		gap: 0.75rem;
		font-size: 0.75rem;
		font-weight: 500;
		letter-spacing: 0.09em;
		text-transform: uppercase;
		color: var(--ink-soft);
	}

	.eyebrow::before {
		content: "";
		flex: none;
		width: 0.5rem;
		height: 0.5rem;
		background: var(--accent);
	}

	.section-title {
		margin-top: 1.5rem;
		font-family: var(--font-display);
		font-size: var(--text-h2);
		font-weight: 600;
		line-height: 1.02;
		letter-spacing: -0.02em;
	}

	/* Display words carry a drawn accent underline (wipes in on reveal,
	   via background-size like .site-nav__link; visible by default so it
	   survives no-JS / reduced-motion). */
	.accent-word {
		font-style: normal;
		color: var(--accent-deep);
		padding-bottom: 0.08em;
		background-image: linear-gradient(var(--accent), var(--accent));
		background-repeat: no-repeat;
		background-position: 0 100%;
		background-size: 100% clamp(3px, 0.05em, 7px);
	}

	/* Inline highlighter swipe behind a key phrase. Wraps cleanly across
	   lines (box-decoration-break) and wipes in on reveal. */
	.mark {
		padding: 0 0.08em;
		background-image: linear-gradient(
			color-mix(in srgb, var(--accent) 42%, transparent),
			color-mix(in srgb, var(--accent) 42%, transparent)
		);
		background-repeat: no-repeat;
		background-position: 0 84%;
		background-size: 100% 0.46em;
		-webkit-box-decoration-break: clone;
		box-decoration-break: clone;
	}

	.btn {
		display: inline-block;
		padding: 1.05rem 1.9rem;
		background: var(--accent);
		color: var(--ink);
		border: 0;
		cursor: pointer;
		border-radius: 2px;
		font-weight: 550;
		font-size: 0.8125rem;
		letter-spacing: 0.08em;
		text-transform: uppercase;
		text-decoration: none;
		white-space: nowrap;
		transition: background-color 0.18s ease, color 0.18s ease;
	}

	.btn:hover {
		background: var(--ink);
		color: var(--paper);
	}

	.btn--small {
		padding: 0.65rem 1.15rem;
		font-size: 0.75rem;
	}

	.btn--large {
		padding: 1.25rem 2.4rem;
		font-size: 0.875rem;
	}
}

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

.site-header {
	position: sticky;
	top: 0;
	z-index: 100;
	background: var(--paper);
	border-bottom: 1px solid transparent;
	transition: border-color 0.25s ease;
}

.site-header.is-scrolled {
	border-bottom-color: var(--rule);
}

.site-header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1.5rem;
	padding-block: 1.1rem;
}

.wordmark {
	font-family: var(--font-display);
	font-weight: 600;
	font-size: 1.0625rem;
	letter-spacing: 0.01em;
	text-transform: uppercase;
	text-decoration: none;
	white-space: nowrap;
}

.wordmark__intl {
	font-weight: 500;
	color: var(--ink-soft);
}

.site-nav {
	display: flex;
	align-items: center;
	gap: clamp(1.25rem, 3vw, 2.5rem);
}

.site-nav__link {
	font-size: 0.8125rem;
	font-weight: 500;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	text-decoration: none;
	background-image: linear-gradient(var(--ink), var(--ink));
	background-repeat: no-repeat;
	background-size: 0% 1px;
	background-position: 0 100%;
	padding-bottom: 3px;
	transition: background-size 0.3s var(--ease);
}

.site-nav__link:hover {
	background-size: 100% 1px;
}

/* Hamburger toggle — hidden until the mobile breakpoint, and only shown
   when JS is present to drive it. Three bars fold into a cross when open. */
.nav-toggle {
	display: none;
	position: relative;
	width: 2.75rem;
	height: 2.75rem;
	margin-right: -0.5rem;      /* pull the bars toward the gutter edge */
	padding: 0;
	background: none;
	border: 0;
	color: var(--ink);
	cursor: pointer;
}

.nav-toggle__bars,
.nav-toggle__bars::before,
.nav-toggle__bars::after {
	position: absolute;
	left: 50%;
	width: 1.5rem;
	height: 2px;
	margin-left: -0.75rem;
	background: currentColor;
	transition:
		transform 0.3s var(--ease),
		background-color 0.15s ease;
}

.nav-toggle__bars {
	top: 50%;
	margin-top: -1px;
}

.nav-toggle__bars::before,
.nav-toggle__bars::after {
	content: "";
	top: 0;
}

.nav-toggle__bars::before { transform: translateY(-7px); }
.nav-toggle__bars::after  { transform: translateY(7px); }

/* Open: the middle bar vanishes and the outer bars cross over its centre. */
.nav-toggle[aria-expanded="true"] .nav-toggle__bars {
	background: transparent;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bars::before {
	transform: rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bars::after {
	transform: rotate(-45deg);
}

@media (max-width: 47.9375rem) {
	.wordmark__intl {
		display: none;
	}

	/* No-JS fallback: the section links leave the cramped bar (as before);
	   the wordmark and the CTA button stay reachable. */
	html:not(.js) .site-nav__link {
		display: none;
	}

	/* JS enhancement: the bar shows a hamburger, and the nav becomes a
	   full-viewport sheet that fades down over the page. */
	.js .nav-toggle {
		display: block;
	}

	/* Keep the wordmark and toggle painted above the sheet (z-index 90). */
	.js .wordmark,
	.js .nav-toggle {
		z-index: 91;
	}

	.js .site-nav {
		position: fixed;
		inset: 0;
		z-index: 90;
		flex-direction: column;
		align-items: flex-start;
		justify-content: center;
		gap: 0.4rem;
		padding: 6rem var(--gutter) calc(var(--gutter) + 2rem);
		background: var(--paper);
		opacity: 0;
		visibility: hidden;
		transform: translateY(-0.75rem);
		transition:
			opacity 0.32s var(--ease),
			transform 0.32s var(--ease),
			visibility 0s linear 0.32s;
		overflow-y: auto;
		overscroll-behavior: contain;
	}

	.js .site-nav.is-open {
		opacity: 1;
		visibility: visible;
		transform: none;
		transition:
			opacity 0.32s var(--ease),
			transform 0.32s var(--ease),
			visibility 0s;
	}

	/* Large, stacked editorial links; the underline swipe stays, redrawn
	   at display scale and hidden until hover/focus. */
	.js .site-nav__link {
		font-family: var(--font-display);
		font-size: clamp(2.25rem, 11vw, 3.5rem);
		font-weight: 600;
		line-height: 1.08;
		letter-spacing: -0.01em;
		text-transform: none;
		padding-bottom: 0.06em;
		background-size: 0% 2px;
	}

	.js .site-nav__link:hover,
	.js .site-nav__link:focus-visible {
		background-size: 100% 2px;
	}

	.js .site-nav .btn {
		margin-top: 1.75rem;
		padding: 1.1rem 2rem;
		font-size: 0.875rem;
	}

	/* Stagger the items in as the sheet opens. */
	@media (prefers-reduced-motion: no-preference) {
		.js .site-nav > * {
			opacity: 0;
			transform: translateY(0.75rem);
		}

		.js .site-nav.is-open > * {
			opacity: 1;
			transform: none;
			transition:
				opacity 0.4s var(--ease),
				transform 0.4s var(--ease);
		}

		.js .site-nav.is-open > *:nth-child(1) { transition-delay: 0.08s; }
		.js .site-nav.is-open > *:nth-child(2) { transition-delay: 0.13s; }
		.js .site-nav.is-open > *:nth-child(3) { transition-delay: 0.18s; }
		.js .site-nav.is-open > *:nth-child(4) { transition-delay: 0.23s; }
		.js .site-nav.is-open > *:nth-child(5) { transition-delay: 0.28s; }
	}

	/* Reduced motion: fade only, no slide or stagger. */
	@media (prefers-reduced-motion: reduce) {
		.js .site-nav {
			transform: none;
			transition: opacity 0.2s ease, visibility 0s linear 0.2s;
		}

		.js .site-nav.is-open {
			transition: opacity 0.2s ease, visibility 0s;
		}
	}
}

/* Lock the page behind the open menu sheet. */
html.nav-open,
html.nav-open body {
	overflow: hidden;
}

/* -------------------------------------------------------------------------
   Beat 1 — Hero
   ---------------------------------------------------------------------- */

.hero {
	display: flex;
	flex-direction: column;
	min-height: calc(100svh - 3.6rem); /* header is sticky, not fixed */
}

.hero__inner {
	flex: 1;
	display: flex;
	flex-direction: column;
	justify-content: center;
	padding-block: 3rem;
}

.hero__eyebrow {
	margin-bottom: clamp(1.5rem, 4vh, 3rem);
}

.hero__headline {
	font-family: var(--font-display);
	font-size: var(--text-hero);
	font-weight: 600;
	line-height: 0.95;
	letter-spacing: -0.025em;
}

.hero__line {
	display: block;
}

.hero__foot {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 2rem;
	margin-top: clamp(2.5rem, 6vh, 4.5rem);
}

.hero__sub {
	max-width: 38ch;
	font-size: 1.125rem;
	line-height: 1.5;
	color: var(--ink-soft);
	text-wrap: pretty;
}

/* Hero cursor: brand square follows the pointer (created by JS,
   fine pointers only). Native cursor hides on hero canvas, returns
   over interactive elements. */

.hero.has-cursor {
	cursor: none;
}

.hero.has-cursor a,
.hero.has-cursor button {
	cursor: pointer;
}

.hero-cursor {
	position: fixed;
	top: -0.4375rem;
	left: -0.4375rem;
	width: 0.875rem;
	height: 0.875rem;
	background: var(--accent);
	pointer-events: none;
	z-index: 90;
	transform: scale(0);
	will-change: transform;
}

/* Capabilities strip */

.marquee {
	overflow: hidden;
	border-top: 1px solid var(--rule);
	padding-block: 1.05rem;
}

.marquee__track {
	display: flex;
	width: max-content;
	animation: marquee 40s linear infinite;
}

.marquee:hover .marquee__track {
	animation-play-state: paused;
}

.marquee__list {
	display: flex;
	flex: none;
}

.marquee__list li {
	display: flex;
	align-items: center;
	font-size: 0.75rem;
	font-weight: 500;
	letter-spacing: 0.09em;
	text-transform: uppercase;
	color: var(--ink-soft);
	white-space: nowrap;
}

.marquee__list li::after {
	content: "";
	width: 0.4rem;
	height: 0.4rem;
	margin-inline: 1.75rem;
	background: var(--accent);
}

@keyframes marquee {
	to {
		translate: -50% 0;
	}
}

/* -------------------------------------------------------------------------
   Beat 2 — Positioning
   ---------------------------------------------------------------------- */

.lede {
	margin-top: 2.5rem;
	max-width: 52ch;
	font-family: var(--font-display);
	font-size: var(--text-lede);
	font-weight: 500;
	line-height: 1.25;
	letter-spacing: -0.01em;
	text-wrap: pretty;
}

/* -------------------------------------------------------------------------
   Beat 3 — Services
   ---------------------------------------------------------------------- */

.service-list {
	margin-top: 4rem;
	border-top: 1px solid var(--rule);
}

.service-row {
	display: grid;
	grid-template-columns: 3.5rem minmax(0, 1fr);
	gap: 0.75rem 1rem;
	align-items: first baseline;
	padding-block: 2rem;
	border-bottom: 1px solid var(--rule);
}

.service-row__num {
	grid-row: 1;
	font-size: 0.8125rem;
	font-weight: 500;
	letter-spacing: 0.06em;
	color: var(--ink-soft);
	transition: color 0.25s ease;
}

.service-row__name {
	grid-row: 1;
	font-family: var(--font-display);
	font-size: var(--text-service);
	font-weight: 500;
	line-height: 1;
	letter-spacing: -0.015em;
	transition: translate 0.35s var(--ease);
}

.service-row__desc {
	grid-column: 2;
	max-width: 44ch;
	font-size: 0.9375rem;
	color: var(--ink-soft);
}

@media (min-width: 56.25rem) {
	.service-row {
		grid-template-columns: 5rem minmax(0, 7fr) minmax(0, 5fr);
		gap: 2rem;
		padding-block: 2.5rem;
	}

	.service-row__desc {
		grid-column: 3;
		grid-row: 1;
		align-self: center;
	}
}

.service-row:hover .service-row__name {
	translate: 8px 0;
}

.service-row:hover .service-row__num {
	color: var(--accent-deep);
}

/* -------------------------------------------------------------------------
   Beat 4 — Approach
   ---------------------------------------------------------------------- */

.principles {
	margin-top: 3.5rem;
}

.principle {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 1rem 2rem;
	padding-block: 2.5rem;
}

.principle + .principle {
	border-top: 1px solid var(--rule);
}

@media (min-width: 56.25rem) {
	.principle {
		grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
		padding-block: 3.25rem;
	}
}

.principle__title {
	font-family: var(--font-display);
	font-size: clamp(1.75rem, 3.6vw, 3.125rem);
	font-weight: 500;
	line-height: 1.02;
	letter-spacing: -0.015em;
	max-width: 18ch;
}

.principle__body {
	max-width: 44ch;
	color: var(--ink-soft);
	align-self: center;
}

/* -------------------------------------------------------------------------
   Beat 5 — About
   ---------------------------------------------------------------------- */

.about__copy {
	margin-top: 2rem;
	max-width: 52ch;
	color: var(--ink-soft);
	font-size: 1.0625rem;
	text-wrap: pretty;
}

/* -------------------------------------------------------------------------
   Beat 6 — Contact
   ---------------------------------------------------------------------- */

.contact {
	position: relative;
	overflow: hidden;
	padding-block: calc(var(--space-section) * 1.15) calc(var(--space-section) * 1.35);
}

.contact .container {
	position: relative;
	z-index: 1;
}

.contact__backdrop {
	position: absolute;
	bottom: -0.24em;
	left: 50%;
	translate: -50% 0;
	z-index: 0;
	font-family: var(--font-display);
	font-size: clamp(7rem, 24vw, 22rem);
	font-weight: 600;
	line-height: 1;
	letter-spacing: -0.02em;
	text-transform: uppercase;
	white-space: nowrap;
	color: transparent;
	-webkit-text-stroke: 1px color-mix(in srgb, var(--ink) 14%, transparent);
	pointer-events: none;
	user-select: none;
}

.contact__headline {
	font-family: var(--font-display);
	font-size: var(--text-contact);
	font-weight: 600;
	line-height: 0.98;
	letter-spacing: -0.02em;
}

.contact__sub {
	margin-top: 1.75rem;
	font-size: 1.125rem;
	color: var(--ink-soft);
}

.contact__actions {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 1.5rem 2.5rem;
	margin-top: 2.75rem;
}

.contact__email {
	font-family: var(--font-display);
	font-size: clamp(1.25rem, 2.2vw, 1.75rem);
	font-weight: 500;
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 0.35em;
	transition: color 0.2s ease, text-underline-offset 0.25s var(--ease);
}

.contact__email:hover {
	color: var(--accent-deep);
	text-underline-offset: 0.5em;
}

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

.site-footer {
	border-top: 1px solid var(--rule);
	padding-block: 1.9rem;
}

.site-footer__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 0.75rem 2rem;
	font-size: 0.8125rem;
	color: var(--ink-soft);
}

.site-footer__links {
	display: flex;
	flex-wrap: wrap;
	gap: 1.5rem;
}

.site-footer__links a {
	color: var(--ink);
	text-decoration: none;
}

.site-footer__links a:hover {
	text-decoration: underline;
	text-underline-offset: 0.25em;
}

/* -------------------------------------------------------------------------
   Contact page (/contact/) — form styled on the same rule system
   ---------------------------------------------------------------------- */

.contact-page__grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 4rem;
}

@media (min-width: 56.25rem) {
	.contact-page__grid {
		grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
		gap: clamp(3rem, 6vw, 6rem);
	}
}

.contact-page__copy {
	margin-top: 2rem;
	max-width: 38ch;
	color: var(--ink-soft);
	text-wrap: pretty;
}

.contact-page__alt {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 1.25rem;
	margin-top: 3rem;
	padding-top: 2rem;
	border-top: 1px solid var(--rule);
}

.contact-page__alt-label {
	font-size: 0.75rem;
	font-weight: 500;
	letter-spacing: 0.09em;
	text-transform: uppercase;
	color: var(--ink-soft);
}

.contact-page__email {
	font-family: var(--font-display);
	font-size: 1.25rem;
	font-weight: 500;
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 0.35em;
	transition: color 0.2s ease, text-underline-offset 0.25s var(--ease);
}

.contact-page__email:hover {
	color: var(--accent-deep);
	text-underline-offset: 0.5em;
}

.contact-form {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 1.75rem;
}

@media (min-width: 40rem) {
	.contact-form {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

.field {
	display: flex;
	flex-direction: column;
	gap: 0.6rem;
}

.field--full {
	grid-column: 1 / -1;
}

.field label {
	font-size: 0.75rem;
	font-weight: 500;
	letter-spacing: 0.09em;
	text-transform: uppercase;
	color: var(--ink-soft);
}

.field input,
.field select,
.field textarea {
	width: 100%;
	padding: 0.95rem 1.1rem;
	background: transparent;
	border: 1px solid color-mix(in srgb, var(--ink) 38%, transparent);
	border-radius: 2px;
	color: var(--ink);
	transition: border-color 0.2s ease;
}

.field input:hover,
.field select:hover,
.field textarea:hover {
	border-color: color-mix(in srgb, var(--ink) 65%, transparent);
}

.field input:focus,
.field select:focus,
.field textarea:focus {
	border-color: var(--ink);
}

.field textarea {
	min-height: 9rem;
	resize: vertical;
}

/* Honeypot — off-screen for humans, present for bots */
.contact-form__trap {
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.form-notice {
	grid-column: 1 / -1;
	margin-bottom: 2rem;
	padding: 1.1rem 1.3rem;
	border: 1px solid var(--ink);
	font-size: 0.9375rem;
}

.form-notice--ok {
	border-color: var(--accent-deep);
}

.form-notice a {
	font-weight: 550;
}

/* -------------------------------------------------------------------------
   Insights — index (home.php)
   ---------------------------------------------------------------------- */

.insights__title {
	max-width: 20ch;
}

/* Featured lead post */
.insight-lead {
	display: block;
	margin-top: clamp(2.5rem, 6vh, 4rem);
	padding-top: clamp(2.5rem, 6vh, 4rem);
	border-top: 1px solid var(--rule);
	text-decoration: none;
}

.insight-lead__date {
	display: inline-block;
	font-size: 0.75rem;
	font-weight: 500;
	letter-spacing: 0.09em;
	text-transform: uppercase;
	color: var(--ink-soft);
}

.insight-lead__title {
	margin-top: 1rem;
	max-width: 20ch;
	font-family: var(--font-display);
	font-size: clamp(2.25rem, 5vw, 4rem);
	font-weight: 600;
	line-height: 1.02;
	letter-spacing: -0.02em;
	text-wrap: balance;
	transition: color 0.25s ease;
}

.insight-lead:hover .insight-lead__title {
	color: var(--accent-deep);
}

.insight-lead__excerpt {
	margin-top: 1.5rem;
	max-width: 54ch;
	font-size: 1.125rem;
	color: var(--ink-soft);
	text-wrap: pretty;
}

.insight-lead__cue {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	margin-top: 1.75rem;
	font-size: 0.8125rem;
	font-weight: 550;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	background-image: linear-gradient(var(--accent-deep), var(--accent-deep));
	background-repeat: no-repeat;
	background-position: 0 100%;
	background-size: 0% 1px;
	padding-bottom: 3px;
	transition: background-size 0.3s var(--ease);
}

.insight-lead__cue::after {
	content: "\2192";
	transition: translate 0.25s var(--ease);
}

.insight-lead:hover .insight-lead__cue {
	background-size: 100% 1px;
}

.insight-lead:hover .insight-lead__cue::after {
	translate: 4px 0;
}

/* Ruled list of the rest */
.insight-list {
	margin-top: clamp(2.5rem, 6vh, 4rem);
	border-top: 1px solid var(--rule);
}

.insight-row {
	border-bottom: 1px solid var(--rule);
}

.insight-row__link {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	align-items: baseline;
	gap: 0.4rem 1.5rem;
	padding-block: 1.75rem;
	text-decoration: none;
}

.insight-row__date {
	grid-column: 1;
	grid-row: 1;
	font-size: 0.75rem;
	font-weight: 500;
	letter-spacing: 0.09em;
	text-transform: uppercase;
	color: var(--ink-soft);
}

.insight-row__title {
	grid-column: 1;
	grid-row: 2;
	font-family: var(--font-display);
	font-size: clamp(1.5rem, 3vw, 2.25rem);
	font-weight: 500;
	line-height: 1.05;
	letter-spacing: -0.015em;
	transition: translate 0.35s var(--ease), color 0.25s ease;
}

.insight-row__cue {
	grid-column: 2;
	grid-row: 1 / 3;
	align-self: center;
	color: var(--ink-soft);
	transition: translate 0.35s var(--ease), color 0.25s ease;
}

.insight-row__link:hover .insight-row__title {
	translate: 8px 0;
	color: var(--accent-deep);
}

.insight-row__link:hover .insight-row__cue {
	translate: 6px 0;
	color: var(--accent-deep);
}

@media (min-width: 56.25rem) {
	.insight-row__link {
		grid-template-columns: 10rem minmax(0, 1fr) auto;
		gap: 2rem;
		padding-block: 2rem;
	}

	.insight-row__date {
		grid-column: 1;
		grid-row: 1;
	}

	.insight-row__title {
		grid-column: 2;
		grid-row: 1;
	}

	.insight-row__cue {
		grid-column: 3;
		grid-row: 1;
	}
}

.insights__empty {
	margin-top: 2.5rem;
	font-size: 1.125rem;
	color: var(--ink-soft);
}

/* Pagination */
.pagination {
	margin-top: clamp(3rem, 7vh, 4.5rem);
}

.pagination .nav-links {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.5rem;
}

.pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 2.75rem;
	padding: 0.6rem 0.9rem;
	border: 1px solid var(--rule);
	border-radius: 2px;
	font-size: 0.8125rem;
	font-weight: 500;
	text-decoration: none;
	transition: border-color 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

.pagination a.page-numbers:hover {
	border-color: var(--ink);
}

.pagination .page-numbers.current {
	background: var(--ink);
	color: var(--paper);
	border-color: var(--ink);
}

.pagination .page-numbers.dots {
	border-color: transparent;
	min-width: 0;
	padding-inline: 0.25rem;
}

/* -------------------------------------------------------------------------
   Insights — single post (single.php)
   ---------------------------------------------------------------------- */

.post__head,
.post__foot {
	max-width: 44rem;
}

.post__kicker {
	text-decoration: none;
}

.post__title {
	margin-top: 1.25rem;
	font-family: var(--font-display);
	font-size: clamp(2.5rem, 6vw, 4.5rem);
	font-weight: 600;
	line-height: 1;
	letter-spacing: -0.02em;
	text-wrap: balance;
}

.post__meta {
	margin-top: 1.5rem;
	font-size: 0.8125rem;
	font-weight: 500;
	letter-spacing: 0.09em;
	text-transform: uppercase;
	color: var(--ink-soft);
}

/* Long-form content: block CSS is dequeued, so post bodies are styled here. */
.entry-content {
	margin-top: clamp(2.5rem, 5vh, 3.5rem);
	max-width: 40rem;
	font-size: 1.125rem;
	line-height: 1.7;
	text-wrap: pretty;
}

.entry-content > * + * {
	margin-top: 1.4rem;
}

.entry-content > :first-child {
	margin-top: 0;
}

.entry-content h2 {
	margin-top: 2.8rem;
	font-family: var(--font-display);
	font-size: clamp(1.75rem, 3.4vw, 2.5rem);
	font-weight: 600;
	line-height: 1.1;
	letter-spacing: -0.015em;
}

.entry-content h3 {
	margin-top: 2.2rem;
	font-family: var(--font-display);
	font-size: clamp(1.4rem, 2.6vw, 1.9rem);
	font-weight: 500;
	line-height: 1.15;
	letter-spacing: -0.01em;
}

.entry-content h4 {
	margin-top: 2rem;
	font-size: 1.1875rem;
	font-weight: 600;
}

.entry-content a {
	color: inherit;
	text-decoration: underline;
	text-decoration-color: var(--accent-deep);
	text-decoration-thickness: 1px;
	text-underline-offset: 0.18em;
	transition: color 0.2s ease;
}

.entry-content a:hover {
	color: var(--accent-deep);
}

.entry-content ul,
.entry-content ol {
	padding-left: 1.4em;
}

.entry-content ul {
	list-style: disc;
}

.entry-content ol {
	list-style: decimal;
}

.entry-content li + li {
	margin-top: 0.5rem;
}

.entry-content li::marker {
	color: var(--accent-deep);
}

.entry-content blockquote {
	margin-top: 2rem;
	padding-left: 1.5rem;
	border-left: 2px solid var(--accent);
	font-family: var(--font-display);
	font-size: clamp(1.4rem, 2.4vw, 1.9rem);
	font-weight: 500;
	line-height: 1.25;
	letter-spacing: -0.01em;
}

.entry-content blockquote p + p {
	margin-top: 1rem;
}

.entry-content figure,
.entry-content img {
	margin-top: 2rem;
}

.entry-content figure img {
	margin-top: 0;
	border-radius: 3px;
}

.entry-content figcaption {
	margin-top: 0.6rem;
	font-size: 0.8125rem;
	color: var(--ink-soft);
}

.entry-content hr {
	margin-block: 2.75rem;
	border: 0;
	border-top: 1px solid var(--rule);
}

.entry-content strong,
.entry-content b {
	font-weight: 600;
}

.entry-content code {
	padding: 0.15em 0.4em;
	background: color-mix(in srgb, var(--ink) 8%, transparent);
	border-radius: 3px;
	font-family: ui-monospace, "SF Mono", SFMono-Regular, Menlo, monospace;
	font-size: 0.9em;
}

.entry-content pre {
	margin-top: 1.6rem;
	padding: 1.2rem 1.4rem;
	background: var(--ink);
	color: var(--paper);
	border-radius: 4px;
	overflow-x: auto;
	font-size: 0.9375rem;
	line-height: 1.5;
}

.entry-content pre code {
	padding: 0;
	background: none;
	color: inherit;
}

.post__foot {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 1.5rem;
	margin-top: clamp(3rem, 6vh, 4rem);
	padding-top: 2rem;
	border-top: 1px solid var(--rule);
}

.post__back {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	font-size: 0.8125rem;
	font-weight: 500;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	text-decoration: none;
}

.post__back span {
	transition: translate 0.25s var(--ease);
}

.post__back:hover span {
	translate: -4px 0;
}

.post-nav {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 1rem;
	max-width: 44rem;
	margin-top: 3rem;
}

@media (min-width: 40rem) {
	.post-nav {
		grid-template-columns: 1fr 1fr;
		gap: 1.5rem;
	}
}

.post-nav__link {
	display: flex;
	flex-direction: column;
	gap: 0.45rem;
	padding: 1.5rem;
	border: 1px solid var(--rule);
	border-radius: 2px;
	text-decoration: none;
	transition: border-color 0.2s ease;
}

.post-nav__link:hover {
	border-color: var(--ink);
}

.post-nav__link--next {
	text-align: right;
}

.post-nav__dir {
	font-size: 0.75rem;
	font-weight: 500;
	letter-spacing: 0.09em;
	text-transform: uppercase;
	color: var(--ink-soft);
}

.post-nav__title {
	font-family: var(--font-display);
	font-size: 1.0625rem;
	font-weight: 500;
	line-height: 1.15;
}

/* -------------------------------------------------------------------------
   Fallback template (index.php)
   ---------------------------------------------------------------------- */

.fallback {
	min-height: 60svh;
}

.fallback__title {
	font-family: var(--font-display);
	font-size: var(--text-h2);
	font-weight: 600;
	letter-spacing: -0.02em;
	margin-bottom: 1.5rem;
}

.fallback__content > * + * {
	margin-top: 1rem;
}

/* -------------------------------------------------------------------------
   Motion — scroll reveals gated on .js; hero intro is pure CSS
   ---------------------------------------------------------------------- */

@layer motion {
	@keyframes rise {
		from {
			opacity: 0;
			translate: 0 30px;
		}
	}

	@media (prefers-reduced-motion: no-preference) {
		.hero__eyebrow,
		.hero__line,
		.hero__foot {
			animation: rise 0.8s var(--ease) backwards;
		}

		.hero__eyebrow { animation-delay: 0.05s; }
		.hero__line:nth-child(1) { animation-delay: 0.15s; }
		.hero__line:nth-child(2) { animation-delay: 0.26s; }
		.hero__foot { animation-delay: 0.45s; }

		html.js [data-reveal] {
			opacity: 0;
			translate: 0 28px;
			transition:
				opacity 0.65s var(--ease),
				translate 0.65s var(--ease);
		}

		html.js [data-reveal].is-visible {
			opacity: 1;
			translate: 0 0;
		}

		/* Accent underline draws itself in — as part of the hero intro,
		   and when a revealed block scrolls into view. */
		@keyframes draw-underline {
			from { background-size: 0% clamp(3px, 0.05em, 7px); }
			to   { background-size: 100% clamp(3px, 0.05em, 7px); }
		}

		.hero .accent-word {
			background-size: 0% clamp(3px, 0.05em, 7px);
			animation: draw-underline 0.85s var(--ease) 0.95s forwards;
		}

		html.js [data-reveal] .accent-word {
			background-size: 0% clamp(3px, 0.05em, 7px);
			transition: background-size 0.85s var(--ease) 0.15s;
		}

		html.js [data-reveal].is-visible .accent-word {
			background-size: 100% clamp(3px, 0.05em, 7px);
		}

		/* Highlighter phrases wipe in just after their line reveals. */
		html.js [data-reveal] .mark {
			background-size: 0% 0.46em;
			transition: background-size 0.7s var(--ease) 0.3s;
		}

		html.js [data-reveal].is-visible .mark {
			background-size: 100% 0.46em;
		}
	}

	@media (prefers-reduced-motion: reduce) {
		.marquee__track {
			animation: none;
			width: auto;
			flex-wrap: wrap;
		}

		.marquee__list:last-child {
			display: none;
		}
	}
}
