/* ==========================================================================
   Daniel Devine — main stylesheet
   Dark, urban, photography-led. Graphite base, cool-blue + muted-amber accents,
   subtle glassmorphism. Organised in sections; see the table below.

   1.  Fonts
   2.  Design tokens (:root)
   3.  Reset & base
   4.  Typography
   5.  Utilities & shared components (glass, buttons, links, layout shells)
   6.  Header / navigation
   7.  Hero carousel
   8.  Homepage cards & latest panel
   9.  Cards, tiles & grids
   10. Filter chips
   11. Blog layout & sidebar
   12. Article / entry content (block editor)
   13. Project single (hero, details, nav)
   14. About page
   15. Contact page
   16. Footer
   17. 404, search, pagination
   18. Forms
   19. Responsive
   20. Reduced motion / print
   ========================================================================== */

/* 1. Fonts ----------------------------------------------------------------- *
 * Self-hosted for performance & privacy. Drop the .woff2 files into
 * assets/fonts/ (see README). Until then, the system fallback stack is used. */
@font-face {
	font-family: 'Space Grotesk';
	src: url('../fonts/SpaceGrotesk-Medium.woff2') format('woff2');
	font-weight: 500;
	font-style: normal;
	font-display: swap;
}
@font-face {
	font-family: 'Space Grotesk';
	src: url('../fonts/SpaceGrotesk-SemiBold.woff2') format('woff2');
	font-weight: 600;
	font-style: normal;
	font-display: swap;
}
@font-face {
	font-family: 'Space Grotesk';
	src: url('../fonts/SpaceGrotesk-Bold.woff2') format('woff2');
	font-weight: 700;
	font-style: normal;
	font-display: swap;
}
@font-face {
	font-family: 'Inter';
	src: url('../fonts/Inter-Regular.woff2') format('woff2');
	font-weight: 400;
	font-style: normal;
	font-display: swap;
}
@font-face {
	font-family: 'Inter';
	src: url('../fonts/Inter-Medium.woff2') format('woff2');
	font-weight: 500;
	font-style: normal;
	font-display: swap;
}
@font-face {
	font-family: 'Inter';
	src: url('../fonts/Inter-SemiBold.woff2') format('woff2');
	font-weight: 600;
	font-style: normal;
	font-display: swap;
}

/* 2. Design tokens --------------------------------------------------------- */
:root {
	--bg: #070A0F;
	--bg-2: #0B1017;
	--panel: rgba(12, 18, 26, 0.62);
	--panel-strong: rgba(10, 15, 22, 0.78);
	--panel-solid: #0c1119;          /* opaque fallback for no-backdrop-filter */
	--border: rgba(160, 180, 210, 0.16);
	--border-hover: rgba(77, 145, 255, 0.45);
	--text: #F4F7FA;
	--text-2: #AAB4C0;
	--muted: #6F7B89;
	--nav-current: #DCE3EB; /* current-page nav text: brighter than rest, dimmer than hover */
	--blue: #3D8BFF;
	--blue-strong: #2F7BFF;
	--amber: #D59A5B;
	--line: rgba(255, 255, 255, 0.08);

	--font-head: 'Space Grotesk', 'Manrope', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
	--font-body: 'Inter', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;

	--maxw: 1400px;
	--content: 800px;   /* article reading width */
	--wide: 1100px;     /* wide alignment width */
	--radius: 14px;
	--radius-sm: 10px;
	--gutter: clamp(1.1rem, 4vw, 2.5rem);
	--shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
	--shadow-sm: 0 8px 24px rgba(0, 0, 0, 0.35);
	--ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* 3. Reset & base ---------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scrollbar-gutter: stable; background: var(--bg); } /* stable gutter prevents header shift between pages; dark bg prevents the white flash between page loads */

body {
	margin: 0;
	background: var(--bg);
	color: var(--text);
	font: 400 1rem/1.65 var(--font-body);
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
	overflow-x: clip; /* guards full-bleed alignfull from causing scroll, without breaking position:sticky */
}

img, picture, svg, video { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--blue-strong); text-decoration: none; } /* no hover underline on UI links; article links re-enable it in .entry-content */

button { font: inherit; cursor: pointer; }

:focus-visible {
	outline: 2px solid var(--blue);
	outline-offset: 3px;
	border-radius: 3px;
}

/* Cross-page fade. The content (.site-main) fades in on load and fades out just
   before navigating away (see main.js). The header/nav is intentionally NOT
   faded so it stays steady between pages. This is pure opacity over the dark
   background, so it can never flash white, and it works in any Chrome/Safari,
   desktop and mobile. Reduced-motion users get no animation. */
@keyframes dd-page-in { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: no-preference) {
	.site-main { animation: dd-page-in 0.45s ease both; }
	body.is-leaving .site-main { animation: none; opacity: 0; transition: opacity 0.22s ease; }
}

/* 4. Typography ------------------------------------------------------------ */
h1, h2, h3, h4, h5, h6 {
	font-family: var(--font-head);
	font-weight: 600;
	line-height: 1.18;
	color: var(--text);
	margin: 0 0 0.6em;
	letter-spacing: -0.01em;
}
p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

.page-title {
	font-size: clamp(2.2rem, 1.5rem + 2.8vw, 3.4rem);
	letter-spacing: -0.02em;
}
.section-title {
	font-size: clamp(1.3rem, 1.1rem + 0.8vw, 1.7rem);
	margin: 0 0 1.2rem;
}
.section-title--lead { margin-bottom: 1.6rem; }

.eyebrow {
	font-family: var(--font-head);
	text-transform: uppercase;
	letter-spacing: 0.18em;
	font-size: 0.72rem;
	font-weight: 600;
	color: var(--text-2);
	margin: 0 0 0.9rem;
}
.page-intro {
	color: var(--text-2);
	font-size: 1.05rem;
	max-width: 60ch;
	margin: 0.4rem 0 0;
}

