/* ═══════════════════════════════════════════════════════════════
   Location Engine — Landing
   Editorial real-estate brochure: navy ink, warm gold, paper.
   Sibling to the PDF report (same palette, same serif rhythm).
═══════════════════════════════════════════════════════════════ */

:root {
    /* — palette — */
    --ink-deep:   #0a0c0e;          /* footer, deepest surface */
    --ink:        #0e1013;          /* hero ground, dark sections */
    --ink-soft:   #141619;          /* base ink, buttons, text on paper */
    --ink-raise:  #12151a;          /* feature cells at rest */
    --ink-raise-hover: #171b21;     /* feature cells on hover */
    --ink-high:   #1e2126;          /* lifted cards */
    --paper:      #f4f1ea;          /* light sections */
    --paper-deep: #ece8de;          /* warmer paper for cards */
    --bronze:      #b08d57;
    --bronze-light:#c8a879;
    --bronze-deep: #8a6d3f;         /* bronze text on paper */
    --gold:      var(--bronze);       /* legacy aliases so untouched rules keep working */
    --gold-soft: var(--bronze-light);
    --rule-gold:  rgba(176, 141, 87, 0.30);
    --rule-ink:   rgba(20, 22, 25, 0.12);
    --text:       #1c1c1c;
    --text-soft:  #4a4a4a;
    --text-muted: #7a7a7a;
    --text-onink: #f1ede6;
    --text-onink-soft: #b6bac0;
    --text-onink-mute: #8c9199;

    /* — typography — */
    --serif: 'Fraunces', 'Iowan Old Style', 'Georgia', 'Times New Roman', serif;
    --sans:  'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;

    /* — geometry — */
    --shell-max: 1240px;
    --shell-pad: clamp(1.25rem, 4vw, 3rem);
    --gutter: clamp(1.5rem, 3vw, 2.5rem);

    /* — motion — */
    --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
    --ease-soft: cubic-bezier(0.22, 0.61, 0.36, 1);
    --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
    --ease-emphasized: cubic-bezier(0.2, 0, 0, 1);
    --dur-quick:    220ms;
    --dur-base:     520ms;
    --dur-slow:     900ms;
    --dur-cinematic: 1400ms;
}

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

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

body {
    font-family: var(--sans);
    background: var(--paper);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
    /* Subtle warm grain — adds paper texture without imagery. */
    background-image:
        radial-gradient(1200px 600px at 80% -10%, rgba(176, 141, 87, 0.06), transparent 60%),
        radial-gradient(900px 500px at -10% 20%, rgba(20, 22, 25, 0.04), transparent 60%);
}

img, svg { max-width: 100%; display: block; }
button, input, textarea, select { font: inherit; color: inherit; }
a { color: inherit; text-decoration: none; }

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

/* ─────────────── Shell ─────────────── */
.shell {
    width: 100%;
    max-width: var(--shell-max);
    margin: 0 auto;
    padding-left: var(--shell-pad);
    padding-right: var(--shell-pad);
}

/* ═══════════════════════════════════════════════════════════════
   HEADER
═══════════════════════════════════════════════════════════════ */
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(20, 22, 25, 0.92);
    backdrop-filter: saturate(140%) blur(10px);
    -webkit-backdrop-filter: saturate(140%) blur(10px);
    border-bottom: 1px solid rgba(176, 141, 87, 0.18);
}

.shell--nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
    gap: 1.5rem;
}

.wordmark {
    font-family: var(--serif);
    font-weight: 600;
    font-size: 1.35rem;
    letter-spacing: -0.01em;
    color: var(--paper);
    line-height: 1;
    display: inline-flex;
    align-items: baseline;
    gap: 0.05em;
}

.wordmark__mark { color: inherit; }
.wordmark__accent {
    color: var(--gold);
    font-style: italic;
    font-weight: 500;
    margin-left: 0.18em;
}

.primary-nav {
    display: flex;
    align-items: center;
    gap: clamp(0.75rem, 2vw, 1.75rem);
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-onink-mute);
    letter-spacing: 0.01em;
}

.primary-nav a { transition: color 200ms var(--ease); }
.primary-nav a:hover,
.primary-nav a:focus-visible { color: var(--paper); }
.primary-nav a:focus-visible { outline: 1px solid var(--gold); outline-offset: 4px; }

.nav-cta {
    color: var(--gold) !important;
    font-weight: 600;
    padding: 0.45rem 0.9rem;
    border: 1px solid rgba(176, 141, 87, 0.5);
    border-radius: 999px;
    transition: background 200ms var(--ease), color 200ms var(--ease), border-color 200ms var(--ease);
}
.nav-cta:hover,
.nav-cta:focus-visible {
    background: linear-gradient(135deg, var(--bronze-light), var(--bronze));
    color: var(--ink) !important;
    border-color: var(--gold);
}

@media (max-width: 720px) {
    .primary-nav a:not(.nav-cta) { display: none; }
}

/* ═══════════════════════════════════════════════════════════════
   TYPOGRAPHIC PRIMITIVES
═══════════════════════════════════════════════════════════════ */

.eyebrow {
    font-family: var(--sans);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--gold);
    display: inline-flex;
    align-items: center;
    gap: 0.85rem;
    margin-bottom: 1.75rem;
}

.eyebrow__rule {
    display: inline-block;
    width: 38px;
    height: 1px;
    background: var(--gold);
    opacity: 0.7;
}

