/* ==========================================================================
   Katalysator Retur – main stylesheet
   Concept: an assay laboratory. Monochrome photographs of real catalysts,
   lime as the "reading" colour, periodic-table tiles, mono sample labels,
   millimetre paper for reading surfaces.
   ========================================================================== */

@font-face {
	font-family: "Archivo";
	src: url("../fonts/archivo-latin.woff2") format("woff2");
	font-weight: 100 900;
	font-stretch: 62% 125%;
	font-display: swap;
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
	font-family: "JetBrains Mono";
	src: url("../fonts/jetbrains-mono-latin.woff2") format("woff2");
	font-weight: 400 700;
	font-display: swap;
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
	--ink: #0c0e0d;
	--ink-2: #141715;
	--ink-3: #1d211e;
	--text: #e9ece5;
	--muted: #9ba39c;
	--line: rgb(233 236 229 / 0.13);
	--line-strong: rgb(233 236 229 / 0.3);

	--bone: #ecebe4;
	--bone-2: #e1e0d7;
	--text-dark: #131513;
	--muted-dark: #575d58;
	--line-dark: rgb(19 21 19 / 0.14);

	--lime: #91c400;
	--lime-hi: #b0ea12;
	--green: #12703c;
	--green-ink: #0e5a30;
	--danger: #c2412d;

	--f-sans: "Archivo", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	--f-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;

	--gutter: clamp(16px, 4vw, 48px);
	--max: 1320px;
	--measure: 760px;
	--header-h: 112px;
	--section: clamp(72px, 10vw, 152px);

	--fs-display: clamp(2.6rem, 1rem + 6.2vw, 6.6rem);
	--fs-h1: clamp(2.4rem, 1.2rem + 4.6vw, 5.6rem);
	--fs-h2: clamp(1.85rem, 1.15rem + 2.5vw, 3.3rem);
	--fs-h3: clamp(1.25rem, 1.05rem + 0.75vw, 1.65rem);
	--fs-lead: clamp(1.15rem, 1rem + 0.55vw, 1.45rem);

	--ease: cubic-bezier(0.2, 0.7, 0.1, 1);

	color-scheme: dark;
}

@media (max-width: 960px) {
	:root { --header-h: 64px; }
}

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

*, *::before, *::after { box-sizing: border-box; }
/* Safety net: nothing may ever scroll the page sideways (iOS ignores overflow on body alone). */
html { overflow-x: clip; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
	margin: 0;
	background: var(--ink);
	color: var(--text);
	font: 400 1.0625rem/1.65 var(--f-sans);
	font-stretch: 100%;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	text-rendering: optimizeLegibility;
	overflow-x: clip;
}
img, svg, video, iframe { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3, h4, h5, h6, p, figure, blockquote, ol, ul, dl, dd { margin: 0; }
ol, ul { padding: 0; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
abbr[title] { text-decoration: none; }
address { font-style: normal; }
:focus-visible { outline: 2px solid var(--lime); outline-offset: 3px; }
::selection { background: var(--lime); color: var(--ink); }

h1, h2, h3, h4 {
	font-weight: 800;
	font-stretch: 112%;
	line-height: 1;
	letter-spacing: -0.02em;
	text-wrap: balance;
	/* Norwegian compounds ("katalysatorbehandling") need real hyphenation, not a hard break.
	   Safari still needs the prefix. */
	-webkit-hyphens: auto;
	hyphens: auto;
	hyphenate-limit-chars: 10 4 4;
	overflow-wrap: break-word;
}
p, li { text-wrap: pretty; }

.icon { width: 1.15em; height: 1.15em; flex: none; }

.wrap { width: min(100% - 2 * var(--gutter), var(--max)); margin-inline: auto; }

.screen-reader-text {
	position: absolute !important;
	width: 1px; height: 1px;
	overflow: hidden;
	clip-path: inset(50%);
	white-space: nowrap;
}
.skip {
	position: fixed; top: 8px; left: 8px; z-index: 100;
	padding: 12px 16px; background: var(--lime); color: var(--ink);
	font-weight: 700; transform: translateY(-160%);
	transition: transform 0.2s;
}
.skip:focus { transform: none; }
main:focus { outline: none; }

/* ---------- Atoms ---------- */

.tag {
	display: inline-flex;
	align-items: center;
	gap: 0.7em;
	padding: 0.5em 0.7em;
	border: 1px solid currentColor;
	font: 500 0.7rem/1 var(--f-mono);
	letter-spacing: 0.09em;
	text-transform: uppercase;
}
.tag b { color: var(--lime); font-weight: 700; }

.btn,
.wp-block-button__link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.7em;
	min-height: 52px;
	padding: 0.9em 1.45em;
	border: 1px solid var(--lime);
	border-radius: 0;
	background: var(--lime);
	color: var(--ink);
	font: 650 0.92rem/1.1 var(--f-sans);
	font-stretch: 115%;
	letter-spacing: 0.03em;
	text-transform: uppercase;
	text-decoration: none;
	transition: background-color 0.25s, color 0.25s, border-color 0.25s;
}
.btn .icon, .wp-block-button__link .icon { transition: translate 0.3s var(--ease); }
.btn:hover, .wp-block-button__link:hover { background: var(--lime-hi); border-color: var(--lime-hi); }
.btn:hover .icon:last-child { translate: 4px 0; }
.btn--small { min-height: 42px; padding: 0.7em 1.1em; font-size: 0.8rem; }
.btn--ghost,
.is-style-ghost .wp-block-button__link {
	background: transparent;
	color: inherit;
	border-color: currentColor;
}
.btn--ghost:hover,
.is-style-ghost .wp-block-button__link:hover { background: var(--text); color: var(--ink); border-color: var(--text); }
.btn--ghost-dark { background: transparent; color: var(--text-dark); border-color: var(--text-dark); }
.btn--ghost-dark:hover { background: var(--text-dark); color: var(--bone); }

.link-arrow {
	display: inline-flex; align-items: center; gap: 0.5em;
	font: 500 0.8rem/1 var(--f-mono); letter-spacing: 0.06em; text-transform: uppercase;
	text-decoration: none;
}
.link-arrow:hover { color: var(--lime); }

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

.site-header {
	position: fixed;
	inset: 0 0 auto;
	z-index: 50;
	color: var(--text);
	transition: background-color 0.35s, box-shadow 0.35s, translate 0.35s var(--ease);
}
.site-header.is-scrolled {
	background: rgb(12 14 13 / 0.94);
	box-shadow: 0 1px 0 var(--line);
}
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 46px; } }

.spec-bar {
	height: 36px;
	border-bottom: 1px solid var(--line);
	font: 500 0.72rem/1 var(--f-mono);
	letter-spacing: 0.05em;
	color: var(--muted);
	overflow: hidden;
	transition: height 0.35s var(--ease), opacity 0.35s;
}
.is-scrolled .spec-bar { height: 0; opacity: 0; border-bottom-color: transparent; }
.spec-bar__inner { display: flex; align-items: center; gap: 28px; height: 100%; }
.spec-bar__meta { display: flex; gap: 28px; margin-right: auto; }
.spec-bar__meta span + span::before { content: "/"; margin-right: 28px; color: var(--line-strong); }
.spec-bar__phone { display: inline-flex; align-items: center; gap: 8px; color: var(--text); text-decoration: none; }
.spec-bar__phone:hover { color: var(--lime); }
.spec-bar .icon { width: 14px; height: 14px; color: var(--lime); }

