/* ============================================
   Theuws 2026 — Main Stylesheet
   Design System v3 — "Warm Teal"

   Typography: Space Grotesk (headings) + Inter (body) + JetBrains Mono (data)
   Palette: Warm off-white canvas, deep teal accent, amber warmth
   ============================================ */


/* ============================================
   1. Custom Properties
   ============================================ */

:root {
    /* Backgrounds */
    --bg-page:        #FAFAF8;
    --bg-surface:     #FFFFFF;
    --bg-subtle:      #F3F1ED;
    --bg-inverse:     #1A1D21;

    /* Accent — Deep Teal (professional) */
    --accent:         #1A6B6A;
    --accent-hover:   #145250;
    --accent-light:   #E8F4F3;
    --accent-subtle:  rgba(26, 107, 106, 0.08);

    /* Accent Warm — Amber (personal / Sara content) */
    --warm:           #C4753B;
    --warm-hover:     #A8612E;
    --warm-light:     #FDF3EC;
    --warm-subtle:    rgba(196, 117, 59, 0.08);

    /* Text */
    --text-primary:   #1A1D21;
    --text-secondary: #4A4D52;
    --text-muted:     #7A7D82;
    --text-inverse:   #F0EDE8;

    /* Borders */
    --border:         #E5E2DD;
    --border-strong:  #D0CDC7;

    /* Shadows */
    --shadow-sm:      0 1px 2px rgba(0, 0, 0, 0.04), 0 1px 4px rgba(0, 0, 0, 0.03);
    --shadow-md:      0 2px 8px rgba(0, 0, 0, 0.06), 0 1px 4px rgba(0, 0, 0, 0.04);
    --shadow-lg:      0 8px 24px rgba(0, 0, 0, 0.08), 0 2px 8px rgba(0, 0, 0, 0.04);

    /* Typography */
    --font-heading:   'Space Grotesk', system-ui, sans-serif;
    --font-body:      'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-mono:      'JetBrains Mono', 'SF Mono', monospace;

    /* Spacing */
    --section-gap:    clamp(4rem, 8vw, 7rem);
    --content-width:  1120px;
    --content-narrow: 720px;
}


/* ============================================
   2. Reset
   ============================================ */

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

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-body);
    color: var(--text-primary);
    background: var(--bg-page);
    line-height: 1.65;
    font-weight: 400;
}

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

a {
    color: var(--accent);
    text-decoration: none;
}

a:hover {
    color: var(--accent-hover);
}

ul,
ol {
    list-style: none;
}


/* ============================================
   3. Typography Scale
   ============================================ */

h1, h2, h3, h4, h5 {
    font-family: var(--font-heading);
    line-height: 1.15;
    font-weight: 600;
    letter-spacing: -0.02em;
}

h1 {
    font-size: clamp(2.25rem, 5vw, 3.5rem);
    font-weight: 700;
    letter-spacing: -0.03em;
}

h2 {
    font-size: clamp(1.75rem, 3.5vw, 2.5rem);
    margin-bottom: 1rem;
}

h3 {
    font-size: clamp(1.25rem, 2vw, 1.5rem);
    margin-bottom: 0.5rem;
}

p {
    margin-bottom: 1rem;
}

p:last-child {
    margin-bottom: 0;
}

strong {
    font-weight: 500;
    color: var(--text-primary);
}


/* ============================================
   4. Labels
   ============================================ */

.label {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--accent);
}

.label--warm {
    color: var(--warm);
}


/* ============================================
   5. Stat Numbers
   ============================================ */

.stat-number {
    font-family: var(--font-mono);
    font-weight: 500;
    font-size: 1.75rem;
    color: var(--accent);
    letter-spacing: -0.02em;
}


/* ============================================
   6. Layout
   ============================================ */

.container {
    max-width: var(--content-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

.container--narrow {
    max-width: var(--content-narrow);
}

section {
    padding: var(--section-gap) 0;
}


/* ============================================
   7. Header
   ============================================ */

.header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(250, 250, 248, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
}

.header--scrolled {
    box-shadow: var(--shadow-sm);
}

.header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}

.header__brand {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    font-family: var(--font-heading);
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.02em;
}

.header__brand:hover {
    color: var(--text-primary);
}

.header__logo {
    width: 32px;
    height: 32px;
    color: var(--text-primary);
    flex-shrink: 0;
}

.header__brand span {
    font-weight: 400;
    color: var(--text-muted);
}

/* Mobile menu toggle — hidden on desktop */
.header__menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    color: var(--text-primary);
}

.header__menu-toggle svg {
    width: 24px;
    height: 24px;
}

/* Hamburger icon — CSS-only with open/close animation */
.header__menu-icon {
    display: block;
    width: 22px;
    height: 2px;
    background: currentColor;
    border-radius: 1px;
    position: relative;
    transition: background 0.2s ease;
}

.header__menu-icon::before,
.header__menu-icon::after {
    content: '';
    position: absolute;
    left: 0;
    width: 100%;
    height: 2px;
    background: currentColor;
    border-radius: 1px;
    transition: transform 0.3s ease, top 0.3s ease, bottom 0.3s ease;
}

.header__menu-icon::before {
    top: -7px;
}

.header__menu-icon::after {
    bottom: -7px;
}

/* Animate to X when menu is open */
.header__menu-toggle[aria-expanded="true"] .header__menu-icon {
    background: transparent;
}

.header__menu-toggle[aria-expanded="true"] .header__menu-icon::before {
    top: 0;
    transform: rotate(45deg);
}

.header__menu-toggle[aria-expanded="true"] .header__menu-icon::after {
    bottom: 0;
    transform: rotate(-45deg);
}


/* ============================================
   8. Navigation
   ============================================ */

.nav {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav a {
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
    transition: color 0.15s;
}

.nav a:hover {
    color: var(--text-primary);
}

.nav a.active,
.nav .current-menu-item > a {
    color: var(--accent);
}


/* ============================================
   9. Hero
   ============================================ */

.hero {
    padding: clamp(3rem, 8vw, 6rem) 0 var(--section-gap);
}

.hero__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero__content {
    max-width: 540px;
}

.hero__intro {
    font-size: 1.125rem;
    color: var(--text-secondary);
    margin: 1.5rem 0 2rem;
    line-height: 1.75;
}

.hero__ctas {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.hero__photo {
    aspect-ratio: 4/5;
    background: var(--bg-subtle);
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    border: 1px solid var(--border);
}

.hero__photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}


/* ============================================
   10. Buttons
   ============================================ */

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 500;
    border-radius: 6px;
    border: 1px solid transparent;
    cursor: pointer;
    transition: all 0.15s;
}

.btn--primary {
    background: var(--accent);
    color: white;
    border-color: var(--accent);
}

.btn--primary:hover {
    background: var(--accent-hover);
    border-color: var(--accent-hover);
    color: white;
}

.btn--secondary {
    background: var(--bg-surface);
    color: var(--text-primary);
    border-color: var(--border-strong);
}

.btn--secondary:hover {
    background: var(--bg-subtle);
    border-color: var(--text-muted);
}

.btn--warm {
    background: var(--warm);
    color: white;
    border-color: var(--warm);
}

.btn--warm:hover {
    background: var(--warm-hover);
    border-color: var(--warm-hover);
    color: white;
}


/* ============================================
   11. Persona Cards
   ============================================ */