.display {
    font-family: var(--serif);
    font-weight: 400;
    font-variation-settings: "opsz" 144;
    font-size: clamp(2.4rem, 6vw, 4.6rem);
    line-height: 1.02;
    letter-spacing: -0.022em;
    color: var(--paper);
}

.display em {
    font-style: italic;
    font-weight: 400;
    color: var(--gold);
    font-variation-settings: "opsz" 144;
}

/* ═══════════════════════════════════════════════════════════════
   BUTTONS
═══════════════════════════════════════════════════════════════ */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.95rem 1.6rem;
    font-family: var(--sans);
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    border: 1px solid transparent;
    border-radius: 2px;     /* sharp, not pill — matches editorial feel */
    cursor: pointer;
    transition: transform 200ms var(--ease), background 200ms var(--ease), color 200ms var(--ease), box-shadow 250ms var(--ease);
}

.btn__arrow {
    display: inline-block;
    transition: transform 250ms var(--ease);
}
.btn:hover .btn__arrow { transform: translateX(4px); }

.btn--gold {
    background: linear-gradient(135deg, var(--bronze-light), var(--bronze));
    color: var(--ink-soft);
    box-shadow: 0 1px 0 rgba(0,0,0,0.05), 0 12px 30px -12px rgba(176, 141, 87, 0.55);
}
.btn--gold:hover {
    background: linear-gradient(135deg, #d2b487, var(--bronze));
    transform: translateY(-1px);
    box-shadow: 0 1px 0 rgba(0,0,0,0.05), 0 18px 40px -14px rgba(176, 141, 87, 0.7);
}

.btn--ghost {
    background: transparent;
    color: var(--paper);
    border-color: rgba(241, 237, 230, 0.3);
}
.btn--ghost:hover {
    border-color: var(--paper);
    background: rgba(255,255,255,0.04);
}

.btn--ink {
    background: var(--ink);
    color: var(--paper);
}
.btn--ink:hover {
    background: var(--ink-soft);
    transform: translateY(-1px);
}

.btn--full { width: 100%; justify-content: center; }

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

/* ═══════════════════════════════════════════════════════════════
   HERO — duotone city photo, centered copy, page cascade
═══════════════════════════════════════════════════════════════ */
.hero {
    position: relative;
    background: var(--ink);
    color: var(--text-onink);
    padding: clamp(4.5rem, 9vw, 7rem) 0 0;
    overflow: hidden;
    isolation: isolate;
    text-align: center;
}
.hero__photo img {
    position: absolute; inset: -6% 0 0 0;
    width: 100%; height: 106%;
    object-fit: cover;
    filter: grayscale(1) contrast(1.08) brightness(0.5);
    z-index: 0;
}
@media (prefers-reduced-motion: no-preference) {
    .hero__photo img { animation: hero-drift 26s ease-in-out infinite alternate; }
}
@keyframes hero-drift {
    from { transform: scale(1) translateY(0); }
    to   { transform: scale(1.06) translateY(-1.2%); }
}
.hero__scrim {
    position: absolute; inset: 0; z-index: 1;
    background:
        linear-gradient(to bottom, rgba(14,16,19,0.52) 0%, rgba(14,16,19,0.80) 44%, rgba(14,16,19,0.97) 76%, var(--ink) 100%),
        radial-gradient(90% 60% at 50% 0%, rgba(176,141,87,0.16), transparent 70%);
}
.hero__shell {
    position: relative; z-index: 2;
    display: flex; flex-direction: column; align-items: center;
}
.eyebrow--centered { justify-content: center; }
.hero .display { max-width: 60rem; }
.hero__lede { max-width: 36rem; margin-top: 1.5rem; font-size: clamp(1rem, 1.3vw, 1.125rem); line-height: 1.7; color: var(--text-onink-soft); }
.hero__actions { margin-top: 2rem; display: flex; flex-wrap: nowrap; gap: 0.75rem 1rem; justify-content: center; }
.hero__meta {
    margin-top: 2.25rem;
    display: flex; flex-wrap: wrap; justify-content: center;
    gap: 0.75rem clamp(1.25rem, 3vw, 2.5rem);
    /* reserved clearance: the cascade below may NEVER cover this row */
    padding-bottom: 1rem;
}
.hero__meta div { display: flex; gap: 0.5rem; align-items: baseline; }
.hero__meta dt { font-size: 0.62rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--bronze-light); font-weight: 600; }
.hero__meta dd { font-family: var(--serif); font-size: 0.95rem; color: var(--text-onink); }

/* ── page cascade ── */
.hero-stage {
    position: relative; z-index: 2;
    margin-top: clamp(2rem, 4vw, 3rem);   /* the guaranteed gap under the meta row */
    margin-bottom: -110px;                 /* pages overlap into the process section */
    display: flex; justify-content: center; gap: clamp(1rem, 2.5vw, 1.75rem);
    perspective: 1200px;
    pointer-events: none;
}
.hero-page {
    border-radius: 3px; overflow: hidden; background: var(--ink-high);
    box-shadow: 0 34px 90px -22px rgba(0, 0, 0, 0.8);
    position: relative;
    opacity: 0; transform: translateY(40px);   /* pair guaranteed below via .is-revealed set by JS in a rAF after load */
}
.hero-page img { width: 100%; height: 100%; object-fit: cover; object-position: top; display: block; }
.hero-page::after {
    content: ""; position: absolute; inset: 0;
    background: linear-gradient(115deg, transparent 20%, rgba(255,246,225,0.16) 38%, transparent 55%);
    transform: translateX(-140%);
}
.hero-page--l { width: clamp(150px, 17vw, 264px); aspect-ratio: 0.709; border: 1px solid rgba(176,141,87,0.25); }
.hero-page--m { width: clamp(165px, 18.5vw, 286px); aspect-ratio: 0.709; border: 1px solid rgba(176,141,87,0.5); z-index: 2; }
.hero-page--r { width: clamp(150px, 17vw, 264px); aspect-ratio: 0.709; border: 1px solid rgba(176,141,87,0.25); }

