/* ==========================================================================
   Nodal — design tokens
   Palette: "Blueprint" — deep blue-black ground, cool ink text, a signal
   teal accent for interactive elements and a warm amber used sparingly for
   emphasis. Typography pairs Space Grotesk (display) with IBM Plex Sans
   (body) and IBM Plex Mono (labels, numerals, meta) — the mono face is used
   throughout as a running motif for anything measured or technical.
   Corners are mostly square; buttons and a few signature surfaces use a
   drafting-style notched corner instead of a border-radius.
   ========================================================================== */

:root {
	--bg: #0b1220;
	--bg-elevated: #101a2c;
	--bg-elevated-2: #16233a;
	--ink: #eef3fa;
	--ink-muted: #93a7c4;
	--ink-faint: #5c6d89;
	--accent: #48e0c2;
	--accent-strong: #6ff2d6;
	--accent-ink: #06251f;
	--accent-2: #ffb454;
	--line: rgba(148, 167, 196, 0.16);
	--line-strong: rgba(148, 167, 196, 0.34);

	--font-display: 'Space Grotesk', 'Segoe UI', ui-sans-serif, system-ui, sans-serif;
	--font-body: 'IBM Plex Sans', 'Segoe UI', ui-sans-serif, system-ui, sans-serif;
	--font-mono: 'IBM Plex Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

	--container: 1280px;
	--gutter: clamp(1.25rem, 4vw, 3rem);
	--section-pad: clamp(4.5rem, 9vw, 8.5rem);
	--notch: 14px;

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

/* ==========================================================================
   Reset & base
   ========================================================================== */

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

html {
	scroll-behavior: smooth;
	-webkit-text-size-adjust: 100%;
}

@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;
		scroll-behavior: auto !important;
	}
}

body {
	margin: 0;
	background: var(--bg);
	color: var(--ink);
	font-family: var(--font-body);
	font-size: 16px;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
	overflow-x: hidden;
}

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

a { color: inherit; text-decoration: none; }

h1, h2, h3, h4, p, ol, ul, figure, blockquote { margin: 0; }

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

button {
	font: inherit;
	color: inherit;
	background: none;
	border: 0;
	cursor: pointer;
}

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

.mono { font-family: var(--font-mono); letter-spacing: 0.02em; }

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

.skip-link {
	position: fixed;
	top: -100px;
	left: 1rem;
	z-index: 1000;
	background: var(--accent);
	color: var(--accent-ink);
	padding: 0.75em 1.25em;
	font-family: var(--font-mono);
	font-size: 0.85rem;
	transition: top 0.2s var(--ease-out);
}
.skip-link:focus {
	top: 1rem;
	position: fixed;
	clip: auto;
	width: auto;
	height: auto;
}

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

.section-inner {
	max-width: var(--container);
	margin-inline: auto;
	padding-inline: var(--gutter);
}

.section-head {
	max-width: 44rem;
	margin-bottom: clamp(2.5rem, 5vw, 4rem);
}

.eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 0.6em;
	font-size: 0.78rem;
	text-transform: uppercase;
	color: var(--accent);
	margin-bottom: 1rem;
}

.section-title {
	font-family: var(--font-display);
	font-weight: 600;
	font-size: clamp(1.9rem, 3.2vw, 2.9rem);
	line-height: 1.15;
	letter-spacing: -0.01em;
	color: var(--ink);
}

/* ==========================================================================
   Buttons — notched corners are the recurring "drafted, not rounded" detail
   ========================================================================== */

.btn {
	--notch: 10px;
	position: relative;
	display: inline-flex;
	align-items: center;
	gap: 0.6em;
	padding: 0.95em 1.5em;
	font-family: var(--font-mono);
	font-size: 0.9rem;
	font-weight: 500;
	letter-spacing: 0.01em;
	border: 1px solid transparent;
	clip-path: polygon(var(--notch) 0, 100% 0, 100% calc(100% - var(--notch)), calc(100% - var(--notch)) 100%, 0 100%, 0 var(--notch));
	transition: transform 0.3s var(--ease-out), background-color 0.3s var(--ease-out), border-color 0.3s var(--ease-out), color 0.3s var(--ease-out);
	white-space: nowrap;
}
.btn svg { transition: transform 0.3s var(--ease-out); }
.btn:hover svg { transform: translateX(3px); }
.btn:hover { transform: translateY(-2px); }

