/*
 * Späth Atelier – visual system
 * Self-hosted, mobile first, no framework.
 */
:root {
    --forest-950: #07130e;
    --forest-900: #0b1c15;
    --forest-800: #10251c;
    --forest-700: #18392a;
    --forest-600: #28513e;
    --brass-500: #d0aa67;
    --brass-400: #e0c083;
    --ivory-50: #f7f4ed;
    --ivory-100: #f1ede4;
    --sand-200: #e8e1d4;
    --ink-900: #18201c;
    --ink-700: #3e4943;
    --ink-500: #6b746f;
    --white: #fff;
    --display: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Georgia, serif;
    --sans: "Avenir Next", Avenir, Inter, "Helvetica Neue", Arial, sans-serif;
    --container: 1320px;
    --content: 760px;
    --header-height: 88px;
    --gutter: clamp(1.25rem, 4vw, 4rem);
    --ease-out: cubic-bezier(.16, 1, .3, 1);
    --ease-smooth: cubic-bezier(.65, 0, .35, 1);
    --page-progress: 0;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-height) + 1rem); -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    background: var(--ivory-50) !important;
    background-image: none !important;
    color: var(--ink-900);
    font-family: var(--sans);
    font-size: 1.0625rem;
    line-height: 1.75;
    overflow-x: hidden;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
}
body.nav-open { overflow: hidden; }
::selection { background: var(--brass-500); color: var(--forest-950); }
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
figure { margin: 0; }
button, input, textarea, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: var(--forest-600); text-decoration-thickness: 1px; text-underline-offset: .2em; transition: color .25s ease; }
a:hover { color: #966d30; }
p, ul, ol, blockquote, pre, table, figure { margin-block: 0 1.5rem; }
ul, ol { padding-left: 1.35em; }
address { font-style: normal; }
h1, h2, h3, h4, h5, h6 {
    color: var(--forest-800);
    font-family: var(--display);
    font-weight: 400;
    letter-spacing: -.025em;
    line-height: 1.08;
    margin: 0 0 .65em;
    text-wrap: balance;
}
h1 { font-size: clamp(3rem, 7vw, 6.75rem); }
h2 { font-size: clamp(2.15rem, 4.7vw, 4.2rem); }
h3 { font-size: clamp(1.55rem, 2.8vw, 2.35rem); }
h4 { font-size: clamp(1.25rem, 2vw, 1.7rem); }
:focus-visible { outline: 2px solid var(--brass-400); outline-offset: 4px; }

.site-container { margin-inline: auto; max-width: var(--content); padding-inline: var(--gutter); width: 100%; }
.site-container--wide { max-width: calc(var(--container) + (2 * var(--gutter))); }
.site-main { min-height: 70vh; }
.eyebrow {
    align-items: center;
    color: var(--forest-600);
    display: flex;
    font-size: .7rem;
    font-weight: 700;
    gap: .8rem;
    letter-spacing: .2em;
    margin: 0 0 1.4rem;
    text-transform: uppercase;
}
.eyebrow::before { background: var(--brass-500); content: ""; height: 1px; width: 2.5rem; }
.eyebrow--light { color: rgba(255,255,255,.72); }

/* Accessibility */
.screen-reader-text {
    border: 0;
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute !important;
    width: 1px;
    word-wrap: normal !important;
}
.screen-reader-text:focus {
    background: var(--ivory-50);
    box-shadow: 0 0 0 4px var(--brass-500);
    clip-path: none;
    color: var(--forest-900);
    display: block;
    font-weight: 700;
    height: auto;
    left: 1rem;
    padding: .8rem 1rem;
    top: 1rem;
    width: auto;
    z-index: 100000;
}

/* Header */
.site-header {
    background: rgba(7,19,14,.97);
    color: var(--white);
    height: var(--header-height);
    left: 0;
    position: fixed;
    right: 0;
    top: 0;
    transition: background .45s ease, box-shadow .45s ease, height .45s var(--ease-out);
    z-index: 1000;
}
.admin-bar .site-header { top: 32px; }
.site-header__progress { bottom: 0; height: 1px; left: 0; opacity: .7; overflow: hidden; pointer-events: none; position: absolute; right: 0; }
.site-header__progress span { background: var(--brass-500); display: block; height: 100%; transform: scaleX(var(--page-progress)); transform-origin: left; width: 100%; }
.site-header__inner { align-items: center; display: flex; height: 100%; justify-content: space-between; }
.spaeth-front-page .site-header:not(.is-scrolled):not(.is-menu-open) { background: linear-gradient(to bottom, rgba(4,12,8,.76), transparent); }
.site-header.is-scrolled { background: rgba(7,19,14,.94); box-shadow: 0 18px 45px rgba(0,0,0,.12); height: 76px; }
/* Glass blur lives on a background layer: backdrop-filter on the header itself
   would create a containing block and clip the fixed .site-nav overlay (mobile). */
.site-header.is-scrolled::before {
    -webkit-backdrop-filter: blur(18px);
    backdrop-filter: blur(18px);
    content: "";
    inset: 0;
    position: absolute;
    z-index: -1;
}
.site-branding { align-items: center; display: flex; flex: 0 0 auto; position: relative; z-index: 3; }
.custom-logo-link { display: block; }
.custom-logo { height: auto; max-height: 58px; max-width: min(220px, 45vw); object-fit: contain; width: auto; }
.site-branding__text { color: var(--white); display: grid; line-height: 1; text-decoration: none; }
.site-branding__text:hover { color: var(--white); }
.site-branding__name { font-family: var(--display); font-size: 1.7rem; letter-spacing: -.02em; }
.site-branding__tag { color: var(--brass-400); font-size: .57rem; font-weight: 700; letter-spacing: .22em; margin-top: .35rem; text-transform: uppercase; }
.nav-toggle { align-items: center; background: transparent; border: 0; color: var(--white); cursor: pointer; display: flex; height: 48px; justify-content: center; padding: 0; position: relative; width: 48px; z-index: 3; }
.nav-toggle__lines { display: block; height: 14px; position: relative; width: 26px; }
.nav-toggle__lines i { background: currentColor; height: 1px; left: 0; position: absolute; transition: transform .4s var(--ease-out), top .4s var(--ease-out); width: 100%; }
.nav-toggle__lines i:first-child { top: 3px; }
.nav-toggle__lines i:last-child { top: 11px; width: 70%; }
.nav-toggle[aria-expanded="true"] .nav-toggle__lines i { top: 7px; width: 100%; }
.nav-toggle[aria-expanded="true"] .nav-toggle__lines i:first-child { transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__lines i:last-child { transform: rotate(-45deg); }
.site-nav {
    align-items: center;
    background: var(--forest-950);
    display: flex;
    inset: 0;
    opacity: 0;
    overflow: auto;
    padding: calc(var(--header-height) + 3rem) var(--gutter) 3rem;
    pointer-events: none;
    position: fixed;
    transform: translateY(-12px);
    transition: opacity .35s ease, transform .5s var(--ease-out), visibility .35s;
    visibility: hidden;
}
.site-nav.is-open { opacity: 1; pointer-events: auto; transform: none; visibility: visible; }
.site-nav__list, .site-nav__list ul { list-style: none; margin: 0; padding: 0; width: 100%; }
.site-nav__list > li { border-bottom: 1px solid rgba(255,255,255,.1); position: relative; }
.site-nav__list a { color: rgba(255,255,255,.9); display: block; font-family: var(--display); font-size: clamp(1.8rem, 8vw, 3rem); line-height: 1.15; padding: .55rem 3rem .55rem 0; text-decoration: none; }
.site-nav__list .current-menu-item > a, .site-nav__list .current_page_item > a, .site-nav__list a:hover { color: var(--brass-400); }
.site-nav__list .sub-menu { display: none; padding: 0 0 1rem 1rem; }
.site-nav__list .submenu-open > .sub-menu { display: block; }
.site-nav__list .sub-menu a { color: rgba(255,255,255,.65); font-family: var(--sans); font-size: 1rem; padding: .45rem 0; }
.submenu-toggle { background: transparent; border: 0; height: 44px; position: absolute; right: 0; top: .45rem; width: 44px; }
.submenu-toggle span::before, .submenu-toggle span::after { background: var(--brass-400); content: ""; height: 1px; left: 13px; position: absolute; top: 22px; transition: transform .25s; width: 18px; }
.submenu-toggle span::after { transform: rotate(90deg); }
.submenu-toggle[aria-expanded="true"] span::after { transform: rotate(0); }
.no-js .nav-toggle { display: none; }
.no-js .site-nav { background: var(--forest-950); inset: var(--header-height) 0 auto; opacity: 1; padding: 1rem var(--gutter); pointer-events: auto; position: fixed; transform: none; visibility: visible; }
.no-js .site-nav__list a { font-family: var(--sans); font-size: .85rem; }

/* Front-page image story */
.front-story { background: var(--forest-950); position: relative; }
.story-panel { min-height: 112svh; position: relative; --panel-shift: 0vh; }
.story-panel:last-of-type { min-height: 100svh; }
.story-panel__stage { align-items: end; display: grid; height: 100svh; min-height: 620px; overflow: hidden; position: sticky; top: 0; }
.story-panel__media, .story-panel__shade, .story-panel__lines { inset: 0; pointer-events: none; position: absolute; }
.story-panel__media { background: var(--forest-800); inset: -7%; }
.story-panel__image { height: 114%; object-fit: cover; transform: translate3d(0, var(--panel-shift), 0) scale(1.04); transition: transform .15s linear; width: 100%; }
.story-panel__media--top .story-panel__image { object-position: center top; }
.story-panel__media--center .story-panel__image { object-position: center; }
.story-panel__media--bottom .story-panel__image { object-position: center bottom; }
.story-panel__abstract { background: radial-gradient(circle at 75% 30%, rgba(208,170,103,.24), transparent 28%), linear-gradient(135deg, var(--forest-950), var(--forest-700)); height: 100%; }
.story-panel__shade { background: linear-gradient(180deg, rgba(3,10,6,.44) 0%, rgba(3,10,6,.08) 38%, rgba(3,10,6,.82) 100%), linear-gradient(90deg, rgba(3,10,6,.76) 0%, rgba(3,10,6,.12) 72%); }
.story-panel:nth-of-type(even) .story-panel__shade { background: linear-gradient(180deg, rgba(3,10,6,.42) 0%, rgba(3,10,6,.1) 38%, rgba(3,10,6,.82) 100%), linear-gradient(270deg, rgba(3,10,6,.7) 0%, rgba(3,10,6,.08) 72%); }
.story-panel__lines { display: flex; justify-content: flex-end; opacity: .18; overflow: hidden; padding-right: 5vw; }
.story-panel__lines i { border-left: 1px solid rgba(224,192,131,.65); height: 24%; margin-top: -4%; width: clamp(18px, 2.5vw, 48px); }
.story-panel__lines i:nth-child(2) { height: 34%; }
.story-panel__lines i:nth-child(3) { height: 19%; }
.story-panel__lines i:nth-child(4) { height: 29%; }
.story-panel__lines i:nth-child(5) { height: 13%; }
.story-panel__layout { align-items: flex-end; display: flex; min-height: 100%; padding-bottom: clamp(5rem, 10vh, 8rem); padding-top: calc(var(--header-height) + 3rem); position: relative; z-index: 2; }
.story-panel:nth-of-type(even) .story-panel__layout { justify-content: flex-end; }
.story-panel__content { color: var(--white); max-width: 680px; position: relative; width: 100%; }
.story-panel:not(.story-panel--hero) .story-panel__content { background: rgba(7,19,14,.64); border: 1px solid rgba(255,255,255,.14); box-shadow: 0 30px 80px rgba(0,0,0,.2); padding: clamp(1.75rem, 5vw, 4.5rem); backdrop-filter: blur(14px); }
.story-panel__number { color: rgba(255,255,255,.5); font-size: .7rem; font-weight: 700; letter-spacing: .15em; margin-bottom: clamp(2rem, 5vh, 4rem); }
.story-panel__number span { color: var(--brass-400); margin-left: .35rem; }
.story-panel__number .story-panel__marker { color: var(--brass-400); margin-left: 0; }
.story-panel__title { color: var(--white); font-size: clamp(3rem, 8vw, 7rem); margin-bottom: clamp(1.25rem, 3vh, 2rem); max-width: 12ch; text-shadow: 0 4px 40px rgba(0,0,0,.18); }
.story-panel:not(.story-panel--hero) .story-panel__title { font-size: clamp(2.5rem, 5.5vw, 5rem); }
.story-panel__text { color: rgba(255,255,255,.82); font-size: clamp(1rem, 1.5vw, 1.2rem); line-height: 1.7; margin: 0 0 2rem; max-width: 54ch; }
.story-panel__link, .button { align-items: center; display: inline-flex; font-size: .71rem; font-weight: 700; gap: 1rem; letter-spacing: .15em; text-decoration: none; text-transform: uppercase; }
.story-panel__link { border-bottom: 1px solid rgba(224,192,131,.5); color: var(--white); padding: .65rem 0; }
.story-panel__link:hover { color: var(--brass-400); }
.story-panel__link svg, .button svg, .post-card__link svg, .back-to-top svg { fill: none; height: 19px; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; transition: transform .35s var(--ease-out); width: 19px; }
.story-panel__link:hover svg, .button:hover svg, .post-card__link:hover svg { transform: translateX(6px); }
.story-panel__scroll { align-items: center; bottom: 2rem; color: rgba(255,255,255,.72); display: flex; flex-direction: column; font-size: .6rem; font-weight: 700; gap: .55rem; left: 50%; letter-spacing: .18em; position: absolute; text-decoration: none; text-transform: uppercase; transform: translateX(-50%); z-index: 4; }
.story-panel__scroll svg { fill: none; height: 21px; stroke: var(--brass-400); width: 21px; animation: scroll-cue 2s var(--ease-in-out, ease-in-out) infinite; }
@keyframes scroll-cue { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(7px); } }
.front-story__rail { display: none; }

/* Inner-page hero */
.entry-hero, .listing-hero { background: var(--forest-900); color: var(--white); min-height: clamp(460px, 68vh, 760px); overflow: hidden; padding-top: var(--header-height); position: relative; }
.entry-hero { align-items: flex-end; display: flex; position: relative; }
.entry-hero::after {
    border: 1px solid rgba(208, 170, 103, 0.1);
    border-radius: 50%;
    box-shadow: inset 0 0 0 1.2rem transparent, inset 0 0 0 1.25rem rgba(208, 170, 103, 0.06);
    content: "";
    height: 10rem;
    pointer-events: none;
    position: absolute;
    right: 4rem;
    top: 3rem;
    transform: rotate(-18deg);
    width: 10rem;
    z-index: 1;
}
.entry-hero__media, .entry-hero__shade, .entry-hero__pattern { inset: 0; position: absolute; }
.entry-hero__image { height: 100%; object-fit: cover; width: 100%; }
.entry-hero__shade { background: linear-gradient(180deg, rgba(7,19,14,.35), rgba(7,19,14,.9)), linear-gradient(90deg, rgba(7,19,14,.72), transparent 75%); }
.entry-hero:not(.entry-hero--image) .entry-hero__shade { background: radial-gradient(circle at 85% 40%, rgba(208,170,103,.13), transparent 26%), linear-gradient(135deg, var(--forest-950), var(--forest-700)); }
.entry-hero__pattern { display: flex; justify-content: flex-end; opacity: .35; overflow: hidden; padding-right: 8vw; }
.entry-hero__pattern i { border-left: 1px solid rgba(224,192,131,.45); height: 52%; width: clamp(25px, 4vw, 70px); }
.entry-hero__pattern i:nth-child(2) { height: 34%; }
.entry-hero__pattern i:nth-child(3) { height: 68%; }
.entry-hero__pattern i:nth-child(4) { height: 43%; }
.entry-hero__pattern i:nth-child(5) { height: 23%; }
.entry-hero__inner { padding-bottom: clamp(4rem, 9vh, 7rem); padding-top: 5rem; position: relative; z-index: 2; }
.entry-hero__title { color: var(--white); font-size: clamp(3.2rem, 9vw, 8rem); margin: 0; max-width: 13ch; }
.entry-hero__lead { color: rgba(255,255,255,.75); font-size: 1.15rem; margin: 1.6rem 0 0; max-width: 55ch; }
.listing-hero { align-items: flex-end; display: flex; min-height: clamp(400px, 56vh, 650px); }
.listing-hero > .site-container { padding-bottom: clamp(4rem, 9vh, 7rem); position: relative; z-index: 2; }
.listing-hero h1 { color: var(--white); margin: 0; }
.listing-hero__pattern, .error-page__pattern { background: radial-gradient(circle at 80% 38%, rgba(208,170,103,.16), transparent 24%), repeating-linear-gradient(90deg, transparent 0, transparent 56px, rgba(224,192,131,.07) 57px, transparent 58px); inset: 0; position: absolute; }
.listing-hero__description { color: rgba(255,255,255,.7); max-width: 55ch; }

/* Block/editor content */
.entry-content { padding-block: clamp(4.5rem, 10vw, 9rem); }
.entry-content::after { clear: both; content: ""; display: table; }
.entry-content > * { margin-left: auto; margin-right: auto; max-width: var(--content); width: calc(100% - (2 * var(--gutter))); }
.entry-content > .alignwide { max-width: var(--container); }
.entry-content > .alignfull { margin-left: calc(50% - 50vw); margin-right: calc(50% - 50vw); max-width: none; width: 100vw; }
.entry-content > :first-child { margin-top: 0; }
.entry-content h2 { margin-top: 1.7em; }
.entry-content h3 { margin-top: 1.5em; }
.entry-content h4 { margin-top: 1.4em; }
.entry-content p, .entry-content li { color: var(--ink-700); }
.entry-content p a, .entry-content li a { text-decoration: underline; text-decoration-color: rgba(208,170,103,.65); }
.entry-content ul:not([class]), .entry-content ol:not([class]), .entry-content .wp-block-list { padding-left: 1.4em; }
.entry-content li { margin-bottom: .45rem; padding-left: .2rem; }
.entry-content li::marker { color: var(--brass-500); }
.entry-content blockquote, .wp-block-quote { border-left: 3px solid var(--brass-500); font-family: var(--display); font-size: clamp(1.35rem, 3vw, 2rem); margin-block: 2.5rem; padding: .25rem 0 .25rem clamp(1.25rem, 4vw, 2.5rem); }
.entry-content blockquote p { color: var(--forest-800); line-height: 1.35; }
.entry-content blockquote cite { color: var(--ink-500); display: block; font-family: var(--sans); font-size: .72rem; font-style: normal; font-weight: 700; letter-spacing: .12em; margin-top: 1rem; text-transform: uppercase; }
.wp-block-pullquote { border-block: 1px solid var(--brass-500); padding-block: 3rem; }
.wp-block-separator { border: 0; border-top: 1px solid rgba(16,37,28,.18); margin-block: 3.5rem; }
.wp-block-separator.is-style-wide { max-width: var(--container); }
.wp-block-image img { width: auto; }
.wp-block-image.alignwide img, .wp-block-image.alignfull img { width: 100%; }
.wp-block-image figcaption, .wp-block-gallery figcaption { color: var(--ink-500); font-size: .75rem; margin-top: .7rem; text-align: left; }
.is-style-spaeth-framed img { border: 1px solid rgba(16,37,28,.2); box-shadow: 16px 16px 0 var(--sand-200); }
.wp-block-cover { min-height: 520px; }
.wp-block-cover__inner-container { width: min(calc(100% - (2 * var(--gutter))), var(--container)); }
.wp-block-group.is-style-spaeth-surface { background: var(--ivory-100); border: 1px solid rgba(16,37,28,.1); border-radius: 4px; padding: clamp(1.5rem, 5vw, 4rem); }
.wp-block-columns { gap: clamp(1.5rem, 4vw, 4rem); }
.wp-block-column > :first-child { margin-top: 0; }
.wp-block-buttons { gap: .8rem; margin-block: 2rem; }
.wp-block-button__link, .button {
    background: var(--forest-800);
    border: 1px solid var(--forest-800);
    border-radius: 999px;
    color: var(--white);
    cursor: pointer;
    line-height: 1.2;
    padding: .95rem 1.55rem;
    transition: background .25s, border-color .25s, color .25s, transform .35s var(--ease-out);
}
.wp-block-button__link:hover, .button:hover { background: var(--forest-600); border-color: var(--forest-600); color: var(--white); transform: translateY(-2px); }
.is-style-outline > .wp-block-button__link, .is-style-spaeth-outline .wp-block-button__link { background: transparent; border-color: var(--brass-500); color: var(--forest-800); }
.is-style-outline > .wp-block-button__link:hover, .is-style-spaeth-outline .wp-block-button__link:hover { background: var(--brass-500); color: var(--forest-950); }
.button--brass { background: var(--brass-500); border-color: var(--brass-500); color: var(--forest-950); }
.button--brass:hover { background: var(--brass-400); border-color: var(--brass-400); color: var(--forest-950); }
.wp-block-table { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; }
th, td { border-bottom: 1px solid rgba(16,37,28,.16); padding: .9rem 1rem; text-align: left; }
th { color: var(--forest-800); font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; }
pre, code, kbd { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; }
pre { background: var(--forest-950); color: var(--ivory-100); overflow: auto; padding: 1.5rem; }
.wp-block-details { border-block: 1px solid rgba(16,37,28,.15); padding-block: 1rem; }
.wp-block-details summary { color: var(--forest-800); cursor: pointer; font-weight: 700; }
.wp-block-embed iframe { max-width: 100%; }
.gallery { display: grid; gap: 1rem; grid-template-columns: repeat(2, 1fr); }

/* Forms */
input:not([type="checkbox"]):not([type="radio"]), textarea, select {
    background: var(--white);
    border: 1px solid rgba(16,37,28,.22);
    border-radius: 0;
    color: var(--ink-900);
    min-height: 52px;
    padding: .75rem 1rem;
    width: 100%;
}
textarea { min-height: 160px; resize: vertical; }
input:focus, textarea:focus, select:focus { border-color: var(--brass-500); outline: 2px solid rgba(208,170,103,.2); }
input[type="submit"], button[type="submit"] { background: var(--forest-800); border: 0; color: var(--white); cursor: pointer; font-size: .72rem; font-weight: 700; letter-spacing: .12em; min-height: 52px; padding: .75rem 1.5rem; text-transform: uppercase; }
.search-form { display: flex; gap: .5rem; max-width: 600px; }
.search-form label { flex: 1; }

/* Blog/listing */
.listing { padding-block: clamp(4rem, 9vw, 8rem); }
.post-grid { display: grid; gap: clamp(2rem, 5vw, 4rem); }
.post-card { background: var(--white); border: 1px solid rgba(16,37,28,.09); min-width: 0; transition: transform .5s var(--ease-out), box-shadow .5s var(--ease-out); }
.post-card:hover { box-shadow: 0 28px 70px rgba(12,29,21,.12); transform: translateY(-8px); }
.post-card__media { aspect-ratio: 4 / 3; background: var(--forest-800); display: block; overflow: hidden; }
.post-card__media img { height: 100%; object-fit: cover; transition: transform .8s var(--ease-out); width: 100%; }
.post-card:hover .post-card__media img { transform: scale(1.045); }
.post-card__placeholder { align-items: flex-start; background: linear-gradient(135deg, var(--forest-950), var(--forest-700)); display: flex; height: 100%; justify-content: flex-end; overflow: hidden; padding-right: 10%; }
.post-card__placeholder i { border-left: 1px solid rgba(224,192,131,.35); height: 75%; width: 12%; }
.post-card__placeholder i:nth-child(2) { height: 55%; }
.post-card__placeholder i:nth-child(3) { height: 85%; }
.post-card__placeholder i:nth-child(4) { height: 45%; }
.post-card__body { padding: clamp(1.5rem, 4vw, 2.5rem); }
.post-card__meta { color: var(--ink-500); font-size: .67rem; font-weight: 700; letter-spacing: .14em; margin-bottom: 1.2rem; text-transform: uppercase; }
.post-card h2 { font-size: clamp(1.8rem, 3vw, 2.5rem); }
.post-card h2 a { color: var(--forest-800); text-decoration: none; }
.post-card__excerpt { color: var(--ink-700); font-size: .95rem; }
.post-card__link { align-items: center; color: var(--forest-600); display: inline-flex; font-size: .68rem; font-weight: 700; gap: .8rem; letter-spacing: .13em; margin-top: .5rem; text-decoration: none; text-transform: uppercase; }
.navigation.pagination { margin-top: 4rem; }
.nav-links { display: flex; flex-wrap: wrap; gap: .5rem; justify-content: center; }
.page-numbers { align-items: center; border: 1px solid rgba(16,37,28,.15); color: var(--forest-800); display: flex; height: 46px; justify-content: center; min-width: 46px; padding-inline: .8rem; text-decoration: none; }
.page-numbers.current, a.page-numbers:hover { background: var(--forest-800); border-color: var(--forest-800); color: var(--white); }
.empty-state { padding-block: 2rem; text-align: center; }
.empty-state .search-form { margin: 2rem auto 0; }

/* Post navigation and comments */
.post-navigation-wrap, .comments-wrap { padding-bottom: clamp(4rem, 8vw, 7rem); }
.post-navigation { border-top: 1px solid rgba(16,37,28,.14); padding-top: 2rem; }
.post-navigation .nav-links { justify-content: space-between; }
.post-navigation a { display: grid; max-width: 320px; text-decoration: none; }
.post-navigation span { color: var(--ink-500); font-size: .65rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.post-navigation strong { color: var(--forest-800); font-family: var(--display); font-size: 1.3rem; font-weight: 400; }
.comments-area { border-top: 1px solid rgba(16,37,28,.14); padding-top: 3rem; }
.comment-list { list-style: none; padding: 0; }
.comment-body { border-bottom: 1px solid rgba(16,37,28,.12); padding-block: 2rem; }
.comment-meta { font-size: .8rem; }

/* 404 */
.error-page { align-items: center; background: var(--forest-950); color: var(--white); display: flex; min-height: 100svh; overflow: hidden; padding-block: calc(var(--header-height) + 4rem) 4rem; position: relative; text-align: center; }
.error-page__inner { position: relative; z-index: 2; }
.error-page__code { color: rgba(224,192,131,.17); font-family: var(--display); font-size: clamp(8rem, 28vw, 20rem); left: 50%; line-height: .7; margin: 0; position: absolute; top: 46%; transform: translate(-50%, -50%); z-index: -1; }
.error-page .eyebrow { justify-content: center; }
.error-page h1 { color: var(--white); }
.error-page__inner > p:not(.error-page__code):not(.eyebrow) { color: rgba(255,255,255,.72); margin-inline: auto; max-width: 52ch; }
.error-page .button { margin-top: 1.5rem; }

/* Footer */
.site-footer { background: var(--forest-950); color: rgba(255,255,255,.68); overflow: hidden; padding-top: clamp(5rem, 11vw, 10rem); position: relative; }
.site-footer::before {
    border: 1px solid rgba(208, 170, 103, 0.07);
    border-radius: 50%;
    box-shadow: inset 0 0 0 1.5rem transparent, inset 0 0 0 1.55rem rgba(208, 170, 103, 0.04);
    content: "";
    height: 18rem;
    pointer-events: none;
    position: absolute;
    bottom: -5rem;
    right: -4rem;
    transform: rotate(-18deg);
    width: 18rem;
}
.site-footer__glow { background: radial-gradient(circle, rgba(208,170,103,.12), transparent 65%); height: 45rem; pointer-events: none; position: absolute; right: -20rem; top: -24rem; width: 45rem; }
.site-footer__masthead { align-items: flex-end; border-bottom: 1px solid rgba(255,255,255,.12); display: flex; gap: 2rem; justify-content: space-between; padding-bottom: clamp(2.5rem, 6vw, 5rem); position: relative; }
.site-footer__statement { color: var(--white); font-family: var(--display); font-size: clamp(2.8rem, 7vw, 6.7rem); letter-spacing: -.04em; line-height: .95; margin: 0; max-width: 10ch; }
.back-to-top { align-items: center; border: 1px solid rgba(255,255,255,.2); color: var(--white); display: flex; flex: 0 0 auto; font-size: .65rem; font-weight: 700; gap: .8rem; letter-spacing: .13em; padding: .8rem 1rem; text-decoration: none; text-transform: uppercase; }
.back-to-top:hover { border-color: var(--brass-500); color: var(--brass-400); }
.back-to-top:hover svg { transform: translateY(-4px); }
.site-footer__grid { display: grid; gap: 3rem; padding-block: clamp(4rem, 8vw, 7rem); position: relative; }
.site-footer__heading, .footer-widget__title { color: var(--brass-400); font-family: var(--sans); font-size: .68rem; font-weight: 700; letter-spacing: .16em; margin: 0 0 1.4rem; text-transform: uppercase; }
.site-footer p, .site-footer address { font-size: .92rem; line-height: 1.75; }
.site-footer a { color: rgba(255,255,255,.76); }
.site-footer a:hover { color: var(--brass-400); }
.site-footer__menu, .site-footer__contact, .footer-widget ul { list-style: none; margin: 0; padding: 0; }
.site-footer__menu li { margin-bottom: .55rem; }
.site-footer__contact { margin-top: 1.5rem; }
.site-footer__contact li { align-items: center; display: flex; gap: .65rem; margin-bottom: .65rem; }
.site-footer__contact svg { fill: none; height: 17px; stroke: var(--brass-400); stroke-linecap: round; stroke-linejoin: round; width: 17px; }
.footer-widget { margin: 0; }
.footer-widget > :last-child { margin-bottom: 0; }
.spaeth-footer-card h2 { color: var(--white); font-size: 1.8rem; }
.spaeth-footer-kicker, .spaeth-footer-subtitle { color: var(--brass-400) !important; font-size: .68rem !important; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.spaeth-footer-contact-list { display: grid; gap: .7rem; }
.spaeth-footer-contact-item { align-items: flex-start; display: flex; gap: .7rem; line-height: 1.5; }
.spaeth-footer-icon { color: var(--brass-400); display: grid; flex: 0 0 18px; margin-top: .15rem; place-items: center; }
.spaeth-footer-icon img { filter: invert(82%) sepia(32%) saturate(616%); }
.spaeth-footer-icon img, .spaeth-footer-icon svg { fill: none; height: 18px; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.5; width: 18px; }
.spaeth-footer-contact-item a { overflow-wrap: anywhere; }
.site-footer__bottom { align-items: center; border-top: 1px solid rgba(255,255,255,.1); display: flex; flex-wrap: wrap; font-size: .68rem; gap: 1rem 2rem; justify-content: space-between; letter-spacing: .08em; padding-block: 1.5rem; text-transform: uppercase; }
.site-footer__bottom p { font-size: inherit; margin: 0; }

/* Reveal effects – content remains visible without JS */
.reveal-ready [data-reveal]:not(.is-visible) { opacity: 0; transform: translateY(28px); }
.reveal-ready [data-reveal="soft"]:not(.is-visible) { transform: translateY(16px); }
.reveal-ready [data-reveal="panel"]:not(.is-visible) { transform: translateY(45px); }
[data-reveal] { transition: opacity .85s ease, transform .95s var(--ease-out); }

/* Responsive */
@media (min-width: 700px) {
    .post-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .gallery-columns-3 { grid-template-columns: repeat(3, 1fr); }
    .site-footer__grid { grid-template-columns: 1.4fr 1fr 1fr; }
}

@media (min-width: 1100px) {
    .nav-toggle { display: none; }
    .site-nav { background: none; inset: auto; opacity: 1; overflow: visible; padding: 0; pointer-events: auto; position: static; transform: none; transition: none; visibility: visible; }
    .site-nav__list { align-items: center; display: flex; gap: clamp(.15rem, 1vw, 1rem); width: auto; }
    .site-nav__list > li { border: 0; }
    .site-nav__list > li > a { color: rgba(255,255,255,.82); font-family: var(--sans); font-size: .68rem; font-weight: 700; letter-spacing: .1em; padding: 1rem .65rem; position: relative; text-transform: uppercase; }
    .site-nav__list > li > a::after { background: var(--brass-500); bottom: .55rem; content: ""; height: 1px; left: .65rem; position: absolute; right: .65rem; transform: scaleX(0); transform-origin: right; transition: transform .4s var(--ease-out); }
    .site-nav__list > li:hover > a::after, .site-nav__list > .current-menu-item > a::after, .site-nav__list > .current_page_item > a::after { transform: scaleX(1); transform-origin: left; }
    .site-nav__list .sub-menu { background: rgba(7,19,14,.98); border: 1px solid rgba(255,255,255,.1); display: block; left: 50%; min-width: 230px; opacity: 0; padding: .65rem; pointer-events: none; position: absolute; top: calc(100% - .3rem); transform: translate(-50%, 10px); transition: opacity .25s, transform .35s var(--ease-out), visibility .25s; visibility: hidden; }
    .site-nav__list li:hover > .sub-menu, .site-nav__list li:focus-within > .sub-menu { opacity: 1; pointer-events: auto; transform: translate(-50%, 0); visibility: visible; }
    .site-nav__list .sub-menu a { font-size: .75rem; padding: .7rem .8rem; }
    .submenu-toggle { display: none; }
    .front-story__rail { align-items: center; color: var(--white); display: flex; opacity: 0; position: fixed; right: clamp(1rem, 2.3vw, 2.5rem); top: 50%; transform: translateY(-50%); transition: opacity .3s; visibility: hidden; z-index: 50; }
    .front-story__rail.is-visible { opacity: 1; visibility: visible; }
    .front-story__rail ol { display: grid; gap: .7rem; list-style: none; margin: 0; padding: 0; }
    .front-story__rail a { align-items: center; color: rgba(255,255,255,.45); display: flex; font-size: .55rem; font-weight: 700; gap: .65rem; letter-spacing: .1em; justify-content: flex-end; text-decoration: none; }
    .front-story__rail a i { background: rgba(255,255,255,.45); height: 1px; transition: background .3s, width .4s var(--ease-out); width: 12px; }
    .front-story__rail a.is-active { color: var(--white); }
    .front-story__rail a.is-active i { background: var(--brass-400); width: 30px; }
    .front-story__rail-line { display: none; }
    .story-panel__content { margin-left: 6vw; }
    .story-panel:nth-of-type(even) .story-panel__content { margin-left: 0; margin-right: 6vw; }
    .story-panel__layout { padding-right: max(var(--gutter), 5rem); }
    .post-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 1099px) {
    .admin-bar .site-nav { padding-top: calc(var(--header-height) + 4rem); }
}
@media (max-width: 782px) {
    .admin-bar .site-header { top: 46px; }
}
@media (max-width: 699px) {
    :root { --header-height: 74px; --gutter: 1.25rem; }
    .custom-logo { max-height: 46px; max-width: 180px; }
    .story-panel { min-height: 105svh; }
    .story-panel__stage { min-height: 560px; }
    .story-panel__layout { padding-bottom: 5rem; }
    .story-panel:not(.story-panel--hero) .story-panel__content { backdrop-filter: blur(9px); }
    .story-panel__number { margin-bottom: 1.5rem; }
    .story-panel__scroll { bottom: 1.3rem; }
    .entry-hero { min-height: 520px; }
    .entry-hero__inner { padding-bottom: 4rem; }
    .entry-content { padding-block: 4rem; }
    .entry-content > .alignfull { margin-left: -1.25rem; margin-right: -1.25rem; width: calc(100% + 2.5rem); }
    .wp-block-cover { min-height: 420px; }
    .site-footer__masthead { align-items: flex-start; flex-direction: column; }
    .back-to-top { align-self: flex-end; }
    .search-form { flex-direction: column; }
    .post-navigation .nav-links { gap: 2rem; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; transition-duration: .01ms !important; }
    .story-panel__image { transform: none; }
}

@media (prefers-contrast: more) {
    .story-panel__shade { background: rgba(0,0,0,.72); }
    .story-panel__text, .site-footer { color: var(--white); }
}

/* ============================================
   22. LIGHT MODERN CRAFT – BRIGHTER VISUAL MODE
   ============================================ */
:root {
    --ivory-50: #fcfbf7;
    --ivory-100: #f6f2e9;
    --sand-200: #e9e0d2;
    --ink-700: #39433d;
    --ink-500: #68716c;
}

body { background: var(--ivory-50) !important; }

/* Light navigation once it sits above page content. */
.site-header {
    background: rgba(252, 251, 247, .96);
    border-bottom: 1px solid rgba(16, 37, 28, .09);
    color: var(--forest-800);
}
.site-header.is-scrolled {
    background: rgba(252, 251, 247, .94);
    box-shadow: 0 12px 38px rgba(16, 37, 28, .09);
}
.site-header .custom-logo {
    filter: brightness(0) saturate(100%) invert(12%) sepia(21%) saturate(854%) hue-rotate(101deg) brightness(91%) contrast(96%);
}
.site-header .site-branding__name { color: var(--forest-800); }
.site-header .site-branding__tag { color: #8a642f; }
.site-header .nav-toggle { color: var(--forest-800); }
.site-header.is-menu-open {
    background: var(--forest-950);
    border-bottom-color: rgba(255,255,255,.1);
    color: var(--white);
}
.site-header.is-menu-open .custom-logo { filter: none; }
.site-header.is-menu-open .site-branding__name,
.site-header.is-menu-open .nav-toggle { color: var(--white); }
.site-header.is-menu-open .site-branding__tag { color: var(--brass-400); }
.spaeth-front-page .site-header:not(.is-scrolled):not(.is-menu-open) {
    background: linear-gradient(to bottom, rgba(4,12,8,.48), transparent);
    border-bottom-color: transparent;
    color: var(--white);
}
.spaeth-front-page .site-header:not(.is-scrolled):not(.is-menu-open) .custom-logo { filter: none; }
.spaeth-front-page .site-header:not(.is-scrolled):not(.is-menu-open) .site-branding__name,
.spaeth-front-page .site-header:not(.is-scrolled):not(.is-menu-open) .nav-toggle { color: var(--white); }
.spaeth-front-page .site-header:not(.is-scrolled):not(.is-menu-open) .site-branding__tag { color: var(--brass-400); }

/* Let photography breathe; reserve strong contrast for the opening panel. */
.story-panel__image {
    filter: brightness(1.04) contrast(.96) saturate(.94);
}
.story-panel--hero .story-panel__shade {
    background:
        linear-gradient(180deg, rgba(3,10,6,.22) 0%, rgba(3,10,6,.03) 40%, rgba(3,10,6,.58) 100%),
        linear-gradient(90deg, rgba(3,10,6,.5) 0%, rgba(3,10,6,.06) 72%);
}
.story-panel:not(.story-panel--hero) .story-panel__shade {
    background:
        linear-gradient(180deg, rgba(247,244,237,.02), rgba(7,19,14,.16)),
        linear-gradient(90deg, rgba(7,19,14,.22), transparent 64%);
}
.story-panel:nth-of-type(even):not(.story-panel--hero) .story-panel__shade {
    background:
        linear-gradient(180deg, rgba(247,244,237,.02), rgba(7,19,14,.16)),
        linear-gradient(270deg, rgba(7,19,14,.2), transparent 64%);
}
.story-panel:not(.story-panel--hero) .story-panel__content {
    background: rgba(252, 251, 247, .93);
    border: 1px solid rgba(255,255,255,.72);
    border-top: 3px solid rgba(208,170,103,.9);
    box-shadow: 0 28px 75px rgba(7,19,14,.16);
    color: var(--ink-900);
    backdrop-filter: blur(18px);
}
.story-panel:not(.story-panel--hero) .story-panel__number { color: var(--ink-500); }
.story-panel:not(.story-panel--hero) .story-panel__number span,
.story-panel:not(.story-panel--hero) .story-panel__number .story-panel__marker { color: #8a642f; }
.story-panel:not(.story-panel--hero) .eyebrow--light { color: var(--forest-600); }
.story-panel:not(.story-panel--hero) .story-panel__title { color: var(--forest-800); text-shadow: none; }
.story-panel:not(.story-panel--hero) .story-panel__text { color: var(--ink-700); }
.story-panel:not(.story-panel--hero) .story-panel__link {
    border-bottom-color: rgba(138,100,47,.45);
    color: var(--forest-700);
}
.story-panel:not(.story-panel--hero) .story-panel__link:hover { color: #8a642f; }

/* Brighter and shorter page introductions. */
.entry-hero,
.listing-hero { min-height: clamp(390px, 55vh, 620px); }
.entry-hero__shade {
    background:
        linear-gradient(180deg, rgba(7,19,14,.16), rgba(7,19,14,.62)),
        linear-gradient(90deg, rgba(7,19,14,.48), transparent 78%);
}
.entry-hero:not(.entry-hero--image),
.listing-hero {
    background: var(--ivory-100);
    color: var(--ink-900);
}
.entry-hero:not(.entry-hero--image) .entry-hero__shade {
    background:
        radial-gradient(circle at 84% 35%, rgba(208,170,103,.2), transparent 28%),
        linear-gradient(135deg, rgba(252,251,247,.98), rgba(233,224,210,.8));
}
.entry-hero:not(.entry-hero--image) .entry-hero__title,
.listing-hero h1 { color: var(--forest-800); }
.entry-hero:not(.entry-hero--image) .eyebrow--light,
.listing-hero .eyebrow--light { color: var(--forest-600); }
.entry-hero:not(.entry-hero--image) .entry-hero__lead,
.listing-hero__description { color: var(--ink-700); }
.entry-hero:not(.entry-hero--image) .entry-hero__pattern,
.listing-hero__pattern {
    opacity: .55;
}
.entry-hero:not(.entry-hero--image) .entry-hero__pattern i { border-left-color: rgba(40,81,62,.18); }
.listing-hero__pattern {
    background:
        radial-gradient(circle at 80% 38%, rgba(208,170,103,.24), transparent 25%),
        repeating-linear-gradient(90deg, transparent 0, transparent 56px, rgba(40,81,62,.08) 57px, transparent 58px);
}
.listing-hero.listing-hero--image { background: var(--forest-900); color: var(--white); }
.listing-hero.listing-hero--image h1 { color: var(--white); }
.listing-hero.listing-hero--image .eyebrow--light { color: rgba(255,255,255,.72); }
.listing-hero.listing-hero--image .listing-hero__pattern { opacity: 0; }
.entry-content { background: var(--ivory-50); }

/* A friendlier error page. */
.error-page {
    background: linear-gradient(135deg, var(--ivory-50), var(--sand-200));
    color: var(--ink-900);
}
.error-page .eyebrow--light { color: var(--forest-600); }
.error-page h1 { color: var(--forest-800); }
.error-page__inner > p:not(.error-page__code):not(.eyebrow) { color: var(--ink-700); }
.error-page__code { color: rgba(138,100,47,.14); }
.error-page__pattern { opacity: .45; }

/* Keep the footer as a deliberate darker finish, but reduce its visual weight. */
.site-footer {
    background: var(--spaeth-footer-background, #173429);
    color: rgba(255,255,255,.76);
    padding-top: clamp(4rem, 8vw, 7rem);
}
.site-footer__glow {
    background: radial-gradient(circle, rgba(224,192,131,.15), transparent 65%);
}
.site-footer__statement {
    font-size: clamp(2.6rem, 5.7vw, 5.4rem);
    line-height: 1;
}
.site-footer__masthead { padding-bottom: clamp(2.25rem, 5vw, 4rem); }
.site-footer__grid { padding-block: clamp(3.25rem, 6vw, 5.5rem); }
.site-footer a { color: rgba(255,255,255,.84); }

@media (min-width: 1100px) {
    .site-nav__list > li > a { color: var(--forest-800); }
    .spaeth-front-page .site-header:not(.is-scrolled):not(.is-menu-open) .site-nav__list > li > a { color: rgba(255,255,255,.9); }
}

@media (max-width: 699px) {
    .story-panel:not(.story-panel--hero) .story-panel__content {
        background: rgba(252,251,247,.95);
        backdrop-filter: blur(12px);
    }
    .entry-hero,
    .listing-hero { min-height: 460px; }
    .site-footer { padding-top: 3.75rem; }
    .site-footer__bottom { align-items: flex-start; flex-direction: column; }
    .site-footer__bottom-right { order: 1; }
    .site-footer__bottom-left { order: 2; }
}

/* ============================================
   23. IMMERSIVE EDITORIAL CARDS & MOTION
   ============================================ */
.story-panel:not(.story-panel--hero) .story-panel__content {
    --card-pointer-x: 50%;
    --card-pointer-y: 50%;
    --card-rotate-x: 0deg;
    --card-rotate-y: 0deg;
    background: linear-gradient(145deg, rgba(255,255,255,.58), rgba(241,237,228,.48));
    border: 1px solid rgba(255,255,255,.7);
    -webkit-backdrop-filter: blur(10px) saturate(115%);
    backdrop-filter: blur(10px) saturate(115%);
    border-radius: clamp(1.25rem, 2.4vw, 2rem);
    box-shadow:
        0 1px 0 rgba(255,255,255,.9) inset,
        0 28px 70px rgba(7,19,14,.14),
        0 8px 24px rgba(7,19,14,.08);
    isolation: isolate;
    overflow: hidden;
    padding: clamp(2rem, 4.7vw, 4.25rem);
    transform: none;
    transform-style: flat;
    transition:
        opacity .8s ease,
        transform .65s var(--ease-out),
        box-shadow .65s var(--ease-out),
        border-color .45s ease;
    will-change: auto;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}
.story-panel:not(.story-panel--hero) .story-panel__content::before {
    background:
        radial-gradient(circle at var(--card-pointer-x) var(--card-pointer-y), rgba(224,192,131,.16), transparent 30%),
        linear-gradient(125deg, rgba(255,255,255,.1), transparent 38%);
    content: "";
    inset: 0;
    opacity: .38;
    pointer-events: none;
    position: absolute;
    -webkit-backdrop-filter: blur(11px) saturate(116%);
    backdrop-filter: blur(11px) saturate(116%);
    transition: opacity .5s ease;
    z-index: 0;
}
.story-panel:not(.story-panel--hero) .story-panel__content::after {
    background: linear-gradient(90deg, transparent, var(--brass-500) 18%, var(--brass-400) 72%, transparent);
    content: "";
    height: 2px;
    left: 8%;
    position: absolute;
    right: 8%;
    top: 0;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 1.15s .18s var(--ease-out);
    z-index: 3;
}
.story-panel:not(.story-panel--hero).is-active .story-panel__content::after,
.story-panel:not(.story-panel--hero) .story-panel__content.is-visible::after {
    transform: scaleX(1);
}
.story-panel:not(.story-panel--hero) .story-panel__content > * {
    position: relative;
    z-index: 2;
}
.story-panel:not(.story-panel--hero) .story-panel__content.is-pointer-active {
    border-color: rgba(208,170,103,.42);
    box-shadow:
        0 1px 0 rgba(255,255,255,.94) inset,
        0 36px 90px rgba(7,19,14,.18),
        0 12px 30px rgba(7,19,14,.08);
}
.story-panel:not(.story-panel--hero) .story-panel__content.is-pointer-active::before { opacity: .9; }

/* Each information layer arrives separately instead of moving as one block. */
.reveal-ready .story-panel__content[data-reveal]:not(.is-visible) {
    opacity: 0;
    transform: perspective(1200px) translateY(54px) scale(.965) rotateX(2deg);
}
.reveal-ready .story-panel__content[data-reveal]:not(.is-visible) > * {
    opacity: 0;
    transform: translateY(20px);
}
.story-panel__content.is-visible > * {
    opacity: 1;
    transform: translateY(0);
    transition: opacity .7s ease, transform .85s var(--ease-out);
}
.story-panel__content.is-visible > :nth-child(1) { transition-delay: .12s; }
.story-panel__content.is-visible > :nth-child(2) { transition-delay: .2s; }
.story-panel__content.is-visible > :nth-child(3) { transition-delay: .28s; }
.story-panel__content.is-visible > :nth-child(4) { transition-delay: .36s; }
.story-panel__content.is-visible > :nth-child(5) { transition-delay: .44s; }

/* Modern metadata chip. */
.story-panel:not(.story-panel--hero) .story-panel__number {
    align-items: center;
    background: rgba(16,37,28,.055);
    border: 1px solid rgba(16,37,28,.09);
    border-radius: 999px;
    color: var(--forest-700);
    display: inline-flex;
    font-size: .62rem;
    gap: .1rem;
    letter-spacing: .16em;
    margin-bottom: clamp(1.5rem, 3vw, 2.5rem);
    min-height: 34px;
    padding: .45rem .85rem;
}
.story-panel:not(.story-panel--hero) .story-panel__number span { margin-left: .15rem; }
.story-panel:not(.story-panel--hero) .story-panel__number .story-panel__marker {
    font-weight: 700;
    margin-left: 0;
}
.story-panel:not(.story-panel--hero) .eyebrow {
    margin-bottom: 1rem;
}
.story-panel:not(.story-panel--hero) .eyebrow::before {
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .85s .42s var(--ease-out);
}
.story-panel:not(.story-panel--hero) .story-panel__content.is-visible .eyebrow::before { transform: scaleX(1); }
.story-panel:not(.story-panel--hero) .story-panel__title {
    font-size: clamp(2.65rem, 5vw, 4.75rem);
    letter-spacing: -.045em;
    line-height: .98;
    margin-bottom: 1.25rem;
}
.story-panel:not(.story-panel--hero) .story-panel__text {
    font-size: clamp(.98rem, 1.25vw, 1.12rem);
    margin-bottom: 1.75rem;
    max-width: 50ch;
}
.story-panel:not(.story-panel--hero) .story-panel__link {
    background: var(--forest-800);
    border: 1px solid var(--forest-800);
    border-radius: 999px;
    box-shadow: 0 8px 20px rgba(16,37,28,.12);
    color: var(--white);
    gap: .85rem;
    overflow: hidden;
    padding: .82rem .9rem .82rem 1.25rem;
    position: relative;
    transition: color .3s ease, background .3s ease, border-color .3s ease, box-shadow .4s ease, transform .4s var(--ease-out);
}
.story-panel:not(.story-panel--hero) .story-panel__link::before {
    background: linear-gradient(110deg, transparent 20%, rgba(255,255,255,.22) 50%, transparent 80%);
    content: "";
    inset: 0;
    position: absolute;
    transform: translateX(-125%);
    transition: transform .75s var(--ease-out);
}
.story-panel:not(.story-panel--hero) .story-panel__link span { position: relative; z-index: 1; }
.story-panel:not(.story-panel--hero) .story-panel__link svg {
    background: rgba(255,255,255,.13);
    border-radius: 50%;
    height: 30px;
    padding: 7px;
    position: relative;
    width: 30px;
    z-index: 1;
}
.story-panel:not(.story-panel--hero) .story-panel__link:hover {
    background: var(--forest-600);
    border-color: var(--forest-600);
    box-shadow: 0 14px 28px rgba(16,37,28,.19);
    color: var(--white);
    transform: translateY(-3px);
}
.story-panel:not(.story-panel--hero) .story-panel__link:hover::before { transform: translateX(125%); }
.story-panel:not(.story-panel--hero) .story-panel__link:hover svg { transform: translateX(3px) rotate(-4deg); }

/* Slow image movement and organ-pipe rhythm make each active scene feel alive. */
.story-panel:not(.story-panel--hero) .story-panel__media {
    transform: scale(1.01);
    transition: transform 8s cubic-bezier(.2,.65,.25,1);
}
.story-panel:not(.story-panel--hero).is-active .story-panel__media { transform: scale(1.055); }
.story-panel.is-active .story-panel__lines i {
    animation: spaeth-pipe-breathe 4.8s ease-in-out infinite alternate;
}
.story-panel.is-active .story-panel__lines i:nth-child(2) { animation-delay: -.9s; }
.story-panel.is-active .story-panel__lines i:nth-child(3) { animation-delay: -1.8s; }
.story-panel.is-active .story-panel__lines i:nth-child(4) { animation-delay: -2.7s; }
.story-panel.is-active .story-panel__lines i:nth-child(5) { animation-delay: -3.6s; }
@keyframes spaeth-pipe-breathe {
    from { opacity: .45; transform: translateY(-5px); }
    to { opacity: 1; transform: translateY(12px); }
}
.front-story__rail a.is-active i {
    animation: spaeth-rail-pulse 1.8s ease-in-out infinite;
}
@keyframes spaeth-rail-pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(224,192,131,0); }
    50% { box-shadow: 0 0 12px 1px rgba(224,192,131,.45); }
}

@media (max-width: 699px) {
    .story-panel:not(.story-panel--hero) .story-panel__content {
        background: linear-gradient(145deg, rgba(255,255,255,.72), rgba(241,237,228,.62));
        border-radius: 1.3rem;
        -webkit-backdrop-filter: blur(9px) saturate(110%);
        backdrop-filter: blur(9px) saturate(110%);
        padding: 1.7rem;
        transform: none;
    }
    .story-panel:not(.story-panel--hero) .story-panel__title {
        font-size: clamp(2.25rem, 11vw, 3.35rem);
        line-height: 1.02;
    }
    .story-panel:not(.story-panel--hero) .story-panel__link { width: 100%; justify-content: space-between; }
}

@supports not ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
    .story-panel:not(.story-panel--hero) .story-panel__content {
        background: rgba(248,245,238,.62);
    }
    @media (max-width: 699px) {
        .story-panel:not(.story-panel--hero) .story-panel__content {
            background: rgba(248,245,238,.72);
        }
    }
}

@media (prefers-contrast: more) {
    .story-panel:not(.story-panel--hero) .story-panel__content {
        background: rgba(255,255,255,.98);
        border-color: var(--forest-800);
        -webkit-backdrop-filter: none;
        backdrop-filter: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .story-panel__content,
    .story-panel__content > *,
    .story-panel__media,
    .story-panel__lines i,
    .front-story__rail a.is-active i {
        animation: none !important;
        transform: none !important;
        transition: none !important;
    }
    .story-panel:not(.story-panel--hero) .story-panel__content::after { transform: scaleX(1); }
}

/* Final glass surface: glass lives on a background layer so text stays crisp. */
.story-panel:not(.story-panel--hero) .story-panel__content {
    background: rgba(246, 242, 232, .66) !important;
    -webkit-backdrop-filter: none !important;
    backdrop-filter: none !important;
    transform: none;
    transform-style: flat;
    will-change: auto;
}
@media (max-width: 699px) {
    .story-panel:not(.story-panel--hero) .story-panel__content {
        background: rgba(246, 242, 232, .76) !important;
        -webkit-backdrop-filter: none !important;
        backdrop-filter: none !important;
    }
    .story-panel:not(.story-panel--hero) .story-panel__content::before {
        -webkit-backdrop-filter: blur(9px) saturate(110%);
        backdrop-filter: blur(9px) saturate(110%);
    }
}
@media (prefers-contrast: more) {
    .story-panel:not(.story-panel--hero) .story-panel__content {
        background: rgba(255, 255, 255, .96) !important;
        -webkit-backdrop-filter: none !important;
        backdrop-filter: none !important;
    }
    .story-panel:not(.story-panel--hero) .story-panel__content::before {
        background: none;
        -webkit-backdrop-filter: none !important;
        backdrop-filter: none !important;
    }
}

/* Moving glass plane: depth returns, while typography remains on a crisp static layer. */
.story-panel:not(.story-panel--hero) .story-panel__content,
.story-panel:not(.story-panel--hero) .story-panel__content.is-pointer-active {
    background: transparent !important;
    border-color: transparent;
    box-shadow: none;
    overflow: visible;
    transform: none;
    will-change: auto;
}
.story-panel:not(.story-panel--hero) .story-panel__content::before {
    background:
        radial-gradient(circle at var(--card-pointer-x) var(--card-pointer-y), rgba(224,192,131,.18), transparent 30%),
        linear-gradient(145deg, rgba(255,255,255,.58), rgba(241,237,228,.48));
    border: 1px solid rgba(255,255,255,.7);
    border-radius: inherit;
    box-shadow:
        0 1px 0 rgba(255,255,255,.88) inset,
        0 28px 70px rgba(7,19,14,.14),
        0 8px 24px rgba(7,19,14,.08);
    inset: 0;
    opacity: 1;
    transform: perspective(1200px) rotateX(var(--card-rotate-x)) rotateY(var(--card-rotate-y));
    transform-origin: center;
    transform-style: preserve-3d;
    transition:
        transform .5s var(--ease-out),
        box-shadow .5s var(--ease-out),
        border-color .4s ease;
    will-change: transform;
    z-index: 0;
}
.story-panel:not(.story-panel--hero) .story-panel__content.is-pointer-active::before {
    border-color: rgba(208,170,103,.48);
    box-shadow:
        0 1px 0 rgba(255,255,255,.94) inset,
        0 38px 92px rgba(7,19,14,.2),
        0 14px 32px rgba(7,19,14,.1);
    opacity: 1;
}
.story-panel:not(.story-panel--hero) .story-panel__content > * {
    transform-style: flat;
}
@media (max-width: 699px) {
    .story-panel:not(.story-panel--hero) .story-panel__content::before {
        background:
            radial-gradient(circle at 50% 20%, rgba(224,192,131,.12), transparent 32%),
            linear-gradient(145deg, rgba(255,255,255,.72), rgba(241,237,228,.62));
        -webkit-backdrop-filter: blur(9px) saturate(110%);
        backdrop-filter: blur(9px) saturate(110%);
        transform: none;
        will-change: auto;
    }
}
@media (prefers-contrast: more) {
    .story-panel:not(.story-panel--hero) .story-panel__content::before {
        background: rgba(255,255,255,.96);
        border-color: var(--forest-800);
        transform: none;
    }
}
@media (prefers-reduced-motion: reduce) {
    .story-panel:not(.story-panel--hero) .story-panel__content::before {
        transform: none !important;
        transition: none !important;
        will-change: auto;
    }
}

/* ============================================
   24. LAYERED GLASS PARALLAX – NO HOVER ZOOM
   ============================================ */
.story-panel:not(.story-panel--hero) .story-panel__content {
    --card-pointer-x: 50%;
    --card-pointer-y: 50%;
    --card-shift-x: 0px;
    --card-shift-y: 0px;
    --card-rotate-x: 0deg;
    --card-rotate-y: 0deg;
    --card-shadow-x: 0px;
    --card-shadow-y: 28px;
    background: transparent !important;
    border: 0;
    box-shadow: none;
    isolation: isolate;
    overflow: visible;
    transform: none;
    transform-origin: center;
    transform-style: preserve-3d;
    transition: transform .52s var(--ease-out);
    will-change: auto;
}
.story-panel:not(.story-panel--hero) .story-panel__content.is-pointer-active {
    transform:
        perspective(1150px)
        translate3d(var(--card-shift-x), var(--card-shift-y), 0)
        rotateX(var(--card-rotate-x))
        rotateY(var(--card-rotate-y));
    transition-duration: .2s;
    will-change: transform;
}
/* Disable the former pseudo-element surface. */
.story-panel:not(.story-panel--hero) .story-panel__content::before {
    content: none !important;
}
.story-panel:not(.story-panel--hero) .story-panel__content::after {
    left: 11%;
    right: 11%;
    z-index: 4;
}
.story-panel:not(.story-panel--hero) .story-panel__content > .story-panel__card-surface {
    -webkit-backdrop-filter: blur(11px) saturate(116%);
    backdrop-filter: blur(11px) saturate(116%);
    background:
        radial-gradient(circle at var(--card-pointer-x) var(--card-pointer-y), rgba(224,192,131,.2), transparent 27%),
        linear-gradient(145deg, rgba(255,255,255,.62), rgba(241,237,228,.5));
    border: 1px solid rgba(255,255,255,.76);
    border-radius: inherit;
    box-shadow:
        0 1px 0 rgba(255,255,255,.94) inset,
        var(--card-shadow-x) var(--card-shadow-y) 76px rgba(7,19,14,.18),
        0 8px 24px rgba(7,19,14,.08);
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    position: absolute;
    transform: none;
    transform-origin: center;
    transform-style: flat;
    transition:
        box-shadow .52s var(--ease-out),
        border-color .4s ease;
    will-change: auto;
    z-index: 0;
}
.story-panel__card-surface::before {
    background: linear-gradient(115deg, transparent 20%, rgba(255,255,255,.5) 48%, transparent 72%);
    content: "";
    inset: -35%;
    opacity: 0;
    position: absolute;
    transform: translateX(-55%) rotate(8deg);
    transition: opacity .35s ease, transform 1s var(--ease-out);
}
.story-panel__card-surface::after {
    border: 1px solid rgba(208,170,103,.2);
    border-radius: 50%;
    content: "";
    height: 19rem;
    position: absolute;
    right: -10rem;
    top: -11rem;
    transform: translate3d(calc(var(--card-shift-x) * -.7), calc(var(--card-shift-y) * -.7), 0);
    transition: transform .7s var(--ease-out), border-color .4s ease;
    width: 19rem;
}
.story-panel__card-grid {
    background-image:
        linear-gradient(rgba(16,37,28,.055) 1px, transparent 1px),
        linear-gradient(90deg, rgba(16,37,28,.055) 1px, transparent 1px);
    background-size: 32px 32px;
    inset: 0;
    mask-image: linear-gradient(135deg, transparent 12%, #000 65%, transparent 96%);
    opacity: .38;
    position: absolute;
    transform: translate3d(calc(var(--card-shift-x) * -.45), calc(var(--card-shift-y) * -.45), 0);
    transition: transform .72s var(--ease-out), opacity .4s ease;
}
.story-panel__card-orbit {
    border: 1px solid rgba(138,100,47,.28);
    border-radius: 50%;
    bottom: -7rem;
    height: 14rem;
    left: -6.5rem;
    position: absolute;
    transform: translate3d(calc(var(--card-shift-x) * -.9), calc(var(--card-shift-y) * -.9), 0) rotate(-18deg);
    transition: transform .78s var(--ease-out), border-color .4s ease;
    width: 14rem;
}
.story-panel__card-orbit::before,
.story-panel__card-orbit::after {
    border: 1px solid rgba(138,100,47,.16);
    border-radius: inherit;
    content: "";
    inset: 1.1rem;
    position: absolute;
}
.story-panel__card-orbit::after { inset: 2.3rem; }
.story-panel__card-flare {
    background: var(--brass-500);
    border-radius: 50%;
    box-shadow: 0 0 20px 7px rgba(208,170,103,.24);
    height: 5px;
    left: var(--card-pointer-x);
    opacity: .2;
    position: absolute;
    top: var(--card-pointer-y);
    transform: translate(-50%,-50%);
    transition: left .12s linear, top .12s linear, opacity .3s ease, box-shadow .3s ease;
    width: 5px;
}
.story-panel__content.is-pointer-active > .story-panel__card-surface {
    border-color: rgba(208,170,103,.56);
    box-shadow:
        0 1px 0 rgba(255,255,255,.96) inset,
        var(--card-shadow-x) var(--card-shadow-y) 94px rgba(7,19,14,.23),
        0 12px 30px rgba(7,19,14,.1);
}
.story-panel__content.is-pointer-active > .story-panel__card-surface::before {
    opacity: .7;
    transform: translateX(48%) rotate(8deg);
}
.story-panel__content.is-pointer-active > .story-panel__card-surface::after { border-color: rgba(208,170,103,.42); }
.story-panel__content.is-pointer-active > .story-panel__card-surface .story-panel__card-grid { opacity: .62; }
.story-panel__content.is-pointer-active > .story-panel__card-surface .story-panel__card-orbit { border-color: rgba(138,100,47,.5); }
.story-panel__content.is-pointer-active > .story-panel__card-surface .story-panel__card-flare {
    box-shadow: 0 0 28px 12px rgba(208,170,103,.32);
    opacity: .7;
}
/* Content moves with the card as one coherent 3D object. */
.story-panel:not(.story-panel--hero) .story-panel__content > :not(.story-panel__card-surface) {
    position: relative;
    transform: translateZ(1px);
    transform-style: flat;
    z-index: 3;
}
@media (max-width: 699px) {
    .story-panel:not(.story-panel--hero) .story-panel__content,
    .story-panel:not(.story-panel--hero) .story-panel__content.is-pointer-active {
        transform: none;
        transition: none;
        will-change: auto;
    }
    .story-panel:not(.story-panel--hero) .story-panel__content > :not(.story-panel__card-surface) {
        transform: none;
    }
    .story-panel:not(.story-panel--hero) .story-panel__content > .story-panel__card-surface {
        -webkit-backdrop-filter: blur(9px) saturate(110%);
        backdrop-filter: blur(9px) saturate(110%);
        background:
            radial-gradient(circle at 50% 18%, rgba(224,192,131,.12), transparent 30%),
            linear-gradient(145deg, rgba(255,255,255,.74), rgba(241,237,228,.64));
        transform: none;
        transition: none;
        will-change: auto;
    }
    .story-panel__card-grid { opacity: .24; transform: none; }
    .story-panel__card-orbit { transform: rotate(-18deg); }
    .story-panel__card-flare { display: none; }
}
@media (prefers-contrast: more) {
    .story-panel:not(.story-panel--hero) .story-panel__content > .story-panel__card-surface {
        -webkit-backdrop-filter: none;
        backdrop-filter: none;
        background: rgba(255,255,255,.97);
        border-color: var(--forest-800);
        transform: none;
    }
    .story-panel__card-grid,
    .story-panel__card-orbit,
    .story-panel__card-flare { display: none; }
}
@media (prefers-reduced-motion: reduce) {
    .story-panel:not(.story-panel--hero) .story-panel__content,
    .story-panel:not(.story-panel--hero) .story-panel__content.is-pointer-active,
    .story-panel:not(.story-panel--hero) .story-panel__content > .story-panel__card-surface,
    .story-panel__card-grid,
    .story-panel__card-orbit,
    .story-panel__card-flare {
        transform: none !important;
        transition: none !important;
        will-change: auto;
    }
    .story-panel__card-surface::before { display: none; }
}

/* ===== Bearbeitbare Team-Vorlagen ===== */
.spaeth-team-section {
    background:
        radial-gradient(circle at 100% 0, rgba(208, 170, 103, .18), transparent 28rem),
        linear-gradient(145deg, #f4efe5 0%, #fbfaf6 68%);
    border: 1px solid rgba(16, 37, 28, .11);
    margin-block: clamp(4rem, 9vw, 7.5rem);
    overflow: hidden;
    padding: clamp(2rem, 5vw, 4.5rem);
    position: relative;
}
.spaeth-team-section::before {
    background: var(--brass-500);
    content: "";
    height: 3px;
    left: 0;
    position: absolute;
    top: 0;
    width: clamp(5rem, 15vw, 12rem);
}
.spaeth-team-kicker {
    align-items: center;
    color: #8a642f !important;
    display: flex;
    font-size: .68rem !important;
    font-weight: 700;
    gap: .8rem;
    letter-spacing: .18em;
    margin: 0 0 1rem !important;
    text-transform: uppercase;
}
.spaeth-team-kicker::before {
    background: var(--brass-500);
    content: "";
    height: 1px;
    width: 2.5rem;
}
.entry-content .spaeth-team-title,
.spaeth-team-title {
    font-size: clamp(2.4rem, 5vw, 4.5rem);
    margin: 0 0 1rem;
}
.spaeth-team-intro {
    color: var(--ink-700) !important;
    font-family: var(--display);
    font-size: clamp(1.1rem, 2vw, 1.35rem) !important;
    line-height: 1.5 !important;
    margin: 0;
    max-width: 63ch;
}
.spaeth-team-grid {
    align-items: stretch;
    display: grid;
    gap: clamp(1.25rem, 3vw, 2rem);
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
    margin-top: clamp(2.5rem, 6vw, 4.5rem);
}
.spaeth-team-member {
    align-self: stretch;
    background: rgba(255, 255, 255, .92);
    border: 1px solid rgba(16, 37, 28, .11);
    box-shadow: 0 14px 38px rgba(16, 37, 28, .055);
    display: flex;
    flex-direction: column;
    height: 100%;
    min-width: 0;
    overflow: hidden;
    position: relative;
    transition: box-shadow .4s var(--ease-out), transform .4s var(--ease-out);
}
.spaeth-team-member::after {
    background: var(--brass-500);
    content: "";
    height: 2px;
    left: 0;
    position: absolute;
    top: 0;
    transform: scaleX(.28);
    transform-origin: left;
    transition: transform .45s var(--ease-out);
    width: 100%;
    z-index: 2;
}
.spaeth-team-member > .wp-block-image {
    aspect-ratio: 4 / 3;
    background: var(--sand-200);
    border: 0;
    border-radius: 0;
    margin: 0;
    overflow: hidden;
    width: 100%;
}
.spaeth-team-member > .wp-block-image img {
    display: block;
    height: 100%;
    object-fit: cover;
    transition: transform .7s var(--ease-out);
    width: 100%;
}
.spaeth-team-member__body {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: clamp(1.25rem, 3vw, 1.75rem);
}
.entry-content .spaeth-team-member h3,
.spaeth-team-member h3 {
    color: var(--forest-800);
    font-family: var(--display);
    font-size: clamp(1.35rem, 2vw, 1.6rem);
    font-weight: 600;
    line-height: 1.15;
    margin: 0 0 .35rem;
}
.entry-content .spaeth-team-member p,
.spaeth-team-member p {
    color: var(--ink-700);
    font-size: .93rem;
    line-height: 1.65;
    margin: 0;
}
.entry-content .spaeth-team-member .spaeth-team-funktion,
.spaeth-team-member .spaeth-team-funktion {
    color: #966d30;
    font-family: var(--sans);
    font-size: .66rem;
    font-weight: 800;
    letter-spacing: .13em;
    margin: 0 0 1rem;
    text-transform: uppercase;
}
@media (hover: hover) and (pointer: fine) {
    .spaeth-team-member:hover {
        box-shadow: 0 24px 55px rgba(16, 37, 28, .12);
        transform: translateY(-6px);
    }
    .spaeth-team-member:hover::after { transform: scaleX(1); }
    .spaeth-team-member:hover > .wp-block-image img { transform: scale(1.035); }
}
@media (max-width: 599px) {
    .spaeth-team-section { padding: 1.5rem; }
    .spaeth-team-grid { grid-template-columns: 1fr; }
}

/* Zweites Logo für helle Header-Zustände (Customizer: Website-Informationen → „Logo für den hellen Header").
   Nur aktiv, wenn über .has-scrolled-logo ein zweites Logo hinterlegt ist.
   Helle Zustände: gescrollte Startseite + alle Unterseiten.
   Dunkle Zustände (Startseite oben, Menü offen): immer das Hauptlogo. */
.has-scrolled-logo .custom-logo--scrolled {
    display: none;
    filter: none;
}
.has-scrolled-logo.site-header.is-scrolled .custom-logo,
body:not(.spaeth-front-page) .has-scrolled-logo .custom-logo {
    display: none;
}
.has-scrolled-logo.site-header.is-scrolled .custom-logo--scrolled,
body:not(.spaeth-front-page) .has-scrolled-logo .custom-logo--scrolled {
    display: block;
}
.has-scrolled-logo.site-header.is-menu-open .custom-logo {
    display: block;
}
.has-scrolled-logo.site-header.is-menu-open .custom-logo--scrolled {
    display: none;
}