.lang-switch { display: flex; list-style: none; border: 1px solid var(--line-strong); }
.lang-switch a {
	display: block; padding: 5px 9px;
	font: 600 0.7rem/1 var(--f-mono); letter-spacing: 0.08em;
	text-decoration: none; color: var(--muted);
}
.lang-switch a:hover { color: var(--text); }
.lang-switch a[aria-current] { background: var(--text); color: var(--ink); }

.nav-row { display: flex; align-items: center; gap: 32px; height: 76px; }

.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; flex: none; }
.brand__mark { width: 63px; height: auto; }
.brand__word { display: grid; line-height: 1; }
.brand__name {
	font-weight: 800; font-stretch: 125%; font-size: 1.05rem;
	letter-spacing: -0.01em; text-transform: uppercase; color: #2e9a5a;
}
.brand__name b { color: var(--lime); font-weight: 800; }
.brand__owner {
	margin-top: 5px; padding-top: 5px; border-top: 2px solid var(--lime);
	font: 600 0.66rem/1 var(--f-mono); letter-spacing: 0.32em; text-transform: uppercase; color: var(--text);
}

.main-nav { margin-left: auto; }
.main-nav__list { display: flex; gap: 4px; list-style: none; }
.main-nav__list a {
	position: relative;
	display: block;
	padding: 10px 12px;
	font-weight: 550; font-size: 0.95rem; font-stretch: 108%;
	text-decoration: none;
	color: var(--text);
}
.main-nav__list a::after {
	content: ""; position: absolute; left: 12px; right: 12px; bottom: 4px; height: 2px;
	background: var(--lime); transform: scaleX(0); transform-origin: left;
	transition: transform 0.35s var(--ease);
}
.main-nav__list a:hover::after,
.main-nav__list .current-menu-item > a::after,
.main-nav__list .current_page_parent > a::after { transform: none; }
.main-nav__extra { display: none; }

.burger {
	display: none; position: relative;
	width: 48px; height: 48px; margin-right: -12px;
	border: 0; background: none; color: var(--text);
}
.burger .icon { width: 26px; height: 26px; margin: auto; }
.burger__close { display: none; }

.main-nav__list a { white-space: nowrap; }

@media (max-width: 1180px) {
	.spec-bar__meta span:last-child { display: none; }
	.main-nav__list a { padding-inline: 9px; font-size: 0.9rem; }
	.nav-row { gap: 20px; }
}
/* Mid-size screens: the CTA duplicates the "Verdivurdering" menu item, so it gives way to the menu. */
@media (min-width: 961px) and (max-width: 1280px) {
	.nav-row__cta { display: none; }
}
@media (min-width: 961px) and (max-width: 1060px) {
	.brand__word { display: none; }
}

@media (max-width: 960px) {
	.spec-bar { display: none; }
	.nav-row { height: 64px; gap: 12px; }
	.brand__mark { width: 50px; }
	.brand__name { font-size: 0.9rem; }
	.brand__owner { font-size: 0.58rem; letter-spacing: 0.26em; }
	.nav-row__cta { margin-left: auto; }
	.burger { display: grid; }

	.main-nav {
		position: fixed; inset: var(--header-h) 0 0;
		display: flex; flex-direction: column; justify-content: space-between;
		padding: 24px var(--gutter) calc(32px + env(safe-area-inset-bottom));
		background: var(--ink);
		border-top: 1px solid var(--line);
		visibility: hidden; opacity: 0;
		transition: opacity 0.3s, visibility 0s 0.3s;
		overflow-y: auto;
	}
	.admin-bar .main-nav { top: calc(var(--header-h) + 46px); }
	.site-header.is-open .main-nav { visibility: visible; opacity: 1; transition: opacity 0.3s; }
	.site-header.is-open { background: var(--ink); }
	.site-header.is-open .burger__open { display: none; }
	.site-header.is-open .burger__close { display: block; }

	.main-nav__list { flex-direction: column; gap: 0; counter-reset: nav; }
	.main-nav__list li { border-bottom: 1px solid var(--line); counter-increment: nav; }
	.main-nav__list a {
		display: flex; align-items: baseline; gap: 16px;
		padding: 16px 0;
		font-size: clamp(1.7rem, 7vw, 2.6rem); font-weight: 800; font-stretch: 118%; letter-spacing: -0.02em;
	}
	.main-nav__list a::before {
		content: counter(nav, decimal-leading-zero);
		font: 500 0.75rem/1 var(--f-mono); color: var(--lime); letter-spacing: 0.05em;
	}
	.main-nav__list a::after { display: none; }
	.main-nav__extra { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 28px; }
	.main-nav__phone { font: 600 1.15rem/1 var(--f-mono); text-decoration: none; color: var(--lime); }
}
@media (max-width: 359px) {
	.brand__word { display: none; }
}

/* ---------- Hero (front page): the XRF scan ---------- */