.btn-primary {
	background: var(--accent);
	color: var(--accent-ink);
}
.btn-primary:hover { background: var(--accent-strong); }

.btn-ghost {
	background: transparent;
	color: var(--ink);
	border-color: var(--line-strong);
}
.btn-ghost:hover {
	border-color: var(--accent);
	color: var(--accent);
}

/* ==========================================================================
   Header
   ========================================================================== */

.site-header {
	position: fixed;
	inset: 0 0 auto 0;
	z-index: 100;
	padding-block: 1.1rem;
	background: transparent;
	border-bottom: 1px solid transparent;
	transition: background-color 0.4s var(--ease-out), border-color 0.4s var(--ease-out), padding 0.4s var(--ease-out);
}
/* Keep the fixed header below wp-admin's fixed admin bar for logged-in users. */
body.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) {
	body.admin-bar .site-header { top: 46px; }
}

body:not(.is-onepage) .site-header,
.site-header.is-scrolled {
	background: rgba(11, 18, 32, 0.86);
	backdrop-filter: blur(14px);
	-webkit-backdrop-filter: blur(14px);
	border-bottom-color: var(--line);
	padding-block: 0.85rem;
}

.site-header-inner {
	max-width: var(--container);
	margin-inline: auto;
	padding-inline: var(--gutter);
	display: flex;
	align-items: center;
	gap: 2rem;
}

.site-brand {
	display: inline-flex;
	align-items: center;
	gap: 0.6rem;
	margin-right: auto;
	color: var(--ink);
}
.site-brand-mark { color: var(--accent); display: inline-flex; }
.site-brand-name {
	font-family: var(--font-display);
	font-weight: 600;
	font-size: 1.15rem;
	letter-spacing: -0.01em;
}
.site-brand img { max-height: 40px; width: auto; }

.nav-menu {
	display: flex;
	align-items: center;
	gap: clamp(1.25rem, 2.5vw, 2.25rem);
}
.nav-menu a {
	font-family: var(--font-mono);
	font-size: 0.85rem;
	color: var(--ink-muted);
	position: relative;
	padding-bottom: 2px;
}
.nav-menu a::after {
	content: '';
	position: absolute;
	left: 0; right: 100%;
	bottom: 0;
	height: 1px;
	background: var(--accent);
	transition: right 0.3s var(--ease-out);
}
.nav-menu a:hover,
.nav-menu a:focus-visible { color: var(--ink); }
.nav-menu a:hover::after,
.nav-menu a:focus-visible::after { right: 0; }

.site-header-actions {
	display: flex;
	align-items: center;
	gap: 1rem;
}

.nav-toggle {
	display: none;
	padding: 0.4rem;
	color: var(--ink);
}

@media (max-width: 860px) {
	.header-cta { display: none; }
	.nav-toggle { display: inline-flex; }
	.site-nav {
		position: fixed;
		inset: 0;
		z-index: 99;
		background: var(--bg);
		display: flex;
		align-items: center;
		justify-content: center;
		visibility: hidden;
		opacity: 0;
		transform: translateY(-8px);
		transition: opacity 0.35s var(--ease-out), transform 0.35s var(--ease-out), visibility 0.35s;
	}
	.site-nav.is-open {
		visibility: visible;
		opacity: 1;
		transform: translateY(0);
	}
	.nav-menu {
		flex-direction: column;
		gap: 1.75rem;
	}
	.nav-menu a { font-size: 1.4rem; color: var(--ink); }
}

/* ==========================================================================
   Hero
   ========================================================================== */

