/* ==========================================================================
   A. Bouwknegt jr. — Rieten dakbouwkundig bureau
   Thema-stijlen (CHG-2026-0002). Geen frameworks, alleen moderne CSS.
   ========================================================================== */

:root {
	/* De site is zelf al donker: voorkomt dat de automatische donkere modus van
	   telefoons (Samsung Internet, Chrome) de kleuren nogmaals "verdonkert". */
	color-scheme: dark;

	--black: #0A0A0A;
	--black-deep: #050505;
	--charcoal: #141414;
	--white: #F5F3EE;
	--gold: #C7A15A;
	--gold-light: #D8B978;
	--gray: #A8A39A;

	--line: rgba(245, 243, 238, 0.14);
	--line-gold: rgba(199, 161, 90, 0.45);

	--serif: "Cormorant Garamond", "Iowan Old Style", Georgia, serif;
	--sans: "Montserrat", "Segoe UI", system-ui, -apple-system, sans-serif;

	--container: 1280px;
	--gutter: clamp(20px, 5vw, 72px);
	--section-y: clamp(64px, 8vw, 112px);
	--header-h: 96px;
	--ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* ---------- Basis ---------- */

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

html {
	scroll-behavior: smooth;
	scroll-padding-top: 76px;
	-webkit-text-size-adjust: 100%;
}

body {
	margin: 0;
	background: var(--black);
	color: var(--white);
	font-family: var(--sans);
	font-size: 15px;
	line-height: 1.75;
	-webkit-font-smoothing: antialiased;
	overflow-x: hidden;
}

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

a {
	color: inherit;
}

h1, h2, h3, p, ul, dl, dd, figure, blockquote {
	margin: 0;
}

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

::selection {
	background: var(--gold);
	color: var(--black-deep);
}

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

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

.skip-link {
	position: absolute;
	top: -60px;
	left: 16px;
	z-index: 200;
	padding: 12px 18px;
	background: var(--gold);
	color: var(--black-deep);
	font-weight: 600;
	text-decoration: none;
	transition: top 0.2s;
}

.skip-link:focus {
	top: 12px;
}

.container {
	width: 100%;
	max-width: calc(var(--container) + 2 * var(--gutter));
	margin-inline: auto;
	padding-inline: var(--gutter);
}

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

/* ---------- Typografie & kleine elementen ---------- */

.label {
	margin-bottom: 14px;
	color: var(--gold);
	font-size: 12px;
	font-weight: 500;
	letter-spacing: 0.22em;
	text-transform: uppercase;
}

.section-title {
	font-family: var(--serif);
	font-size: clamp(34px, 3.6vw, 48px);
	font-weight: 500;
	line-height: 1.08;
	letter-spacing: -0.005em;
}

.section-title em,
.cta-title em {
	display: block;
	color: var(--gold);
	font-style: italic;
	font-weight: 400;
}

.gold-rule {
	display: block;
	width: 36px;
	height: 1px;
	margin: 28px 0;
	background: var(--gold);
}

.icon {
	fill: none;
	stroke: var(--gold);
	stroke-width: 1.4;
	stroke-linecap: round;
	stroke-linejoin: round;
	flex: none;
}

.icon .fill,
.footer-social .fill {
	fill: currentColor;
	stroke: none;
}

/* ---------- Knoppen ---------- */

.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 12px;
	min-height: 48px;
	padding: 14px 24px;
	border: 1px solid var(--gold);
	background: transparent;
	color: var(--white);
	font-family: var(--sans);
	font-size: 11.5px;
	font-weight: 600;
	letter-spacing: 0.16em;
	line-height: 1;
	text-transform: uppercase;
	text-decoration: none;
	cursor: pointer;
	transition: background-color 0.3s var(--ease), color 0.3s var(--ease), border-color 0.3s var(--ease);
}

.btn .arrow {
	fill: none;
	stroke: currentColor;
	stroke-width: 1.3;
	transition: transform 0.3s var(--ease);
}

.btn:hover .arrow,
.btn:focus-visible .arrow {
	transform: translateX(4px);
}