/* 5. Utilities & shared components ---------------------------------------- */
.screen-reader-text {
	position: absolute !important;
	width: 1px; height: 1px;
	padding: 0; margin: -1px;
	overflow: hidden; clip: rect(0, 0, 0, 0);
	white-space: nowrap; border: 0;
}
.skip-link {
	position: absolute;
	left: -9999px;
	top: 0;
	z-index: 1000;
	background: var(--blue);
	color: #fff;
	padding: 0.7rem 1.1rem;
	border-radius: 0 0 8px 0;
	font-size: 0.9rem;
}
.skip-link:focus {
	left: 0;
	color: #fff;
}

.section-shell {
	max-width: var(--maxw);
	margin-inline: auto;
	padding-inline: var(--gutter);
}
.content-narrow { max-width: var(--content); margin-inline: auto; }
.content-wide { max-width: var(--wide); margin-inline: auto; }

/* Glass */
.glass-panel,
.glass-card,
.glass-nav {
	background: var(--panel);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	-webkit-backdrop-filter: blur(14px) saturate(125%);
	backdrop-filter: blur(14px) saturate(125%);
}
.glass-panel { box-shadow: var(--shadow); padding: clamp(1.3rem, 3vw, 2.2rem); }
.glass-panel--strong { background: var(--panel-strong); }
.glass-card { box-shadow: var(--shadow-sm); transition: transform 0.35s var(--ease), border-color 0.35s var(--ease), box-shadow 0.35s var(--ease); }
@supports not ((-webkit-backdrop-filter: blur(2px)) or (backdrop-filter: blur(2px))) {
	.glass-panel, .glass-card, .glass-nav { background: var(--panel-solid); }
	.glass-panel--strong { background: #0a0f16; }
}

/* Frosted / liquid-glass rim: a 1px gradient border (brighter at the top edge,
   a faint blue at the lower edge) drawn with the mask-composite border trick.
   Works in Chrome and Safari (-webkit-mask-composite + mask-composite). */
.glass-panel, .glass-card { position: relative; }
.glass-panel::after, .glass-card::after {
	content: "";
	position: absolute;
	inset: 0;
	border-radius: inherit;
	padding: 1px;
	pointer-events: none;
	background: linear-gradient(150deg, rgba(255, 255, 255, 0.30), rgba(255, 255, 255, 0.05) 30%, rgba(255, 255, 255, 0) 55%, rgba(120, 170, 255, 0.14));
	-webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
	-webkit-mask-composite: xor;
	        mask-composite: exclude;
	transition: background 0.35s var(--ease);
}
.glass-card:hover::after {
	background: linear-gradient(150deg, rgba(255, 255, 255, 0.40), rgba(255, 255, 255, 0.06) 30%, rgba(120, 170, 255, 0.06) 55%, rgba(120, 170, 255, 0.20));
}

.accent-line { display: flex; align-items: center; }
.accent-line::before {
	content: "";
	width: 26px; height: 2px;
	margin-right: 0.7em;
	background: var(--blue);
	border-radius: 2px;
	flex: none;
}

.blue-link {
	color: var(--blue);
	font-weight: 500;
	display: inline-flex;
	align-items: center;
	gap: 0.4em;
}
.blue-link:hover { color: var(--blue-strong); }
.blue-link .icon { transition: transform 0.25s var(--ease); }
.blue-link:hover .icon { transform: translateX(3px); }

.media-fade { position: relative; overflow: hidden; display: block; }
.media-fade img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease); }
.media-placeholder {
	display: block;
	width: 100%;
	height: 100%;
	min-height: 180px;
	background:
		radial-gradient(120% 120% at 20% 0%, rgba(61, 139, 255, 0.12), transparent 55%),
		linear-gradient(135deg, #0e1620, #070a0f);
}
.media-placeholder--portrait { aspect-ratio: 4 / 5; min-height: 0; border-radius: var(--radius); }

/* Buttons */
.btn {
	display: inline-flex;
	align-items: center;
	gap: 0.5em;
	font-family: var(--font-head);
	font-weight: 600;
	font-size: 0.9rem;
	letter-spacing: 0.01em;
	padding: 0.7rem 1.25rem;
	border-radius: 999px;
	border: 1px solid transparent;
	transition: transform 0.2s var(--ease), background 0.25s var(--ease), border-color 0.25s var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--blue-strong); color: #fff; box-shadow: 0 6px 22px rgba(47, 123, 255, 0.35); }
.btn--primary:hover { background: var(--blue); color: #fff; }
.btn--ghost { background: rgba(255, 255, 255, 0.04); border-color: var(--border); color: var(--text); }
.btn--ghost:hover { border-color: var(--border-hover); color: var(--text); }

.entry-meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.5rem 0.9rem;
	font-size: 0.78rem;
	color: var(--muted);
	margin-bottom: 0.6rem;
}
.entry-meta .icon { vertical-align: -2px; }
.entry-cat {
	color: var(--blue);
	text-transform: uppercase;
	letter-spacing: 0.08em;
	font-weight: 600;
	font-size: 0.72rem;
}
.entry-date, .entry-readtime { display: inline-flex; align-items: center; gap: 0.35em; }

/* 6. Header / navigation --------------------------------------------------- */
.site-header { z-index: 200; position: relative; }
.site-header--solid {
	position: sticky;
	top: 0;
	background: var(--panel-strong);
	border-bottom: 1px solid var(--line);
}
.site-header--solid::after { /* faint bottom highlight line */
	content: "";
	position: absolute;
	left: 0; right: 0; bottom: -1px;
	height: 1px;
	background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.14), transparent);
}
.site-header--overlay {
	position: fixed;
	top: 0; left: 0; right: 0;
	background: transparent;
	border: 0;
	-webkit-backdrop-filter: none;
	backdrop-filter: none;
	transition: background 0.3s var(--ease), border-color 0.3s var(--ease), -webkit-backdrop-filter 0.3s var(--ease), backdrop-filter 0.3s var(--ease);
}
/* Once the homepage is scrolled, the fixed overlay nav gains a solid glass
   background so it stays legible over page content. */
.site-header--overlay.is-scrolled {
	background: var(--panel-strong);
	border-bottom: 1px solid var(--line);
	-webkit-backdrop-filter: blur(14px) saturate(125%);
	backdrop-filter: blur(14px) saturate(125%);
}
.site-header__inner {
	max-width: var(--maxw);
	margin-inline: auto;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	padding: 0.85rem var(--gutter);
}