.personas {
    background: var(--bg-surface);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.personas__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.persona-card {
    padding: 2rem 1.5rem;
    border: 1px solid var(--border);
    border-radius: 8px;
    transition: all 0.2s;
    cursor: pointer;
    background: var(--bg-page);
}

.persona-card:hover {
    border-color: var(--accent);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.persona-card:last-child:hover {
    border-color: var(--warm);
}

.persona-card h3 {
    margin: 1rem 0 0.5rem;
    font-size: 1.125rem;
}

.persona-card p {
    font-size: 0.875rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.persona-card__icon {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    background: var(--accent-light);
    color: var(--accent);
}

.persona-card:last-child .persona-card__icon {
    background: var(--warm-light);
    color: var(--warm);
}

.persona-card__arrow {
    margin-top: 1rem;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--accent);
}

.persona-card:last-child .persona-card__arrow {
    color: var(--warm);
}


/* ============================================
   12. Section Headers
   ============================================ */

.section-header {
    margin-bottom: 3rem;
}

.section-header p {
    max-width: 600px;
    color: var(--text-secondary);
    font-size: 1.05rem;
    margin-top: 0.75rem;
    line-height: 1.7;
}


/* ============================================
   13. Build Cards (What I Build / Portfolio)
   ============================================ */

.builds__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.build-card {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 2rem;
    transition: all 0.2s;
}

.build-card:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--border-strong);
}

.build-card h3 {
    margin: 1rem 0 0.5rem;
}

.build-card p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.65;
}

.build-card__meta {
    margin-top: 1.25rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--border);
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* Project card stats (used on /projecten/) */
.project-card__stats {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
}

.project-card__stat {
    display: inline-flex;
    align-items: center;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    font-weight: 500;
    color: var(--accent);
    background: var(--accent-light);
    padding: 0.25rem 0.625rem;
    border-radius: 3px;
    letter-spacing: 0.02em;
}


/* ============================================
   14. About / Story Section
   ============================================ */

.about {
    background: var(--bg-subtle);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.about__grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 4rem;
    align-items: start;
}

.about__photo {
    aspect-ratio: 3/4;
    background: var(--bg-surface);
    border-radius: 8px;
    border: 1px solid var(--border);
    overflow: hidden;
    position: relative;
}

.about__photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.about__text p {
    color: var(--text-secondary);
    margin-bottom: 1.25rem;
    font-size: 1.05rem;
    line-height: 1.75;
}

.about__text p strong {
    color: var(--text-primary);
    font-weight: 500;
}


/* ============================================
   15. Timeline
   ============================================ */

.timeline {
    margin: 2rem 0;
    padding-left: 1.5rem;
    border-left: 2px solid var(--border);
}

.timeline__item {
    padding: 0 0 1.5rem 1rem;
    position: relative;
}

.timeline__item::before {
    content: '';
    position: absolute;
    left: -1.5rem;
    top: 0.5rem;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent);
    margin-left: -3px;
}

.timeline__item:last-child {
    padding-bottom: 0;
}

.timeline__item:last-child::before {
    background: var(--warm);
}

.timeline__year {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--text-muted);
}

.timeline__text {
    font-size: 0.9rem;
    color: var(--text-secondary);
}


/* ============================================
   16. Sara Section
   ============================================ */

.sara {
    background: var(--warm-light);
    border-bottom: 1px solid #E8D5C4;
}

.sara__grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 4rem;
    align-items: center;
}

.sara__text p {
    color: var(--text-secondary);
    margin-bottom: 1.25rem;
    font-size: 1.05rem;
    line-height: 1.75;
}

.sara__stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.sara__stat {
    background: var(--bg-surface);
    border: 1px solid #E8D5C4;
    border-radius: 8px;
    padding: 1.5rem;
}

.sara__stat .stat-number {
    color: var(--warm);
}

.sara__stat p {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 0.25rem;
}


/* ============================================
   17. Testimonials
   ============================================ */

.testimonials {
    background: var(--bg-subtle);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.testimonials__marquee {
    position: relative;
    overflow: hidden;
    padding: 1rem 0 0;
}

.testimonials__marquee::before,
.testimonials__marquee::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: clamp(3rem, 8vw, 8rem);
    z-index: 2;
    pointer-events: none;
}

.testimonials__marquee::before {
    left: 0;
    background: linear-gradient(to right, var(--bg-subtle) 0%, transparent 100%);
}

.testimonials__marquee::after {
    right: 0;
    background: linear-gradient(to left, var(--bg-subtle) 0%, transparent 100%);
}

.testimonials__row {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.testimonials__row:last-child {
    margin-bottom: 0;
}

.testimonials__track {
    display: flex;
    gap: 1.5rem;
    flex-shrink: 0;
    min-width: 100%;
    animation: marquee-scroll 45s linear infinite;
}

@keyframes marquee-scroll {
    from { transform: translateX(0); }
    to { transform: translateX(calc(-100% - 1.5rem)); }
}

.testimonials__row--reverse .testimonials__track {
    animation-direction: reverse;
    animation-duration: 38s;
}

.testimonials__marquee:hover .testimonials__track {
    animation-play-state: paused;
}

@media (prefers-reduced-motion: reduce) {
    .testimonials__track {
        animation-play-state: paused;
    }
}

.testimonial-card {
    flex-shrink: 0;
    width: clamp(280px, 22vw, 380px);
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 2rem;
    transition: border-color 0.15s, box-shadow 0.15s;
}

.testimonial-card:hover {
    border-color: var(--border-strong, var(--border));
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
}

.testimonial-card__quote {
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.7;
    font-style: italic;
    margin: 0 0 1.5rem 0;
    position: relative;
    padding-top: 1.5rem;
}

.testimonial-card__quote::before {
    content: '\201C';
    font-family: var(--font-heading);
    font-size: 2.5rem;
    color: var(--accent);
    line-height: 1;
    position: absolute;
    top: 0;
    left: 0;
}

.testimonial-card__author {
    font-weight: 500;
    font-size: 0.9rem;
    color: var(--text-primary);
}

.testimonial-card__role {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 0.15rem;
}

a.testimonial-card__role {
    text-decoration: none;
    transition: color 0.2s ease;
}

a.testimonial-card__role:hover {
    color: var(--accent);
}

/* Static testimonials grid (non-marquee, for subpages) */
.testimonials__static-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.testimonial-card--static {
    width: auto;
    flex-shrink: 1;
}

.testimonial-card__logo {
    height: 28px;
    width: auto;
    opacity: 0.6;
    transition: opacity 0.2s ease;
    flex-shrink: 0;
}

.testimonial-card:hover .testimonial-card__logo {
    opacity: 1;
}

.testimonial-card__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}


/* ============================================
   17b. Section Dividers & Decorative Elements
   ============================================ */

/* Organic wave divider — seamless transition between sections.
   Background = color of section ABOVE. SVG fill = color of section BELOW. */
.section-divider {
    width: 100%;
    height: 48px;
    overflow: hidden;
    line-height: 0;
    margin: 0;
    padding: 0;
    position: relative;
    background: var(--bg-page);
}

.section-divider svg {
    width: 100%;
    height: 100%;
    display: block;
}

.section-divider--flip {
    transform: scaleY(-1);
}

/* Wave color = next section's background */
.section-divider--subtle svg path {
    fill: var(--bg-subtle);
}