.btn-gold {
	background: var(--gold-light);
	border-color: var(--gold-light);
	color: var(--black-deep);
}

.btn-gold:hover,
.btn-gold:focus-visible {
	background: var(--white);
	border-color: var(--white);
}

.btn-outline:hover,
.btn-outline:focus-visible {
	background: var(--gold);
	color: var(--black-deep);
}

.btn[aria-expanded="true"] .arrow {
	transform: rotate(90deg);
}

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

.site-header {
	position: sticky;
	top: 0;
	z-index: 100;
	background: rgba(10, 10, 10, 0.94);
	border-bottom: 1px solid transparent;
	transition: background-color 0.4s var(--ease), border-color 0.4s var(--ease), backdrop-filter 0.4s;
}

.site-header.is-scrolled {
	background: rgba(5, 5, 5, 0.86);
	border-bottom-color: var(--line);
	-webkit-backdrop-filter: blur(10px);
	backdrop-filter: blur(10px);
}

.header-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	min-height: var(--header-h);
	transition: min-height 0.4s var(--ease);
}

.is-scrolled .header-inner {
	min-height: 72px;
}

.brand {
	display: inline-flex;
	text-decoration: none;
}

.brand-logo {
	width: auto;
	height: 66px;
	transition: height 0.4s var(--ease);
}

.is-scrolled .brand-logo {
	height: 52px;
}

/* Tijdelijk tekstlogo, totdat het originele logobestand is aangeleverd. */
.brand-text {
	display: inline-flex;
	flex-direction: column;
	align-items: center;
	line-height: 1;
}

.brand-text-top {
	color: var(--gold);
	font-size: 11px;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

.brand-text-name {
	margin-top: 5px;
	font-size: 24px;
	font-weight: 700;
	letter-spacing: 0.01em;
}

.brand-text-name span {
	text-transform: none;
}

.brand-text-rule {
	width: 100%;
	height: 1px;
	margin: 8px 0 6px;
	background: var(--gray);
	opacity: 0.6;
}

.brand-text-sub {
	color: var(--gray);
	font-size: 7.5px;
	letter-spacing: 0.14em;
	text-transform: uppercase;
}

.primary-nav .menu {
	display: flex;
	gap: clamp(20px, 2.6vw, 42px);
}

.primary-nav a {
	position: relative;
	display: inline-block;
	padding: 8px 0;
	color: var(--white);
	font-size: 11.5px;
	font-weight: 500;
	letter-spacing: 0.16em;
	text-decoration: none;
	text-transform: uppercase;
	transition: color 0.3s;
}

.primary-nav a::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	height: 1px;
	background: var(--gold);
	transform: scaleX(0);
	transform-origin: left;
	transition: transform 0.35s var(--ease);
}

.primary-nav a:hover,
.primary-nav a[aria-current="true"] {
	color: var(--gold-light);
}

.primary-nav a:hover::after,
.primary-nav a[aria-current="true"]::after {
	transform: scaleX(1);
}

.nav-toggle {
	display: none;
	position: relative;
	width: 48px;
	height: 48px;
	padding: 0;
	border: 1px solid var(--line-gold);
	background: transparent;
	cursor: pointer;
}

.nav-toggle-bar {
	position: absolute;
	left: 13px;
	width: 20px;
	height: 1px;
	background: var(--white);
	transition: transform 0.3s var(--ease), opacity 0.3s;
}

.nav-toggle-bar:nth-child(1) { top: 17px; }
.nav-toggle-bar:nth-child(2) { top: 23px; }
.nav-toggle-bar:nth-child(3) { top: 29px; }

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ---------- Hero ---------- */

.hero {
	position: relative;
	display: flex;
	align-items: center;
	min-height: 680px;
	overflow: hidden;
	background: var(--black-deep);
	isolation: isolate;
}

.hero-media {
	position: absolute;
	inset: 0;
	z-index: -1;
}

.hero-img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: 70% 50%;
}

.hero-media::after {
	content: "";
	position: absolute;
	inset: 0;
	background:
		linear-gradient(90deg, rgba(5, 5, 5, 0.92) 0%, rgba(5, 5, 5, 0.78) 30%, rgba(5, 5, 5, 0.25) 58%, rgba(5, 5, 5, 0) 75%),
		linear-gradient(0deg, rgba(5, 5, 5, 0.55) 0%, rgba(5, 5, 5, 0) 30%);
}

