/* ============================================================================
   EveryTech editorial. Production receipt portfolio
   Brief: the frozen ThatGuy/EveryToys light system. Signature: a monospace
   "production receipt" ledger motif (IBM Plex Mono) threaded through the hero
   and case cards. Display Newsreader, labels Quicksand, body Inter, data mono.
   Gold #c89519 (never neon). Warm white #FAFAF7. The e mark is an SVG.
   ========================================================================== */

:root {
    --paper: #FAFAF7;
    --paper-pure: #ffffff;
    --ink: #16140f;
    --body: #26231d;
    --muted: #6f6a60;
    --faint: #726d63;
    --gold: #c89519;
    --gold-ink: #846611;
    --teal: #157d70;
    --red: #b3402f;
    --rule: rgba(22, 20, 15, 0.12);

    --serif: "Newsreader", Georgia, "Times New Roman", serif;
    --label: "Quicksand", ui-sans-serif, system-ui, sans-serif;
    --sans: "Inter", ui-sans-serif, system-ui, -apple-system, sans-serif;
    --mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;

    --measure: 42rem;
    --wide: 66rem;
    --pad: clamp(1.25rem, 4vw, 2.5rem);

    --dur-row: 220ms;
    --dur-press: 120ms;
    --ease-out: cubic-bezier(0.22, 0.61, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; interpolate-size: allow-keywords; }

body {
    margin: 0;
    background: var(--paper);
    color: var(--body);
    font-family: var(--sans);
    font-weight: 450;
    font-size: 1.0625rem;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--ink); text-decoration: none; transition: color 0.15s ease; }
a:hover { color: var(--gold-ink); }

h1, h2, h3, h4 { font-family: var(--serif); color: var(--ink); font-weight: 600; line-height: 1.12; letter-spacing: -0.01em; }
.accent { color: var(--gold-ink); font-style: italic; }

.kicker {
    font-family: var(--label);
    font-weight: 700; text-transform: uppercase; letter-spacing: 0.18em;
    font-size: 0.72rem; color: var(--gold-ink); margin: 0 0 0.9rem;
}
.mono { font-family: var(--mono); font-feature-settings: "tnum" 1; }
.mark { display: block; }

/* ── Header ─────────────────────────────────────────────────────────────── */
.site-header {
    width: min(var(--wide), 100% - 2 * var(--pad));
    margin: 0 auto; padding: 1.5rem 0;
    display: flex; align-items: center; justify-content: space-between; gap: 1rem;
    border-bottom: 1px solid var(--rule);
}
.brand { display: inline-flex; align-items: center; gap: 0.6rem; color: var(--ink); }
.brand .mark { width: 1.7rem; height: 1.7rem; color: var(--ink); transition: color 0.15s ease; }
.brand:hover .mark { color: var(--gold); }
.brand__word { font-family: var(--label); font-weight: 700; letter-spacing: 0.01em; font-size: 1.1rem; }
.brand__tag { font-family: var(--mono); font-size: 0.68rem; color: var(--muted); letter-spacing: 0.05em; margin-left: 0.55rem; padding-left: 0.75rem; border-left: 1px solid var(--rule); white-space: nowrap; }
@media (max-width: 900px) { .brand__tag { display: none; } }
.site-nav ul { list-style: none; display: flex; align-items: center; gap: 1.15rem; margin: 0; padding: 0; }
.site-nav a { font-family: var(--label); font-weight: 600; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.12em; color: var(--muted); }
.site-nav a:hover { color: var(--gold-ink); }
.site-nav li:last-child a { display: inline-block; padding: 0.55rem 0.9rem; border-radius: 999px; background: var(--gold); color: var(--ink); font-weight: 700; font-size: 0.68rem; }
.site-nav li:last-child a:hover { background: var(--ink); color: var(--paper); }
.nav-toggle { display: none; flex-direction: column; justify-content: center; gap: 5px; width: 44px; height: 44px; padding: 9px; background: none; border: 1px solid var(--rule); border-radius: 10px; cursor: pointer; }
.nav-toggle__bar { display: block; height: 2px; width: 100%; background: var(--ink); border-radius: 2px; transition: transform 0.2s ease, opacity 0.2s ease; }
.site-header.nav-open .nav-toggle__bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.site-header.nav-open .nav-toggle__bar:nth-child(2) { opacity: 0; }
.site-header.nav-open .nav-toggle__bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── Hero: firm promise + production-receipt panel (the signature) ───────── */
.hero {
    width: min(var(--wide), 100% - 2 * var(--pad)); margin-inline: auto;
    padding: clamp(2.5rem, 7vw, 5rem) 0 clamp(2rem, 5vw, 3.5rem);
    display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(2rem, 5vw, 4rem); align-items: center;
}
.hero__lead { min-width: 0; }
.hero .kicker { color: var(--gold-ink); }
.hero__title { font-size: clamp(2.4rem, 5.2vw, 4rem); line-height: 1.05; margin: 0.5rem 0 1.3rem; }
.hero__sub { font-family: var(--sans); font-size: clamp(1.02rem, 1.35vw, 1.18rem); color: var(--body); line-height: 1.6; margin: 0 0 2rem; max-width: 34rem; }