.section-divider--page svg path {
    fill: var(--bg-page);
}

.section-divider--inverse svg path {
    fill: var(--bg-inverse);
}

.section-divider--warm svg path {
    fill: var(--warm-light);
}

.section-divider--accent svg path {
    fill: var(--accent-light);
}

/* Decorative accent line for content sections */
.accent-line {
    width: 48px;
    height: 3px;
    background: var(--accent);
    border-radius: 2px;
    margin: 2rem 0;
}

.accent-line--warm {
    background: var(--warm);
}

.accent-line--center {
    margin-left: auto;
    margin-right: auto;
}

/* Subtle background pattern for CTA sections */
.cta {
    position: relative;
    overflow: hidden;
}

.cta::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: rgba(255,255,255,0.03);
    pointer-events: none;
}

.cta::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -5%;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: rgba(255,255,255,0.02);
    pointer-events: none;
}

/* Inline photo within text sections */
.content-photo {
    border-radius: 8px;
    overflow: hidden;
    margin: 2rem 0;
}

.content-photo img {
    width: 100%;
    height: auto;
    display: block;
}

.content-photo--float-right {
    float: right;
    width: 280px;
    margin: 0 0 1.5rem 2rem;
}

/* iPhone device mockup */
.device-iphone {
    position: relative;
    width: 280px;
    margin: 0 auto;
    background: #1A1D21;
    border-radius: 36px;
    padding: 12px;
    box-shadow: 0 24px 64px rgba(0,0,0,0.3), inset 0 0 0 2px rgba(255,255,255,0.1);
}

.device-iphone__notch {
    position: absolute;
    top: 12px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 24px;
    background: #1A1D21;
    border-radius: 0 0 16px 16px;
    z-index: 2;
}

.device-iphone__screen {
    border-radius: 24px;
    overflow: hidden;
    position: relative;
    background: #000;
    aspect-ratio: 9/19.5;
}

.device-iphone__screen video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.device-iphone__bar {
    width: 100px;
    height: 4px;
    background: rgba(255,255,255,0.3);
    border-radius: 2px;
    margin: 8px auto 0;
}

/* Device mockup in a hero grid */
.device-showcase {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 0;
}

/* Icon badge for feature lists */
.icon-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: var(--accent-light);
    color: var(--accent);
    flex-shrink: 0;
    margin-bottom: 1rem;
}

.icon-badge--warm {
    background: var(--warm-light);
    color: var(--warm);
}

.icon-badge svg {
    width: 24px;
    height: 24px;
}

/* ============================================
   18. Blog Cards
   ============================================ */

.blog__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.blog-card {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.2s;
}

.blog-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.blog-card__image {
    display: block;
    aspect-ratio: 16 / 9;
    overflow: hidden;
}

.blog-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.blog-card:hover .blog-card__image img {
    transform: scale(1.03);
}

.blog-card__body {
    padding: 1.5rem;
}

.blog-card__date {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.blog-card h3 {
    font-size: 1.05rem;
    line-height: 1.35;
    margin-bottom: 0.5rem;
}

.blog-card h3 a {
    color: var(--text-primary);
}

.blog-card h3 a:hover {
    color: var(--accent);
}

.blog-card p {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.6;
}

.blog-card__tag {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 0.65rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 0.25rem 0.5rem;
    border-radius: 3px;
    margin-bottom: 0.75rem;
}

.blog-card__tag--zakelijk {
    background: var(--accent-light);
    color: var(--accent);
}

.blog-card__tag--persoonlijk {
    background: var(--warm-light);
    color: var(--warm);
}

.blog-card__tag--tech {
    background: #EEF0F7;
    color: #4A5580;
}

.blog-card__tag--verbinding {
    background: var(--accent-light);
    color: var(--accent);
}

.blog-card__tag--mantelzorg {
    background: var(--warm-light);
    color: var(--warm);
}


/* ============================================
   18b. Page: Blog — Magazine Layout
   ============================================ */

/* --- Zone 1: Hero --- */

.blog-hero {
    background: var(--bg-subtle);
    border-bottom: 1px solid var(--border);
    padding-bottom: 3rem;
}

.blog-hero__inner {
    max-width: 640px;
}

.blog-hero__inner .label {
    display: block;
    margin-bottom: 1rem;
}

.blog-hero__inner h1 {
    margin-bottom: 0.75rem;
}

.blog-hero__inner p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    line-height: 1.7;
}

/* --- Zone 2: Begin Hier — Featured Golden Posts --- */

.blog-featured {
    background: var(--bg-page);
}

.blog-featured .label {
    display: block;
    margin-bottom: 0.5rem;
}

.blog-featured h2 {
    margin-bottom: 2rem;
}

.blog-featured__grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 1.5rem;
}

.blog-featured__grid .blog-card--large:first-child {
    grid-row: 1 / 3;
}

.blog-featured__grid .blog-card--large:first-child .blog-card--large__image {
    height: 100%;
}

.blog-featured__grid .blog-card--large:first-child .blog-card--large__img {
    height: 100%;
    object-fit: cover;
}

/* --- Zone 3: Category Worlds --- */

.blog-categories .label {
    display: block;
    margin-bottom: 0.5rem;
}

.blog-categories h2 {
    margin-bottom: 2rem;
}

.blog-categories__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.blog-categories__grid .blog-category-card:nth-child(n+4) {
    /* Last two cards span 2 columns to fill the row evenly */
}

.blog-category-card {
    position: relative;
    display: block;
    border-radius: 8px;
    overflow: hidden;
    text-decoration: none;
    color: var(--text-inverse);
    transition: transform 0.2s, box-shadow 0.2s;
    border: 1px solid var(--border);
    min-height: 220px;
}

.blog-category-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
    color: var(--text-inverse);
}

.blog-category-card__image {
    position: absolute;
    inset: 0;
}

.blog-category-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.blog-category-card__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.75) 0%, rgba(0, 0, 0, 0.3) 50%, rgba(0, 0, 0, 0.15) 100%);
    transition: background 0.2s;
}

.blog-category-card:hover .blog-category-card__overlay {
    background: linear-gradient(to top, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.4) 50%, rgba(0, 0, 0, 0.2) 100%);
}

.blog-category-card__content {
    position: relative;
    z-index: 1;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    height: 100%;
}

.blog-category-card__count {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    opacity: 0.7;
    margin-bottom: 0.35rem;
}

.blog-category-card__content h3 {
    font-size: 1.25rem;
    color: white;
    margin-bottom: 0.35rem;
}

.blog-category-card__content p {
    font-size: 0.85rem;
    line-height: 1.55;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 0;
}

/* --- Zone 5: Category Filter Pills --- */

.blog-archive {
    background: var(--bg-page);
}

.blog-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 2.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border);
}

.blog-filter {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 0.4rem 0.85rem;
    border-radius: 100px;
    border: 1px solid var(--border);
    background: var(--bg-surface);
    color: var(--text-muted);
    text-decoration: none;
    transition: all 0.15s;
}

.blog-filter:hover {
    border-color: var(--border-strong);
    color: var(--text-primary);
    background: var(--bg-subtle);
}

.blog-filter--active {
    background: var(--accent);
    color: white;
    border-color: var(--accent);
}

.blog-filter--active:hover {
    background: var(--accent-hover);
    border-color: var(--accent-hover);
    color: white;
}