.hero-content {
	padding-block: 96px;
}

.hero-title {
	display: flex;
	flex-direction: column;
	font-weight: 400;
	line-height: 1;
}

.hero-eyebrow {
	color: var(--gold-light);
	font-size: clamp(15px, 1.5vw, 19px);
	font-weight: 400;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

.hero-name {
	margin-top: 12px;
	font-size: clamp(27px, 8.4vw, 56px);
	font-weight: 700;
	letter-spacing: 0.005em;
	white-space: nowrap;
}

@media (min-width: 768px) {
	.hero-name {
		font-size: clamp(40px, 4.2vw, 56px);
	}
}

.hero-name-jr {
	font-weight: 700;
}

.hero-rule {
	display: flex;
	align-items: center;
	gap: 6px;
	width: min(100%, 330px);
	margin: 16px 0 14px;
}

.hero-rule span {
	flex: 1;
	height: 1px;
	background: rgba(245, 243, 238, 0.7);
}

.feather {
	fill: var(--white);
	stroke: none;
	margin-bottom: 10px;
}

.hero-services {
	width: min(100%, 330px);
	font-size: 13px;
	letter-spacing: 0.06em;
	text-align: center;
	text-transform: uppercase;
}

.hero-services span {
	margin-inline: 8px;
}

.hero-claim {
	margin: 34px 0 34px;
	font-family: var(--serif);
	font-size: clamp(20px, 1.9vw, 24px);
	line-height: 1.35;
}

/* ---------- Diensten ---------- */

.services {
	background: var(--black);
	border-top: 1px solid var(--line);
}

.services-grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
	gap: clamp(40px, 6vw, 96px);
	align-items: center;
}

.services-intro p:last-child {
	max-width: 46ch;
	font-size: 14.5px;
}

.services-list {
	display: grid;
	grid-template-columns: 1fr 1fr;
	border-left: 1px solid var(--line);
}

.service {
	position: relative;
	padding: 6px clamp(24px, 3vw, 44px) 30px;
}

.service:nth-child(n + 3) {
	padding-top: 32px;
	padding-bottom: 6px;
}

.service:nth-child(odd) {
	border-right: 1px solid var(--line);
}

.service:nth-child(-n + 2)::after {
	content: "";
	position: absolute;
	left: clamp(24px, 3vw, 44px);
	right: clamp(24px, 3vw, 44px);
	bottom: 0;
	height: 1px;
	background: var(--line);
}

.service .icon-lg {
	margin-bottom: 16px;
}

.service h3 {
	margin-bottom: 8px;
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.2em;
	text-transform: uppercase;
}

.service p {
	color: var(--gray);
	font-size: 13px;
	line-height: 1.7;
}

.advice {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 20px 48px;
	margin-top: clamp(48px, 6vw, 80px);
	padding-top: 32px;
	border-top: 1px solid var(--line);
}

.advice-text {
	flex: 1 1 520px;
}

.advice-title {
	margin-bottom: 6px;
	font-family: var(--serif);
	font-size: 26px;
	font-weight: 500;
}

.advice-text p {
	max-width: 70ch;
	color: var(--gray);
	font-size: 13.5px;
}

.advice-price {
	font-family: var(--serif);
	font-size: 30px;
	color: var(--gold-light);
	white-space: nowrap;
}

.advice-price-label {
	display: block;
	color: var(--gray);
	font-family: var(--sans);
	font-size: 11px;
	letter-spacing: 0.2em;
	text-transform: uppercase;
}

.advice-price small {
	color: var(--gray);
	font-family: var(--sans);
	font-size: 12px;
}

/* ---------- Over ons ---------- */

.about {
	position: relative;
	display: grid;
	grid-template-columns: 55% 45%;
	min-height: 520px;
	background: var(--black-deep);
	border-block: 1px solid var(--line);
}