.hero-stage.is-revealed .hero-page { opacity: 1; transition: opacity 380ms var(--ease), transform 400ms var(--ease-emphasized); }
.hero-stage.is-revealed .hero-page--l { transform: rotateX(14deg) rotateZ(-2.6deg) translateY(12px); transition-delay: 60ms; }
.hero-stage.is-revealed .hero-page--m { transform: rotateX(12deg) translateY(-8px); }
.hero-stage.is-revealed .hero-page--r { transform: rotateX(14deg) rotateZ(2.6deg) translateY(12px); transition-delay: 120ms; }

@media (prefers-reduced-motion: no-preference) {
    .hero-stage.is-revealed .hero-page--l { animation: float-l 7s   ease-in-out 500ms infinite; }
    .hero-stage.is-revealed .hero-page--m { animation: float-m 6s   ease-in-out 500ms infinite; }
    .hero-stage.is-revealed .hero-page--r { animation: float-r 7.5s ease-in-out 500ms infinite; }
    .hero-stage.is-revealed .hero-page::after { animation: page-sweep 5.5s ease-in-out 1200ms infinite; }
}
/* float amplitudes stay ≤ 10px so pages can never reach the meta row (clearance ≥ 32px) */
@keyframes float-l { 0%,100% { transform: rotateX(14deg) rotateZ(-2.6deg) translateY(12px); } 50% { transform: rotateX(13deg) rotateZ(-3deg) translateY(3px); } }
@keyframes float-m { 0%,100% { transform: rotateX(12deg) translateY(-8px); } 50% { transform: rotateX(10deg) translateY(-17px); } }
@keyframes float-r { 0%,100% { transform: rotateX(14deg) rotateZ(2.6deg) translateY(12px); } 50% { transform: rotateX(13deg) rotateZ(3deg) translateY(4px); } }
@keyframes page-sweep { 0%, 55% { transform: translateX(-140%); } 80%, 100% { transform: translateX(140%); } }

@media (max-width: 720px) {
    /* mini fan: keep all three pages — the lone cover is mostly dark ink and
       reads as an empty frame; the map/chart pages flank it and tuck behind */
    .hero-stage { margin-bottom: -56px; gap: 0; align-items: center; }
    .hero-page--l, .hero-page--r { width: 30vw; }
    .hero-page--m { width: 42vw; margin: 0 -5vw; }
    .hero__photo img { filter: grayscale(1) contrast(1.1) brightness(0.38); }
    /* CTAs stack full-width instead of squeezing edge-to-edge in one row */
    .hero__actions { flex-direction: column; align-items: stretch; width: min(100%, 20rem); }
    .hero__actions .btn { justify-content: center; padding: 0.9rem 1.1rem; font-size: 0.9rem; }
    /* eyebrow: drop the flanking rules so the label sits on one line */
    .hero .eyebrow__rule { display: none; }
    .hero .eyebrow { letter-spacing: 0.18em; }
}
@media (prefers-reduced-motion: reduce) {
    .hero-page { opacity: 1; transform: none; }
    .hero-stage.is-revealed .hero-page--l,
    .hero-stage.is-revealed .hero-page--m,
    .hero-stage.is-revealed .hero-page--r { animation: none; }
    .hero__photo img { animation: none; }
}

/* ── copy reveal (retargeted from the removed copy wrapper to .hero) ── */
.hero .eyebrow,
.hero .display,
.hero__lede,
.hero__actions,
.hero__meta { opacity: 0; transform: translateY(14px); }
.hero.is-revealed .eyebrow,
.hero.is-revealed .display,
.hero.is-revealed .hero__lede,
.hero.is-revealed .hero__actions,
.hero.is-revealed .hero__meta {
    opacity: 1; transform: translateY(0);
    transition: opacity 380ms var(--ease), transform 380ms var(--ease);
}
.hero.is-revealed .eyebrow       { transition-delay:  40ms; }
.hero.is-revealed .display       { transition-delay: 100ms; }
.hero.is-revealed .hero__lede    { transition-delay: 200ms; }
.hero.is-revealed .hero__actions { transition-delay: 280ms; }
.hero.is-revealed .hero__meta    { transition-delay: 340ms; }

/* Display headline: each line is a clip-path mask wipe (mechanic kept, retargeted) */
.hero .display { overflow: hidden; }
.display .line {
    display: block;
    clip-path: inset(0 100% 0 0);
    transition: clip-path 360ms var(--ease-emphasized);
    will-change: clip-path;
}
.hero.is-revealed .display .line { clip-path: inset(0 0 0 0); }
.hero.is-revealed .display .line:nth-child(1) { transition-delay: 100ms; }
.hero.is-revealed .display .line:nth-child(2) { transition-delay: 145ms; }
.hero.is-revealed .display .line:nth-child(3) { transition-delay: 190ms; }