.hero {
	--x: 72%;
	--y: 46%;
	--r: clamp(96px, 13vw, 200px);
	position: relative;
	isolation: isolate;
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	grid-template-rows: 1fr auto;
	min-height: max(640px, min(100svh, 1000px));
	padding-top: var(--header-h);
	overflow: hidden;
	background: var(--ink);
}
.hero__media { position: absolute; inset: 0; z-index: -1; }
.hero__img {
	position: absolute; inset: 0;
	width: 100%; height: 100%;
	object-fit: cover; object-position: 60% 50%;
}
.hero__media > .hero__img { filter: grayscale(1) contrast(1.2) brightness(0.36); }
.hero__media::after {
	content: ""; position: absolute; inset: 0;
	background:
		linear-gradient(90deg, rgb(12 14 13 / 0.9) 0%, rgb(12 14 13 / 0.55) 42%, rgb(12 14 13 / 0) 75%),
		linear-gradient(0deg, var(--ink) 0%, rgb(12 14 13 / 0) 32%);
	pointer-events: none;
}
.hero__reveal {
	position: absolute; inset: 0; z-index: 1;
	-webkit-mask: radial-gradient(circle var(--r) at var(--x) var(--y), #000 calc(var(--r) - 1.5px), transparent var(--r));
	mask: radial-gradient(circle var(--r) at var(--x) var(--y), #000 calc(var(--r) - 1.5px), transparent var(--r));
}
.hero__reveal .hero__img { filter: saturate(1.2) contrast(1.08) brightness(0.95); transform: scale(1.06); transform-origin: var(--x) var(--y); }
/* The square cells of a ceramic catalyst monolith, seen through the lens. */
.hero__cells {
	position: absolute; inset: 0;
	background:
		linear-gradient(rgb(12 14 13 / 0.55) 1.5px, transparent 1.5px) 0 0 / 16px 16px,
		linear-gradient(90deg, rgb(12 14 13 / 0.55) 1.5px, transparent 1.5px) 0 0 / 16px 16px,
		radial-gradient(circle var(--r) at var(--x) var(--y), rgb(145 196 0 / 0) 55%, rgb(145 196 0 / 0.35) 100%);
	mix-blend-mode: multiply;
}
.hero__lens {
	position: absolute; z-index: 2;
	left: var(--x); top: var(--y);
	width: calc(var(--r) * 2); aspect-ratio: 1;
	translate: -50% -50%;
	border: 1px solid var(--lime);
	border-radius: 50%;
	box-shadow: 0 0 0 6px rgb(12 14 13 / 0.35), 0 0 80px rgb(145 196 0 / 0.25);
	pointer-events: none;
	background:
		linear-gradient(var(--lime), var(--lime)) 50% 0 / 1px 14px no-repeat,
		linear-gradient(var(--lime), var(--lime)) 50% 100% / 1px 14px no-repeat,
		linear-gradient(var(--lime), var(--lime)) 0 50% / 14px 1px no-repeat,
		linear-gradient(var(--lime), var(--lime)) 100% 50% / 14px 1px no-repeat;
}
.hero__readout {
	position: absolute; left: calc(100% + 14px); top: 50%;
	translate: 0 -50%;
	padding: 6px 9px;
	background: rgb(12 14 13 / 0.85);
	border-left: 2px solid var(--lime);
	font: 500 0.7rem/1.2 var(--f-mono); letter-spacing: 0.06em;
	color: var(--lime); white-space: nowrap;
}
.hero__scan {
	position: absolute; z-index: 2; top: 0; bottom: 0; left: 0;
	width: 2px; background: var(--lime);
	box-shadow: 0 0 24px 4px rgb(145 196 0 / 0.55);
	opacity: 0;
	pointer-events: none;
}
@media (prefers-reduced-motion: no-preference) {
	.js .hero__scan { animation: scan 2.2s var(--ease) 0.25s both; }
	.js .hero__lens, .js .hero__reveal { animation: lens-in 0.9s var(--ease) 1.6s both; }
}
@keyframes scan {
	0% { left: 0; opacity: 1; }
	85% { opacity: 1; }
	100% { left: 100%; opacity: 0; }
}
@keyframes lens-in {
	from { opacity: 0; }
	to { opacity: 1; }
}

.hero__inner { align-self: center; position: relative; z-index: 3; padding-block: clamp(48px, 9vh, 120px) 40px; pointer-events: none; }
.hero__inner a, .hero__inner button { pointer-events: auto; }
.hero__eyebrow { color: var(--muted); margin-bottom: clamp(20px, 3vw, 36px); }
.hero__title {
	max-width: 13.5ch;
	font-size: var(--fs-display);
	font-stretch: 125%;
	font-weight: 800;
	line-height: 0.9;
	letter-spacing: -0.04em;
	text-wrap: initial;
}
.hero__line { display: block; }
.hero__title em { font-style: normal; color: var(--lime); }
.hero__lead {
	max-width: 54ch;
	margin-top: clamp(24px, 3vw, 40px);
	color: #c7ccc4;
	font-size: clamp(1rem, 0.94rem + 0.3vw, 1.15rem);
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.hero__hint {
	position: absolute; right: var(--gutter); top: calc(var(--header-h) + 28px); z-index: 3;
	font: 500 0.68rem/1 var(--f-mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted);
}
.hero__hint::before { content: ""; display: inline-block; width: 8px; height: 8px; margin-right: 10px; border-radius: 50%; background: var(--lime); animation: blink 1.6s steps(2) infinite; }
@keyframes blink { 50% { opacity: 0.2; } }
@media (hover: none), (max-width: 960px) { .hero__hint { display: none; } }

@media (max-width: 760px) {
	.hero { --r: 84px; --x: 70%; --y: 30%; min-height: auto; }
	.hero__media::after {
		background: linear-gradient(0deg, var(--ink) 8%, rgb(12 14 13 / 0.78) 55%, rgb(12 14 13 / 0.35) 100%);
	}
	.hero__inner { padding-top: min(32vh, 280px); }
	.hero__title { font-size: clamp(2rem, 9.4vw, 3.4rem); font-stretch: 104%; letter-spacing: -0.03em; }
	.hero__readout { display: none; }
	.hero__actions .btn { flex: 1 1 100%; }
}

/* Periodic-table tiles */
.elements {
	position: relative; z-index: 3;
	display: flex; align-items: flex-end; justify-content: space-between; gap: 24px;
	padding-block: 24px 32px;
	border-top: 1px solid var(--line);
}
.elements__label {
	max-width: 16ch;
	font: 500 0.72rem/1.4 var(--f-mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted);
}
.elements__list { display: flex; gap: 10px; list-style: none; }
.element,
.page-hero__tile,
.not-found__tile {
	position: relative;
	display: grid;
	grid-template-rows: auto 1fr auto auto;
	width: clamp(92px, 9vw, 124px);
	aspect-ratio: 1;
	padding: 9px 10px;
	border: 1px solid var(--line-strong);
	background: rgb(12 14 13 / 0.7);
	transition: border-color 0.3s, background-color 0.3s;
}
.element:hover { border-color: var(--lime); background: rgb(145 196 0 / 0.08); }
.element__z { font: 500 0.72rem/1 var(--f-mono); color: var(--muted); }
.element__sym {
	align-self: center;
	font-weight: 800; font-stretch: 112%; font-size: clamp(2rem, 3.2vw, 2.8rem); line-height: 1; letter-spacing: -0.03em;
	transition: color 0.3s;
}
.element:hover .element__sym { color: var(--lime); }
.element__name { font-size: 0.74rem; font-weight: 600; line-height: 1.2; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.element__mass { font: 400 0.66rem/1.3 var(--f-mono); color: var(--muted); }
@media (max-width: 760px) {
	.elements { flex-direction: column; align-items: stretch; }
	.elements__label { max-width: none; }
	.elements__list { display: grid; grid-template-columns: repeat(3, 1fr); }
	.element { width: auto; }
}

/* ---------- Interior page header ---------- */

.page-hero {
	position: relative;
	isolation: isolate;
	padding: calc(var(--header-h) + clamp(28px, 4vw, 48px)) 0 clamp(48px, 7vw, 104px);
	background: var(--ink);
	overflow: hidden;
}
.page-hero__media { position: absolute; inset: 0; z-index: -1; }
.page-hero__media img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.15) brightness(0.32); }
.page-hero__media::after {
	content: ""; position: absolute; inset: 0;
	background: linear-gradient(90deg, rgb(12 14 13 / 0.92) 10%, rgb(12 14 13 / 0.4) 100%), linear-gradient(0deg, var(--ink), rgb(12 14 13 / 0) 45%);
}
.page-hero__grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	align-items: end;
	gap: clamp(24px, 5vw, 80px);
	margin-top: clamp(40px, 7vw, 96px);
}
.page-hero__grid > * { min-width: 0; }
.page-hero__title { font-size: var(--fs-h1); font-stretch: 122%; line-height: 0.92; letter-spacing: -0.035em; max-width: 16ch; }
.page-hero__lead { max-width: 62ch; margin-top: clamp(20px, 2.5vw, 32px); color: #c7ccc4; font-size: var(--fs-lead); line-height: 1.5; }
.page-hero__lead p + p { margin-top: 0.8em; }
.page-hero__lead strong { color: var(--text); }
.page-hero__tile {
	width: clamp(140px, 15vw, 210px);
	border-color: var(--lime);
	padding: 14px;
}
.page-hero__tile .element__z { color: var(--lime); font-size: 0.8rem; }
.page-hero__tile .element__sym { font-size: clamp(3.4rem, 6vw, 5.4rem); font-stretch: 100%; }
.page-hero__tile .element__name { font: 500 0.7rem/1.2 var(--f-mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
@media (max-width: 760px) {
	.page-hero__grid { grid-template-columns: 1fr; }
	.page-hero__tile { display: none; }
}

.crumbs ol { display: flex; flex-wrap: wrap; gap: 6px 0; list-style: none; font: 500 0.72rem/1.3 var(--f-mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.crumbs li + li::before { content: "/"; margin: 0 10px; color: var(--line-strong); }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--lime); }
.crumbs [aria-current] { color: var(--text); }

/* ---------- Page content (blocks) ---------- */

.entry {
	--content: min(var(--measure), 100% - 2 * var(--gutter));
	display: grid;
	grid-template-columns:
		[full-start] minmax(var(--gutter), 1fr)
		[wide-start] minmax(0, calc((var(--max) - var(--measure)) / 2))
		[content-start] var(--content)
		[content-end] minmax(0, calc((var(--max) - var(--measure)) / 2))
		[wide-end] minmax(var(--gutter), 1fr)
		[full-end];
	padding-block: var(--section);
	background: var(--bone);
	color: var(--text-dark);
}
.entry > * { grid-column: content; }
.entry > * + * { margin-top: 1.3em; }
.entry > .alignwide,
.entry > .wp-block-columns,
.entry > .wp-block-image.alignwide { grid-column: wide; }
.entry > .alignfull { grid-column: full; }

/* Sections (styled groups) span the full width and re-create the grid inside. */
.entry > .wp-block-group[class*="is-style-"] {
	grid-column: full;
	display: grid;
	grid-template-columns: inherit;
	margin-block: var(--section);
	padding-block: var(--section);
}
/* Inside sections everything hangs on the wide left edge; text keeps a reading measure. */
.entry > .wp-block-group[class*="is-style-"] > * { grid-column: wide; max-width: var(--measure); }
.entry > .wp-block-group[class*="is-style-"] > * + * { margin-top: 1.3em; }
.entry > .wp-block-group[class*="is-style-"] > .wp-block-columns,
.entry > .wp-block-group[class*="is-style-"] > .is-style-steps,
.entry > .wp-block-group[class*="is-style-"] > .alignwide { max-width: none; }
.entry > .wp-block-group[class*="is-style-"] > .wp-block-heading:not(.is-style-eyebrow) { max-width: 22ch; }
.entry > .wp-block-group[class*="is-style-"] > .is-style-steps { margin-top: 3em; }
.entry > .wp-block-group[class*="is-style-"] + .wp-block-group[class*="is-style-"] { margin-top: calc(var(--section) * -1); }
.entry > .wp-block-group[class*="is-style-"]:first-child { margin-top: calc(var(--section) * -1); }
.entry > .wp-block-group[class*="is-style-"]:last-child { margin-bottom: calc(var(--section) * -1); }
.entry > .wp-block-group[class*="is-style-"] + .wp-block-group.is-style-paper,
.entry > .wp-block-group.is-style-paper + .wp-block-group[class*="is-style-"] { margin-top: calc(var(--section) * -1); }

.entry h2 { font-size: var(--fs-h2); margin-top: 1.6em; }
.entry > h2:not([class*="is-style-"]) { font-size: clamp(1.6rem, 1.15rem + 1.5vw, 2.5rem); margin-top: 2em; }
.entry h3 { font-size: var(--fs-h3); margin-top: 1.5em; }
.entry h4 { font-size: 1.15rem; margin-top: 1.4em; }
.entry h2 + *, .entry h3 + *, .entry h4 + * { margin-top: 0.7em; }
.entry > :first-child, .entry .wp-block-column > :first-child,
.entry > .wp-block-group > :first-child { margin-top: 0; }
.entry a:not([class]) { color: var(--green-ink); text-decoration-color: rgb(14 90 48 / 0.4); }
.entry a:not([class]):hover { text-decoration-color: currentColor; }
.entry strong { font-weight: 700; }
.entry ul:not([class*="is-style"]), .entry ol:not([class*="is-style"]) { padding-left: 1.2em; }
.entry ul:not([class*="is-style"]) li::marker { color: var(--green); content: "■  "; font-size: 0.7em; }
.entry li + li { margin-top: 0.4em; }
.entry hr { border: 0; border-top: 1px solid var(--line-dark); margin-block: 2em; }
.entry figure img { width: 100%; }
.entry figcaption { margin-top: 10px; font: 400 0.75rem/1.4 var(--f-mono); color: var(--muted-dark); }

/* Block styles */
.is-style-lead { font-size: var(--fs-lead); line-height: 1.5; font-stretch: 104%; }
.is-style-display { font-size: var(--fs-h1) !important; font-stretch: 122%; line-height: 0.92; letter-spacing: -0.035em; }
.wp-block-column .is-style-display { font-size: clamp(2.2rem, 1rem + 3.3vw, 4.4rem) !important; font-stretch: 115%; }
.is-style-eyebrow {
	font: 500 0.75rem/1.2 var(--f-mono) !important;
	letter-spacing: 0.1em !important; text-transform: uppercase;
	color: var(--green);
}
.is-style-eyebrow::before { content: "■"; margin-right: 0.8em; color: var(--lime); }

.is-style-note {
	position: relative;
	padding: 28px 28px 28px 44px;
	background: var(--ink);
	color: var(--text);
}
.is-style-note::before {
	content: ""; position: absolute; inset: 0 auto 0 0; width: 16px;
	background: repeating-linear-gradient(-45deg, var(--lime) 0 8px, var(--ink) 8px 16px);
}
p.is-style-note + p.is-style-note { margin-top: 0; padding-top: 0; }

.is-style-dark { background: var(--ink-2); color: var(--text); }
.is-style-dark a:not([class]) { color: var(--lime); }
.is-style-paper {
	background-color: var(--bone-2);
	background-image:
		linear-gradient(rgb(19 21 19 / 0.06) 1px, transparent 1px),
		linear-gradient(90deg, rgb(19 21 19 / 0.06) 1px, transparent 1px),
		linear-gradient(rgb(19 21 19 / 0.035) 1px, transparent 1px),
		linear-gradient(90deg, rgb(19 21 19 / 0.035) 1px, transparent 1px);
	background-size: 40px 40px, 40px 40px, 8px 8px, 8px 8px;
}
.is-style-lime { background: var(--lime); color: var(--ink); }
.is-style-lime .wp-block-button__link { background: var(--ink); border-color: var(--ink); color: var(--text); }
.is-style-lime .wp-block-button__link:hover { background: transparent; color: var(--ink); }
.entry > .wp-block-group.is-style-lime { padding-block: clamp(32px, 4vw, 48px); }
.is-style-lime .wp-block-columns { align-items: center; }
.is-style-lime p { font-size: var(--fs-lead); font-stretch: 108%; line-height: 1.3; }
.is-style-lime p strong { display: block; font: 600 0.75rem/1.2 var(--f-mono); letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 6px; }
.is-style-lime .wp-block-buttons { justify-content: flex-end; }
@media (max-width: 781px) { .is-style-lime .wp-block-buttons { justify-content: flex-start; } }

.is-style-photo {
	position: relative;
	isolation: isolate;
	min-height: min(80vh, 760px);
	align-content: end;
	background-color: var(--ink) !important;
	background-size: cover !important;
	background-position: center !important;
	background-blend-mode: luminosity;
	color: var(--text);
}
.is-style-photo::before {
	content: ""; position: absolute; inset: 0; z-index: -1;
	background: linear-gradient(0deg, rgb(12 14 13 / 0.95) 0%, rgb(12 14 13 / 0.55) 55%, rgb(12 14 13 / 0.35) 100%);
}
.is-style-photo h2, .is-style-photo .is-style-display { max-width: 16ch; }
@media (min-width: 1024px) and (prefers-reduced-motion: no-preference) {
	.is-style-photo { background-attachment: fixed; }
}

.is-style-statement { background: var(--ink); color: var(--text); }
.is-style-statement h2 { font-size: var(--fs-display) !important; font-stretch: 125%; line-height: 0.9; letter-spacing: -0.04em; }
.is-style-statement h2 em, .is-style-statement h2 mark { font-style: normal; background: none; color: var(--lime); }
.is-style-statement p { color: #c7ccc4; }
.is-style-statement .is-style-lead { color: var(--text); }

/* Columns */
.wp-block-columns { display: flex; flex-wrap: wrap; gap: clamp(28px, 4vw, 64px); }
.wp-block-column { flex: 1 1 0; min-width: 0; }
.wp-block-column > * + * { margin-top: 1em; }
.wp-block-columns.are-vertically-aligned-center, .wp-block-columns.is-style-split { align-items: center; }
@media (max-width: 781px) {
	/* Core sets flex-wrap: wrap !important; with a column direction that wraps the
	   columns sideways off-screen (horizontal scroll on phones), so force nowrap. */
	.entry .wp-block-columns { flex-direction: column; flex-wrap: nowrap !important; }
	.wp-block-column { flex-basis: auto !important; width: 100%; }
}

.is-style-ruled { counter-reset: col; gap: 0 !important; border-top: 1px solid currentColor; }
.is-style-ruled > .wp-block-column {
	counter-increment: col;
	padding: 28px clamp(20px, 2.5vw, 36px) 8px;
	border-left: 1px solid var(--line-dark);
}
.is-style-dark .is-style-ruled > .wp-block-column,
.is-style-statement .is-style-ruled > .wp-block-column { border-left-color: var(--line); }
.is-style-ruled > .wp-block-column:first-child { border-left: 0; padding-left: 0; }
.is-style-ruled > .wp-block-column::before {
	content: counter(col, decimal-leading-zero) " / " var(--of, "03");
	display: block; margin-bottom: 40px;
	font: 500 0.75rem/1 var(--f-mono); letter-spacing: 0.08em; color: var(--green);
}
.is-style-dark .is-style-ruled > .wp-block-column::before { color: var(--lime); }
.is-style-ruled h3 { margin-top: 0; }
@media (max-width: 781px) {
	.is-style-ruled > .wp-block-column { border-left: 0; border-top: 1px solid var(--line-dark); padding-inline: 0; padding-bottom: 28px; }
	.is-style-ruled > .wp-block-column:first-child { border-top: 0; }
}

.is-style-split > .wp-block-column:first-child h2 { margin-top: 0; }

/* Process steps */
.is-style-steps {
	counter-reset: step;
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 160px), 1fr));
	gap: 0;
	list-style: none;
	padding: 0 !important;
	border-top: 1px solid currentColor;
}
.is-style-steps li {
	counter-increment: step;
	position: relative;
	margin: 0 !important;
	padding: 56px 18px 8px 0;
	font-weight: 650; font-stretch: 108%; font-size: 1.02rem; line-height: 1.3;
}
.is-style-steps li::before {
	content: counter(step, decimal-leading-zero);
	position: absolute; top: 18px; left: 0;
	font: 500 0.75rem/1 var(--f-mono); color: var(--green);
}
.is-style-steps li::after {
	content: ""; position: absolute; top: -5px; left: 0;
	width: 9px; height: 9px; background: var(--lime); border: 1px solid var(--ink);
}
.is-style-dark .is-style-steps li::before { color: var(--lime); }

/* Images */
.is-style-framed { position: relative; isolation: isolate; }
.is-style-framed img { position: relative; }
.is-style-framed::before {
	content: ""; position: absolute; inset: 18px -18px -18px 18px; z-index: -1;
	border: 1px solid var(--green);
	background: repeating-linear-gradient(-45deg, transparent 0 7px, rgb(18 112 60 / 0.12) 7px 8px);
}
.wp-block-image.is-style-framed { margin-right: 18px; margin-bottom: 18px; }

/* Buttons */
.wp-block-buttons { display: flex; flex-wrap: wrap; gap: 12px; }
.is-style-dark .is-style-ghost .wp-block-button__link:hover,
.is-style-photo .is-style-ghost .wp-block-button__link:hover,
.is-style-statement .is-style-ghost .wp-block-button__link:hover { background: var(--text); color: var(--ink); }
.entry:not(.is-style-dark) .is-style-ghost .wp-block-button__link:hover { background: var(--text-dark); color: var(--bone); border-color: var(--text-dark); }

/* Video facade */
.video { position: relative; }
.video__play {
	position: relative; display: block; width: 100%;
	aspect-ratio: 16 / 9; padding: 0; border: 0;
	background: var(--ink); overflow: hidden;
}
.video__play img {
	width: 100%; height: 100%; object-fit: cover;
	filter: grayscale(1) contrast(1.1) brightness(0.65);
	transition: filter 0.5s, transform 0.8s var(--ease);
}
.video__play:hover img { filter: none; transform: scale(1.03); }
.video__btn {
	position: absolute; left: 0; bottom: 0;
	display: inline-flex; align-items: center; gap: 14px;
	padding: 18px 24px 18px 18px;
	background: var(--lime); color: var(--ink);
	font: 600 0.8rem/1 var(--f-mono); letter-spacing: 0.08em; text-transform: uppercase;
}
.video__btn .icon { width: 28px; height: 28px; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video.is-playing { aspect-ratio: 16 / 9; }

/* Map facade */
.map {
	position: relative;
	aspect-ratio: 4 / 3;
	overflow: hidden;
	background: var(--ink);
	color: var(--text);
}
.map__grid {
	position: absolute; inset: -20%;
	background:
		radial-gradient(circle at 50% 50%, rgb(145 196 0 / 0.18), transparent 40%),
		repeating-radial-gradient(circle at 50% 50%, transparent 0 38px, rgb(233 236 229 / 0.07) 38px 39px),
		linear-gradient(rgb(233 236 229 / 0.05) 1px, transparent 1px) 0 0 / 48px 48px,
		linear-gradient(90deg, rgb(233 236 229 / 0.05) 1px, transparent 1px) 0 0 / 48px 48px;
}
.map__pin {
	position: absolute; left: 50%; top: 50%; translate: -50% -100%;
	color: var(--lime);
}
.map__pin .icon { width: 44px; height: 44px; }
.map__pin::after {
	content: ""; position: absolute; left: 50%; bottom: -6px; width: 14px; height: 14px; translate: -50% 50%;
	border-radius: 50%; border: 1px solid var(--lime);
	animation: ping 2.4s var(--ease) infinite;
}
@keyframes ping { from { scale: 1; opacity: 1; } to { scale: 5; opacity: 0; } }
.map__card {
	position: absolute; left: 16px; bottom: 16px; right: 16px;
	max-width: 380px; padding: 20px;
	background: rgb(12 14 13 / 0.92); border-left: 2px solid var(--lime);
}
.map__coords { font: 500 0.7rem/1 var(--f-mono); letter-spacing: 0.06em; color: var(--lime); }
.map__addr { margin-top: 10px !important; font-weight: 700; font-stretch: 110%; font-size: 1.2rem; line-height: 1.25; }
.map__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin-top: 16px !important; }
.map__note { margin-top: 12px !important; font-size: 0.75rem; color: var(--muted); }
.map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; filter: grayscale(0.4) contrast(1.05); }
.map.is-loaded .map__grid, .map.is-loaded .map__pin, .map.is-loaded .map__card { display: none; }

/* Contact list */
.contact-list { display: grid; gap: 0; border-top: 1px solid currentColor; }
.contact-list > div { padding: 20px 0; border-bottom: 1px solid var(--line-dark); }
.is-style-dark .contact-list > div { border-bottom-color: var(--line); }
.contact-list dt { font: 500 0.72rem/1.2 var(--f-mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted-dark); }
.is-style-dark .contact-list dt { color: var(--muted); }
.contact-list dd a {
	display: inline-flex; align-items: center; gap: 14px; margin-top: 8px;
	font-weight: 750; font-stretch: 112%; font-size: clamp(1.15rem, 0.85rem + 1.7vw, 2.2rem); letter-spacing: -0.02em;
	text-decoration: none; word-break: break-word;
}
.contact-list dd a:hover { color: var(--green); }
.is-style-dark .contact-list dd a:hover { color: var(--lime); }
.contact-list .icon { width: 0.8em; height: 0.8em; color: var(--green); }
.is-style-dark .contact-list .icon { color: var(--lime); }

/* ---------- Form ---------- */

.kr-form { display: grid; gap: 28px; }
.kr-form__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px 32px; }
.field { display: grid; gap: 8px; }
.field--message, .field--files { grid-column: 1 / -1; }
.field label, .drop__label {
	font: 500 0.72rem/1.3 var(--f-mono); letter-spacing: 0.08em; text-transform: uppercase;
}
.field abbr { color: var(--danger); }
.field input, .field textarea {
	width: 100%;
	padding: 12px 0;
	border: 0; border-bottom: 1.5px solid currentColor;
	border-radius: 0;
	background: transparent;
	font-size: 1.1rem;
	transition: border-color 0.2s;
}
.field textarea { resize: vertical; min-height: 120px; }
.field input:focus, .field textarea:focus { outline: none; border-bottom-color: var(--green); box-shadow: 0 1.5px 0 var(--green); }
.is-style-dark .field input:focus, .is-style-dark .field textarea:focus { border-bottom-color: var(--lime); box-shadow: 0 1.5px 0 var(--lime); }
.field.has-error input, .field.has-error textarea { border-bottom-color: var(--danger); }
.field__err { font-size: 0.85rem; color: var(--danger); }
.field--files input[type="file"] { position: absolute; width: 1px; height: 1px; opacity: 0; }
.drop {
	display: grid; grid-template-columns: auto 1fr; gap: 4px 16px; align-items: center;
	padding: 22px; border: 1.5px dashed currentColor; cursor: pointer;
	transition: background-color 0.2s;
}
.field .drop { font: 400 0.95rem/1.4 var(--f-sans); letter-spacing: 0; text-transform: none; }
.drop .icon { grid-row: span 2; width: 28px; height: 28px; color: var(--green); }
.drop__hint { font-size: 0.85rem; opacity: 0.75; }
.drop:hover, .field--files:focus-within .drop { background: rgb(145 196 0 / 0.12); }
.field--files.has-files .drop { border-style: solid; border-color: var(--green); }
.field--consent { grid-template-columns: auto 1fr; align-items: start; gap: 12px; font-size: 0.92rem; }
.field--consent input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--green); }
.field--consent label { font: inherit; letter-spacing: 0; text-transform: none; }
.kr-form__hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.kr-form__notice { padding: 16px 18px; font-weight: 600; border-left: 3px solid; }
.kr-form__notice.is-ok { background: rgb(145 196 0 / 0.18); border-color: var(--green); }
.kr-form__notice.is-error { background: rgb(194 65 45 / 0.1); border-color: var(--danger); }
.kr-form .btn { justify-self: start; }
@media (max-width: 640px) {
	.kr-form__grid { grid-template-columns: 1fr; }
	.kr-form .btn { justify-self: stretch; }
}