.about-media {
	position: relative;
	overflow: hidden;
	clip-path: polygon(0 0, 100% 0, 78% 100%, 0 100%);
}

.about-img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.about-content {
	align-self: center;
	padding: var(--section-y) var(--gutter) var(--section-y) 0;
	max-width: 560px;
}

.about-content p:not(.label) {
	margin: 36px 0 28px;
	font-size: 14.5px;
}

/* ---------- Uitklap-panelen ---------- */

.more-panel {
	padding-block: clamp(48px, 6vw, 88px);
	background: var(--charcoal);
	border-bottom: 1px solid var(--line);
}

.more-panel[hidden] {
	display: none;
}

.more-grid {
	display: grid;
	grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
	gap: clamp(32px, 5vw, 80px);
	align-items: start;
}

.more-title {
	margin-bottom: 20px;
	font-family: var(--serif);
	font-size: clamp(26px, 2.6vw, 34px);
	font-weight: 500;
	line-height: 1.15;
}

.more-story p {
	margin-bottom: 16px;
	color: var(--gray);
}

.credentials {
	margin-top: 28px;
	border-top: 1px solid var(--line);
}

.credentials li {
	padding: 14px 0;
	border-bottom: 1px solid var(--line);
	color: var(--gray);
	font-size: 13.5px;
}

.credentials strong {
	display: block;
	color: var(--white);
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.16em;
	text-transform: uppercase;
}

.more-figure img,
.exhibits img,
.more-gallery img {
	width: 100%;
	border: 1px solid var(--line);
}

figcaption {
	margin-top: 10px;
	color: var(--gray);
	font-size: 12px;
	letter-spacing: 0.04em;
}

.more-exhibits {
	margin-top: clamp(40px, 5vw, 72px);
}

.more-lead {
	max-width: 70ch;
	margin-bottom: 28px;
	color: var(--gray);
}

.exhibits {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: clamp(20px, 3vw, 40px);
	max-width: 900px;
}

.exhibits img {
	background: var(--white);
}

.more-gallery {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 20px;
}

.more-gallery img {
	aspect-ratio: 4 / 3;
	object-fit: cover;
}

.quote {
	max-width: 760px;
	margin: 48px auto 0;
	padding-left: 28px;
	border-left: 1px solid var(--gold);
}

.quote p {
	font-family: var(--serif);
	font-size: clamp(22px, 2.2vw, 28px);
	font-style: italic;
	line-height: 1.35;
}

.quote cite {
	display: block;
	margin-top: 14px;
	color: var(--gold);
	font-size: 12px;
	font-style: normal;
	letter-spacing: 0.16em;
	text-transform: uppercase;
}

/* ---------- Projecten ---------- */

.projects {
	background: var(--black);
}

.projects-grid {
	display: grid;
	grid-template-columns: minmax(350px, 1fr) minmax(0, 2.4fr);
	gap: clamp(32px, 4vw, 64px);
	align-items: start;
}

.projects-intro p:not(.label) {
	margin-bottom: 28px;
	font-size: 13.5px;
}

.slider {
	min-width: 0;
}

.slider-track {
	display: grid;
	grid-auto-flow: column;
	grid-auto-columns: calc((100% - 2 * 12px) / 3);
	gap: 12px;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scrollbar-width: none;
	overscroll-behavior-x: contain;
}

.slider-track::-webkit-scrollbar {
	display: none;
}

.slide {
	scroll-snap-align: start;
	overflow: hidden;
}

.slide img {
	width: 100%;
	aspect-ratio: 4 / 3.1;
	object-fit: cover;
	transition: transform 0.8s var(--ease);
}

.slide:hover img {
	transform: scale(1.03);
}

.slider-dots {
	display: flex;
	justify-content: center;
	gap: 8px;
	margin-top: 20px;
	min-height: 10px;
}

.slider-dots button {
	width: 10px;
	height: 10px;
	padding: 0;
	border: 1px solid var(--gold);
	border-radius: 50%;
	background: transparent;
	cursor: pointer;
	transition: background-color 0.3s;
}

.slider-dots button[aria-current="true"] {
	background: var(--gold);
}

/* ---------- Contact (CTA) ---------- */