.hero__receipt { background: var(--paper-pure); border: 1px solid var(--rule); border-radius: 18px; padding: clamp(1.4rem, 2.4vw, 2rem); box-shadow: 0 30px 70px -46px rgba(22, 20, 15, 0.5); }
.hero__receipt-head { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.16em; color: var(--gold-ink); margin: 0 0 1.1rem; }
.hero__receipt .ledger { max-width: none; }
.hero__receipt-foot { font-size: 0.72rem; color: var(--muted); margin: 1.1rem 0 0; padding-top: 0.9rem; border-top: 1px dotted var(--rule); }

/* ── Stark briefing-document hero: single narrow column, no side panel ────── */
.hero.hero--stark { display: block; grid-template-columns: none; }
.hero--stark .hero__title { font-size: clamp(2.4rem, 5.6vw, 4.2rem); max-width: 18ch; margin: 0.4rem 0 1.1rem; }
.hero--stark .hero__triad { font-family: var(--mono); font-size: clamp(0.82rem, 1.2vw, 0.95rem); color: var(--gold-ink); text-transform: uppercase; letter-spacing: 0.06em; margin: 0 0 1.4rem; }
.hero--stark .hero__sub { max-width: 44rem; margin: 0 0 0; }
.hero--stark .hero__avail { margin: 1.6rem 0 0; font-size: 0.82rem; color: var(--gold-ink); border-left: 2px solid var(--gold); padding-left: 0.9rem; max-width: 42rem; }

/* ── Institutional proof: stark boxed 2x2 metrics grid (the terminal motif) ─ */
.pgrid { width: min(var(--wide), 100% - 2 * var(--pad)); margin: clamp(2.2rem, 5vw, 3.5rem) auto 0; }
.pgrid .kicker { color: var(--gold-ink); }
.pgrid__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--rule); border: 1px solid var(--ink); border-radius: 4px; overflow: hidden; margin-top: 1.2rem; }
.pgrid__cell { background: var(--paper-pure); padding: clamp(1.4rem, 3vw, 2.1rem); }
.pgrid__cell--wide { grid-column: 1 / -1; }
.pgrid__label { font-family: var(--mono); font-size: 0.74rem; text-transform: uppercase; letter-spacing: 0.14em; color: var(--gold-ink); margin: 0 0 0.7rem; }
.pgrid__body { margin: 0; color: var(--body); font-size: 0.98rem; line-height: 1.55; }
.pgrid__body .num { font-variant-numeric: tabular-nums; }
.pgrid__note { margin: 1.3rem 0 0; font-size: 0.78rem; color: var(--muted); }
.pgrid__note a { color: var(--gold-ink); text-transform: uppercase; letter-spacing: 0.08em; }
.pgrid__note a:hover { color: var(--ink); }
@media (max-width: 640px) { .pgrid__grid { grid-template-columns: 1fr; } }

/* ── Proof band: the record behind the firm, as large figures ───────────── */
.proof { width: min(var(--wide), 100% - 2 * var(--pad)); margin: clamp(2rem, 5vw, 3.5rem) auto 0; padding: clamp(1.8rem, 3.5vw, 2.6rem) 0; border-top: 2px solid var(--ink); border-bottom: 1px solid var(--rule); }
.proof__kicker { text-align: center; color: var(--gold-ink); margin-bottom: 1.6rem; }
.proof__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.4rem; }
.proof__item { display: flex; flex-direction: column; gap: 0.5rem; text-align: center; padding: 0 0.6rem; border-left: 1px solid var(--rule); }
.proof__item:first-child { border-left: 0; }
.proof__fig { font-family: var(--serif); font-weight: 600; font-size: clamp(2rem, 4vw, 3rem); color: var(--ink); line-height: 1; }
.proof__fig .num { font-variant-numeric: tabular-nums; }
.proof__label { font-family: var(--label); font-weight: 600; font-size: 0.76rem; text-transform: uppercase; letter-spacing: 0.07em; color: var(--muted); line-height: 1.35; }