/* ---------- Articles ---------- */

.article-hero { position: relative; display: flow-root; padding-top: calc(var(--header-h) + clamp(28px, 4vw, 48px)); background: var(--ink); }
.article-hero__inner { padding-bottom: clamp(40px, 5vw, 64px); }
.article-hero__meta {
	display: flex; flex-wrap: wrap; gap: 8px 28px; margin-top: clamp(40px, 6vw, 80px);
	font: 500 0.75rem/1 var(--f-mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--lime);
}
.article-hero__meta span { color: var(--muted); }
.article-hero__title { max-width: 22ch; margin-top: 20px; font-size: clamp(2.1rem, 1.2rem + 3.6vw, 4.6rem); font-stretch: 118%; line-height: 0.96; letter-spacing: -0.03em; }
.article-hero__media { position: relative; z-index: 1; margin-bottom: clamp(-160px, -12vw, -60px); }
.article-hero__media img { width: 100%; aspect-ratio: 21 / 9; object-fit: cover; }
@media (max-width: 760px) { .article-hero__media img { aspect-ratio: 4 / 3; } }

.article-body {
	display: grid;
	grid-template-columns: minmax(0, 250px) minmax(0, var(--measure));
	justify-content: center;
	gap: clamp(32px, 6vw, 96px);
	padding-block: calc(clamp(60px, 12vw, 160px) + 40px) var(--section);
	color: var(--text-dark);
	position: relative;
}
.article { background: var(--bone); }
.article-body:not(:has(.toc)) { grid-template-columns: minmax(0, var(--measure)); }
@media (max-width: 1000px) { .article-body { grid-template-columns: minmax(0, 1fr); } }