/* Gold ink-shimmer sweep on the italic em (runs once) */
.display em {
    background: linear-gradient(90deg, var(--bronze) 0%, var(--bronze) 35%, #e8d5ae 50%, var(--bronze) 65%, var(--bronze) 100%);
    background-size: 220% 100%;
    background-position: 100% 0;
    -webkit-background-clip: text; background-clip: text;
    color: transparent;
}
.hero.is-revealed .display em {
    animation: ink-shimmer 1300ms var(--ease) 700ms 1 forwards;
}
@keyframes ink-shimmer {
    from { background-position: 100% 0; }
    to   { background-position: 0% 0; }
}

@media (prefers-reduced-motion: reduce) {
    .hero .eyebrow,
    .hero .display,
    .hero__lede,
    .hero__actions,
    .hero__meta { opacity: 1; transform: none; }
    .display .line { clip-path: none; }
    .display em {
        animation: none; background: none;
        -webkit-background-clip: unset; background-clip: unset;
        color: var(--bronze);
    }
}

/* ═══════════════════════════════════════════════════════════════
   SECTION HEAD (shared)
═══════════════════════════════════════════════════════════════ */
.section-head {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr);
    gap: clamp(1.5rem, 5vw, 4rem);
    align-items: end;
    padding-bottom: 2.5rem;
    border-bottom: 1px solid var(--rule-ink);
    margin-bottom: clamp(2.5rem, 6vw, 4.5rem);
}
.section-head--dark { border-bottom-color: var(--rule-gold); }

@media (max-width: 720px) {
    .section-head {
        grid-template-columns: 1fr;
        gap: 1rem;
        align-items: start;
    }
}

.section-head__no {
    font-family: var(--serif);
    font-style: italic;
    font-weight: 400;
    font-size: clamp(2rem, 4.5vw, 3.2rem);
    color: var(--gold);
    line-height: 1;
    align-self: end;
}

.section-head__title {
    font-family: var(--serif);
    font-weight: 400;
    font-variation-settings: "opsz" 96;
    font-size: clamp(2rem, 5vw, 3.4rem);
    line-height: 1.05;
    letter-spacing: -0.02em;
    color: var(--ink);
    grid-column: 1 / -1;
}
.section-head--dark .section-head__title { color: var(--paper); }

.section-head__lede {
    grid-column: 1 / -1;
    font-size: 1.025rem;
    line-height: 1.65;
    max-width: 44rem;
    color: var(--text-soft);
    margin-top: 0.5rem;
}
.section-head--dark .section-head__lede { color: var(--text-onink); }

/* ═══════════════════════════════════════════════════════════════
   PROCESS
═══════════════════════════════════════════════════════════════ */
.process {
    background: var(--paper);
    padding: clamp(5rem, 10vw, 8rem) 0;
    padding-top: clamp(9rem, 14vw, 12rem);
    position: relative;
}

.steps {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0;
    counter-reset: step;
}

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

.step {
    padding: 2rem clamp(1.25rem, 3vw, 2.25rem) 2.5rem;
    border-left: 1px solid var(--rule-ink);
    position: relative;
    transition: background 250ms var(--ease);
}
.step:first-child { border-left: 1px solid var(--gold); }
.step:hover { background: rgba(176, 141, 87, 0.05); }

@media (max-width: 880px) {
    .step { border-left: none; border-top: 1px solid var(--rule-ink); padding-block: 2rem; }
    .step:first-child { border-left: none; border-top: 1px solid var(--gold); }
}

.step__no {
    font-family: var(--serif);
    font-style: italic;
    font-weight: 400;
    font-size: 2.6rem;
    color: var(--gold);
    line-height: 1;
    display: block;
    margin-bottom: 1.5rem;
}

.step__title {
    font-family: var(--serif);
    font-weight: 500;
    font-size: 1.45rem;
    line-height: 1.2;
    color: var(--ink);
    margin-bottom: 0.85rem;
    letter-spacing: -0.01em;
}

.step__body {
    color: var(--text-soft);
    font-size: 0.975rem;
    line-height: 1.65;
    max-width: 28rem;
}

/* ═══════════════════════════════════════════════════════════════
   FEATURES
═══════════════════════════════════════════════════════════════ */
.features {
    background: var(--ink);
    color: var(--text-onink);
    padding: clamp(5rem, 10vw, 8rem) 0;
    position: relative;
    overflow: hidden;
}
.features::before {
    /* very subtle grid texture for depth */
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(to right, rgba(241, 237, 230, 0.025) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(241, 237, 230, 0.025) 1px, transparent 1px);
    background-size: 80px 80px;
    pointer-events: none;
    -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 80%);
            mask-image: radial-gradient(ellipse at center, black 30%, transparent 80%);
}

.feature-grid {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1px;
    background: rgba(176, 141, 87, 0.16);
    border: 1px solid rgba(176, 141, 87, 0.16);
    margin-top: 3rem;
}
@media (max-width: 1024px) { .feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px)  { .feature-grid { grid-template-columns: 1fr; } }

.feature {
    background: var(--ink-raise);
    padding: 1.75rem 1.5rem;
    min-height: 12rem;
    opacity: 0; transform: translateY(14px);
    transition: background 300ms var(--ease);
}
.feature.is-revealed { opacity: 1; transform: none; transition: opacity 300ms var(--ease), transform 340ms var(--ease), background 300ms var(--ease); }
.feature:hover { background: var(--ink-raise-hover); }