/* --- Zone 4: Magazine Grid --- */

.blog-magazine-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

/* Large items span 2 columns */
.blog-magazine-grid__item--large {
    grid-column: span 2;
}

/* Invert pattern: items 5-9 (index 5=small, 6=large) */
/* The large card at position 6 should start from column 2 */
.blog-magazine-grid__item:nth-child(10n + 7) {
    grid-column: 2 / 4;
}

/* Force first small item of inverted row into column 1 */
.blog-magazine-grid__item:nth-child(10n + 6) {
    grid-column: 1 / 2;
}

/* --- Large Blog Card Variant --- */

.blog-card--large {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.2s;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.blog-card--large:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.blog-card--large__image {
    display: block;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    flex-shrink: 0;
}

.blog-card--large__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.blog-card--large:hover .blog-card--large__img {
    transform: scale(1.03);
}

.blog-card--large__body {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.blog-card--large__meta {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
}

.blog-card--large__body h3 {
    font-size: 1.25rem;
    line-height: 1.3;
    margin-bottom: 0.5rem;
}

.blog-card--large__body h3 a {
    color: var(--text-primary);
    text-decoration: none;
}

.blog-card--large__body h3 a:hover {
    color: var(--accent);
}

.blog-card--large__body > p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.65;
    flex-grow: 1;
}

.blog-card--large__body .blog-card__date {
    margin-top: 0.75rem;
}

/* --- Read Time Badge --- */

.blog-read-time {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--text-muted);
}

/* --- Pagination --- */

.blog-pagination {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
}

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

.blog-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.25rem;
    height: 2.25rem;
    padding: 0 0.5rem;
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--text-secondary);
    text-decoration: none;
    border-radius: 6px;
    border: 1px solid transparent;
    transition: all 0.15s;
}

.blog-pagination .page-numbers:hover {
    background: var(--bg-subtle);
    border-color: var(--border);
    color: var(--text-primary);
}

.blog-pagination .page-numbers.current {
    background: var(--accent);
    color: white;
    border-color: var(--accent);
    font-weight: 600;
}

.blog-pagination .prev,
.blog-pagination .next {
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 500;
    padding: 0 1rem;
}

.blog-pagination .dots {
    color: var(--text-muted);
    border: none;
}


/* ============================================
   19. Contact / CTA Section (Dark)
   ============================================ */

.cta {
    background: var(--bg-inverse);
    color: var(--text-inverse);
}

.cta__grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 4rem;
    align-items: center;
}

.cta h2 {
    color: var(--text-inverse);
}

.cta p {
    color: rgba(240, 237, 232, 0.75);
    font-size: 1.05rem;
    line-height: 1.75;
    margin: 1rem 0 2rem;
}

.cta__details {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 2rem;
}

.cta__detail {
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.cta__detail:last-child {
    border-bottom: none;
}

.cta__detail-label {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(240, 237, 232, 0.45);
    margin-bottom: 0.25rem;
}

.cta__detail-value {
    font-size: 0.95rem;
    color: var(--text-inverse);
}

.cta__detail-value a {
    color: var(--text-inverse);
    border-bottom: 1px solid rgba(240, 237, 232, 0.3);
}

.cta__detail-value a:hover {
    color: white;
    border-color: white;
}


/* ============================================
   20. Footer
   ============================================ */

.footer {
    background: var(--bg-inverse);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 3rem 0;
}

.footer__inner {
    display: flex;
    justify-content: space-between;
    align-items: start;
    gap: 2rem;
}

.footer__brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-inverse);
    margin-bottom: 0.75rem;
}

.footer__brand:hover {
    color: var(--text-inverse);
}

.footer__logo {
    width: 28px;
    height: 28px;
    color: var(--text-inverse);
    flex-shrink: 0;
    opacity: 0.85;
}

.footer__legal {
    font-size: 0.8rem;
    color: rgba(240, 237, 232, 0.4);
    line-height: 1.8;
}

.footer__legal a {
    color: rgba(240, 237, 232, 0.55);
}

.footer__legal a:hover {
    color: var(--text-inverse);
}

.footer__links {
    display: flex;
    gap: 3rem;
}

.footer__col h4 {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(240, 237, 232, 0.4);
    margin-bottom: 0.75rem;
    font-weight: 500;
}

.footer__col ul {
    list-style: none;
}

.footer__col li {
    margin-bottom: 0.5rem;
}

.footer__col a {
    font-size: 0.85rem;
    color: rgba(240, 237, 232, 0.65);
}

.footer__col a:hover {
    color: var(--text-inverse);
}


/* ============================================
   21. View All Links
   ============================================ */

.view-all {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--accent);
    margin-top: 2rem;
    transition: gap 0.15s;
}

.view-all:hover {
    gap: 0.55rem;
    color: var(--accent-hover);
}

.view-all::after {
    content: '\2192';
}


/* ============================================
   22. Photo Placeholders (Development)
   ============================================ */

.photo-placeholder {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.8rem;
    line-height: 1.5;
    background: linear-gradient(135deg, var(--bg-subtle) 0%, #EDE9E3 100%);
}

.photo-placeholder strong {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.75rem;
    font-family: var(--font-mono);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
}


/* ============================================
   23. Utility Classes
   ============================================ */

.divider {
    border: none;
    border-top: 1px solid var(--border);
    margin: 0;
}

.text-center {
    text-align: center;
}

.text-muted {
    color: var(--text-muted);
}

.mt-1 {
    margin-top: 1rem;
}

.mt-2 {
    margin-top: 2rem;
}

.mb-1 {
    margin-bottom: 1rem;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}


/* ============================================
   24. WordPress-Specific Overrides
   ============================================ */

/* Alignment classes from WordPress editor */
.alignwide {
    max-width: var(--content-width);
    margin-left: auto;
    margin-right: auto;
}

.alignfull {
    max-width: 100%;
    margin-left: 0;
    margin-right: 0;
}

.aligncenter {
    display: block;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

.alignleft {
    float: left;
    margin-right: 1.5rem;
    margin-bottom: 1rem;
}

.alignright {
    float: right;
    margin-left: 1.5rem;
    margin-bottom: 1rem;
}

/* WordPress gallery */
.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
    margin: 2rem 0;
}

.gallery-item {
    margin: 0;
}

.gallery-item img {
    border-radius: 8px;
}

/* WordPress caption */
.wp-caption {
    max-width: 100%;
    margin-bottom: 1rem;
}

.wp-caption-text {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 0.5rem;
    text-align: center;
}

/* Post content typography */
.entry-content p {
    font-size: 1.05rem;
    line-height: 1.75;
    color: var(--text-secondary);
    margin-bottom: 1.25rem;
}

.entry-content h2 {
    margin-top: 2.5rem;
    margin-bottom: 1rem;
}

.entry-content h3 {
    margin-top: 2rem;
    margin-bottom: 0.75rem;
}

.entry-content ul,
.entry-content ol {
    list-style: revert;
    padding-left: 1.5rem;
    margin-bottom: 1.25rem;
    color: var(--text-secondary);
    font-size: 1.05rem;
    line-height: 1.75;
}

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

.entry-content blockquote {
    border-left: 3px solid var(--accent);
    padding: 1rem 1.5rem;
    margin: 1.5rem 0;
    background: var(--accent-subtle);
    border-radius: 0 8px 8px 0;
}

.entry-content blockquote p {
    font-style: italic;
    color: var(--text-secondary);
}

.entry-content code {
    font-family: var(--font-mono);
    font-size: 0.875em;
    background: var(--bg-subtle);
    padding: 0.15em 0.4em;
    border-radius: 3px;
}

.entry-content pre {
    background: var(--bg-inverse);
    color: var(--text-inverse);
    padding: 1.5rem;
    border-radius: 8px;
    overflow-x: auto;
    margin: 1.5rem 0;
}

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

.entry-content img {
    border-radius: 8px;
}

.entry-content a {
    color: var(--accent);
    border-bottom: 1px solid var(--accent-light);
    transition: border-color 0.15s;
}

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


/* ============================================
   25. Blog Section Background
   ============================================ */

.blog-section {
    background: var(--bg-subtle);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}


/* ============================================
   26. Speaking Section (Keynotes)
   ============================================ */

.speaking__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}