.toc { position: sticky; top: calc(var(--header-h) + 24px); align-self: start; }
.toc__title { padding-bottom: 12px; border-bottom: 1px solid currentColor; font: 600 0.72rem/1 var(--f-mono); letter-spacing: 0.1em; text-transform: uppercase; }
.toc ol { list-style: none; counter-reset: toc; }
.toc li { counter-increment: toc; border-bottom: 1px solid var(--line-dark); }
.toc a { display: grid; grid-template-columns: 28px 1fr; padding: 11px 0; font-size: 0.88rem; line-height: 1.35; text-decoration: none; color: var(--muted-dark); }
.toc a::before { content: counter(toc, decimal-leading-zero); font: 500 0.7rem/1.9 var(--f-mono); color: var(--green); }
.toc a:hover, .toc a.is-active { color: var(--text-dark); }
.toc a.is-active::before { color: var(--text-dark); }
@media (max-width: 1000px) { .toc { position: static; } }

.prose { font-size: 1.1rem; line-height: 1.72; min-width: 0; }
.prose > * + * { margin-top: 1.1em; }
.prose > p:first-child { font-size: var(--fs-lead); line-height: 1.5; }
.prose > p:first-child strong { font-weight: 600; }
.prose h2 { margin-top: 2em; font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.3rem); line-height: 1.08; }
.prose h3 { margin-top: 1.8em; font-size: 1.35rem; line-height: 1.15; }
.prose h2 + *, .prose h3 + * { margin-top: 0.6em; }
.prose a:not([class]) { color: var(--green-ink); }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose ul li::marker { content: "■  "; color: var(--green); font-size: 0.7em; }
.prose li + li { margin-top: 0.4em; }
.prose img { width: 100%; margin-block: 0.6em; }
.prose blockquote { padding-left: 24px; border-left: 3px solid var(--lime); font-size: 1.25rem; font-stretch: 104%; }
.prose .video { margin-block: 1.6em; }
.prose .wp-block-embed__wrapper > a { word-break: break-all; }