.feature__chapter {
    font-size: 0.62rem; letter-spacing: 0.22em; text-transform: uppercase;
    color: var(--bronze); font-weight: 700;
}
.feature__title {
    font-family: var(--serif); font-weight: 600; font-size: 1.15rem;
    color: var(--text-onink); margin: 0.7rem 0 0.5rem;
    display: block; width: fit-content; position: relative;
}
.feature__title::after {
    content: ""; position: absolute; left: 0; bottom: -4px;
    width: 100%; height: 1px; background: var(--bronze);
    transform: scaleX(0); transform-origin: left;
    transition: transform 300ms var(--ease);
}
.feature:hover .feature__title::after { transform: scaleX(1); }
.feature__body { font-size: 0.875rem; line-height: 1.55; color: var(--text-onink-mute); }

.feature--accent {
    background: linear-gradient(135deg, rgba(176,141,87,0.22), rgba(176,141,87,0.06) 60%), var(--ink-raise);
}
@media (prefers-reduced-motion: no-preference) {
    .feature--accent { animation: bonus-glow 4s ease-in-out infinite alternate; }
}
@keyframes bonus-glow {
    from { box-shadow: inset 0 0 0 0 rgba(176,141,87,0); }
    to   { box-shadow: inset 0 0 40px -18px rgba(176,141,87,0.45); }
}
.feature__chapter--bonus {
    background: linear-gradient(135deg, var(--bronze-light), var(--bronze));
    color: var(--ink-soft); padding: 0.2rem 0.55rem; border-radius: 2px;
}
@media (prefers-reduced-motion: reduce) { .feature { opacity: 1; transform: none; } }

/* ═══════════════════════════════════════════════════════════════
   SAMPLE
═══════════════════════════════════════════════════════════════ */
.sample {
    background: var(--paper);
    padding: clamp(5rem, 10vw, 8rem) 0;
    overflow: hidden;
}

.sample-fan { position: relative; height: 30rem; margin-top: 2.5rem; }
.fan-card {
    position: absolute; top: 50%; left: 50%;
    width: 15rem; aspect-ratio: 0.709;
    border-radius: 2px; overflow: hidden; background: #fff;
    border: 1px solid rgba(20, 22, 25, 0.12);
    box-shadow: 0 22px 55px -14px rgba(20, 22, 25, 0.5);
    opacity: 0;
    transform: translate(-50%, -38%);
    transition: transform 450ms var(--ease-emphasized), opacity 300ms var(--ease), box-shadow 300ms var(--ease);
}
.fan-card img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.sample-fan.is-revealed .fan-card { opacity: 1; }
.sample-fan.is-revealed .fan-card--1 { transform: translate(-50%,-50%) translateX(-18.5rem) rotate(-8.5deg) translateY(1.1rem); transition-delay: 40ms; }
.sample-fan.is-revealed .fan-card--2 { transform: translate(-50%,-50%) translateX(-9.4rem) rotate(-4deg) translateY(0.3rem); z-index: 2; transition-delay: 80ms; }
.sample-fan.is-revealed .fan-card--3 { transform: translate(-50%,-50%) scale(1.04); z-index: 3; border-color: rgba(176,141,87,0.55); box-shadow: 0 30px 70px -16px rgba(20,22,25,0.55); transition-delay: 0ms; }
.sample-fan.is-revealed .fan-card--4 { transform: translate(-50%,-50%) translateX(9.4rem) rotate(4deg) translateY(0.3rem); z-index: 2; transition-delay: 80ms; }
.sample-fan.is-revealed .fan-card--5 { transform: translate(-50%,-50%) translateX(18.5rem) rotate(8.5deg) translateY(1.1rem); transition-delay: 40ms; }
/* hover: neighbours spread further — only where the absolute fan layout exists
   (>900px) AND the device really hovers; on touch, tap-induced :hover would
   apply these absolute-position transforms to the static strip cards and
   fling them off-screen */
@media (hover: hover) and (min-width: 901px) {
    .sample-fan.is-revealed:hover .fan-card--1 { transform: translate(-50%,-50%) translateX(-20.1rem) rotate(-9.5deg) translateY(1.4rem); }
    .sample-fan.is-revealed:hover .fan-card--2 { transform: translate(-50%,-50%) translateX(-10.25rem) rotate(-4.5deg) translateY(0.45rem); }
    .sample-fan.is-revealed:hover .fan-card--4 { transform: translate(-50%,-50%) translateX(10.25rem) rotate(4.5deg) translateY(0.45rem); }
    .sample-fan.is-revealed:hover .fan-card--5 { transform: translate(-50%,-50%) translateX(20.1rem) rotate(9.5deg) translateY(1.4rem); }
}
.fan-card:focus-visible { outline: 2px solid var(--bronze); outline-offset: 3px; }

@media (max-width: 900px) {
    /* phones/tablets: horizontal scroll-snap strip instead of the fan */
    .sample-fan { height: auto; display: flex; gap: 1rem; overflow-x: auto; scroll-snap-type: x mandatory; padding: 0.5rem 0.25rem 1.25rem; -webkit-overflow-scrolling: touch; }
    .fan-card, .sample-fan.is-revealed .fan-card--1, .sample-fan.is-revealed .fan-card--2,
    .sample-fan.is-revealed .fan-card--3, .sample-fan.is-revealed .fan-card--4, .sample-fan.is-revealed .fan-card--5 {
        position: static; transform: none; opacity: 1; flex: 0 0 70vw; max-width: 16rem; scroll-snap-align: center;
    }
}
@media (prefers-reduced-motion: reduce) {
    .fan-card { opacity: 1; transition: none; }
}