/* ── Accountability band: the named principal behind the firm ────────────── */
.firm { width: min(var(--measure), 100% - 2 * var(--pad)); margin: clamp(3rem, 7vw, 4.5rem) auto 0; text-align: center; }
.firm .kicker { color: var(--gold-ink); }
.firm__line { font-family: var(--serif); font-size: clamp(1.15rem, 2vw, 1.42rem); line-height: 1.5; color: var(--ink); margin: 0.5rem 0 1.4rem; }
.firm__links { display: flex; gap: 1.4rem; justify-content: center; flex-wrap: wrap; font-size: 0.78rem; }
.firm__links a { color: var(--gold-ink); text-transform: uppercase; letter-spacing: 0.1em; }
.firm__links a:hover { color: var(--ink); }
@media (max-width: 860px) {
    .hero { grid-template-columns: 1fr; gap: 2rem; align-items: start; }
    .hero__receipt { order: 2; }
    .hero__title { font-size: clamp(2.3rem, 9vw, 3.2rem); }
}
@media (max-width: 640px) {
    .proof__grid { grid-template-columns: 1fr 1fr; gap: 1.6rem 1rem; }
    .proof__item { border-left: 0; }
}
.proof__note { text-align: center; margin: 1.6rem 0 0; font-size: 0.82rem; color: var(--muted); }
.proof__note a { color: var(--gold-ink); font-family: var(--label); font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.74rem; }
.proof__note a:hover { color: var(--ink); }

/* ── Principal Delivery Partnership ────────────────────────────────────── */
.engage { width: min(var(--wide), 100% - 2 * var(--pad)); margin: clamp(2.5rem, 6vw, 4rem) auto 0; }
.engage__note { margin: 1.5rem 0 0; font-size: 0.92rem; color: var(--body); }
.engage__note a { color: var(--gold-ink); font-family: var(--label); font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.78rem; white-space: nowrap; }
.engage__note a:hover { color: var(--ink); }

/* ── Homepage "Selected work": clean 3-up row (distinct from the 2-col archive) ── */
.case-feed--home { grid-template-columns: repeat(3, 1fr); }
.case-feed--home .case { border-right: 1px solid var(--rule); border-bottom: 0; }
.case-feed--home .case:last-child { border-right: 0; }
.case-feed--home .case__link, .case-feed--home .case:nth-child(even) .case__link { padding: 1.6rem clamp(0.9rem, 2vw, 1.4rem); }
.case-feed--home .case:first-child .case__link { padding-left: 0; }
.case-feed--home .case:last-child .case__link { padding-right: 0; }
@media (max-width: 820px) {
    .case-feed--home { grid-template-columns: 1fr; }
    .case-feed--home .case { border-right: 0; border-bottom: 1px solid var(--rule); }
    .case-feed--home .case__link, .case-feed--home .case:nth-child(even) .case__link { padding-left: 0; padding-right: 0; }
}

.ledger { margin: 0; max-width: 34rem; }
.ledger__row {
    display: flex; justify-content: space-between; align-items: baseline; gap: 1.5rem;
    font-family: var(--mono); font-size: 0.84rem;
    padding: 0.55rem 0; border-bottom: 1px dotted var(--rule);
}
.ledger__row:first-child { border-top: 1px solid var(--gold); padding-top: 0.7rem; }
.ledger__row dt { margin: 0; color: var(--muted); text-transform: uppercase; letter-spacing: 0.1em; font-size: 0.74rem; }
.ledger__row dd { margin: 0; color: var(--ink); text-align: right; }

/* ── Work / case feed ───────────────────────────────────────────────────── */
.work { width: min(var(--wide), 100% - 2 * var(--pad)); margin: clamp(2.5rem, 6vw, 4rem) auto 0; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; border-bottom: 2px solid var(--ink); padding-bottom: 0.8rem; }
.section-head .kicker { margin: 0; color: var(--ink); }