/* ============================================
   Page: Trajecten
   ============================================ */

/* Page-level hero (used on trajecten, spreker, over-richard) */
.page-hero {
    padding: clamp(3rem, 8vw, 6rem) 0 var(--section-gap);
}

.page-hero__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.page-hero__content {
    max-width: 680px;
}

.page-hero__intro {
    font-size: 1.125rem;
    color: var(--text-secondary);
    margin: 1.5rem 0 0;
    line-height: 1.75;
}

.page-hero__photo {
    aspect-ratio: 16/10;
    background: var(--bg-subtle);
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    border: 1px solid var(--border);
}

/* Over Richard hero photo uses portrait ratio */
.page-hero__photo--portrait {
    aspect-ratio: 4/5;
}

/* Service Blocks */
.services {
    background: var(--bg-surface);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.services__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.service-block {
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 2.5rem;
    background: var(--bg-page);
    transition: all 0.2s;
}

.service-block:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--border-strong);
}

.service-block h3 {
    font-size: clamp(1.35rem, 2.5vw, 1.65rem);
    margin: 1rem 0 1.25rem;
}

.service-block p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 1rem;
}

.service-block p:last-of-type {
    margin-bottom: 0;
}

.service-block__list {
    list-style: none;
    margin: 1.25rem 0;
}

.service-block__list li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
    border-bottom: 1px solid var(--border);
}

.service-block__list li:last-child {
    border-bottom: none;
}

.service-block__list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.85rem;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent);
}

.service-block--bouw .service-block__list li::before {
    background: var(--warm);
}

.service-block__quote {
    margin-top: 1.5rem;
    padding: 1.25rem;
    background: var(--accent-subtle);
    border-radius: 6px;
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.65;
    font-style: italic;
}

.service-block--bouw .service-block__quote {
    background: var(--warm-subtle);
}

/* Portfolio preview (mini-grid on trajecten) */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-top: 1.5rem;
}

.portfolio-item {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 1rem;
    text-align: center;
}

.portfolio-item__name {
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.portfolio-item__type {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-muted);
}

/* Process Steps */
.process {
    background: var(--bg-subtle);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.process__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.process-step {
    text-align: center;
    padding: 2rem 1.5rem;
    position: relative;
}

.process-step__number {
    font-family: var(--font-mono);
    font-size: 2.5rem;
    font-weight: 500;
    color: var(--accent);
    opacity: 0.2;
    line-height: 1;
    margin-bottom: 1rem;
}

.process-step h3 {
    font-size: 1.15rem;
    margin-bottom: 0.75rem;
}

.process-step p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.65;
}

/* Arrow between process steps */
.process-step:not(:last-child)::after {
    content: '';
    position: absolute;
    right: -1rem;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-left: 8px solid var(--border-strong);
    border-top: 6px solid transparent;
    border-bottom: 6px solid transparent;
}


/* ============================================
   Page: Projecten
   ============================================ */

/* Photo Gallery Grid */
.photo-gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.photo-gallery__item {
    border-radius: 8px;
    overflow: hidden;
    aspect-ratio: 4/3;
}

.photo-gallery__item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.photo-gallery__item:hover img {
    transform: scale(1.03);
}

/* Project Cards */
.projects__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.project-card {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: 8px;
    transition: all 0.2s;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.project-card__body {
    padding: 1.75rem 2rem 2rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.project-card__image {
    aspect-ratio: 16/9;
    overflow: hidden;
    background: var(--bg-subtle);
    position: relative;
}

.project-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.project-card:hover .project-card__image img {
    transform: scale(1.03);
}

.project-card__image .photo-placeholder {
    position: absolute;
    inset: 0;
}

.project-card:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--border-strong);
    transform: translateY(-2px);
}

.project-card__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.project-card__label {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 0.3rem 0.6rem;
    border-radius: 4px;
    background: var(--accent-light);
    color: var(--accent);
}

.project-card__label--warm {
    background: var(--warm-light);
    color: var(--warm);
}

.project-card__label--purple {
    background: #EEF0F7;
    color: #4A5580;
}

.project-card__label--green {
    background: #ECF5EE;
    color: #3D7A47;
}

.project-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
}

.project-card p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.65;
    flex-grow: 1;
}

.project-card__footer {
    margin-top: 1.5rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.project-card__status {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--text-muted);
}

.project-card__status-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    flex-shrink: 0;
}

.project-card__status-dot--active {
    background: #3D9A50;
}

.project-card__status-dot--dev {
    background: var(--warm);
}

.project-card__status-dot--available {
    background: var(--accent);
}

.project-card__link {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--accent);
    white-space: nowrap;
}

.project-card__link:hover {
    color: var(--accent-hover);
}

/* Why I Build */
.why-build {
    background: var(--bg-subtle);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.why-build__grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 4rem;
    align-items: center;
}

.why-build__text p {
    color: var(--text-secondary);
    margin-bottom: 1.25rem;
    font-size: 1.05rem;
    line-height: 1.75;
}

.why-build__text p strong {
    color: var(--text-primary);
    font-weight: 500;
}

.why-build__visual {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 2.5rem 2rem;
}