.sample-note {
    margin: clamp(3rem, 6vw, 5rem) auto 0;
    max-width: 56rem;
    padding: 1.25rem 1.5rem;
    text-align: center;
    font-family: var(--serif);
    font-size: 0.95rem;
    line-height: 1.65;
    color: var(--text-soft);
    border-top: 0.5px solid var(--rule-ink);
    border-bottom: 0.5px solid var(--rule-ink);
}

.sample-note em {
    font-style: italic;
    color: var(--ink);
    white-space: nowrap;
}

.sample-note__pill {
    display: inline-block;
    margin-right: 0.6rem;
    padding: 0.2rem 0.65rem;
    font-family: var(--sans);
    font-style: normal;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--ink-soft);
    background: linear-gradient(135deg, var(--bronze-light), var(--bronze));
    vertical-align: 1px;
}

.sample-cta {
    margin-top: clamp(2rem, 4vw, 3rem);
    text-align: center;
}

/* ═══════════════════════════════════════════════════════════════
   CONTACT
═══════════════════════════════════════════════════════════════ */
.contact {
    background: var(--ink);
    color: var(--text-onink);
    padding: clamp(5rem, 10vw, 8rem) 0;
    position: relative;
    overflow: hidden;
}
.contact::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--gold) 30%, var(--gold) 70%, transparent);
    opacity: 0.4;
}

.contact__shell {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: clamp(2.5rem, 6vw, 5rem);
    align-items: start;
}
@media (max-width: 880px) {
    .contact__shell { grid-template-columns: 1fr; }
}

.contact__intro .section-head__no {
    display: block;
    margin-bottom: 0.5rem;
}

.contact__intro .section-head__title {
    color: var(--paper);
    margin-bottom: 1rem;
    font-size: clamp(2rem, 4.5vw, 3rem);
}

.contact__intro .section-head__lede { color: var(--text-onink); margin-top: 0; }

.contact__direct {
    margin-top: 2.5rem;
    display: grid;
    gap: 1.5rem;
}
.contact__direct dt {
    font-size: 0.7rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--gold);
    font-weight: 600;
    margin-bottom: 0.35rem;
}
.contact__direct dd {
    font-family: var(--serif);
    font-size: 1.1rem;
    color: var(--paper);
}
.contact__direct a {
    border-bottom: 1px solid rgba(176, 141, 87, 0.4);
    transition: border-color 200ms var(--ease), color 200ms var(--ease);
}
.contact__direct a:hover { color: var(--gold); border-color: var(--gold); }

/* Contact CTA — editorial reply card (layout only; surface + reveal + mark + lede
   colour/type are defined once, canonically, in the "Contact card reveal" block below) */
.contact-card {
    display: flex;
    flex-direction: column;
    gap: 2.25rem;
}
.contact-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 3px;
    height: 100%;
    background: var(--gold);
    opacity: 0.85;
    z-index: 1;
}

.contact-card__lede {
    margin: 0;
}

.contact-card__cta {
    position: relative;
    z-index: 2;
}

/* ═══════════════════════════════════════════════════════════════
   FOOTER
═══════════════════════════════════════════════════════════════ */
.site-footer {
    background: var(--ink-deep);
    padding: 2.5rem 0;
    border-top: 1px solid rgba(176, 141, 87, 0.18);
}
.shell--footer {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    gap: 1.5rem 2.5rem;
    align-items: center;
}
@media (max-width: 720px) {
    .shell--footer {
        grid-template-columns: 1fr;
        text-align: left;
        gap: 1rem;
    }
}

.footer__brand .wordmark {
    color: var(--text-onink);
    font-size: 1.15rem;
}
.footer__brand .wordmark__mark { color: var(--text-onink); }

.footer__tag {
    margin-top: 0.35rem;
    font-size: 0.825rem;
    color: var(--text-onink-mute);
    font-family: var(--serif);
    font-style: italic;
}

.footer__nav {
    display: flex;
    gap: 1.5rem;
    font-size: 0.85rem;
    color: var(--text-onink-soft);
}
.footer__nav a {
    border-bottom: 1px solid transparent;
    padding-bottom: 1px;
    transition: color 200ms var(--ease), border-color 200ms var(--ease);
}
.footer__nav a:hover { color: var(--text-onink); border-bottom-color: var(--gold); }

.footer__copy {
    font-size: 0.78rem;
    color: var(--text-onink-mute);
    letter-spacing: 0.05em;
}

/* ═══════════════════════════════════════════════════════════════
   LEGAL PAGES (Datenschutz, Impressum)
═══════════════════════════════════════════════════════════════ */
.legal {
    padding: clamp(4rem, 8vw, 7rem) 0 clamp(4rem, 8vw, 7rem);
    background: var(--paper);
}

.legal__shell {
    max-width: 760px;
}

.legal .section-head {
    grid-template-columns: 1fr;
    margin-bottom: clamp(2rem, 5vw, 3.5rem);
    padding-bottom: 2rem;
}

.legal__back {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.78rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 1.75rem;
    transition: color 200ms var(--ease);
}
.legal__back:hover { color: var(--gold); }
.legal__back .arrow { transition: transform 200ms var(--ease); }
.legal__back:hover .arrow { transform: translateX(-4px); }

.legal__body {
    font-family: var(--sans);
    font-size: 0.975rem;
    line-height: 1.75;
    color: var(--text);
}