.contact {
	background: var(--black);
}

.cta {
	position: relative;
	isolation: isolate;
	overflow: hidden;
	border-top: 1px solid var(--line);
	border-bottom: 1px solid var(--line);
}

.cta-media {
	position: absolute;
	inset: 0;
	z-index: -1;
}

.cta-img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: 50% 50%;
}

.cta-media::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(90deg, rgba(5, 5, 5, 0.96) 0%, rgba(5, 5, 5, 0.88) 38%, rgba(5, 5, 5, 0.45) 70%, rgba(5, 5, 5, 0.3) 100%);
}

.cta-inner {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	gap: 28px 40px;
	align-items: end;
	padding-block: 40px;
}

.cta-text {
	grid-column: 1 / -1;
}

.cta-text .label {
	margin-bottom: 12px;
	font-size: 11px;
}

.cta-title {
	font-family: var(--serif);
	font-size: clamp(26px, 2.4vw, 32px);
	font-weight: 500;
	line-height: 1.15;
}

.usps {
	display: flex;
	flex-wrap: wrap;
	gap: 20px clamp(28px, 5vw, 72px);
}

.usps li {
	display: flex;
	align-items: center;
	gap: 14px;
	color: var(--gray);
	font-size: 11.5px;
	line-height: 1.5;
}

.usps strong {
	display: block;
	color: var(--white);
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.16em;
	text-transform: uppercase;
}

.cta-btn {
	justify-self: end;
}

/* ---------- Contactgegevens & formulier ---------- */

.contact-grid {
	display: grid;
	grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
	gap: clamp(40px, 6vw, 96px);
	padding-block: var(--section-y);
	scroll-margin-top: 72px;
}

.contact-heading {
	margin-bottom: 24px;
	font-family: var(--serif);
	font-size: 28px;
	font-weight: 500;
}

.contact-details dl {
	margin-bottom: 28px;
	border-top: 1px solid var(--line);
}

.contact-details dl div {
	padding: 14px 0;
	border-bottom: 1px solid var(--line);
}

.contact-details dt {
	color: var(--gold);
	font-size: 11px;
	letter-spacing: 0.18em;
	text-transform: uppercase;
}

.contact-details dd a {
	text-decoration-color: var(--line-gold);
	text-underline-offset: 4px;
}

.event {
	margin-top: 40px;
	padding: 22px 24px;
	border: 1px solid var(--line-gold);
}

.event .label {
	margin-bottom: 6px;
}

.event-stand {
	color: var(--gray);
	font-size: 13px;
}

.form-row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 0 20px;
}

.field {
	margin-bottom: 18px;
}

.field label {
	display: block;
	margin-bottom: 6px;
	color: var(--gray);
	font-size: 11px;
	letter-spacing: 0.16em;
	text-transform: uppercase;
}

.field input,
.field textarea {
	width: 100%;
	padding: 13px 14px;
	border: 1px solid var(--line);
	border-radius: 0;
	background: var(--charcoal);
	color: var(--white);
	font: inherit;
	font-size: 15px;
	transition: border-color 0.3s;
}

.field input:focus,
.field textarea:focus {
	border-color: var(--gold);
	outline: none;
}

.field input:focus-visible,
.field textarea:focus-visible {
	outline: 2px solid var(--gold-light);
	outline-offset: 1px;
}

.field textarea {
	resize: vertical;
}

.form-note {
	margin-bottom: 22px;
	color: var(--gray);
	font-size: 12.5px;
}

.form-status {
	margin-bottom: 20px;
	padding: 12px 16px;
	border-left: 2px solid var(--gold);
	background: var(--charcoal);
	font-size: 14px;
}

.form-status.is-error {
	border-left-color: #E07A6A;
}

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

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

.site-footer {
	background: var(--black-deep);
	border-top: 1px solid var(--line);
}

.footer-inner {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 28px;
	padding-block: 40px 28px;
}

.footer-brand .brand-logo {
	height: 60px;
}

.footer-meta {
	display: flex;
	align-items: center;
	gap: 28px;
}

.footer-region {
	display: flex;
	align-items: center;
	gap: 12px;
	font-size: 13px;
}