.why-build__connections {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.why-build__connection {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.why-build__node {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: var(--accent-light);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.why-build__node svg {
    color: var(--accent);
}

.why-build__line {
    flex-grow: 1;
    height: 2px;
    background: linear-gradient(90deg, var(--accent) 0%, var(--border) 100%);
    border-radius: 1px;
}

.why-build__endpoint {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    white-space: nowrap;
}

/* CTA content variant (centered, used on projecten) */
.cta__content {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.cta .label {
    color: rgba(240, 237, 232, 0.5);
}


/* ============================================
   Page: Spreker
   ============================================ */

/* Introduction Section */
.intro-section {
    background: var(--bg-surface);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.intro-section__content {
    max-width: 740px;
}

.intro-section p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 1.25rem;
}

.intro-section p strong {
    color: var(--text-primary);
    font-weight: 500;
}

/* Keynote Cards */
.keynotes__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.keynote-card {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 2rem;
    transition: all 0.2s;
    display: flex;
    flex-direction: column;
}

.keynote-card:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--border-strong);
    transform: translateY(-2px);
}

.keynote-card__number {
    font-family: var(--font-mono);
    font-size: 2rem;
    font-weight: 500;
    color: var(--accent);
    opacity: 0.2;
    line-height: 1;
    margin-bottom: 1rem;
}

.keynote-card h3 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.keynote-card__description {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.7;
    font-style: italic;
    margin-bottom: 1.25rem;
    flex-grow: 1;
}

.keynote-card__audience {
    padding-top: 1.25rem;
    border-top: 1px solid var(--border);
}

.keynote-card__audience-label {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
    margin-bottom: 0.35rem;
}

.keynote-card__audience-text {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* Practical Info */
.practical {
    background: var(--bg-subtle);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.practical__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.practical__details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.practical__detail {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 1.5rem;
}

.practical__detail-label {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.practical__detail-value {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
}

/* Why Rebook */
.rebook__content {
    max-width: 680px;
}

.rebook__content p {
    font-size: 1.05rem;
    color: var(--text-secondary);
    line-height: 1.75;
    margin-bottom: 1.25rem;
}

.rebook__list {
    list-style: none;
    margin: 2rem 0;
}

.rebook__list li {
    padding: 1rem 0 1rem 1.5rem;
    position: relative;
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.65;
    border-bottom: 1px solid var(--border);
}

.rebook__list li:first-child {
    border-top: 1px solid var(--border);
}

.rebook__list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 1.25rem;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent);
}

.rebook__list li strong {
    color: var(--text-primary);
    font-weight: 500;
}


/* ============================================
   Page: Over Richard
   ============================================ */

/* Timeline Section */
.timeline-section {
    background: var(--bg-surface);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

/* Extended timeline styling (over-richard page) */
.timeline__item--warm::before {
    background: var(--warm);
}

.timeline__item--highlight {
    padding-bottom: 2.5rem;
}

.timeline__item--highlight::before {
    width: 12px;
    height: 12px;
    margin-left: -5px;
    box-shadow: 0 0 0 4px var(--accent-light);
}

.timeline__item--highlight.timeline__item--warm::before {
    box-shadow: 0 0 0 4px var(--warm-light);
}

.timeline__title {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.35rem;
}

/* Content blocks (generic content sections) */
.content-section p {
    color: var(--text-secondary);
    font-size: 1.05rem;
    line-height: 1.75;
    margin-bottom: 1.25rem;
}

.content-section p strong {
    color: var(--text-primary);
    font-weight: 500;
}

/* What I Do Grid */
.what-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.what-card {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 2rem;
    transition: all 0.2s;
}

.what-card:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--border-strong);
}

.what-card h3 {
    margin: 0.75rem 0 0.5rem;
}

.what-card p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.65;
}

/* How I Work */
.how-section {
    background: var(--bg-subtle);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.how-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-top: 2rem;
}

.how-item {
    text-align: center;
    padding: 1.5rem 1rem;
}

.how-item__icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent-light);
    color: var(--accent);
    margin: 0 auto 1rem;
}

.how-item h4 {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.how-item p {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.6;
}

/* Availability Banner */
.availability {
    background: var(--warm-light);
    border: 1px solid #E8D5C4;
    border-radius: 8px;
    padding: 2.5rem;
    margin-top: 2rem;
}

.availability h3 {
    color: var(--warm);
}

.availability p {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.75;
    margin-bottom: 1rem;
}

.availability p:last-of-type {
    margin-bottom: 1.5rem;
}


/* ============================================
   Page: Sara
   ============================================ */

/* Story Sections */
.story-section {
    padding: var(--section-gap) 0;
}

.story-section--warm {
    background: var(--warm-light);
    border-top: 1px solid #E8D5C4;
    border-bottom: 1px solid #E8D5C4;
}

.story-section--subtle {
    background: var(--bg-subtle);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.story-section--surface {
    background: var(--bg-surface);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.story__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.story__grid--reverse {
    grid-template-columns: 1fr 1fr;
}

.story__text p {
    color: var(--text-secondary);
    margin-bottom: 1.25rem;
    font-size: 1.05rem;
    line-height: 1.75;
}

.story__text p strong {
    color: var(--text-primary);
    font-weight: 500;
}

.story__text p:last-child {
    margin-bottom: 0;
}

/* Stats Grid (Sara) */
.stats__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.stat-card {
    background: var(--bg-surface);
    border: 1px solid #E8D5C4;
    border-radius: 8px;
    padding: 1.5rem;
}

.stat-card p {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 0.25rem;
}

/* Team Visual */
.team-visual {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 2.5rem 2rem;
    text-align: center;
}

.team-visual__number {
    font-family: var(--font-mono);
    font-size: 4rem;
    font-weight: 700;
    color: var(--warm);
    line-height: 1;
    margin-bottom: 0.5rem;
}

.team-visual__label {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.team-visual__blocks {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
}

.team-visual__block {
    background: var(--warm-light);
    border: 1px solid #E8D5C4;
    border-radius: 6px;
    padding: 0.75rem 0.5rem;
    font-family: var(--font-mono);
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--warm);
}

/* Forever Home / Projects Visual */
.projects-visual {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 2rem;
}

.projects-visual__header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border);
}

.projects-visual__count {
    font-family: var(--font-mono);
    font-size: 2rem;
    font-weight: 700;
    color: var(--warm);
}

.projects-visual__subtitle {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
}

.project-categories {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.project-category {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.project-category__bar {
    height: 6px;
    border-radius: 3px;
    background: var(--warm);
    flex-shrink: 0;
}

.project-category__bar--secondary {
    background: var(--warm-light);
    border: 1px solid #E8D5C4;
}

.project-category__label {
    font-size: 0.8rem;
    color: var(--text-secondary);
    white-space: nowrap;
}

/* Platform Features */
.platform-features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.platform-feature {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 1.5rem;
}

.platform-feature__icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--warm-light);
    color: var(--warm);
    margin-bottom: 0.75rem;
}

.platform-feature h4 {
    font-size: 0.95rem;
    margin-bottom: 0.35rem;
}

.platform-feature p {
    font-size: 0.8rem;
    color: var(--text-muted);
    line-height: 1.55;
}

/* Help Cards */
.help__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.help-card {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 2rem;
    text-align: center;
    transition: all 0.2s;
}

.help-card:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--warm);
    transform: translateY(-2px);
}

.help-card__icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--warm-light);
    color: var(--warm);
    margin: 0 auto 1rem;
}

.help-card h3 {
    font-size: 1.05rem;
    margin-bottom: 0.5rem;
}

.help-card p {
    font-size: 0.875rem;
    color: var(--text-secondary);
    line-height: 1.6;
}


/* ============================================
   Page: Contact
   ============================================ */

/* Contact Layout */
.contact__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
}

/* Contact Details Card */
.contact-card {
    background: var(--bg-inverse);
    border-radius: 8px;
    padding: 2.5rem;
    color: var(--text-inverse);
}

.contact-card__label {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(240, 237, 232, 0.45);
    margin-bottom: 0.25rem;
}

.contact-card h3 {
    color: var(--text-inverse);
    font-size: 1.35rem;
    margin-bottom: 2rem;
}