.legal__body h2 {
    font-family: var(--serif);
    font-weight: 500;
    font-size: clamp(1.4rem, 2.4vw, 1.75rem);
    color: var(--ink);
    margin-top: 2.75rem;
    margin-bottom: 0.85rem;
    letter-spacing: -0.01em;
    line-height: 1.25;
}
.legal__body h2:first-child { margin-top: 0; }

.legal__body h3 {
    font-family: var(--sans);
    font-weight: 600;
    font-size: 0.78rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--gold);
    margin-top: 1.75rem;
    margin-bottom: 0.5rem;
}

.legal__body p,
.legal__body ul,
.legal__body ol { margin-bottom: 1rem; color: var(--text-soft); }

.legal__body ul,
.legal__body ol { padding-left: 1.25rem; }

.legal__body li { margin-bottom: 0.35rem; }

.legal__body a {
    color: var(--ink);
    border-bottom: 1px solid var(--gold);
    transition: color 200ms var(--ease), background 200ms var(--ease);
}
.legal__body a:hover { background: rgba(176, 141, 87, 0.15); }

.legal__body strong { color: var(--ink); font-weight: 600; }

.legal__address {
    font-family: var(--serif);
    font-style: normal;
    font-size: 1.05rem;
    color: var(--ink);
    line-height: 1.6;
    padding: 1.25rem 1.5rem;
    border-left: 3px solid var(--gold);
    background: var(--paper-deep);
    margin-bottom: 1.5rem;
}

.legal__meta {
    margin-top: 3rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--rule-ink);
    font-size: 0.8rem;
    color: var(--text-muted);
    font-style: italic;
}

/* ═══════════════════════════════════════════════════════════════
   GLOBAL MOTION ELEMENTS
═══════════════════════════════════════════════════════════════ */

/* Scroll progress sliver under the sticky nav */
.scroll-progress {
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--gold), var(--gold-soft));
    transform: scaleX(0);
    transform-origin: left center;
    z-index: 49;
    pointer-events: none;
    will-change: transform;
}
.site-header.is-compact ~ .scroll-progress { top: 52px; }

/* Cursor-following gold glow (desktop only) */
.cursor-glow {
    position: fixed;
    top: 0;
    left: 0;
    width: 220px;
    height: 220px;
    margin: -110px 0 0 -110px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(176,141,87,0.08), transparent 70%);
    pointer-events: none;
    mix-blend-mode: screen;
    z-index: 100;
    opacity: 0;
    transform: translate3d(-9999px,-9999px,0);
    transition: opacity 240ms var(--ease);
    will-change: transform;
}
@media (max-width: 1024px) { .cursor-glow { display: none; } }
@media (hover: none)       { .cursor-glow { display: none; } }
@media (prefers-reduced-motion: reduce) { .cursor-glow { display: none; } }

/* ═══════════════════════════════════════════════════════════════
   STICKY CONTACT BUTTON
   Floating gold pill. Starts hidden (markup carries .is-hidden);
   JS reveals it once the hero — which has its own CTAs — scrolls
   out, and hides it again while #kontakt is on screen, so two
   contact CTAs never share the screen. Reveal/hide runs on the
   transition below — no keyframe animation here: a filled
   animation would out-cascade .is-hidden and pin the pill visible.
═══════════════════════════════════════════════════════════════ */
.sticky-contact {
    position: fixed;
    right: clamp(1rem, 3vw, 2rem);
    bottom: calc(clamp(1rem, 3vw, 2rem) + env(safe-area-inset-bottom, 0px));
    z-index: 48;
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.8rem 1.25rem;
    background: linear-gradient(135deg, var(--bronze-light), var(--bronze));
    color: var(--ink);
    font-family: var(--sans);
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    border-radius: 999px;
    box-shadow: 0 1px 0 rgba(0,0,0,0.05), 0 16px 36px -12px rgba(176, 141, 87, 0.6);
    transition:
        transform 280ms var(--ease),
        opacity 280ms var(--ease),
        background 200ms var(--ease),
        box-shadow 250ms var(--ease);
    will-change: transform, opacity;
}
.sticky-contact:hover {
    background: #c8a879;
    transform: translateY(-2px);
    box-shadow: 0 1px 0 rgba(0,0,0,0.05), 0 22px 46px -14px rgba(176, 141, 87, 0.75);
}
.sticky-contact:focus-visible {
    outline: 2px solid var(--ink);
    outline-offset: 3px;
}
.sticky-contact__mark {
    font-family: var(--serif);
    font-style: italic;
    font-size: 1.15rem;
    line-height: 1;
}

/* Hidden while the hero or the contact section is on screen */
.sticky-contact.is-hidden {
    opacity: 0;
    transform: translateY(16px) scale(0.96);
    pointer-events: none;
}