.hero {
	position: relative;
	min-height: 100svh;
	display: flex;
	flex-direction: column;
	justify-content: center;
	overflow: hidden;
	background: radial-gradient(120% 100% at 50% 0%, #0e1729 0%, var(--bg) 55%);
}

.hero-canvas {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
}

.hero-scrim {
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgba(11, 18, 32, 0.15) 0%, rgba(11, 18, 32, 0.35) 55%, var(--bg) 100%);
	pointer-events: none;
}

.corner-frame {
	position: absolute;
	inset: clamp(1rem, 3vw, 2.25rem);
	pointer-events: none;
	z-index: 2;
}
.corner {
	position: absolute;
	width: clamp(20px, 3vw, 34px);
	height: clamp(20px, 3vw, 34px);
	border: 1px solid var(--line-strong);
}
.corner--tl { top: 0; left: 0; border-width: 1px 0 0 1px; }
.corner--tr { top: 0; right: 0; border-width: 1px 1px 0 0; }
.corner--bl { bottom: 0; left: 0; border-width: 0 0 1px 1px; }
.corner--br { bottom: 0; right: 0; border-width: 0 1px 1px 0; }

.hero-inner {
	position: relative;
	z-index: 3;
	max-width: var(--container);
	margin-inline: auto;
	padding-inline: var(--gutter);
	width: 100%;
	padding-top: 5rem;
}

.hero-eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 0.7em;
	font-size: 0.82rem;
	color: var(--accent);
	margin-bottom: clamp(1.25rem, 3vw, 2rem);
}
.hero-eyebrow-dot {
	width: 6px; height: 6px;
	border-radius: 50%;
	background: var(--accent);
	box-shadow: 0 0 0 4px rgba(72, 224, 194, 0.18);
}

.hero-headline {
	font-family: var(--font-display);
	font-weight: 600;
	font-size: clamp(2.6rem, 7.4vw, 6.4rem);
	line-height: 1.02;
	letter-spacing: -0.02em;
	color: var(--ink);
	max-width: 20ch;
}
.hero-line { display: block; overflow: hidden; }
.hero-line-inner { display: block; }
.hero-word { display: inline-block; will-change: transform, opacity; }

.hero-subheadline {
	margin-top: clamp(1.5rem, 3vw, 2.25rem);
	max-width: 38rem;
	font-size: clamp(1.02rem, 1.6vw, 1.2rem);
	color: var(--ink-muted);
}

.hero-actions {
	margin-top: clamp(2rem, 4vw, 2.75rem);
	display: flex;
	flex-wrap: wrap;
	gap: 1rem;
}

.hero-meta {
	position: absolute;
	left: 0; right: 0;
	bottom: clamp(1.5rem, 4vw, 2.5rem);
	z-index: 3;
	padding-inline: calc(var(--gutter) + clamp(1rem, 3vw, 2.25rem));
	display: flex;
	justify-content: space-between;
	font-size: 0.75rem;
	color: var(--ink-faint);
}

.hero-scroll-cue {
	position: absolute;
	left: 50%;
	bottom: clamp(1.5rem, 4vw, 2.5rem);
	transform: translateX(-50%);
	z-index: 3;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0.6rem;
}
.hero-scroll-label {
	font-size: 0.7rem;
	color: var(--ink-faint);
	text-transform: uppercase;
}
.hero-scroll-line {
	width: 1px;
	height: 42px;
	background: linear-gradient(180deg, var(--accent), transparent);
	overflow: hidden;
	position: relative;
}

@media (max-width: 640px) {
	.hero-meta { display: none; }
}

/* ==========================================================================
   Marquee
   ========================================================================== */

.marquee-section {
	border-block: 1px solid var(--line);
	background: var(--bg-elevated);
	overflow: hidden;
}
.marquee { position: relative; }
.marquee-track {
	display: flex;
	width: max-content;
	animation: nodal-marquee 34s linear infinite;
	padding-block: 1.15rem;
}
.marquee-section:hover .marquee-track { animation-play-state: paused; }
.marquee-item {
	display: inline-flex;
	align-items: center;
	gap: 1.5rem;
	font-family: var(--font-mono);
	font-size: 0.9rem;
	color: var(--ink-muted);
	padding-inline: 1.5rem;
	white-space: nowrap;
}
.marquee-dot { color: var(--accent); margin-left: 1.5rem; }