.footer-social {
	display: flex;
	gap: 8px;
	padding-left: 28px;
	border-left: 1px solid var(--line);
}

.footer-social a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	color: var(--gold);
	transition: color 0.3s;
}

.footer-social a:hover {
	color: var(--gold-light);
}

.footer-social svg {
	fill: none;
	stroke: currentColor;
	stroke-width: 1.5;
}

.footer-bottom {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 12px 32px;
	padding-block: 18px 28px;
	border-top: 1px solid var(--line);
	color: var(--gray);
	font-size: 12px;
}

.footer-links {
	display: flex;
	flex-wrap: wrap;
	gap: 6px 24px;
}

.footer-links a {
	text-decoration: none;
	transition: color 0.3s;
}

.footer-links a:hover {
	color: var(--gold-light);
}

/* ---------- Overige pagina's (index.php) ---------- */

.entry-content {
	max-width: 72ch;
}

.entry-content > * + * {
	margin-top: 1em;
}

.entry-content a {
	color: var(--gold-light);
}

/* ---------- Animaties ---------- */

/* Voorkomt een horizontale scrollbalk zolang blokken nog "buiten beeld" staan. */
main {
	overflow-x: clip;
}

/* 1. Hero: tekstregels vliegen bij het laden één voor één binnen. */
@keyframes rdb-fly-in {
	from {
		opacity: 0;
		transform: translateY(28px);
	}
	to {
		opacity: 1;
		transform: none;
	}
}

@keyframes rdb-fade-in {
	from { opacity: 0; }
	to { opacity: 1; }
}

.js .hero-content > * {
	opacity: 0;
	animation: rdb-fly-in 0.8s cubic-bezier(0.2, 0.7, 0.2, 1) forwards;
}

.js .hero-content > :nth-child(1) { animation-delay: 0.15s; }
.js .hero-content > :nth-child(2) { animation-delay: 0.3s; }
.js .hero-content > :nth-child(3) { animation-delay: 0.42s; }
.js .hero-content > :nth-child(4) { animation-delay: 0.54s; }
.js .hero-content > :nth-child(5) { animation-delay: 0.68s; }

.js .site-header {
	animation: rdb-fade-in 0.6s ease both;
}

/* 2. Bij het scrollen: blokken schuiven van onder, links of rechts binnen. */
.js .reveal {
	opacity: 0;
	transform: translateY(28px);
	transition: opacity 0.6s ease, transform 0.8s cubic-bezier(0.2, 0.7, 0.2, 1);
	transition-delay: var(--reveal-delay, 0s);
	will-change: opacity, transform;
}

.js .reveal-left {
	transform: translateX(-56px);
}

.js .reveal-right {
	transform: translateX(56px);
}

.js .reveal.is-visible {
	opacity: 1;
	transform: none;
}

/* Kort na elkaar in rasters en rijen. */
.services-list .reveal:nth-child(2),
.usps .reveal:nth-child(2),
.exhibits .reveal:nth-child(2) { --reveal-delay: 0.1s; }
.services-list .reveal:nth-child(3),
.usps .reveal:nth-child(3) { --reveal-delay: 0.2s; }
.services-list .reveal:nth-child(4) { --reveal-delay: 0.3s; }

@media (max-width: 767px) {
	.js .reveal-left { transform: translateX(-32px); }
	.js .reveal-right { transform: translateX(32px); }
}

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}

	*,
	*::before,
	*::after {
		transition-duration: 0.01ms !important;
		animation-duration: 0.01ms !important;
		animation-delay: 0s !important;
		transition-delay: 0s !important;
	}

	.js .hero-content > *,
	.js .reveal {
		opacity: 1;
		transform: none;
		animation: none;
	}
}

/* ---------- Tablet (768–1199px) ---------- */

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

	.services-list {
		max-width: 760px;
	}

	.about {
		grid-template-columns: 50% 50%;
	}

	.about-content {
		padding-left: 8px;
	}

	.projects-grid {
		grid-template-columns: 1fr;
	}

	.projects-intro {
		max-width: 560px;
	}

	.more-gallery {
		grid-template-columns: repeat(2, 1fr);
	}

	.cta-inner {
		grid-template-columns: 1fr;
	}

	.cta-btn {
		justify-self: start;
	}
}