@media (max-width: 600px) {
    .sticky-contact {
        padding: 0.7rem 1.05rem;
        font-size: 0.9rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .sticky-contact {
        transition: opacity 200ms linear, background 200ms linear;
    }
    .sticky-contact:hover { transform: none; }
    .sticky-contact.is-hidden { transform: none; }
}

/* Compact nav state (after 80px of scroll) */
.site-header {
    transition: background 240ms var(--ease), border-color 240ms var(--ease);
}
.site-header .shell--nav {
    transition: height 240ms var(--ease);
}
.site-header .wordmark {
    transition: transform 240ms var(--ease);
    transform-origin: left center;
}
.site-header.is-compact {
    background: rgba(20, 22, 25, 0.97);
}
.site-header.is-compact .shell--nav { height: 52px; }
.site-header.is-compact .wordmark { transform: scale(0.94); }

/* Active section underline on nav links */
.primary-nav a {
    position: relative;
}
.primary-nav a:not(.nav-cta)::after {
    content: "";
    position: absolute;
    left: 0; right: 0;
    bottom: -6px;
    height: 1px;
    background: var(--gold);
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform 320ms var(--ease);
}
.primary-nav a.is-active:not(.nav-cta)::after {
    transform: scaleX(1);
}

/* Section-head reveal */
.section-head .section-head__no,
.section-head .section-head__lede {
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 400ms var(--ease), transform 400ms var(--ease);
}
.section-head .section-head__title {
    overflow: hidden;
    opacity: 0;
    clip-path: inset(0 100% 0 0);
    transition: clip-path 400ms var(--ease-emphasized), opacity 400ms var(--ease);
}
.section-head.is-revealed .section-head__no    { opacity: 1; transform: translateY(0); transition-delay: 0ms; }
.section-head.is-revealed .section-head__title { opacity: 1; clip-path: inset(0 0 0 0); transition-delay: 140ms; }
.section-head.is-revealed .section-head__lede  { opacity: 1; transform: translateY(0); transition-delay: 280ms; }

/* Dark variant (features) gets a gold underline draw under the title */
.section-head--dark .section-head__title { position: relative; }
.section-head--dark .section-head__title::after {
    content: "";
    position: absolute;
    left: 0; bottom: -10px;
    width: 96px; height: 1px;
    background: var(--gold);
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform 800ms var(--ease-emphasized) 380ms;
}
.section-head--dark.is-revealed .section-head__title::after { transform: scaleX(1); }

@media (prefers-reduced-motion: reduce) {
    .section-head .section-head__no,
    .section-head .section-head__title,
    .section-head .section-head__lede {
        opacity: 1; transform: none; clip-path: none;
    }
    .section-head--dark .section-head__title::after { transform: scaleX(1); transition: none; }
}

/* Process section choreography */
.steps {
    position: relative;
}
.steps::before {
    content: "";
    position: absolute;
    top: 17px;
    left: 0;
    right: 28%;
    height: 1px;
    background: linear-gradient(to right, var(--bronze), rgba(176,141,87,0.15));
    transform: scaleX(0);
    transform-origin: left;
}
.steps.is-revealed::before { transform: scaleX(1); transition: transform 700ms var(--ease-emphasized); }

.step {
    opacity: 0;
    transform: translateY(16px);
}
.steps.is-revealed .step { opacity: 1; transform: none; transition: opacity 320ms var(--ease), transform 360ms var(--ease); }
.steps.is-revealed .step:nth-child(2) { transition-delay: 90ms; }
.steps.is-revealed .step:nth-child(3) { transition-delay: 180ms; }

@media (prefers-reduced-motion: reduce) {
    .step { opacity: 1; transform: none; }
    .steps::before { transform: none; }
}

/* Gold pulse on the "Auszug aus 12 Seiten" pill */
.sample-note__pill.is-pulsed {
    animation: pill-pulse 1400ms var(--ease) 1;
}
@keyframes pill-pulse {
    0%   { box-shadow: 0 0 0 0 rgba(176,141,87,0); }
    40%  { box-shadow: 0 0 0 12px rgba(176,141,87,0.25); }
    100% { box-shadow: 0 0 0 0 rgba(176,141,87,0); }
}

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

/* Contact card — paper surface + reveal-in-view state (canonical: also holds
   the __mark and __lede rules that used to live in the CONTACT layout block) */
.contact-card {
    background: var(--paper);
    color: var(--text);
    border-radius: 4px;
    padding: 2.25rem 2rem;
    position: relative;
    box-shadow: 0 24px 60px -20px rgba(0, 0, 0, 0.7);
    opacity: 0;
    transform: translateY(20px);
}
.contact-card.is-revealed {
    opacity: 1;
    transform: none;
    transition: opacity 340ms var(--ease), transform 380ms var(--ease);
}

.contact-card__mark {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    width: 3rem;
    height: 3rem;
    display: grid;
    place-items: center;
    border: 1px solid rgba(176, 141, 87, 0.55);
    border-radius: 50%;
    background: rgba(176, 141, 87, 0.07);
    font-family: var(--serif);
    font-style: italic;
    font-weight: 500;
    font-size: 1.55rem;
    line-height: 1;
    color: var(--bronze-deep);
    transform: scale(0.85);
    transform-origin: center;
}
.contact-card.is-revealed .contact-card__mark {
    transform: scale(1);
    transition: transform 480ms var(--ease-spring) 140ms;
}

.contact-card__lede {
    font-family: var(--serif);
    font-size: 1.05rem;
    line-height: 1.55;
    color: var(--text);
}
.contact-card__lede em {
    color: var(--bronze-deep);
}

.contact__direct > div {
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 400ms var(--ease), transform 400ms var(--ease);
}
.contact__direct.is-revealed > div { opacity: 1; transform: translateY(0); }
.contact__direct.is-revealed > div:nth-child(1) { transition-delay: 100ms; }
.contact__direct.is-revealed > div:nth-child(2) { transition-delay: 180ms; }

@media (prefers-reduced-motion: reduce) {
    .contact-card, .contact-card__mark, .contact__direct > div {
        opacity: 1; transform: none; transition: none;
    }
}