.inline-cta {
	position: relative;
	margin-top: 3em !important;
	padding: clamp(28px, 4vw, 44px);
	background: var(--ink); color: var(--text);
}
.inline-cta::before {
	content: ""; position: absolute; inset: 0 0 auto; height: 10px;
	background: repeating-linear-gradient(-45deg, var(--lime) 0 8px, var(--ink) 8px 16px);
}
.inline-cta__title { font-weight: 800; font-stretch: 118%; font-size: clamp(1.5rem, 1.1rem + 1.4vw, 2.2rem); line-height: 1.05; letter-spacing: -0.02em; }
.inline-cta p + p { margin-top: 12px; color: #c7ccc4; font-size: 1rem; }
.inline-cta__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.inline-cta .btn--ghost-dark { color: var(--text); border-color: var(--line-strong); }
.inline-cta .btn--ghost-dark:hover { background: var(--text); color: var(--ink); }
.article-updated { font: 500 0.75rem/1 var(--f-mono); color: var(--muted-dark); letter-spacing: 0.04em; }

.related { padding-block: var(--section); }
.related__head { display: flex; align-items: end; justify-content: space-between; gap: 24px; padding-bottom: 24px; margin-bottom: 32px; border-bottom: 1px solid var(--line); }
.related__title { font-size: var(--fs-h2); }
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 3vw, 40px); }
@media (max-width: 960px) { .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .cards { grid-template-columns: 1fr; } }
.card__link { display: block; text-decoration: none; }
.card__media { aspect-ratio: 3 / 2; overflow: hidden; background: var(--ink-3); }
.card__media img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.1); transition: filter 0.5s, transform 0.8s var(--ease); }
.card__link:hover img { filter: none; transform: scale(1.04); }
.card__meta { margin-top: 16px; font: 500 0.72rem/1 var(--f-mono); letter-spacing: 0.06em; color: var(--lime); }
.card__title { margin-top: 10px; font-size: 1.3rem; font-stretch: 108%; line-height: 1.15; }
.card__link:hover .card__title { text-decoration: underline; text-decoration-color: var(--lime); text-decoration-thickness: 2px; }