.case-feed { display: grid; grid-template-columns: repeat(2, 1fr); }
.case { border-bottom: 1px solid var(--rule); }
.case:nth-child(odd) { border-right: 1px solid var(--rule); }
.case__link { display: block; height: 100%; padding: 1.8rem clamp(0rem, 2vw, 1.6rem) 1.8rem 0; transition: background 0.15s ease; }
.case:nth-child(even) .case__link { padding: 1.8rem 0 1.8rem clamp(0rem, 2vw, 1.6rem); }
.case__link:hover { background: rgba(200, 149, 25, 0.04); }
.case__top { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin-bottom: 0.7rem; }
.case__top .kicker { margin: 0; }
.case__title { font-size: clamp(1.4rem, 2.6vw, 1.85rem); margin: 0 0 0.6rem; }
.case__excerpt { color: var(--muted); margin: 0 0 1rem; }
.case__more { font-family: var(--label); font-weight: 600; font-size: 0.76rem; color: var(--gold-ink); text-transform: uppercase; letter-spacing: 0.1em; }
.case__link:hover .case__title { color: var(--gold-ink); }
.case__link:hover .case__more { text-decoration: underline; text-underline-offset: 3px; }
.section-head__link { font-family: var(--label); font-weight: 600; font-size: 0.76rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--gold-ink); white-space: nowrap; }
.section-head__link:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.case__num { font-size: 0.76rem; color: var(--gold-ink); letter-spacing: 0.08em; }

/* ── CTA strip ──────────────────────────────────────────────────────────────
   The page's terminal block. Inverted to ink so the close reads as an ending
   rather than one more panel: a white box on warm white gives no boundary at
   all. Gold on ink also keeps the button the single most distinct target on
   the page (Von Restorff), which a gold button on paper does not. */
.cta-strip {
    width: min(var(--wide), 100% - 2 * var(--pad)); margin: clamp(3.5rem, 9vw, 6rem) auto clamp(3rem, 8vw, 5rem);
    padding: clamp(2.6rem, 6vw, 4rem) clamp(2rem, 5vw, 3rem); background: var(--ink);
    border: 1px solid var(--ink); border-radius: 4px; text-align: center;
}
.cta-strip .kicker { color: var(--gold); }
.cta-strip__title { font-size: clamp(1.6rem, 3.5vw, 2.4rem); margin: 0.2rem 0 1.6rem; color: var(--paper); max-width: 26ch; margin-inline: auto; }
.cta-strip .btn:hover { background: var(--paper); color: var(--ink); }
/* Specificity beats the later .cta-strip__audience rule further down. */
.cta-strip .cta-strip__audience { color: rgba(250, 250, 247, 0.55); }
.btn { display: inline-block; padding: 0.85rem 1.7rem; border-radius: 999px; background: var(--gold); color: var(--ink); font-family: var(--label); font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; font-size: 0.82rem; }
.btn:hover { background: var(--ink); color: var(--paper); }
/* Conversion actions */
.hero__cta { margin-top: 2rem; display: flex; align-items: center; gap: 1.2rem; flex-wrap: wrap; }
.hero__cta-note, .cta-strip__note, .post-cta__note { font-family: var(--label); font-weight: 600; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--gold-ink); display: inline-block; padding: 0.45rem 0.15rem; }
.hero__cta-note:hover, .cta-strip__note:hover, .post-cta__note:hover { color: var(--ink); }
.cta-strip__note, .post-cta__note { display: inline-block; margin-top: 0.9rem; }
/* prominent CTA banner at the top of the Work-with-us page */
.page-cta { margin: 0 0 2.6rem; padding: 1.2rem 1.4rem; display: flex; align-items: center; gap: 1.2rem; flex-wrap: wrap; background: var(--paper-pure); border: 1px solid var(--rule); border-left: 3px solid var(--gold); border-radius: 12px; box-shadow: 0 16px 40px -34px rgba(22, 20, 15, 0.4); }
.page-cta .btn { font-size: 0.9rem; padding: 0.9rem 1.9rem; }
.page-cta__note { font-family: var(--label); font-weight: 600; font-size: 0.82rem; color: var(--muted); }
.page-cta--end { flex-direction: column; align-items: center; text-align: center; gap: 0.9rem; margin: 2.8rem 0 0; }
.page-cta--end .page-cta__line { font-family: var(--serif); font-size: 1.2rem; color: var(--ink); margin: 0; }