.brand { display: inline-flex; align-items: center; }
.brand__name {
	font-family: var(--font-head);
	text-transform: uppercase;
	letter-spacing: 0.24em;
	font-weight: 600;
	font-size: 1.35rem;
	color: var(--text);
	white-space: nowrap;
}
.site-header--overlay .brand__name { text-shadow: 0 1px 18px rgba(0, 0, 0, 0.55); }

.primary-nav .nav-menu {
	display: flex;
	align-items: center;
	gap: clamp(1.1rem, 2.4vw, 2.1rem);
	list-style: none;
	margin: 0; padding: 0;
}
.nav-menu a {
	position: relative;
	display: inline-block;
	font-size: 0.9rem;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	font-weight: 500;
	color: var(--text-2);
	padding: 0.45rem 0;
}
.nav-menu a:hover { color: var(--text); }
.site-header--overlay .nav-menu a { color: rgba(244, 247, 250, 0.82); text-shadow: 0 1px 14px rgba(0, 0, 0, 0.5); }
.site-header--overlay .nav-menu a:hover { color: #fff; }

/* Current page: brighter text than the rest (no underline). Hover is brighter
   still. aria-current still marks it for assistive tech / non-colour cue. */
.nav-menu .current-menu-item > a,
.nav-menu .current_page_item > a,
.nav-menu a[aria-current] { color: var(--nav-current); }
.nav-menu .current-menu-item > a:hover,
.nav-menu .current_page_item > a:hover,
.nav-menu a[aria-current]:hover { color: var(--text); }

.nav-toggle {
	display: none;
	align-items: center;
	justify-content: center;
	width: 44px; height: 44px;
	background: transparent;
	border: 1px solid var(--border);
	border-radius: 10px;
	color: var(--text);
}
.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-menu { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }

/* Glassy reflections under the wordmark + nav links via -webkit-box-reflect.
   It reflects the actual rendered text below the element and fades it with a
   gradient mask. NOTE: box-reflect applies the mask in the element's own space
   and THEN mirrors it, so the gradient reads reversed — `transparent -> opaque`
   ends up strongest *nearest the text* and fading away below. line-height:1
   removes the empty space the inherited line-height would otherwise leave
   between the text and its reflection. Validated in Chromium/WebKit; Firefox
   doesn't support box-reflect and simply shows no reflection (text unaffected).
   The nav offset is negative to pull the mirror up past the link's padding. */
.brand__name {
	display: inline-block;
	line-height: 1;
	-webkit-box-reflect: below -2px linear-gradient(transparent 55%, rgba(255, 255, 255, 0.16));
}
.primary-nav .nav-menu a {
	line-height: 1;
	-webkit-box-reflect: below -0.9rem linear-gradient(transparent 45%, rgba(255, 255, 255, 0.20));
}
@media (max-width: 900px) {
	.primary-nav .nav-menu a { -webkit-box-reflect: none; } /* no reflections in the stacked mobile menu */
}

/* 7. Hero carousel --------------------------------------------------------- */
.hero {
	position: relative;
	min-height: 84svh; /* a little under full height so content below peeks into view */
	overflow: hidden;
	background: var(--bg);
}
.hero__slides { position: absolute; inset: 0; }
.hero__slide {
	position: absolute;
	inset: 0;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.9s var(--ease), visibility 0s linear 0.9s;
	display: flex;
}
.hero__slide.is-active {
	opacity: 1;
	visibility: visible;
	transition: opacity 0.9s var(--ease);
}
.hero__media { position: absolute; inset: 0; }
.hero__media img,
.hero__img { width: 100%; height: 100%; object-fit: cover; }

.hero__overlay {
	position: absolute;
	inset: 0;
	z-index: 1;
	pointer-events: none;
	background:
		linear-gradient(90deg, rgba(5, 8, 13, 0.86) 0%, rgba(5, 8, 13, 0.45) 38%, rgba(5, 8, 13, 0.05) 70%),
		linear-gradient(180deg, rgba(5, 8, 13, 0.55) 0%, transparent 26%),
		radial-gradient(140% 120% at 50% 35%, transparent 55%, rgba(5, 8, 13, 0.55) 100%); /* vignette */
}
.hero__fade {
	position: absolute;
	left: 0; right: 0; bottom: 0;
	height: 42%;
	z-index: 1;
	pointer-events: none;
	background: linear-gradient(180deg, transparent 0%, rgba(7, 10, 15, 0.7) 55%, var(--bg) 100%);
}

.hero__inner {
	position: relative;
	z-index: 2;
	width: 100%;
	max-width: var(--maxw);
	margin-inline: auto;
	padding: 0 var(--gutter) clamp(11rem, 22vh, 15rem);
	display: flex;
	align-items: flex-end;
}
.hero__content { max-width: 640px; }
.hero__eyebrow {
	font-family: var(--font-head);
	text-transform: uppercase;
	letter-spacing: 0.18em;
	font-size: 0.78rem;
	font-weight: 600;
	color: rgba(244, 247, 250, 0.85);
	margin: 0 0 1rem;
}
.hero__headline {
	font-size: clamp(2rem, 1.3rem + 3.2vw, 3.4rem);
	line-height: 1.08;
	letter-spacing: -0.02em;
	margin: 0 0 1rem;
	text-shadow: 0 2px 30px rgba(0, 0, 0, 0.5);
}
.hero__sub {
	font-size: 1.05rem;
	color: rgba(228, 234, 241, 0.9);
	max-width: 48ch;
	margin: 0 0 1.6rem;
	text-shadow: 0 1px 18px rgba(0, 0, 0, 0.5);
}
.hero__cta { display: flex; flex-wrap: wrap; gap: 0.8rem; }

.hero__controls {
	position: absolute;
	z-index: 3;
	left: 0; right: 0;
	bottom: clamp(7rem, 14vh, 10rem);
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 1rem;
	pointer-events: none;
}
.hero__controls > * { pointer-events: auto; }
.hero__dots { display: flex; align-items: center; gap: 0.55rem; }
.hero__dot {
	width: 9px; height: 9px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.32);
	transition: background 0.25s var(--ease), transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.hero__dot:hover { background: rgba(255, 255, 255, 0.6); }
.hero__dot.is-active {
	background: var(--blue);
	transform: scale(1.25);
	box-shadow: 0 0 12px rgba(61, 139, 255, 0.6);
}
.hero__arrow {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 38px; height: 38px;
	border-radius: 50%;
	background: rgba(10, 15, 22, 0.5);
	border: 1px solid var(--border);
	color: rgba(255, 255, 255, 0.85);
	-webkit-backdrop-filter: blur(8px);
	backdrop-filter: blur(8px);
	transition: border-color 0.25s var(--ease), background 0.25s var(--ease);
}
.hero__arrow:hover { border-color: var(--border-hover); background: rgba(10, 15, 22, 0.72); }

/* 8. Homepage cards & latest panel ---------------------------------------- */
.home-cards {
	position: relative;
	z-index: 3;
	margin-top: clamp(-5rem, -7vh, -3.5rem); /* gently overlap the hero fade, clear of the dots */
	padding-bottom: clamp(2rem, 5vw, 4rem);
}
.cards-grid { display: grid; gap: clamp(0.9rem, 1.6vw, 1.4rem); }
.cards-grid--4 { grid-template-columns: repeat(4, 1fr); }
.cards-grid--3 { grid-template-columns: repeat(3, 1fr); }

.nav-card {
	display: flex;
	flex-direction: column;
	padding: 1.4rem 1.4rem 1.3rem;
	color: var(--text);
	min-height: 180px;
}
.nav-card:hover {
	transform: translateY(-2px);
	border-color: rgba(160, 180, 210, 0.26);
	box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
	color: var(--text);
}
.nav-card__icon {
	display: inline-flex;
	width: 42px; height: 42px;
	align-items: center; justify-content: center;
	border-radius: 11px;
	background: rgba(61, 139, 255, 0.12);
	color: var(--blue);
	margin-bottom: 1rem;
}
.nav-card__title { font-size: 1.15rem; margin: 0 0 0.4rem; }
.nav-card__desc { font-size: 0.9rem; color: var(--text-2); margin: 0 0 1.1rem; line-height: 1.55; }
.nav-card__link {
	margin-top: auto;
	font-size: 0.82rem;
	font-weight: 600;
	color: var(--blue);
	display: inline-flex;
	align-items: center;
	gap: 0.4em;
	text-transform: uppercase;
	letter-spacing: 0.05em;
}
.nav-card:hover .nav-card__link .icon { transform: translateX(3px); }
.nav-card__link .icon { transition: transform 0.25s var(--ease); }

.home-latest { padding-block: clamp(2rem, 5vw, 4rem); }
.home-latest__head {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 1rem;
	flex-wrap: wrap;
	margin-bottom: 1.3rem;
}
.home-latest__head .section-title { margin: 0; }
.home-latest__body { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(1.2rem, 3vw, 2.2rem); align-items: center; }
.home-latest__media { border-radius: var(--radius-sm); aspect-ratio: 16 / 10; }
.home-latest__media:hover img { transform: scale(1.03); }
.home-latest__title { font-size: 1.5rem; margin: 0.3rem 0 0.7rem; }
.home-latest__title a { color: var(--text); }
.home-latest__title a:hover { color: var(--blue); }
.home-latest__text p { color: var(--text-2); }

/* 9. Cards, tiles & grids -------------------------------------------------- */
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1rem, 2vw, 1.6rem); }
.post-grid--3 { grid-template-columns: repeat(3, 1fr); }
.tile-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1rem, 2vw, 1.6rem); }