/* ---------- Article register (blog) ---------- */

.register { padding-block: clamp(32px, 5vw, 64px) var(--section); }
.register__list { list-style: none; counter-reset: reg; }
.register__row { border-top: 1px solid var(--line); }
.register__row:last-child { border-bottom: 1px solid var(--line); }
.register__link {
	display: grid;
	grid-template-columns: 120px minmax(0, 1fr) 48px;
	align-items: start;
	gap: clamp(16px, 3vw, 48px);
	padding: clamp(22px, 3vw, 36px) 0;
	text-decoration: none;
	transition: padding 0.4s var(--ease), background-color 0.3s;
}
.register__date { padding-top: 0.5em; font: 500 0.78rem/1 var(--f-mono); letter-spacing: 0.04em; color: var(--lime); }
.register__thumb { display: none; }
.register__body { display: grid; gap: 10px; min-width: 0; }
.register__title { overflow-wrap: anywhere; -webkit-hyphens: auto; hyphens: auto; font-weight: 800; font-stretch: 112%; font-size: clamp(1.35rem, 1rem + 1.5vw, 2.25rem); line-height: 1.04; letter-spacing: -0.02em; text-wrap: balance; transition: color 0.25s; }
.register__excerpt { max-width: 70ch; color: var(--muted); font-size: 0.98rem; }
.register__arrow { justify-self: end; padding-top: 0.3em; color: var(--muted); transition: color 0.25s, rotate 0.4s var(--ease); }
.register__arrow .icon { width: 30px; height: 30px; }
.register__link:hover .register__title { color: var(--lime); }
.register__link:hover .register__arrow { color: var(--lime); rotate: 45deg; }
@media (hover: hover) and (min-width: 961px) {
	.register__link:hover { padding-left: 16px; }
}
.register__float {
	position: fixed; left: 0; top: 0; z-index: 20;
	width: 300px; aspect-ratio: 3 / 2; object-fit: cover;
	pointer-events: none;
	opacity: 0; scale: 0.9;
	transition: opacity 0.25s, scale 0.35s var(--ease);
	box-shadow: 0 30px 60px rgb(0 0 0 / 0.5);
	outline: 1px solid var(--lime); outline-offset: 6px;
}
.register__float.is-on { opacity: 1; scale: 1; }
@media (max-width: 760px) {
	.register__link { grid-template-columns: 88px minmax(0, 1fr); grid-template-areas: "thumb date" "thumb body"; gap: 6px 16px; }
	.register__date { grid-area: date; padding-top: 0; }
	.register__thumb { grid-area: thumb; display: block; }
	.register__thumb img { width: 88px; aspect-ratio: 1; object-fit: cover; filter: grayscale(1); }
	.register__body { grid-area: body; }
	.register__excerpt { display: none; }
	.register__arrow { display: none; }
}
.register__empty { font-size: var(--fs-lead); margin-bottom: 24px; }

.pager { margin-top: 48px; }
.pager ul { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; }
.pager a, .pager span {
	display: grid; place-items: center; min-width: 44px; height: 44px; padding: 0 14px;
	border: 1px solid var(--line-strong); font: 500 0.85rem/1 var(--f-mono); text-decoration: none;
}
.pager .current { background: var(--lime); color: var(--ink); border-color: var(--lime); }
.pager a:hover { border-color: var(--lime); color: var(--lime); }

.search-form { display: flex; gap: 8px; max-width: 520px; margin-top: 24px; }
.search-form input { flex: 1; min-width: 0; padding: 0 14px; height: 42px; border: 1px solid var(--line-strong); background: transparent; }

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