/* /briefing/ application handoff shown only when Ghost is serving the rollback page. */
.page-application { width: min(var(--measure), 100% - 2 * var(--pad)); margin: clamp(2rem, 5vw, 3.5rem) auto clamp(3rem, 8vw, 5rem); }
.application-hero { margin-bottom: 2rem; }
.application-hero .post-title { margin: 0 0 0.8rem; }
.application-hero .post-dek { max-width: 40rem; color: var(--muted); }
.application-handoff { margin-top: 2rem; padding: 1.3rem 1.5rem; background: var(--paper-pure); border: 1px solid var(--rule); border-left: 3px solid var(--gold); border-radius: 12px; }
.application-handoff p:last-child { margin-bottom: 0; }

/* ── Pagination + archive head ──────────────────────────────────────────── */
.pagination { width: min(var(--wide), 100% - 2 * var(--pad)); margin: 2rem auto; display: flex; justify-content: space-between; font-family: var(--label); font-weight: 600; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.12em; }
.archive-head { padding-bottom: 2rem; }
.archive-desc { color: var(--muted); max-width: 48ch; margin: 0; font-size: 1.05rem; }
.author-head .author-meta { margin: 0.8rem 0 0; color: var(--muted); font-size: 0.82rem; letter-spacing: 0.04em; }
.author-links { display: flex; align-items: center; gap: 1.3rem; margin-top: 1.6rem; flex-wrap: wrap; }
.author-about { font-family: var(--label); font-weight: 600; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.12em; color: var(--gold-ink); }
.author-about:hover { color: var(--ink); }

/* ── Single post / page ─────────────────────────────────────────────────── */
.post, .page { width: min(var(--measure), 100% - 2 * var(--pad)); margin: clamp(2.5rem, 6vw, 4rem) auto clamp(3rem, 8vw, 5rem); }
.post-header { margin-bottom: 2rem; }
.post-title { font-size: clamp(2.1rem, 5vw, 3.1rem); margin: 0 0 1rem; }
.post-dek { font-family: var(--serif); font-size: 1.2rem; color: var(--muted); margin: 0 0 1.2rem; }
.post-byline { font-family: var(--mono); font-size: 0.8rem; color: var(--faint); margin: 0; }
.post-byline a { color: inherit; }
.post-byline a:hover { color: var(--gold-ink); }
.post-figure { margin: 0 0 2rem; }
.post-figure img { border-radius: 14px; }
.post-figure figcaption { font-family: var(--label); font-size: 0.8rem; color: var(--muted); margin-top: 0.6rem; }

/* ── Content typography ─────────────────────────────────────────────────── */
.gh-content > * { margin: 0 0 1.4rem; }
.gh-content > *:last-child { margin-bottom: 0; }
.post-content.gh-content > p:first-of-type { font-size: 1.18rem; color: var(--ink); }
.gh-content h2 { font-size: 1.7rem; margin-top: 2.6rem; }
.gh-content h3 { font-size: 1.3rem; margin-top: 2rem; }
.gh-content a { color: var(--gold-ink); text-decoration: underline; text-underline-offset: 2px; text-decoration-thickness: 1px; }
.gh-content ul, .gh-content ol { padding-left: 1.2rem; }
.gh-content li { margin-bottom: 0.5rem; }
.gh-content strong { color: var(--ink); }
.gh-content img { border-radius: 14px; }
.gh-content figcaption { font-family: var(--label); font-size: 0.8rem; color: var(--muted); text-align: center; margin-top: 0.6rem; }

/* tables (RCA outcome ledgers) -> receipt style */
.gh-content table { width: 100%; border-collapse: collapse; font-size: 0.92rem; margin: 2rem 0; }
.gh-content th, .gh-content td { text-align: left; padding: 0.6rem 0.8rem; border-bottom: 1px solid var(--rule); vertical-align: top; }
.gh-content th { font-family: var(--label); font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.74rem; color: var(--gold-ink); }
.gh-content tbody tr:hover { background: rgba(200, 149, 25, 0.05); }

/* Koenig editor card widths */
.gh-content .kg-width-wide { width: min(var(--wide), 100vw - 2rem); margin-left: 50%; transform: translateX(-50%); max-width: none; }
.gh-content .kg-width-full { width: 100vw; margin-left: 50%; transform: translateX(-50%); max-width: none; }
.gh-content .kg-width-full img { border-radius: 0; }