.card-post, .card-project, .tile-personal {
	display: flex;
	flex-direction: column;
	overflow: hidden;
	color: var(--text);
}
.card-post__media, .card-project__media, .tile-personal__media {
	aspect-ratio: 16 / 10;
	border-radius: var(--radius) var(--radius) 0 0;
}
.card-post:hover, .card-project:hover, .tile-personal:hover {
	transform: translateY(-2px);
	border-color: rgba(160, 180, 210, 0.26);
}
.card-post:hover .card-post__media img,
.card-project:hover .card-project__media img,
.tile-personal:hover .tile-personal__media img { transform: scale(1.04); }

.card-post__body, .card-project__body, .tile-personal__body { padding: 1.15rem 1.25rem 1.3rem; display: flex; flex-direction: column; flex: 1; }
.card-post__title, .card-project__title, .tile-personal__title { font-size: 1.12rem; line-height: 1.25; margin: 0 0 0.5rem; }
.card-post__title a, .card-project__title a, .tile-personal__title a { color: var(--text); }
.card-post__title a:hover, .card-project__title a:hover, .tile-personal__title a:hover { color: var(--blue); }
.card-post__excerpt, .card-project__excerpt, .tile-personal__excerpt { font-size: 0.9rem; color: var(--text-2); line-height: 1.55; margin: 0 0 1rem; }
.read-more { margin-top: auto; font-size: 0.82rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; }

/* Featured (lead) post card spans the grid and goes horizontal */
.card-post--featured { grid-column: 1 / -1; flex-direction: row; }
.card-post--featured .card-post__media { aspect-ratio: auto; border-radius: var(--radius) 0 0 var(--radius); flex: 1 1 52%; min-height: 320px; }
.card-post--featured .card-post__body { flex: 1 1 48%; justify-content: center; padding: clamp(1.4rem, 3vw, 2.4rem); }
.card-post--featured .card-post__title { font-size: clamp(1.4rem, 1.1rem + 1vw, 2rem); }
.card-post--featured .card-post__excerpt { font-size: 1rem; }

/* Personal tile extras */
.tile-personal__media { position: relative; }
.tile-personal__count {
	position: absolute;
	left: 0.8rem; bottom: 0.8rem;
	display: inline-flex;
	align-items: center;
	gap: 0.35em;
	font-size: 0.72rem;
	font-weight: 600;
	color: #fff;
	padding: 0.3rem 0.6rem;
	border-radius: 999px;
	background: rgba(7, 10, 15, 0.6);
	-webkit-backdrop-filter: blur(6px);
	backdrop-filter: blur(6px);
}
.tile-personal__loc { display: inline-flex; align-items: center; gap: 0.3em; }