/* ---------- Mobiel menu (tot 1023px) ---------- */

@media (max-width: 1023px) {
	:root {
		--header-h: 80px;
	}

	.nav-toggle {
		display: block;
	}

	.brand-logo {
		height: 52px;
	}

	.primary-nav {
		position: absolute;
		top: 100%;
		left: 0;
		right: 0;
		visibility: hidden;
		opacity: 0;
		transform: translateY(-8px);
		background: var(--black-deep);
		border-bottom: 1px solid var(--line);
		transition: opacity 0.3s var(--ease), transform 0.3s var(--ease), visibility 0.3s;
	}

	.primary-nav.is-open {
		visibility: visible;
		opacity: 1;
		transform: none;
	}

	.primary-nav .menu {
		flex-direction: column;
		gap: 0;
		padding: 8px var(--gutter) 20px;
	}

	.primary-nav a {
		display: block;
		padding: 16px 0;
		border-bottom: 1px solid var(--line);
		font-size: 13px;
	}

	.primary-nav a::after {
		display: none;
	}

	.slider-track {
		grid-auto-columns: 78%;
	}
}

/* ---------- Mobiel (320–767px) ---------- */

@media (max-width: 767px) {
	body {
		font-size: 15px;
	}

	.brand-text-name {
		font-size: 20px;
	}

	/* Mobiel: foto bovenaan helder in beeld (het rieten dak is de hoofdrolspeler),
	   tekst eronder op zwart, met een zachte overgang. Zelfde gevoel als desktop,
	   waar de tekst naast het dak staat in plaats van eroverheen. */
	.hero {
		display: block;
		min-height: 0;
	}

	.hero-media {
		position: relative;
		height: 50vh;
		height: 50svh; /* zichtbare hoogte, rekening houdend met de adresbalk */
		min-height: 300px;
		max-height: 520px;
	}

	.hero-img {
		object-position: 50% 35%;
	}

	.hero-media::after {
		background:
			linear-gradient(0deg, var(--black-deep) 0%, rgba(5, 5, 5, 0.55) 16%, rgba(5, 5, 5, 0) 40%),
			linear-gradient(180deg, rgba(5, 5, 5, 0.35) 0%, rgba(5, 5, 5, 0) 18%);
	}

	.hero-content {
		position: relative;
		margin-top: -56px;
		padding-block: 0 56px;
	}

	.hero-claim {
		margin: 26px 0;
	}

	.hero .btn,
	.cta-btn {
		width: 100%;
	}

	.services-list {
		grid-template-columns: 1fr;
		border-left: 0;
	}

	.service,
	.service:nth-child(n + 3) {
		padding: 26px 0;
		border-right: 0 !important;
		border-bottom: 1px solid var(--line);
	}

	.service::after {
		display: none;
	}

	.service:last-child {
		border-bottom: 0;
	}

	.advice-price {
		white-space: normal;
	}

	.about {
		grid-template-columns: 1fr;
	}

	.about-media {
		min-height: 300px;
		clip-path: polygon(0 0, 100% 0, 100% 86%, 0 100%);
	}

	.about-content {
		padding: 48px var(--gutter) var(--section-y);
	}

	.more-grid,
	.exhibits {
		grid-template-columns: 1fr;
	}

	.more-gallery {
		grid-template-columns: 1fr;
	}

	.slider {
		margin-inline: calc(-1 * var(--gutter));
	}

	.slider-track {
		grid-auto-columns: 84%;
		padding-inline: var(--gutter);
		scroll-padding-inline: var(--gutter);
	}

	.usps {
		flex-direction: column;
	}

	.contact-grid {
		grid-template-columns: 1fr;
	}

	.form-row {
		grid-template-columns: 1fr;
	}

	.footer-inner,
	.footer-meta {
		flex-direction: column;
		align-items: flex-start;
	}

	.footer-social {
		padding-left: 0;
		border-left: 0;
		margin-left: -12px;
	}
}