/* Koenig callout card -> accent / stat block */
.gh-content .kg-callout-card { display: flex; gap: 0.75rem; padding: 1.2rem 1.4rem; margin: 2rem 0; border-radius: 12px; background: rgba(200, 149, 25, 0.08); border: 1px solid rgba(200, 149, 25, 0.28); border-left: 3px solid var(--gold); font-family: var(--label); font-weight: 600; color: var(--ink); }
.gh-content .kg-callout-emoji { font-size: 1.15rem; line-height: 1.5; }
.gh-content .kg-callout-text { margin: 0; }

/* Koenig button card -> gold CTA */
.gh-content .kg-button-card { margin: 2rem 0; text-align: center; }
.gh-content .kg-btn { display: inline-block; padding: 0.75rem 1.5rem; border-radius: 999px; background: var(--gold); color: var(--ink); font-family: var(--label); font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; font-size: 0.82rem; }
.gh-content .kg-btn:hover { background: var(--ink); color: var(--paper); }

/* blockquote = headline-receipt card */
.gh-content blockquote { margin: 2rem 0; padding: 1.4rem 1.6rem; background: var(--paper-pure); border: 1px solid var(--rule); border-left: 3px solid var(--gold); border-radius: 12px; box-shadow: 0 12px 30px -18px rgba(22, 20, 15, 0.25); font-family: var(--serif); font-size: 1.2rem; color: var(--ink); }
.gh-content blockquote p:last-child { margin-bottom: 0; }

/* code */
.gh-content pre { background: #1c1a16; color: #f2eee6; padding: 1rem 1.2rem; border-radius: 12px; overflow: auto; font-size: 0.9rem; font-family: var(--mono); line-height: 1.6; }
.gh-content :not(pre) > code { background: rgba(200, 149, 25, 0.12); color: var(--gold-ink); padding: 0.1em 0.4em; border-radius: 6px; font-size: 0.92em; font-family: var(--mono); }

/* ── Post footer / tags ─────────────────────────────────────────────────── */
.post-footer { margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid var(--rule); }
.post-tags { font-family: var(--label); font-weight: 600; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.12em; color: var(--muted); }
.post-cta { margin-top: 2.5rem; padding: clamp(1.4rem, 4vw, 1.9rem); background: var(--paper-pure); border: 1px solid var(--rule); border-left: 3px solid var(--gold); border-radius: 14px; box-shadow: 0 18px 44px -34px rgba(22, 20, 15, 0.4); }
.post-cta .kicker { margin-bottom: 0.5rem; }
.post-cta__line { font-family: var(--serif); font-size: 1.2rem; line-height: 1.35; color: var(--ink); margin: 0 0 1.2rem; }

/* ── Footer ─────────────────────────────────────────────────────────────── */
.site-footer { width: min(var(--wide), 100% - 2 * var(--pad)); margin: clamp(3rem, 8vw, 5rem) auto 2.5rem; padding-top: 1.5rem; border-top: 1px solid var(--rule); display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; }
.brand--footer .mark { width: 1.4rem; height: 1.4rem; }
.brand--footer .brand__word { color: var(--muted); }
.footer-meta { font-size: 0.78rem; color: var(--faint); }
.footer-nav { display: flex; gap: 1.3rem; flex-wrap: wrap; }
.footer-nav a { font-family: var(--label); font-weight: 600; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); }
.footer-nav a:hover { color: var(--gold-ink); }
/* Legal links sit a rung below the social/contact row: same type, quieter colour, and
   forced onto their own full-width line so the footer reads as two tiers rather than one
   long undifferentiated strip of six links. */

/* ── Motion (subtle, reduced-motion safe) ───────────────────────────────── */
@keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
.hero > * { animation: rise 0.5s ease both; }
.hero__title { animation-delay: 0.05s; }
.hero__sub { animation-delay: 0.12s; }
.ledger { animation-delay: 0.18s; }

/* ── Quality floor: focus + reduced motion + responsive ─────────────────── */
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 3px; }