/* 10. Filter chips --------------------------------------------------------- */
.filter-bar { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1.5rem; }
.filter-chip {
	font-size: 0.78rem;
	font-weight: 500;
	color: var(--text-2);
	padding: 0.42rem 0.85rem;
	border: 1px solid var(--border);
	border-radius: 999px;
	transition: border-color 0.2s var(--ease), color 0.2s var(--ease), background 0.2s var(--ease);
}
.filter-chip:hover { color: var(--text); border-color: var(--border-hover); }
.filter-chip.is-active { background: rgba(61, 139, 255, 0.14); color: var(--blue); border-color: var(--border-hover); }

/* 11. Blog layout & sidebar ------------------------------------------------ */
.page-head { padding-top: clamp(3rem, 6vw, 5rem); padding-bottom: clamp(1.4rem, 3vw, 2.2rem); }
.page-head .eyebrow { display: inline-flex; }

.blog-layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 320px;
	gap: clamp(1.6rem, 4vw, 3rem);
	padding-bottom: clamp(3rem, 6vw, 5rem);
	align-items: start;
}
.blog-main { display: grid; gap: clamp(1.2rem, 2.5vw, 2rem); }
.blog-main .post-grid { display: contents; } /* lead + cards flow in the column */

.blog-sidebar { display: grid; gap: 1.2rem; position: sticky; top: 90px; }
.widget { padding: 1.3rem 1.4rem; }
.widget__title { font-size: 0.95rem; text-transform: uppercase; letter-spacing: 0.08em; margin: 0 0 0.9rem; color: var(--text); }
.widget-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.55rem; }
.widget-list li { font-size: 0.9rem; }
.widget-list a { color: var(--text-2); }
.widget-list a:hover { color: var(--blue); }
.widget-list--posts li { display: flex; flex-direction: column; gap: 0.15rem; padding-bottom: 0.55rem; border-bottom: 1px solid var(--line); }
.widget-list--posts li:last-child { border-bottom: 0; padding-bottom: 0; }
.widget-list__date { font-size: 0.72rem; color: var(--muted); }
.widget__note, .widget__hint { font-size: 0.85rem; color: var(--text-2); }
.widget__hint { color: var(--muted); font-size: 0.72rem; }
.newsletter-form { display: flex; gap: 0.5rem; margin: 0.7rem 0 0.5rem; }
.newsletter-form input { flex: 1; min-width: 0; }