.contact-card__detail {
    padding: 0.85rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.contact-card__detail:last-child {
    border-bottom: none;
}

.contact-card__detail-label {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(240, 237, 232, 0.45);
    margin-bottom: 0.25rem;
}

.contact-card__detail-value {
    font-size: 0.95rem;
    color: var(--text-inverse);
}

.contact-card__detail-value a {
    color: var(--text-inverse);
    border-bottom: 1px solid rgba(240, 237, 232, 0.3);
}

.contact-card__detail-value a:hover {
    color: white;
    border-color: white;
}

/* Contact Form */
.form-section {
    background: var(--bg-subtle);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.form__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.form__intro p {
    color: var(--text-secondary);
    font-size: 1.05rem;
    line-height: 1.75;
    margin-bottom: 1.25rem;
}

.form__intro p strong {
    color: var(--text-primary);
    font-weight: 500;
}

.form {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 2rem;
}

.form__group {
    margin-bottom: 1.25rem;
}

.form__group:last-of-type {
    margin-bottom: 1.5rem;
}

.form__label {
    display: block;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 0.4rem;
}

.form__input,
.form__select,
.form__textarea {
    width: 100%;
    padding: 0.7rem 0.85rem;
    font-family: var(--font-body);
    font-size: 0.9rem;
    color: var(--text-primary);
    background: var(--bg-page);
    border: 1px solid var(--border);
    border-radius: 6px;
    transition: border-color 0.15s;
    outline: none;
}

.form__input:focus,
.form__select:focus,
.form__textarea:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-subtle);
}

.form__input::placeholder,
.form__textarea::placeholder {
    color: var(--text-muted);
}

.form__select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%237A7D82' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.85rem center;
    padding-right: 2.5rem;
}

.form__textarea {
    resize: vertical;
    min-height: 120px;
}

.form__submit {
    width: 100%;
}

/* Expect Section */
.expect__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.expect-card {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 2rem;
}

.expect-card__number {
    font-family: var(--font-mono);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 0.75rem;
}

.expect-card h3 {
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.expect-card p {
    font-size: 0.875rem;
    color: var(--text-secondary);
    line-height: 1.6;
}


/* ============================================
   Page: Single Post
   ============================================ */

/* Single post wrapper */
.single-post {
    padding-bottom: 0;
}

/* Entry content — WordPress content area typography */
.single-post .page-content p {
    font-family: var(--font-body);
    font-size: 1.05rem;
    line-height: 1.75;
    color: var(--text-secondary);
    margin-bottom: 1.25rem;
}

.single-post .page-content p:last-child {
    margin-bottom: 0;
}

.single-post .page-content h2 {
    font-family: var(--font-heading);
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 600;
    letter-spacing: -0.02em;
    color: var(--text-primary);
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    line-height: 1.15;
}

.single-post .page-content h3 {
    font-family: var(--font-heading);
    font-size: clamp(1.2rem, 2vw, 1.5rem);
    font-weight: 600;
    letter-spacing: -0.02em;
    color: var(--text-primary);
    margin-top: 2rem;
    margin-bottom: 0.75rem;
    line-height: 1.15;
}

.single-post .page-content h4 {
    font-family: var(--font-heading);
    font-size: 1.125rem;
    font-weight: 600;
    letter-spacing: -0.02em;
    color: var(--text-primary);
    margin-top: 1.75rem;
    margin-bottom: 0.5rem;
    line-height: 1.25;
}

.single-post .page-content ul,
.single-post .page-content ol {
    list-style: revert;
    padding-left: 1.5rem;
    margin-bottom: 1.25rem;
    color: var(--text-secondary);
    font-size: 1.05rem;
    line-height: 1.75;
}

.single-post .page-content li {
    margin-bottom: 0.5rem;
}

.single-post .page-content li:last-child {
    margin-bottom: 0;
}

.single-post .page-content blockquote {
    border-left: 3px solid var(--accent);
    padding: 1rem 1.5rem;
    margin: 1.5rem 0;
    background: var(--accent-subtle);
    border-radius: 0 8px 8px 0;
}

.single-post .page-content blockquote p {
    font-style: italic;
    color: var(--text-secondary);
    margin-bottom: 0;
}

.single-post .page-content pre {
    background: var(--bg-inverse);
    color: var(--text-inverse);
    padding: 1.5rem;
    border-radius: 8px;
    overflow-x: auto;
    margin: 1.5rem 0;
    font-family: var(--font-mono);
    font-size: 0.875rem;
    line-height: 1.6;
}

.single-post .page-content code {
    font-family: var(--font-mono);
    font-size: 0.875em;
    background: var(--bg-subtle);
    padding: 0.15em 0.4em;
    border-radius: 3px;
}

.single-post .page-content pre code {
    background: none;
    padding: 0;
    color: inherit;
    font-size: inherit;
}

.single-post .page-content img {
    border-radius: 8px;
    margin: 1.5rem 0;
}

.single-post .page-content figure {
    margin: 2rem 0;
}

.single-post .page-content figure img {
    margin-bottom: 0;
}

.single-post .page-content figcaption {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 0.5rem;
    text-align: center;
}

.single-post .page-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    font-size: 0.95rem;
}

.single-post .page-content table th,
.single-post .page-content table td {
    padding: 0.75rem 1rem;
    text-align: left;
    border-bottom: 1px solid var(--border);
}

.single-post .page-content table th {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.85rem;
    letter-spacing: -0.01em;
    color: var(--text-primary);
    background: var(--bg-subtle);
}

.single-post .page-content table td {
    color: var(--text-secondary);
}

.single-post .page-content table tr:last-child td {
    border-bottom: none;
}

.single-post .page-content hr {
    border: none;
    border-top: 1px solid var(--border);
    margin: 2rem 0;
}

.single-post .page-content a {
    color: var(--accent);
    border-bottom: 1px solid var(--accent-light);
    transition: border-color 0.15s;
}

.single-post .page-content a:hover {
    border-color: var(--accent);
}

/* Divider */
.single-post .divider {
    border: none;
    border-top: 1px solid var(--border);
    margin: 0;
}

/* Post navigation */
.single-post__nav {
    display: flex;
    justify-content: space-between;
    gap: 2rem;
    padding: 2rem 0;
}

.single-post__nav-item {
    flex: 1;
}

.single-post__nav-item--next {
    text-align: right;
}

.single-post__nav-label {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
    margin-bottom: 0.35rem;
}

.single-post__nav-link {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-primary);
}

.single-post__nav-link:hover {
    color: var(--accent);
}

/* Author info */
.single-post__author {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem 0;
}

.single-post__author-avatar {
    border-radius: 50%;
    width: 48px;
    height: 48px;
    flex-shrink: 0;
}

.single-post__author-name {
    font-weight: 500;
    font-size: 0.9rem;
    color: var(--text-primary);
}

.single-post__author-bio {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* Related posts — uses existing .blog__grid from section 18 */


/* ============================================
   Form Messages
   ============================================ */

.form-message {
    padding: 1rem 1.5rem;
    border-radius: 8px;
    margin-bottom: 2rem;
    font-size: 0.95rem;
    line-height: 1.6;
}

.form-message p {
    margin: 0;
}

.form-message--success {
    background: var(--accent-light);
    color: var(--accent);
    border: 1px solid var(--accent);
}

.form-message--missing,
.form-message--invalid-email,
.form-message--error {
    background: var(--warm-light);
    color: var(--warm);
    border: 1px solid var(--warm);
}


/* ============================================
   Honeypot Field
   ============================================ */

.form__honeypot {
    position: absolute;
    left: -9999px;
    top: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
    opacity: 0;
}


/* ============================================
   Search Form
   ============================================ */

.search-form {
    display: flex;
    gap: 0.5rem;
    max-width: 480px;
}

.search-form__label {
    flex: 1;
}

.search-form__sr-label {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.search-form__input {
    width: 100%;
    padding: 0.7rem 0.85rem;
    font-family: var(--font-body);
    font-size: 0.9rem;
    color: var(--text-primary);
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: 6px;
    transition: border-color 0.15s;
    outline: none;
}

.search-form__input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-subtle);
}