/* skip link (WCAG 2.4.1 Bypass Blocks) - off-screen until focused */
.skip-link {
    position: absolute; left: 0.5rem; top: 0.5rem; z-index: 100; transform: translateY(-150%);
    background: var(--ink); color: var(--paper); padding: 0.65rem 1.1rem; border-radius: 10px;
    font-family: var(--label); font-weight: 700; font-size: 0.78rem;
    text-transform: uppercase; letter-spacing: 0.1em; transition: transform 0.15s ease;
}
.skip-link:focus { transform: translateY(0); color: var(--paper); }
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
@media (max-width: 768px) {
    .case-feed { grid-template-columns: 1fr; }
    .case:nth-child(odd) { border-right: none; }
    .case__link, .case:nth-child(even) .case__link { padding-left: 0; padding-right: 0; }

    .site-header { position: relative; flex-wrap: nowrap; }
    .nav-toggle { display: inline-flex; }
    .site-header .site-nav {
        display: none;
        position: absolute; top: calc(100% + 0.5rem); left: 0; right: 0; z-index: 60;
        flex-direction: column; align-items: stretch; gap: 0.25rem;
        background: var(--paper-pure); border: 1px solid var(--rule); border-radius: 14px;
        padding: 0.8rem; box-shadow: 0 26px 60px -40px rgba(22, 20, 15, 0.55);
    }
    .site-header.nav-open .site-nav { display: flex; }
    .site-nav ul { flex-direction: column; gap: 0; width: 100%; }
    .site-nav ul li a { display: block; padding: 0.7rem 0.5rem; font-size: 0.9rem; border-radius: 8px; }
    .site-nav ul li a:hover { background: rgba(200, 149, 25, 0.06); }
    .site-nav ul li:last-child a { margin-top: 0.35rem; padding: 0.8rem 0.75rem; text-align: center; background: var(--gold); color: var(--ink); }
    .site-nav ul li:last-child a:hover { background: var(--ink); color: var(--paper); }
    .btn--sm { width: 100%; text-align: center; }
}

/* -- Quiet scroll reveal only (JS-gated, reduced-motion safe). No tilt/glow/shine. -- */
.js [data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1); will-change: opacity, transform; }
.js [data-reveal].in { opacity: 1; transform: none; }

/* gold accent word: static, no shimmer (stark briefing-document discipline) */
.accent { color: var(--gold-ink); font-style: italic; }

/* exact stat figures (no count-up) */
.num { font-variant-numeric: tabular-nums; font-feature-settings: "tnum" 1; }

/* case card: quiet hover only (background wash + arrow affordance), no tilt/glow */
.case__more { display: inline-flex; align-items: center; gap: 0.4rem; }
.case__arrow { display: inline-block; transition: transform 0.25s ease; }
.case__link:hover .case__arrow { transform: translateX(6px); }

.site-nav { display: flex; align-items: center; gap: 1.2rem; }
.btn--sm { padding: 0.42rem 0.95rem; font-size: 0.72rem; }
.site-nav a.btn { color: var(--ink); }
.site-nav a.btn:hover { color: var(--paper); }

/* All consulting content is public. Suppress Ghost's generic upgrade card. */
.gh-content .gh-post-upgrade-cta { display: none !important; }

/* -- FAQ: native <details> accordion, receipt-card skin ---------------------
   Semantics are native, so click, Enter, Space, screen readers and
   find-in-page all work with no JavaScript. The whole <summary> row is the
   click target (Fitts), and `name="faq"` keeps one row open at a time so the
   section never pushes the CTA off screen. */
.faq { width: min(var(--wide), 100% - 2 * var(--pad)); margin: clamp(2.5rem, 6vw, 4rem) auto 0; }
.faq__head { margin-bottom: 1.3rem; }
.faq__list { display: grid; gap: 0.7rem; }
.faq__row {
    background: var(--paper-pure); border: 1px solid var(--rule); border-radius: 14px;
    padding: 0 clamp(1.1rem, 2.4vw, 1.6rem);
    box-shadow: 0 20px 46px -40px rgba(22, 20, 15, 0.55);
    transition: border-color var(--dur-press) var(--ease-out), box-shadow var(--dur-press) var(--ease-out);
}
.faq__row:hover { border-color: rgba(200, 149, 25, 0.55); }
.faq__row[open] { border-color: rgba(200, 149, 25, 0.7); box-shadow: 0 26px 56px -38px rgba(22, 20, 15, 0.6); }
.faq__q {
    display: grid; grid-template-columns: auto 1fr auto; align-items: baseline;
    gap: 0 1rem; cursor: pointer; list-style: none; padding: 1.25rem 0; min-height: 3.5rem;
}
.faq__q::-webkit-details-marker { display: none; }
.faq__q:hover .faq__qt { color: var(--gold-ink); }
.faq__q:focus-visible { outline: 2px solid var(--gold-ink); outline-offset: 4px; border-radius: 4px; }
.faq__n { font-family: var(--mono); font-size: 0.74rem; color: var(--gold-ink); letter-spacing: 0.06em; padding-top: 0.35rem; }
.faq__qt { font-family: var(--serif); font-weight: 600; font-size: clamp(1.08rem, 1.8vw, 1.3rem); color: var(--ink); line-height: 1.28; transition: color var(--dur-press) var(--ease-out); }
.faq__body { padding-left: calc(0.74rem * 2 + 1rem); }
.faq__a { color: var(--muted); font-size: 0.95rem; max-width: 54ch; margin: 0 0 1.3rem; }