@keyframes nodal-marquee {
	from { transform: translateX(0); }
	to { transform: translateX(-50%); }
}

.marquee-static .marquee-track { animation: none; }

@media (prefers-reduced-motion: reduce) {
	.marquee-track { animation: none; }
}

/* ==========================================================================
   Statement
   ========================================================================== */

.statement-section { padding-block: var(--section-pad); }
.statement-text {
	font-family: var(--font-display);
	font-weight: 500;
	font-size: clamp(1.5rem, 3.6vw, 2.75rem);
	line-height: 1.35;
	max-width: 26ch;
	color: var(--ink-faint);
}
.statement-text .sw {
	color: var(--ink);
	display: inline-block;
}

/* ==========================================================================
   Services
   ========================================================================== */

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

.services-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 1px;
	background: var(--line);
	border: 1px solid var(--line);
}
.service-card {
	background: var(--bg);
	padding: clamp(1.75rem, 2.5vw, 2.5rem);
	transition: background-color 0.3s var(--ease-out);
}
.service-card:hover { background: var(--bg-elevated); }
.service-icon {
	display: inline-flex;
	color: var(--accent);
	margin-bottom: 1.5rem;
}
.service-title {
	font-family: var(--font-display);
	font-weight: 600;
	font-size: 1.15rem;
	margin-bottom: 0.6rem;
}
.service-text { color: var(--ink-muted); font-size: 0.95rem; }

@media (max-width: 900px) {
	.services-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
	.services-grid { grid-template-columns: 1fr; }
}

/* ==========================================================================
   Process
   ========================================================================== */

.process-section { padding-block: var(--section-pad); background: var(--bg-elevated); }

.process-line-wrap { margin-bottom: 1rem; }
.process-line { width: 100%; height: 2px; display: block; }
.process-line line {
	stroke: var(--line-strong);
	stroke-width: 2;
}
.process-line line.is-drawn { stroke: var(--accent); }

.process-list {
	display: grid;
	grid-template-columns: repeat(5, 1fr);
	gap: clamp(1.25rem, 2vw, 1.75rem);
}
.process-step { padding-top: 1.25rem; border-top: 1px solid var(--line-strong); }
.process-number {
	display: block;
	color: var(--accent);
	font-size: 0.85rem;
	margin-bottom: 1rem;
}
.process-title {
	font-family: var(--font-display);
	font-weight: 600;
	font-size: 1.05rem;
	margin-bottom: 0.6rem;
}
.process-text { color: var(--ink-muted); font-size: 0.9rem; }

@media (max-width: 960px) {
	.process-list { grid-template-columns: repeat(2, 1fr); }
	.process-line-wrap { display: none; }
}
@media (max-width: 560px) {
	.process-list { grid-template-columns: 1fr; }
}

/* ==========================================================================
   Work
   ========================================================================== */

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

.work-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: clamp(1.25rem, 2vw, 2rem);
}

.work-card {
	position: relative;
	display: block;
	border: 1px solid var(--line);
	overflow: hidden;
	color: var(--ink);
}