.not-found {
	display: grid; grid-template-columns: auto 1fr; align-items: center; gap: clamp(32px, 6vw, 96px);
	min-height: 80vh;
	padding-block: calc(var(--header-h) + 64px) var(--section);
}
.not-found__tile { width: clamp(180px, 22vw, 300px); border-color: var(--lime); padding: 18px; }
.not-found__tile .element__sym { font-size: clamp(5rem, 11vw, 9rem); font-stretch: 100%; color: var(--lime); }
.not-found__tile .element__name { font: 500 0.8rem/1 var(--f-mono); color: var(--muted); }
.not-found h1 { font-size: var(--fs-h1); font-stretch: 122%; }
.not-found p { max-width: 50ch; margin-top: 20px; color: #c7ccc4; font-size: var(--fs-lead); line-height: 1.5; }
.not-found__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.not-found > * { min-width: 0; }
@media (max-width: 700px) { .not-found { grid-template-columns: minmax(0, 1fr); } }
.search-form button { flex: none; }

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

.site-footer { background: #080908; border-top: 1px solid var(--line); }
.footer-cta {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	align-items: end;
	gap: 32px clamp(32px, 6vw, 96px);
	padding-block: var(--section) clamp(48px, 6vw, 80px);
	border-bottom: 1px solid var(--line);
}
.footer-cta__copy { grid-row: span 2; }
.footer-cta__title { margin-top: 24px; font-size: var(--fs-h2); font-stretch: 120%; max-width: 14ch; line-height: 0.95; }
.footer-cta__copy p { max-width: 46ch; margin-top: 18px; color: var(--muted); }
.footer-cta__phone { display: grid; gap: 10px; justify-items: end; text-decoration: none; }
.footer-cta__label { font: 500 0.72rem/1 var(--f-mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.footer-cta__number {
	font-weight: 800; font-stretch: 125%; font-size: clamp(2.2rem, 1rem + 5vw, 5.2rem); line-height: 0.9; letter-spacing: -0.04em;
	white-space: nowrap; transition: color 0.25s;
}
.footer-cta__phone:hover .footer-cta__number { color: var(--lime); }
.footer-cta > .btn { justify-self: end; }
.footer-cta > * { min-width: 0; }
@media (max-width: 520px) {
	/* The phone number must fit on one line on a 320 px screen. */
	.footer-cta__number { font-size: 8vw; font-stretch: 100%; letter-spacing: -0.02em; }
	.footer-cta__title { font-stretch: 108%; }
}
@media (max-width: 860px) {
	.footer-cta { grid-template-columns: 1fr; }
	.footer-cta__copy { grid-row: auto; }
	.footer-cta__phone { justify-items: start; }
	.footer-cta > .btn { justify-self: stretch; }
}

.footer-grid {
	display: grid;
	grid-template-columns: 1.4fr 1fr 1fr;
	gap: 40px;
	padding-block: clamp(48px, 6vw, 80px);
}
.footer-grid address { margin-top: 24px; color: var(--muted); font-size: 0.95rem; line-height: 1.7; }
.footer-grid address strong { color: var(--text); font-weight: 650; }
.footer-title { margin-bottom: 18px; font: 600 0.72rem/1 var(--f-mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--lime); }
.footer-menu, .footer-contact { list-style: none; }
.footer-menu li + li, .footer-contact li + li { margin-top: 10px; }
.footer-menu a, .footer-contact a { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); }
.footer-menu a:hover, .footer-contact a:hover { color: var(--lime); }
.footer-contact .icon { width: 16px; height: 16px; color: var(--muted); }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-grid__brand { grid-column: 1 / -1; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }

.footer-base {
	display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px;
	padding-block: 24px;
	border-top: 1px solid var(--line);
	font: 500 0.72rem/1.4 var(--f-mono); letter-spacing: 0.04em; color: var(--muted);
}
.footer-base p { margin-right: auto; }
.footer-base a { text-decoration: none; }
.footer-base a:hover { color: var(--text); }

.footer-base__link { padding: 0; border: 0; background: none; font: inherit; color: inherit; letter-spacing: inherit; }
.footer-base__link:hover { color: var(--text); }

/* Cookie consent – both choices carry equal visual weight (no dark pattern). */
.consent {
	position: fixed; left: var(--gutter); bottom: var(--gutter); z-index: 60;
	width: min(440px, 100% - 2 * var(--gutter));
	padding: 24px 24px 22px;
	background: var(--ink); color: var(--text);
	border: 1px solid var(--line-strong); border-top: 3px solid var(--lime);
	box-shadow: 0 30px 80px rgb(0 0 0 / 0.55);
	opacity: 0; translate: 0 16px;
	transition: opacity 0.35s, translate 0.35s var(--ease);
}
.consent.is-on { opacity: 1; translate: 0 0; }
.consent__tag { font: 500 0.68rem/1 var(--f-mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--lime); }
.consent__title { margin-top: 10px; font-size: 1.35rem; font-stretch: 112%; }
.consent p:not(.consent__tag) { margin-top: 10px; font-size: 0.92rem; line-height: 1.55; color: #c7ccc4; }
.consent a { color: var(--text); }
.consent__actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 18px; }
.consent__btn { min-width: 0; white-space: normal; text-align: center; overflow-wrap: anywhere; background: transparent; color: var(--text); border-color: var(--line-strong); }
.consent__btn:hover { background: var(--text); color: var(--ink); border-color: var(--text); }
@media (max-width: 760px) {
	/* Pinned by left/right, never width: 100% – on iOS a fixed box at 100% can follow a
	   widened layout viewport and drag the page sideways. Contents are clipped to the box. */
	.consent { left: 0; right: 0; bottom: 0; width: auto; max-width: 100vw; overflow-x: clip; overflow-wrap: anywhere; padding-bottom: calc(22px + env(safe-area-inset-bottom)); border-inline: 0; }
}
@media (max-width: 340px) {
	.consent__actions { grid-template-columns: minmax(0, 1fr); }
}

/* Mobile action bar */
.action-bar { display: none; }
@media (max-width: 760px) {
	body { padding-bottom: calc(60px + env(safe-area-inset-bottom)); }
	.action-bar {
		position: fixed; inset: auto 0 0; z-index: 40;
		display: grid; grid-template-columns: 1fr 1.4fr;
		padding-bottom: env(safe-area-inset-bottom);
		background: var(--ink); border-top: 1px solid var(--line);
		translate: 0 100%;
		transition: translate 0.35s var(--ease);
	}
	.action-bar.is-on { translate: 0 0; }
	.action-bar a {
		display: flex; align-items: center; justify-content: center; gap: 10px;
		height: 60px; text-decoration: none;
		font-weight: 650; font-stretch: 112%; font-size: 0.9rem; text-transform: uppercase; letter-spacing: 0.03em;
	}
	.action-bar .is-primary { background: var(--lime); color: var(--ink); }
	.action-bar .icon { width: 18px; height: 18px; }
	.nav-row__cta { display: none; }
}

/* ---------- Reveal on scroll (only with JS, only with motion) ---------- */

@media (prefers-reduced-motion: no-preference) {
	.js [data-reveal] { opacity: 0; translate: 0 28px; transition: opacity 0.8s var(--ease), translate 0.8s var(--ease); }
	.js [data-reveal].is-in { opacity: 1; translate: 0 0; }
}
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

/* ---------- Misc / WordPress ---------- */

.kr-table { overflow-x: auto; }
.kr-table table { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
.kr-table th, .kr-table td { padding: 12px 14px 12px 0; border-bottom: 1px solid var(--line-dark); text-align: left; vertical-align: top; }
.kr-table th { font: 600 0.7rem/1.3 var(--f-mono); letter-spacing: 0.08em; text-transform: uppercase; border-bottom: 1.5px solid currentColor; }
.kr-table td:first-child { font: 500 0.85rem/1.5 var(--f-mono); white-space: nowrap; }
.entry > .wp-block-table { margin-block: 1.6em; font-size: 0.92rem; }
.alignleft { float: left; margin: 0 1.5em 1em 0; }
.alignright { float: right; margin: 0 0 1em 1.5em; }
.aligncenter { margin-inline: auto; }
.wp-caption-text { font: 400 0.75rem/1.4 var(--f-mono); color: var(--muted-dark); margin-top: 8px; }

@media print {
	.site-header, .action-bar, .footer-cta, .hero__media, .toc, .inline-cta { display: none !important; }
	body, .entry, .article { background: #fff !important; color: #000 !important; }
}