.search-form__input::placeholder {
    color: var(--text-muted);
}

.search-form__submit {
    flex-shrink: 0;
}


/* ============================================
   27. Responsive — Tablet (max-width: 1024px)
   ============================================ */

@media (max-width: 1024px) {
    .hero__grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .hero__photo {
        max-height: 400px;
    }

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

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

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

    .about__photo {
        max-height: 400px;
    }

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

    .testimonial-card {
        width: clamp(240px, 75vw, 300px);
        padding: 1.5rem;
    }

    .testimonials__row {
        margin-bottom: 1rem;
        gap: 1rem;
    }

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

    /* Page: Blog — Magazine Layout */
    .blog-featured__grid {
        grid-template-columns: 1fr;
    }

    .blog-featured__grid .blog-card--large:first-child {
        grid-row: auto;
    }

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

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

    .blog-magazine-grid__item--large {
        grid-column: span 2;
    }

    .blog-magazine-grid__item:nth-child(10n + 7) {
        grid-column: span 2;
    }

    .blog-magazine-grid__item:nth-child(10n + 6) {
        grid-column: auto;
    }

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

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

    .footer__inner {
        flex-direction: column;
    }

    /* Show mobile menu toggle */
    .header__menu-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
        order: 2;
        margin-left: auto;
    }

    .header__nav {
        order: 3;
    }

    .nav {
        display: none;
        position: absolute;
        top: 64px;
        left: 0;
        right: 0;
        flex-direction: column;
        gap: 0;
        background: var(--bg-page);
        border-bottom: 1px solid var(--border);
        box-shadow: var(--shadow-md);
        padding: 0.5rem 0;
    }

    .nav--open {
        display: flex;
    }

    .nav li {
        width: 100%;
    }

    .nav a {
        display: block;
        padding: 0.75rem 1.5rem;
        font-size: 1rem;
    }

    .nav a:hover {
        background: var(--bg-subtle);
    }

    /* Page: Trajecten */
    .services__grid {
        grid-template-columns: 1fr;
    }

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

    .process-step:not(:last-child)::after {
        display: none;
    }

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

    /* Photo gallery */
    .photo-gallery {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Page: Projecten */
    .projects__grid {
        grid-template-columns: 1fr;
    }

    .why-build__grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    /* Page: Spreker */
    .page-hero__grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .page-hero__photo {
        max-height: 350px;
    }

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

    .practical__grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    /* Page: Over Richard */
    .what-grid {
        grid-template-columns: 1fr;
    }

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

    /* Page: Sara */
    .story__grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

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

    .platform-features {
        grid-template-columns: 1fr;
    }

    /* Page: Contact */
    .contact__grid {
        grid-template-columns: 1fr;
    }

    .form__grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

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

    /* Search Form */
    .search-form {
        max-width: 100%;
    }
}


/* ============================================
   28. Responsive — Mobile (max-width: 640px)
   ============================================ */

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

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

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

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

    .content-photo--float-right {
        float: none;
        width: 100%;
        margin: 1.5rem 0;
    }

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

    /* Page: Blog — Magazine Layout */
    .blog-featured__grid {
        grid-template-columns: 1fr;
    }

    .blog-categories__grid {
        grid-template-columns: 1fr;
    }

    .blog-category-card {
        min-height: 180px;
    }

    .blog-magazine-grid {
        grid-template-columns: 1fr;
    }

    .blog-magazine-grid__item--large,
    .blog-magazine-grid__item:nth-child(10n + 7) {
        grid-column: auto;
    }

    .blog-filters {
        gap: 0.4rem;
    }

    .blog-filter {
        font-size: 0.7rem;
        padding: 0.35rem 0.7rem;
    }

    .blog-card--large__body h3 {
        font-size: 1.1rem;
    }

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

    .hero__ctas {
        flex-direction: column;
    }

    .hero__ctas .btn {
        text-align: center;
        justify-content: center;
    }

    .footer__links {
        flex-direction: column;
        gap: 1.5rem;
    }

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

    /* Page: Trajecten */
    .portfolio-grid {
        grid-template-columns: 1fr;
    }

    /* Page: Spreker */
    .practical__details {
        grid-template-columns: 1fr;
    }

    /* Page: Over Richard */
    .how-grid {
        grid-template-columns: 1fr;
    }

    /* Page: Sara */
    .stats__grid {
        grid-template-columns: 1fr;
    }

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

    .team-visual__blocks {
        grid-template-columns: repeat(3, 1fr);
    }

    /* Page: MetalBC */
    .stats-bar__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

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

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

/* ========================================
   Blog Infinite Scroll
   ======================================== */

.blog-infinite-sentinel {
    height: 1px;
}

.blog-infinite-loader {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 2rem 0;
    font-family: var(--font-mono);
    font-size: 0.8125rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.blog-infinite-spinner {
    width: 20px;
    height: 20px;
    border: 2px solid var(--border);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ========================================
   Page: MetalBC
   ======================================== */

.stats-bar {
    background: var(--accent);
    color: #fff;
    padding: 3rem 0;
}

.stats-bar__grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 2rem;
    text-align: center;
}

.stats-bar__number {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 0.25rem;
}

.stats-bar__label {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    opacity: 0.8;
}

.integrations__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.integration-card {
    background: var(--bg-subtle);
    border-radius: 8px;
    padding: 1.5rem;
}

.integration-card h4 {
    font-family: var(--font-mono);
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--accent);
    margin-bottom: 0.5rem;
}

.integration-card p {
    font-size: 0.9375rem;
    color: var(--text-secondary);
    margin: 0;
}

.deployment__flow {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin-top: 2rem;
}

.deployment__step {
    position: relative;
    padding: 1.5rem;
    background: var(--bg-subtle);
    border-radius: 8px;
}

.deployment__step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    background: var(--accent);
    color: #fff;
    border-radius: 50%;
    font-family: var(--font-mono);
    font-size: 0.875rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.deployment__step h4 {
    margin-bottom: 0.5rem;
}

.deployment__step p {
    font-size: 0.9375rem;
    color: var(--text-secondary);
    margin: 0;
}

@media (max-width: 1024px) {
    .stats-bar__grid {
        grid-template-columns: repeat(3, 1fr);
    }

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


/* ============================================================
   REIGN OF BRABANT — Featured sections
   ============================================================ */

/* Homepage featured section */
.rob-featured {
    padding: var(--section-gap) 0;
}

.rob-featured__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.rob-featured__image {
    aspect-ratio: 16 / 10;
    overflow: hidden;
    border-radius: 8px;
}

.rob-featured__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.rob-featured__stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

/* Projecten page — featured card spanning full width */
.project-card--featured {
    grid-column: 1 / -1;
}

.project-card--featured .project-card__image {
    aspect-ratio: 21 / 9;
}

.project-card--featured .project-card__body p {
    max-width: 800px;
}

/* Responsive */
@media (max-width: 1024px) {
    .rob-featured__grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .rob-featured__image {
        order: -1;
    }

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

@media (max-width: 640px) {
    .rob-featured__stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
}