.work-card-media {
	display: block;
	aspect-ratio: 16 / 10;
	position: relative;
	overflow: hidden;
}
.work-card-media-grid {
	position: absolute;
	inset: -1px;
	background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
	background-size: 34px 34px;
	mix-blend-mode: overlay;
	opacity: 0.6;
}
.work-card-media--photo img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}
.swatch-1 { background: linear-gradient(135deg, #123 0%, #1c3a5e 45%, #0f2e2a 100%); }
.swatch-2 { background: linear-gradient(135deg, #1a1030 0%, #2c1f57 45%, #0f2035 100%); }
.swatch-3 { background: linear-gradient(135deg, #0f2a24 0%, #16463a 45%, #0b1c30 100%); }
.swatch-4 { background: linear-gradient(135deg, #2a1a10 0%, #4a2f16 45%, #14202f 100%); }

.work-card-body {
	display: block;
	padding: clamp(1.25rem, 2vw, 1.75rem);
}
.work-card-tag {
	display: block;
	color: var(--accent);
	font-size: 0.75rem;
	margin-bottom: 0.6rem;
}
.work-card-title {
	display: block;
	font-family: var(--font-display);
	font-weight: 600;
	font-size: clamp(1.05rem, 1.6vw, 1.3rem);
	line-height: 1.3;
	max-width: 30ch;
}
.work-card-arrow {
	position: absolute;
	top: clamp(1.25rem, 2vw, 1.75rem);
	right: clamp(1.25rem, 2vw, 1.75rem);
	width: 40px; height: 40px;
	display: flex; align-items: center; justify-content: center;
	background: var(--bg);
	border: 1px solid var(--line-strong);
	color: var(--ink);
	transition: background-color 0.3s var(--ease-out), border-color 0.3s var(--ease-out), color 0.3s var(--ease-out);
}
.work-card:hover .work-card-arrow {
	background: var(--accent);
	border-color: var(--accent);
	color: var(--accent-ink);
}

@media (max-width: 760px) {
	.work-grid { grid-template-columns: 1fr; }
}

/* ==========================================================================
   Testimonials
   ========================================================================== */

.testimonials-section { padding-block: var(--section-pad); background: var(--bg-elevated); }

.testimonial-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: clamp(1.25rem, 2vw, 1.75rem);
}
.testimonial-card {
	padding: clamp(1.5rem, 2vw, 2rem);
	border: 1px solid var(--line);
	background: var(--bg);
}
.testimonial-quote {
	font-family: var(--font-display);
	font-size: 1.05rem;
	line-height: 1.5;
	color: var(--ink);
	margin-bottom: 1.5rem;
}
.testimonial-meta { display: flex; flex-direction: column; gap: 0.15rem; }
.testimonial-name { font-weight: 600; font-size: 0.9rem; }
.testimonial-role { font-size: 0.82rem; color: var(--ink-muted); }

@media (max-width: 900px) {
	.testimonial-grid { grid-template-columns: 1fr; }
}

/* ==========================================================================
   Contact
   ========================================================================== */

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

.contact-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: clamp(2.5rem, 5vw, 5rem);
	align-items: start;
}

.contact-lede {
	margin-top: 1.25rem;
	color: var(--ink-muted);
	max-width: 34rem;
}

.contact-details {
	margin-top: 2rem;
	display: flex;
	flex-direction: column;
	gap: 0.85rem;
}
.contact-details a,
.contact-details span {
	display: inline-flex;
	align-items: center;
	gap: 0.65em;
	color: var(--ink);
}
.contact-details svg { color: var(--accent); }

.social-links {
	display: flex;
	gap: 0.75rem;
	margin-top: 2rem;
}
.social-links a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 38px; height: 38px;
	border: 1px solid var(--line-strong);
	color: var(--ink-muted);
	transition: color 0.3s var(--ease-out), border-color 0.3s var(--ease-out);
}
.social-links a:hover { color: var(--accent); border-color: var(--accent); }

.contact-form-wrap {
	background: var(--bg-elevated);
	border: 1px solid var(--line);
	padding: clamp(1.5rem, 3vw, 2.5rem);
}

.form-row { margin-bottom: 1.25rem; }
.form-row label {
	display: block;
	font-family: var(--font-mono);
	font-size: 0.78rem;
	color: var(--ink-muted);
	margin-bottom: 0.5rem;
	text-transform: uppercase;
}
.form-row input,
.form-row textarea {
	width: 100%;
	background: var(--bg);
	border: 1px solid var(--line-strong);
	padding: 0.85em 1em;
	color: var(--ink);
	resize: vertical;
	transition: border-color 0.3s var(--ease-out);
}
.form-row input:focus,
.form-row textarea:focus { border-color: var(--accent); outline: none; }

.form-honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form-submit { margin-top: 0.5rem; width: 100%; justify-content: center; }

.form-notice {
	padding: 0.85em 1.1em;
	margin-bottom: 1.5rem;
	font-size: 0.9rem;
	border: 1px solid var(--line-strong);
}
.form-notice--success { border-color: var(--accent); color: var(--accent-strong); }
.form-notice--error { border-color: var(--accent-2); color: var(--accent-2); }

@media (max-width: 860px) {
	.contact-grid { grid-template-columns: 1fr; }
}

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
	border-top: 1px solid var(--line);
	padding-block: clamp(3rem, 6vw, 4.5rem) 2rem;
}
.site-footer-top {
	max-width: var(--container);
	margin-inline: auto;
	padding-inline: var(--gutter);
	display: grid;
	grid-template-columns: 1.4fr 1fr 1fr 1fr;
	gap: clamp(2rem, 4vw, 3rem);
}
.footer-tagline { margin-top: 1rem; color: var(--ink-muted); max-width: 26rem; font-size: 0.92rem; }
.footer-col-title {
	font-family: var(--font-mono);
	font-size: 0.75rem;
	text-transform: uppercase;
	color: var(--ink-faint);
	margin-bottom: 1rem;
}
.footer-contact-list,
.footer-col .nav-menu {
	display: flex;
	flex-direction: column;
	gap: 0.7rem;
	align-items: flex-start;
}
.footer-contact-list a,
.footer-contact-list span,
.footer-col .nav-menu a {
	display: inline-flex;
	align-items: center;
	gap: 0.6em;
	color: var(--ink-muted);
	font-size: 0.9rem;
}
.footer-contact-list a:hover,
.footer-col .nav-menu a:hover { color: var(--accent); }
.footer-contact-list svg { color: var(--accent); }
.footer-social a { width: 34px; height: 34px; }

.site-footer-bottom {
	max-width: var(--container);
	margin-inline: auto;
	padding-inline: var(--gutter);
	margin-top: clamp(2.5rem, 5vw, 4rem);
	padding-top: 1.75rem;
	border-top: 1px solid var(--line);
	display: flex;
	flex-wrap: wrap;
	gap: 1rem 2rem;
	justify-content: space-between;
	align-items: center;
	font-size: 0.82rem;
	color: var(--ink-faint);
}
.footer-legal-menu { display: flex; gap: 1.5rem; }
.footer-legal-menu a:hover { color: var(--ink); }
.footer-credit a { color: var(--ink-muted); text-decoration: underline; text-underline-offset: 3px; }
.footer-credit a:hover { color: var(--accent); }

@media (max-width: 900px) {
	.site-footer-top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
	.site-footer-top { grid-template-columns: 1fr; }
	.site-footer-bottom { flex-direction: column; align-items: flex-start; }
}

/* ==========================================================================
   Back to top
   ========================================================================== */

.back-to-top {
	position: fixed;
	right: clamp(1rem, 3vw, 2rem);
	bottom: clamp(1rem, 3vw, 2rem);
	z-index: 90;
	width: 44px; height: 44px;
	display: flex; align-items: center; justify-content: center;
	background: var(--bg-elevated-2);
	border: 1px solid var(--line-strong);
	color: var(--ink);
	opacity: 0;
	visibility: hidden;
	transform: translateY(8px);
	transition: opacity 0.3s var(--ease-out), transform 0.3s var(--ease-out), visibility 0.3s, border-color 0.3s var(--ease-out), color 0.3s var(--ease-out);
}
.back-to-top.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover { border-color: var(--accent); color: var(--accent); }

/* ==========================================================================
   Standard content pages (blog index, single post, page, 404)
   ========================================================================== */

.content-main { padding-block: clamp(7rem, 12vw, 10rem) var(--section-pad); }
.content-container { max-width: 900px; }
.content-container--narrow { max-width: 760px; }

.page-header { margin-bottom: clamp(2rem, 4vw, 3rem); }
.page-title {
	font-family: var(--font-display);
	font-weight: 600;
	font-size: clamp(2rem, 4vw, 3rem);
	letter-spacing: -0.01em;
	line-height: 1.15;
	margin-top: 0.5rem;
}
.page-description { color: var(--ink-muted); margin-top: 1rem; }

.entry-content { color: var(--ink-muted); font-size: 1.02rem; line-height: 1.75; }
.entry-content > * + * { margin-top: 1.25em; }
.entry-content h2, .entry-content h3, .entry-content h4 {
	font-family: var(--font-display);
	color: var(--ink);
	font-weight: 600;
	line-height: 1.3;
	margin-top: 2em;
}
.entry-content a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.entry-content ul, .entry-content ol { padding-left: 1.4em; list-style: disc; }
.entry-content ol { list-style: decimal; }
.entry-content blockquote {
	border-left: 2px solid var(--accent);
	padding-left: 1.25em;
	color: var(--ink);
	font-style: italic;
}
.entry-content img { border: 1px solid var(--line); }
.entry-content code { font-family: var(--font-mono); background: var(--bg-elevated); padding: 0.15em 0.4em; font-size: 0.9em; }
.entry-content pre { background: var(--bg-elevated); border: 1px solid var(--line); padding: 1.25em; overflow-x: auto; }

.page-thumbnail { margin-bottom: clamp(2rem, 4vw, 3rem); border: 1px solid var(--line); }

.post-list { display: flex; flex-direction: column; gap: 2.5rem; }
.post-card { display: grid; grid-template-columns: 220px 1fr; gap: 1.75rem; padding-bottom: 2.5rem; border-bottom: 1px solid var(--line); }
.post-card-media { border: 1px solid var(--line); overflow: hidden; aspect-ratio: 4 / 3; }
.post-card-media img { width: 100%; height: 100%; object-fit: cover; }
.post-card-meta { color: var(--ink-faint); font-size: 0.78rem; margin-bottom: 0.6rem; }
.post-card-title { font-family: var(--font-display); font-size: 1.4rem; font-weight: 600; margin-bottom: 0.6rem; }
.post-card-title a:hover { color: var(--accent); }
.post-card-excerpt { color: var(--ink-muted); font-size: 0.95rem; }
.post-card-link { display: inline-flex; align-items: center; gap: 0.5em; margin-top: 1rem; font-family: var(--font-mono); font-size: 0.85rem; color: var(--accent); }

@media (max-width: 640px) {
	.post-card { grid-template-columns: 1fr; }
}

.pagination { margin-top: 3rem; display: flex; gap: 1.5rem; font-family: var(--font-mono); }
.pagination a { color: var(--ink-muted); }
.pagination a:hover { color: var(--accent); }

.no-results { color: var(--ink-muted); }

.comments-area { margin-top: clamp(3rem, 6vw, 4.5rem); border-top: 1px solid var(--line); padding-top: 2.5rem; }
.comments-title { text-transform: uppercase; font-size: 0.85rem; color: var(--ink-faint); margin-bottom: 1.5rem; }
.comment-list { display: flex; flex-direction: column; gap: 1.5rem; }
.comment-list .children { margin-top: 1.5rem; margin-left: 2rem; }
.comment-body { border: 1px solid var(--line); padding: 1.25rem; }
.comment-author .fn { font-weight: 600; font-style: normal; }
.comment-metadata { font-size: 0.78rem; color: var(--ink-faint); margin-bottom: 0.75rem; }
.comment-form label { display: block; font-family: var(--font-mono); font-size: 0.78rem; text-transform: uppercase; color: var(--ink-muted); margin-bottom: 0.5rem; }
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
	width: 100%;
	background: var(--bg-elevated);
	border: 1px solid var(--line-strong);
	padding: 0.85em 1em;
	color: var(--ink);
	margin-bottom: 1.25rem;
}
.comment-reply-title { font-family: var(--font-display); margin-bottom: 1.5rem; }

.error-404-main { min-height: 70vh; display: flex; align-items: center; }
.error-404-inner { max-width: 40rem; }
.error-404-text { color: var(--ink-muted); margin: 1.5rem 0 2.25rem; max-width: 34rem; }

/* ==========================================================================
   Reveal helpers (JS adds .is-ready once GSAP has taken over; without JS
   every element above is already fully visible static HTML/CSS)
   ========================================================================== */

.no-js .hero-word,
.no-js .sw { opacity: 1 !important; transform: none !important; }