/* Toggle mark: a plus that becomes a minus. The site uses no chevrons. */
.faq__mark { width: 15px; height: 15px; flex: none; align-self: center; overflow: visible; }
.faq__mark line { stroke: var(--gold-ink); stroke-width: 1.4; stroke-linecap: square; transform-origin: center; transition: transform var(--dur-row) var(--ease-out), opacity var(--dur-row) var(--ease-out); }
.faq__row[open] .faq__mark line.v { transform: scaleY(0); opacity: 0; }
.faq__row[open] .faq__mark line.h { stroke: var(--ink); }

/* Open/close motion. Browsers without ::details-content still open correctly. */
.faq__row::details-content {
    block-size: 0; overflow: hidden; opacity: 0;
    transition: block-size var(--dur-row) var(--ease-out), content-visibility var(--dur-row) allow-discrete, opacity var(--dur-row) var(--ease-out);
}
.faq__row[open]::details-content { block-size: auto; opacity: 1; }

.faq__foot { margin: 1.6rem 0 0; font-size: 0.9rem; color: var(--muted); }
.faq__foot a { color: var(--gold-ink); font-weight: 500; }
.faq__foot a:hover { text-decoration: underline; text-underline-offset: 3px; }

@media (max-width: 640px) { .faq__body { padding-left: 0; } }
@media (prefers-reduced-motion: reduce) {
    .faq__row, .faq__row::details-content, .faq__mark line, .faq__qt { transition: none; }
}
.cta-strip__list { list-style: none; margin: 0 auto 1.2rem; padding: 0; max-width: 44rem; text-align: left; }
.cta-strip__list li { padding: 0.45rem 0 0.45rem 1.2rem; border-left: 2px solid var(--gold); margin-bottom: 0.6rem; color: var(--body); }
.cta-strip__line { max-width: 44rem; margin: 0 auto 1.6rem; color: var(--muted); }
.cta-strip__audience { margin-top: 1.1rem; font-size: 0.72rem; color: var(--faint); text-transform: uppercase; letter-spacing: 0.12em; }

/* -- The typical agency vs this practice (reconciled contrast) -- */
.contrast { width: min(var(--wide), 100% - 2 * var(--pad)); margin: clamp(2.5rem, 6vw, 4rem) auto 0; }
.contrast__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--rule); border: 1px solid var(--rule); border-radius: 16px; overflow: hidden; margin-top: 1.4rem; }
.contrast__col { background: var(--paper-pure); padding: clamp(1.4rem, 3vw, 2rem); }
.contrast__col--practice { background: rgba(200, 149, 25, 0.06); }
.contrast__head { font-family: var(--label); font-weight: 700; text-transform: uppercase; letter-spacing: 0.12em; font-size: 0.76rem; margin: 0 0 1rem; }
.contrast__col--agency .contrast__head { color: var(--muted); }
.contrast__col--practice .contrast__head { color: var(--gold-ink); }
.contrast__list { list-style: none; margin: 0; padding: 0; }
.contrast__list li { font-family: var(--mono); font-size: 0.84rem; color: var(--body); padding: 0.6rem 0; border-bottom: 1px dotted var(--rule); }
.contrast__list li:last-child { border-bottom: 0; }
.contrast__col--agency .contrast__list li { color: var(--muted); }
@media (max-width: 720px) { .contrast__grid { grid-template-columns: 1fr; } }

/* reduced-motion: keep everything visible and still */
@media (prefers-reduced-motion: reduce) {
    .js [data-reveal] { opacity: 1 !important; transform: none !important; }
    .accent { background: none; -webkit-text-fill-color: var(--gold-ink); color: var(--gold-ink); }
    .case__arrow { transform: none !important; }
}

/* The application route on /briefing/. The button is the page's action, so the
   note under it stays quiet. */
.application-handoff__note { margin: 0.9rem 0 0; font-size: 0.82rem; color: var(--muted); }