/* 12. Article / entry content --------------------------------------------- */
.post-single { max-width: var(--wide); margin-inline: auto; padding: clamp(2.6rem, 6vw, 4.2rem) var(--gutter) 0; }
.post-single__header { padding-bottom: 1.4rem; }
.entry-meta--lead { font-size: 0.82rem; }
.post-single__title { font-size: clamp(1.9rem, 1.3rem + 2.6vw, 3rem); letter-spacing: -0.02em; }
.post-single__feature { margin: 0.4rem auto 2.2rem; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.post-single__feature img { width: 100%; }

.entry-content { font-size: 1.0625rem; line-height: 1.75; color: #E7ECF2; max-width: var(--content); margin-inline: auto; }
.entry-content > * { margin-block: 0 1.3em; }
.entry-content h2 { font-size: 1.7rem; margin-top: 1.8em; }
.entry-content h3 { font-size: 1.32rem; margin-top: 1.5em; }
.entry-content h4 { font-size: 1.12rem; margin-top: 1.4em; }
.entry-content a { color: var(--blue); text-decoration: underline; text-underline-offset: 0.18em; text-decoration-thickness: 1px; text-decoration-color: rgba(61, 139, 255, 0.45); }
.entry-content a:hover { text-decoration: underline; text-decoration-color: var(--blue); }
.entry-content ul, .entry-content ol { padding-left: 1.4em; }
.entry-content li { margin-bottom: 0.4em; }
.entry-content strong { color: var(--text); }

/* Wide / full alignment (centred relative to the viewport) */
.entry-content > .alignwide,
.entry-content > .alignfull { margin-left: 50%; transform: translateX(-50%); max-width: none; }
.entry-content > .alignwide { width: min(var(--wide), calc(100vw - 2 * var(--gutter))); }
.entry-content > .alignfull { width: 100vw; }
.alignleft { float: left; margin: 0.4em 1.6em 1.2em 0; max-width: 45%; }
.alignright { float: right; margin: 0.4em 0 1.2em 1.6em; max-width: 45%; }
.aligncenter { margin-inline: auto; }

/* Images & figures */
.entry-content img { border-radius: var(--radius-sm); }
.wp-block-image { margin-block: 1.6em; }
.wp-block-image img { box-shadow: var(--shadow-sm); border: 1px solid var(--border); border-radius: var(--radius-sm); }
.wp-element-caption,
figcaption {
	font-size: 0.84rem;
	color: var(--muted);
	text-align: center;
	margin-top: 0.6em;
	line-height: 1.5;
}

/* Galleries */
.wp-block-gallery { margin-block: 1.8em; }
.wp-block-gallery img { border-radius: var(--radius-sm); border: 1px solid var(--border); }

/* Quotes */
.wp-block-quote {
	border-left: 3px solid var(--blue);
	margin: 1.8em 0;
	padding: 0.2em 0 0.2em 1.4em;
	font-size: 1.15rem;
	color: var(--text);
	font-style: normal;
}
.wp-block-quote cite { display: block; margin-top: 0.6em; font-size: 0.85rem; color: var(--muted); font-style: normal; }
.wp-block-pullquote {
	border-top: 1px solid var(--border);
	border-bottom: 1px solid var(--border);
	padding: 1.6em 0;
	margin: 2em 0;
	text-align: center;
}
.wp-block-pullquote p { font-family: var(--font-head); font-size: 1.5rem; line-height: 1.3; color: var(--text); }

/* Code & preformatted */
.entry-content code:not(.hljs) {
	font-family: ui-monospace, 'SFMono-Regular', Menlo, Consolas, monospace;
	font-size: 0.9em;
	background: rgba(255, 255, 255, 0.06);
	padding: 0.15em 0.4em;
	border-radius: 5px;
}
.wp-block-code, .entry-content pre {
	background: var(--bg-2);
	border: 1px solid var(--border);
	border-radius: var(--radius-sm);
	padding: 1.1em 1.3em;
	overflow-x: auto;
	font-size: 0.92rem;
	line-height: 1.6;
}
.wp-block-code code { font-family: ui-monospace, 'SFMono-Regular', Menlo, Consolas, monospace; color: var(--text-2); }

/* Tables */
.entry-content table, .wp-block-table table { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
.wp-block-table { overflow-x: auto; margin-block: 1.6em; }
.entry-content th, .entry-content td, .wp-block-table td, .wp-block-table th { border: 1px solid var(--border); padding: 0.6em 0.8em; text-align: left; }
.entry-content th, .wp-block-table th { background: rgba(255, 255, 255, 0.04); color: var(--text); }

/* Buttons block, separators, columns */
.wp-block-button__link { background: var(--blue-strong); color: #fff; border-radius: 999px; padding: 0.7em 1.4em; font-family: var(--font-head); font-weight: 600; }
.wp-block-button.is-style-outline .wp-block-button__link { background: transparent; border: 1px solid var(--border); color: var(--text); }
.wp-block-separator { border: 0; border-top: 1px solid var(--border); max-width: 120px; margin: 2.2em auto; opacity: 1; }
.wp-block-separator.is-style-wide { max-width: 100%; }
.wp-block-columns { gap: 1.5rem; }

.entry-tags { list-style: none; display: inline-flex; flex-wrap: wrap; gap: 0.4rem; margin: 0; padding: 0; }
.entry-tags-wrap { display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap; color: var(--muted); }
.entry-tags a { font-size: 0.78rem; color: var(--text-2); border: 1px solid var(--border); border-radius: 999px; padding: 0.28rem 0.7rem; }
.entry-tags a:hover { border-color: var(--border-hover); color: var(--blue); }
.post-single__footer { padding-top: 1.6rem; }

/* After-article blocks */
.post-after { padding-block: clamp(2rem, 4vw, 3rem) clamp(3rem, 6vw, 5rem); display: grid; gap: clamp(1.6rem, 4vw, 2.6rem); }
.post-note { display: flex; align-items: center; gap: 0.9rem; color: var(--text-2); }
.post-note .icon { color: var(--blue); flex: none; }
.post-note p { margin: 0; }

.post-nav { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.post-nav__prev, .post-nav__next { max-width: 48%; }
.post-nav__next { margin-left: auto; text-align: right; }
.post-nav a { display: inline-flex; flex-direction: column; gap: 0.2rem; color: var(--text); }
.post-nav__dir { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); }
.post-nav__title { font-family: var(--font-head); font-weight: 600; }
.post-nav a:hover .post-nav__title { color: var(--blue); }

.related .section-title { margin-bottom: 1.3rem; }
.post-grid--3 { grid-template-columns: repeat(3, 1fr); }
.back-link { margin: 0; }

/* 13. Project single ------------------------------------------------------- */
.project-hero { position: relative; min-height: clamp(380px, 62vh, 620px); display: flex; align-items: flex-end; overflow: hidden; }
.project-hero--plain { min-height: auto; background: linear-gradient(135deg, #0e1620, #070a0f); padding-top: clamp(2.5rem, 6vw, 4rem); }
.project-hero__media { position: absolute; inset: 0; }
.project-hero__media img { width: 100%; height: 100%; object-fit: cover; }
.project-hero__overlay {
	position: absolute; inset: 0;
	background: linear-gradient(180deg, rgba(5, 8, 13, 0.5) 0%, transparent 30%, rgba(5, 8, 13, 0.85) 100%);
}
.project-hero__inner { position: relative; z-index: 2; width: 100%; padding-block: clamp(1.6rem, 4vw, 2.6rem); }
.project-hero--plain .project-hero__inner { padding-bottom: 0; }
.project-hero__title { font-size: clamp(1.9rem, 1.3rem + 2.6vw, 3rem); letter-spacing: -0.02em; margin: 0.4rem 0 0.8rem; }
.project-hero__meta { display: flex; flex-wrap: wrap; gap: 0.6rem 1.3rem; color: var(--text-2); font-size: 0.9rem; }
.project-hero__meta span { display: inline-flex; align-items: center; gap: 0.4em; }
.project-hero__meta .icon { vertical-align: -2px; }
.project-hero__type { color: var(--blue); }
.project-hero__type a { color: var(--blue); }

.project-body { padding-block: clamp(2rem, 5vw, 3.4rem) clamp(3rem, 6vw, 5rem); display: grid; gap: clamp(1.8rem, 4vw, 2.6rem); }
.project-details { display: flex; flex-wrap: wrap; gap: 1.2rem 2rem; align-items: center; justify-content: space-between; }
.project-details__group { display: flex; flex-direction: column; gap: 0.5rem; }
.project-details__k { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); }
.chip-list { list-style: none; display: flex; flex-wrap: wrap; gap: 0.4rem; margin: 0; padding: 0; }
.chip-list li, .chip-list a { font-size: 0.8rem; color: var(--text-2); }
.chip-list li { border: 1px solid var(--border); border-radius: 999px; padding: 0.3rem 0.75rem; }
.project-lead { font-size: 1.2rem; line-height: 1.6; color: var(--text); }
.project-themes { display: flex; align-items: center; gap: 0.5rem; color: var(--muted); font-size: 0.85rem; }
.project-themes a { color: var(--text-2); }

.project-nav { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; border-top: 1px solid var(--line); padding-top: 1.6rem; }
.project-nav__link { display: inline-flex; flex-direction: column; gap: 0.15rem; color: var(--text); max-width: 38%; }
.project-nav__next { text-align: right; }
.project-nav__dir { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); }
.project-nav__title { font-family: var(--font-head); font-weight: 600; font-size: 0.95rem; }
.project-nav__link:hover .project-nav__title { color: var(--blue); }
.project-nav__back { white-space: nowrap; }

.statement-panel { text-align: center; margin-top: clamp(2rem, 5vw, 3.5rem); padding-block: clamp(2rem, 5vw, 3rem); }
.statement-panel__title { font-size: clamp(1.4rem, 1.1rem + 1.2vw, 2rem); margin: 0 0 0.6rem; }
.statement-panel__text { color: var(--text-2); max-width: 52ch; margin-inline: auto; }

/* 14. About page ----------------------------------------------------------- */
.about { padding-top: clamp(3rem, 6vw, 5rem); padding-bottom: clamp(3rem, 6vw, 5rem); }
.about__intro { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: clamp(1.6rem, 5vw, 3.5rem); align-items: start; margin-bottom: clamp(2.4rem, 6vw, 4rem); }
.about__lead { font-size: 1.08rem; color: var(--text-2); line-height: 1.7; }
.about__lead p { margin-bottom: 1em; }
.about__media img, .about__media .media-placeholder { border-radius: var(--radius); box-shadow: var(--shadow); width: 100%; object-fit: cover; }
.about__cards { margin-bottom: clamp(1.6rem, 4vw, 2.4rem); }
.about__statement { text-align: center; padding-block: clamp(2rem, 5vw, 3rem); }
.about__statement-title { font-size: clamp(1.4rem, 1.1rem + 1.2vw, 2rem); margin: 0 0 0.6rem; }
.about__statement-text { color: var(--text-2); max-width: 56ch; margin-inline: auto; }

/* 15. Contact page --------------------------------------------------------- */
.contact { padding-top: clamp(3rem, 6vw, 5rem); padding-bottom: clamp(3rem, 6vw, 5rem); }
.contact__grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(1.6rem, 4vw, 3rem); align-items: stretch; }
.contact__intro { color: var(--text-2); font-size: 1.02rem; margin-bottom: 1.6rem; max-width: 46ch; }

.social-list { list-style: none; margin: 0; padding: 0; }
.social-list__item { border-bottom: 1px solid var(--line); }
.social-list__item:first-child { border-top: 1px solid var(--line); }
.social-list__link { display: flex; align-items: center; gap: 0.85rem; padding: 0.9rem 0.2rem; color: var(--text-2); transition: color 0.2s var(--ease), padding-left 0.2s var(--ease); }
.social-list__link:hover { color: var(--text); padding-left: 0.5rem; }
.social-list__icon { color: var(--blue); display: inline-flex; flex: none; }
.social-list__label { font-weight: 500; color: var(--text); font-size: 0.95rem; }
.social-list__handle { color: var(--muted); font-size: 0.85rem; margin-left: auto; }
.social-list__arrow { color: var(--muted); display: inline-flex; }
.social-list__link:hover .social-list__arrow { color: var(--blue); }
.contact__hint { color: var(--text-2); font-size: 0.9rem; }

.contact__right { position: relative; border-radius: var(--radius); overflow: hidden; display: flex; align-items: center; min-height: 480px; padding: clamp(1.2rem, 3vw, 2rem); }
.contact__media { position: absolute; inset: 0; z-index: 0; }
.contact__media img { width: 100%; height: 100%; object-fit: cover; }
.contact__media::after {
	content: "";
	position: absolute; inset: 0;
	background: linear-gradient(120deg, rgba(5, 8, 13, 0.92) 0%, rgba(5, 8, 13, 0.6) 55%, rgba(5, 8, 13, 0.35) 100%);
}
.contact-form { position: relative; z-index: 1; width: 100%; max-width: 480px; margin-left: auto; }
.contact-form__title { font-size: 1.4rem; margin: 0 0 1.1rem; }
.contact-form__note { font-size: 0.82rem; color: var(--muted); margin-top: 0.4rem; }

/* 16. Footer --------------------------------------------------------------- */
.site-footer { border-top: 1px solid var(--line); margin-top: clamp(2rem, 5vw, 4rem); background: var(--bg-2); }
.site-footer__inner {
	max-width: var(--maxw);
	margin-inline: auto;
	padding: clamp(1.8rem, 4vw, 2.6rem) var(--gutter);
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 1.2rem 2rem;
	justify-content: space-between;
}
.brand--footer .brand__name { font-size: 0.85rem; letter-spacing: 0.2em; }
.site-footer__meta { font-size: 0.85rem; color: var(--muted); margin: 0.5rem 0 0; }
.site-footer__dot { margin: 0 0.4em; }
.footer-menu, .site-footer__links .nav-menu { list-style: none; display: flex; flex-wrap: wrap; gap: 1rem 1.4rem; margin: 0; padding: 0; }
.footer-menu a, .site-footer__links a { font-size: 0.85rem; color: var(--text-2); }
.footer-menu a:hover, .site-footer__links a:hover { color: var(--blue); }
.site-footer__links .nav-menu a { text-transform: none; letter-spacing: 0; }
.site-footer__links .current-menu-item > a::after { display: none; }
.site-footer__social { list-style: none; display: flex; gap: 0.7rem; margin: 0; padding: 0; }
.site-footer__social a { display: inline-flex; width: 36px; height: 36px; align-items: center; justify-content: center; border: 1px solid var(--border); border-radius: 50%; color: var(--text-2); transition: color 0.2s var(--ease), border-color 0.2s var(--ease); }
.site-footer__social a:hover { color: var(--blue); border-color: var(--border-hover); }
.site-footer__base { border-top: 1px solid var(--line); }
.site-footer__copy { max-width: var(--maxw); margin: 0 auto; padding: 1rem var(--gutter); font-size: 0.78rem; color: var(--muted); }

/* 17. 404, search, pagination --------------------------------------------- */
.error-404 { padding-block: clamp(3rem, 8vw, 6rem); }
.error-404__panel { text-align: center; padding: clamp(2rem, 5vw, 3.5rem); }
.error-404__code { font-family: var(--font-head); font-weight: 700; font-size: clamp(3.5rem, 10vw, 6rem); color: var(--blue); margin: 0 0 0.4rem; letter-spacing: 0.05em; }
.error-404__search { max-width: 420px; margin: 1.6rem auto; }
.error-404__links { display: flex; flex-wrap: wrap; gap: 0.7rem; justify-content: center; }
.page-head__search { max-width: 460px; margin-top: 1.4rem; }

.no-results { color: var(--text-2); padding-block: 2rem; }
.no-results.glass-panel { padding: 2rem; text-align: center; }

.pagination, .nav-links { margin-top: clamp(2rem, 4vw, 3rem); }
.pagination .nav-links { display: flex; flex-wrap: wrap; gap: 0.4rem; justify-content: center; }
.page-numbers {
	display: inline-flex; align-items: center; justify-content: center;
	min-width: 42px; height: 42px; padding: 0 0.6rem;
	border: 1px solid var(--border); border-radius: 10px;
	color: var(--text-2); font-size: 0.9rem;
}
.page-numbers:hover { border-color: var(--border-hover); color: var(--text); }
.page-numbers.current { background: rgba(61, 139, 255, 0.14); border-color: var(--border-hover); color: var(--blue); }
.page-numbers.dots { border-color: transparent; }

/* 18. Forms ---------------------------------------------------------------- */
.form-field { display: flex; flex-direction: column; gap: 0.4rem; margin-bottom: 1rem; }
.form-field label, .widget label { font-size: 0.82rem; color: var(--text-2); font-weight: 500; }
.form-req { color: var(--blue); }
input[type="text"], input[type="email"], input[type="search"], input[type="url"], textarea, .search-form__field {
	width: 100%;
	background: rgba(255, 255, 255, 0.04);
	border: 1px solid var(--border);
	border-radius: 10px;
	color: var(--text);
	padding: 0.7rem 0.85rem;
	font: inherit;
	font-size: 0.95rem;
	transition: border-color 0.2s var(--ease), background 0.2s var(--ease);
}
input::placeholder, textarea::placeholder { color: var(--muted); }
input:focus, textarea:focus { border-color: var(--border-hover); background: rgba(255, 255, 255, 0.06); outline: none; box-shadow: 0 0 0 3px rgba(61, 139, 255, 0.18); }
textarea { resize: vertical; min-height: 130px; }
.form-actions { margin: 0.4rem 0 0; }
.form-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-notice { padding: 0.8rem 1rem; border-radius: 10px; font-size: 0.9rem; margin-bottom: 1.1rem; }
.form-notice--success { background: rgba(61, 139, 255, 0.12); border: 1px solid var(--border-hover); color: #cfe0ff; }
.form-notice--error { background: rgba(213, 154, 91, 0.12); border: 1px solid rgba(213, 154, 91, 0.4); color: #f0d6b6; }

.search-form { display: flex; gap: 0.5rem; }
.search-form__submit {
	flex: none;
	display: inline-flex; align-items: center; justify-content: center;
	width: 44px; height: 44px;
	border: 1px solid var(--border); border-radius: 10px;
	background: rgba(255, 255, 255, 0.04); color: var(--text);
}
.search-form__submit:hover { border-color: var(--border-hover); color: var(--blue); }

/* 19. Responsive ----------------------------------------------------------- */
@media (max-width: 1024px) {
	.cards-grid--4 { grid-template-columns: repeat(2, 1fr); }
	.cards-grid--3 { grid-template-columns: repeat(3, 1fr); }
	.post-grid, .post-grid--3, .tile-grid { grid-template-columns: repeat(2, 1fr); }
	.blog-layout { grid-template-columns: 1fr; }
	.blog-sidebar { position: static; grid-template-columns: repeat(2, 1fr); }
	.about__intro { grid-template-columns: 1fr; }
	.about__media { max-width: 460px; }
}

@media (max-width: 900px) {
	.nav-toggle { display: inline-flex; }
	.primary-nav {
		position: absolute;
		top: 100%; left: 0; right: 0;
		display: none;
		background: var(--panel-strong);
		-webkit-backdrop-filter: blur(16px) saturate(125%);
		backdrop-filter: blur(16px) saturate(125%);
		border-top: 1px solid var(--line);
		border-bottom: 1px solid var(--line);
	}
	@supports not ((-webkit-backdrop-filter: blur(2px)) or (backdrop-filter: blur(2px))) {
		.primary-nav { background: #0a0f16; }
	}
	.site-header.nav-open .primary-nav { display: block; }
	.primary-nav .nav-menu { flex-direction: column; align-items: stretch; gap: 0; padding: 0.4rem var(--gutter) 1rem; }
	.nav-menu li { border-bottom: 1px solid var(--line); }
	.nav-menu li:last-child { border-bottom: 0; }
	.nav-menu a { display: block; padding: 0.95rem 0; font-size: 0.95rem; }
	.site-header--overlay .nav-menu a { color: var(--text-2); text-shadow: none; }
	.contact__grid { grid-template-columns: 1fr; }
	.contact__right { min-height: 360px; }
	.home-latest__body { grid-template-columns: 1fr; }
	.home-latest__media { aspect-ratio: 16 / 9; }
	.card-post--featured { flex-direction: column; }
	.card-post--featured .card-post__media { border-radius: var(--radius) var(--radius) 0 0; aspect-ratio: 16 / 9; min-height: 0; }
	.post-single__feature.alignwide { border-radius: var(--radius-sm); }
}

@media (max-width: 600px) {
	:root { --gutter: 1.1rem; }
	.cards-grid--4, .cards-grid--3, .post-grid, .post-grid--3, .tile-grid, .blog-sidebar { grid-template-columns: 1fr; }
	.hero { min-height: 80svh; }
	.hero__inner { padding-bottom: clamp(9rem, 26vh, 11rem); }
	.hero__sub { font-size: 0.98rem; }
	.hero__controls { bottom: clamp(5.5rem, 12vh, 7rem); }
	.home-cards { margin-top: -2.5rem; }
	.entry-content > .alignwide { width: calc(100vw - 2 * var(--gutter)); }
	.post-nav { flex-direction: column; }
	.post-nav__prev, .post-nav__next { max-width: 100%; text-align: left; margin-left: 0; }
	.project-nav { flex-direction: column; align-items: flex-start; }
	.project-nav__link { max-width: 100%; }
	.project-nav__next { text-align: left; }
	.social-list__handle { display: none; }
}

/* 20. Reduced motion / print ---------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after {
		animation-duration: 0.001ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.001ms !important;
	}
	.hero__slide { transition: opacity 0.001ms; }
}

@media print {
	.site-header, .site-footer, .hero__controls, .post-nav, .project-nav, .blog-sidebar { display: none; }
	body { background: #fff; color: #000; }
}
