/* =============================================================
   IBRAHIM NGUGI GATIMU — Portfolio design system  (v7)
   Executive editorial: warm ivory, refined serif, hairline rules,
   generous whitespace. Understated by intention.
   ============================================================= */

/* ---------- Tokens ---------- */
:root {
    /* color */
    --bg:        #FAF9F6;
    --bg-alt:    #F3F1EA;
    --surface:   #FFFFFF;
    --ink:       #14181B;      /* dark closing sections */
    --ink-soft:  #1D2225;
    --text:      #23272B;
    --muted:     #6E7278;      /* 4.59:1 on --bg — WCAG AA for normal text */
    --line:      #E4E1D8;
    --line-dark: rgba(250, 249, 246, .16);
    --muted-on-dark: rgba(250, 249, 246, .60);
    --accent:    #96793D;      /* bronze — decorative details only, not text */
    --accent-text: #806733;    /* darker bronze for text — 5.11:1 on --bg */

    /* type */
    --serif: 'Newsreader', Georgia, 'Times New Roman', serif;
    --sans:  'Instrument Sans', 'Helvetica Neue', Arial, sans-serif;

    /* rhythm */
    --gutter: clamp(20px, 5vw, 64px);
    --sec-pad: clamp(80px, 10vw, 144px);
    --nav-h: 72px;
    --radius: 3px;

    --ease: cubic-bezier(.25, .6, .25, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
    font-family: var(--sans);
    font-size: 16.5px;
    line-height: 1.7;
    color: var(--text);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    overflow-x: clip;
}
img { max-width: 100%; display: block; }
em, i, cite, blockquote { font-style: normal; }   /* uniform roman type — no italics by design */
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
::selection { background: var(--ink); color: var(--bg); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
body.no-scroll { overflow: hidden; }

.container { width: min(1140px, 100% - 2 * var(--gutter)); margin-inline: auto; }
.container--wide { width: min(1240px, 100% - 2 * var(--gutter)); margin-inline: auto; }
.container--prose { width: min(720px, 100% - 2 * var(--gutter)); margin-inline: auto; }

.skip-link {
    position: absolute; left: -9999px; top: 0; z-index: 300;
    background: var(--ink); color: var(--bg); padding: 12px 20px;
}
.skip-link:focus { left: 0; }

/* ---------- Typography ---------- */
h1, h2, h3, .serif {
    font-family: var(--serif);
    font-optical-sizing: auto;
    font-weight: 400;
    color: var(--ink);
    letter-spacing: -0.01em;
}

.eyebrow {
    display: inline-flex; align-items: center; gap: 14px;
    font-size: 11px; font-weight: 600;
    letter-spacing: .28em; text-transform: uppercase;
    color: var(--muted);
}
.eyebrow::before {
    content: ""; width: 26px; height: 1px; background: var(--accent);
}

.sec-title {
    font-size: clamp(1.9rem, 3.4vw, 2.85rem);
    line-height: 1.12;
    margin-top: 20px;
    max-width: 20ch;
}
.sec-lead {
    margin-top: 18px;
    max-width: 56ch;
    color: var(--muted);
    font-size: 1.02rem;
}

.on-dark h2, .on-dark h3, .on-dark .sec-title { color: var(--bg); }
.on-dark .sec-lead { color: var(--muted-on-dark); }
.on-dark .eyebrow { color: var(--muted-on-dark); }

/* ---------- Buttons & links ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    padding: 15px 28px;
    font-size: 12.5px; font-weight: 600;
    letter-spacing: .14em; text-transform: uppercase;
    background: var(--ink); color: var(--bg);
    border: 1px solid var(--ink);
    border-radius: var(--radius);
    transition: background .25s var(--ease), border-color .25s var(--ease), color .25s var(--ease);
}
.btn:hover { background: var(--ink-soft); border-color: var(--ink-soft); }

.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn--ghost:hover { background: transparent; color: var(--ink); border-color: var(--ink); }

.btn--on-dark { background: var(--bg); color: var(--ink); border-color: var(--bg); }
.btn--on-dark:hover { background: #ECEAE3; border-color: #ECEAE3; }

.text-link {
    display: inline-flex; align-items: baseline; gap: 8px;
    font-size: 12.5px; font-weight: 600;
    letter-spacing: .14em; text-transform: uppercase;
    color: var(--ink);
    padding-bottom: 3px;
    border-bottom: 1px solid var(--line);
    transition: border-color .25s var(--ease), color .25s var(--ease);
}
.text-link:hover { border-color: var(--ink); }
.text-link em { font-style: normal; transition: transform .25s var(--ease); }
.text-link:hover em { transform: translateX(3px); }
.on-dark .text-link { color: var(--bg); border-color: var(--line-dark); }
.on-dark .text-link:hover { border-color: var(--bg); }

/* ---------- Navigation ---------- */
.site-nav {
    position: fixed; inset: 0 0 auto 0; z-index: 100;
    background: rgba(250, 249, 246, 0);
    border-bottom: 1px solid transparent;
    transition: background .3s, border-color .3s, transform .4s var(--ease);
}
.site-nav.is-solid {
    background: rgba(250, 249, 246, .94);
    -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
    border-color: var(--line);
}
.site-nav.is-hidden { transform: translateY(-100%); }
.site-nav__inner {
    width: min(1240px, 100% - 2 * var(--gutter));
    margin-inline: auto;
    height: var(--nav-h);
    display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.brand {
    font-family: var(--serif);
    font-size: 1.15rem;
    color: var(--ink);
    letter-spacing: .01em;
    white-space: nowrap;
}
.brand em { color: var(--muted); }
.site-nav__links { display: flex; gap: 34px; }
.site-nav__links a {
    font-size: 12px; font-weight: 600;
    letter-spacing: .16em; text-transform: uppercase;
    color: var(--text);
    position: relative; padding: 6px 0;
}
.site-nav__links a::after {
    content: ""; position: absolute; left: 0; bottom: 0;
    width: 100%; height: 1px; background: var(--accent);
    transform: scaleX(0); transform-origin: right;
    transition: transform .3s var(--ease);
}
.site-nav__links a:hover::after,
.site-nav__links a[aria-current]::after { transform: scaleX(1); transform-origin: left; }

.site-nav__cta { display: flex; align-items: center; gap: 10px; }
.site-nav__cta .btn { padding: 11px 20px; }

/* Mobile-only action icons: call, email, menu. Real actions, not decoration —
   they are only rendered when the matching setting has a value. */
.nav-actions { display: none; align-items: center; gap: 2px; }
.nav-actions > a,
.nav-actions > button {
    display: inline-flex; align-items: center; justify-content: center;
    width: 42px; height: 42px;
    color: var(--ink);
    border-radius: 50%;
    transition: background .25s var(--ease);
}
.nav-actions > a:active,
.nav-actions > button:active { background: rgba(20, 24, 27, .06); }
.nav-actions svg { width: 21px; height: 21px; }

/* Mobile menu — a bottom sheet. Only ever reachable below 920px, where the header
   menu icon and the bottom bar's More button both open it. */
.site-menu {
    position: fixed; inset: auto 0 0 0; z-index: 210;
    max-height: min(82vh, 660px);
    background: var(--bg);
    display: flex; flex-direction: column;
    padding: 10px var(--gutter) calc(20px + env(safe-area-inset-bottom, 0px));
    border-top: 1px solid var(--line);
    border-radius: 16px 16px 0 0;
    box-shadow: 0 -18px 50px rgba(20, 24, 27, .18);
    overflow-y: auto;
    overscroll-behavior: contain;
    opacity: 0; visibility: hidden;
    transform: translateY(12%);
    transition: opacity .3s var(--ease), visibility .3s, transform .35s var(--ease);
}
.site-menu.is-open { opacity: 1; visibility: visible; transform: none; }

.site-menu__grip {
    width: 38px; height: 4px; border-radius: 2px;
    background: var(--line);
    margin: 2px auto 4px;
    flex: none;
}
.site-menu__head {
    display: flex; justify-content: space-between; align-items: center;
    height: 52px;
    border-bottom: 1px solid var(--line);
    flex: none;
}
.site-menu__close {
    font-size: 12px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase;
    color: var(--muted);
}
.site-menu__close:hover { color: var(--ink); }
.site-menu__links { display: flex; flex-direction: column; padding-block: 4px; }
.site-menu__links a {
    font-family: var(--serif);
    font-size: clamp(1.25rem, 5.2vw, 1.6rem);
    color: var(--ink);
    padding: 13px 0;
    border-bottom: 1px solid var(--line);
    display: flex; align-items: baseline; justify-content: space-between;
    opacity: 0; transform: translateY(14px);
    transition: opacity .45s var(--ease), transform .45s var(--ease);
    transition-delay: calc(var(--i, 0) * 50ms);
}
.site-menu.is-open .site-menu__links a { opacity: 1; transform: none; }
.site-menu__links a em {
    font-family: var(--sans); font-style: normal;
    font-size: 11px; font-weight: 600; letter-spacing: .2em; color: var(--muted);
}
.site-menu__foot {
    display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap;
    font-size: 13px; color: var(--muted);
    padding-top: 16px;
    flex: none;
}
.site-menu__foot a:hover { color: var(--ink); }

/* ---------- Sections ---------- */
.band { padding-block: var(--sec-pad); }
.band--alt { background: var(--bg-alt); }
.band--dark { background: var(--ink); color: var(--bg); }
.band--line { border-top: 1px solid var(--line); }

.sec-head { margin-bottom: clamp(44px, 6vw, 72px); }
.sec-head--center { text-align: center; }
.sec-head--center .sec-title, .sec-head--center .sec-lead { margin-inline: auto; }

/* ---------- Hero ---------- */
.hero {
    padding-top: calc(var(--nav-h) + clamp(48px, 8vh, 104px));
    padding-bottom: clamp(64px, 8vw, 110px);
}
.hero__grid {
    display: grid;
    grid-template-columns: 1.25fr .75fr;
    gap: clamp(40px, 6vw, 96px);
    align-items: center;
}
.hero h1 {
    font-size: clamp(2.7rem, 5.6vw, 4.6rem);
    line-height: 1.04;
    letter-spacing: -0.015em;
    margin-top: 26px;
    max-width: 12ch;
}
.hero__lead {
    margin-top: 24px;
    font-size: clamp(1.05rem, 1.4vw, 1.2rem);
    color: var(--muted);
    max-width: 50ch;
}
.hero__actions { display: flex; align-items: center; gap: 26px; flex-wrap: wrap; margin-top: 36px; }

.hero__portrait { position: relative; }
.hero__portrait img {
    width: 100%;
    aspect-ratio: 4 / 4.7;
    object-fit: cover;
    border-radius: var(--radius);
    filter: saturate(.92);
}
.hero__portrait figcaption {
    display: flex; justify-content: space-between; gap: 12px;
    padding-top: 12px;
    margin-top: 12px;
    border-top: 1px solid var(--line);
    font-size: 11px; font-weight: 600;
    letter-spacing: .18em; text-transform: uppercase;
    color: var(--muted);
}

/* entrance */
.fade-up {
    opacity: 0; transform: translateY(18px);
    animation: fadeUp .9s var(--ease) forwards;
    animation-delay: calc(var(--d, 0) * 120ms);
}
.no-js .fade-up { opacity: 1; transform: none; animation: none; }
@keyframes fadeUp { to { opacity: 1; transform: none; } }

/* affiliations */
.affiliations {
    border-top: 1px solid var(--line);
    padding-top: 28px;
    margin-top: clamp(48px, 6vw, 80px);
    display: flex; align-items: baseline; gap: clamp(20px, 3.5vw, 48px); flex-wrap: wrap;
}
.affiliations__label {
    font-size: 10.5px; font-weight: 600; letter-spacing: .24em; text-transform: uppercase;
    color: var(--muted);
    margin-right: auto;
}
.affiliations span {
    font-family: var(--serif);
    font-size: 1.02rem;
    color: var(--muted);
    white-space: nowrap;
}

/* ---------- About ---------- */
.about-grid {
    display: grid;
    grid-template-columns: minmax(200px, 340px) 1fr;
    gap: clamp(36px, 6vw, 96px);
    align-items: start;
}
.about-copy .lede {
    font-family: var(--serif);
    font-size: clamp(1.3rem, 2vw, 1.6rem);
    line-height: 1.5;
    color: var(--ink);
}
.about-copy p + p { margin-top: 22px; color: var(--muted); }

.credentials { margin-top: 44px; border-top: 1px solid var(--line); }
.credential {
    display: grid; grid-template-columns: minmax(120px, 180px) 1fr;
    gap: 18px; padding: 16px 0;
    border-bottom: 1px solid var(--line);
    align-items: baseline;
}
.credential span {
    font-size: 10.5px; font-weight: 600; letter-spacing: .22em; text-transform: uppercase;
    color: var(--muted);
}
.credential p { font-size: .98rem; }
.credential p i { font-family: var(--serif); }

/* ---------- Stats ---------- */
.stats {
    border-block: 1px solid var(--line);
    display: grid; grid-template-columns: repeat(4, 1fr);
}
.stat {
    padding: clamp(28px, 3.5vw, 44px) clamp(18px, 2.5vw, 36px);
    border-right: 1px solid var(--line);
}
.stat:last-child { border-right: 0; }
.stat b {
    display: block;
    font-family: var(--serif); font-weight: 400;
    font-size: clamp(2.1rem, 3.6vw, 3.1rem);
    line-height: 1;
    color: var(--ink);
}
.stat span {
    display: block; margin-top: 10px;
    font-size: 11px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase;
    color: var(--muted);
}

/* ---------- Timeline ---------- */
.timeline { max-width: 860px; }
.timeline__row {
    display: grid;
    grid-template-columns: minmax(110px, 190px) 1fr;
    gap: clamp(20px, 4vw, 56px);
    padding: clamp(22px, 3vw, 32px) 0;
    border-bottom: 1px solid var(--line);
}
.timeline__row:first-child { border-top: 1px solid var(--line); }
.timeline__year {
    font-size: 11px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase;
    color: var(--muted);
    padding-top: 6px;
}
.timeline__body h3 { font-size: clamp(1.2rem, 1.9vw, 1.5rem); line-height: 1.3; }
.timeline__body p { margin-top: 6px; color: var(--muted); font-size: .98rem; max-width: 56ch; }

/* ---------- Ventures ---------- */
.ventures {
    display: grid; grid-template-columns: 1fr 1fr;
    gap: clamp(20px, 2.5vw, 28px);
}
.venture {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: clamp(30px, 3.5vw, 46px);
    display: flex; flex-direction: column;
    min-height: 320px;
    transition: border-color .3s var(--ease), box-shadow .3s var(--ease), transform .3s var(--ease);
}
.venture:hover {
    border-color: #C9C4B6;
    box-shadow: 0 16px 40px rgba(20, 24, 27, .06);
    transform: translateY(-3px);
}
.venture__tag {
    font-size: 10.5px; font-weight: 600; letter-spacing: .22em; text-transform: uppercase;
    color: var(--muted);
}
.venture h3 {
    font-size: clamp(1.6rem, 2.6vw, 2.1rem);
    margin-top: 18px;
}
.venture p { margin-top: 12px; color: var(--muted); max-width: 44ch; }
.venture .text-link { margin-top: auto; padding-top: 28px; align-self: flex-start; border-bottom-color: transparent; }
.venture:hover .text-link { border-bottom-color: var(--ink); }

/* ---------- Books ---------- */
.book {
    display: grid;
    grid-template-columns: minmax(240px, 380px) 1fr;
    gap: clamp(40px, 6vw, 104px);
    align-items: center;
    padding-block: clamp(40px, 5vw, 64px);
}
.book + .book { border-top: 1px solid var(--line); }
.book--flip { grid-template-columns: 1fr minmax(240px, 380px); }
.book--flip .book__cover { order: 2; }

.book__cover img {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: 0 24px 48px rgba(20, 24, 27, .08);
}

/* typographic cover for the book without artwork */
.cover-typo {
    aspect-ratio: 210 / 297;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: 0 24px 48px rgba(20, 24, 27, .08);
    display: flex; flex-direction: column; align-items: center; justify-content: space-between;
    text-align: center;
    padding: clamp(28px, 4vw, 44px) clamp(20px, 3vw, 32px);
}
.cover-typo__rule { width: 34px; height: 1px; background: var(--accent); }
.cover-typo__author {
    font-size: 10px; font-weight: 600; letter-spacing: .26em; text-transform: uppercase;
    color: var(--muted);
}
.cover-typo__title {
    font-family: var(--serif);
    font-size: clamp(1.9rem, 3vw, 2.5rem);
    line-height: 1.15;
    color: var(--ink);
}
.cover-typo__sub {
    font-size: 10.5px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase;
    color: var(--muted);
    max-width: 24ch;
    line-height: 1.7;
}

.book__tag {
    display: inline-block;
    font-size: 10.5px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase;
    color: var(--accent);
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 7px 16px;
}
.book__info h3 { font-size: clamp(1.8rem, 3vw, 2.5rem); margin-top: 20px; }
.book__tagline {
    font-family: var(--serif);
    font-size: clamp(1.1rem, 1.6vw, 1.3rem);
    color: var(--muted);
    margin-top: 10px;
}
.book__info > p:not(.book__tagline) { margin-top: 16px; color: var(--muted); max-width: 54ch; }
.book__actions { margin-top: 30px; display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }

.tm { font-size: .45em; vertical-align: super; letter-spacing: 0; line-height: 0; }

/* compact book teasers (home) */
.books-teaser {
    display: grid; grid-template-columns: 1fr 1fr;
    gap: clamp(28px, 4vw, 64px);
}
.bookteaser {
    display: grid; grid-template-columns: minmax(110px, 150px) 1fr;
    gap: clamp(20px, 2.5vw, 32px);
    align-items: center;
}
.bookteaser img, .bookteaser .cover-typo { box-shadow: 0 14px 28px rgba(20, 24, 27, .08); }
.cover-typo--sm { padding: 18px 12px; gap: 8px; }
.cover-typo--sm .cover-typo__title { font-size: 1.05rem; }
.cover-typo--sm .cover-typo__author { font-size: 7px; letter-spacing: .2em; }
.cover-typo--sm .cover-typo__sub { font-size: 6.5px; letter-spacing: .14em; line-height: 1.6; }
.cover-typo--sm .cover-typo__rule { width: 22px; }
.bookteaser__info .kicker {
    font-size: 10.5px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase;
    color: var(--accent);
}
.bookteaser__info h3 { font-size: clamp(1.3rem, 2vw, 1.65rem); margin-top: 10px; }
.bookteaser__info .tagline {
    font-family: var(--serif);
    color: var(--muted); margin-top: 6px; font-size: 1rem;
}
.bookteaser__info .text-link { margin-top: 18px; }

/* ---------- Pull quote ---------- */
.pullquote {
    padding-block: clamp(72px, 9vw, 128px);
    text-align: center;
}
.pullquote blockquote {
    font-family: var(--serif);
    font-size: clamp(1.7rem, 3.4vw, 2.7rem);
    line-height: 1.3;
    color: var(--ink);
    max-width: 22ch;
    margin-inline: auto;
}
.pullquote cite {
    display: inline-flex; align-items: center; gap: 14px;
    margin-top: 28px;
    font-style: normal;
    font-size: 11px; font-weight: 600; letter-spacing: .24em; text-transform: uppercase;
    color: var(--muted);
}
.pullquote cite::before, .pullquote cite::after {
    content: ""; width: 26px; height: 1px; background: var(--line);
}

/* ---------- Program ---------- */
.program {
    display: grid;
    grid-template-columns: 1.1fr .9fr;
    gap: clamp(40px, 6vw, 96px);
    align-items: center;
}
.program__list { margin-top: 32px; border-top: 1px solid var(--line); max-width: 480px; }
.program__list li {
    list-style: none;
    display: flex; align-items: baseline; gap: 18px;
    padding: 14px 0;
    border-bottom: 1px solid var(--line);
    font-size: 1rem;
}
.program__list li em {
    font-style: normal;
    font-size: 10.5px; font-weight: 600; letter-spacing: .18em;
    color: var(--accent);
}
.program__cta { margin-top: 34px; display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }

.program__panel {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: clamp(32px, 4vw, 52px);
    text-align: center;
    display: flex; flex-direction: column; align-items: center; gap: 22px;
}
.program__panel .mark {
    font-family: var(--serif);
    font-size: clamp(3rem, 5.5vw, 4.4rem);
    line-height: 1;
    color: var(--ink);
}
.program__panel .rule { width: 34px; height: 1px; background: var(--accent); }
.program__panel .full {
    font-family: var(--serif);
    font-size: 1.1rem; color: var(--muted);
    max-width: 26ch;
}
.program__panel .org {
    font-size: 10.5px; font-weight: 600; letter-spacing: .22em; text-transform: uppercase;
    color: var(--muted);
}

/* ---------- Services ---------- */
.services {
    display: grid; grid-template-columns: 1fr 1fr;
    border-top: 1px solid var(--line);
    border-left: 1px solid var(--line);
}
.service {
    border-right: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    padding: clamp(28px, 3.5vw, 46px);
}
.service em {
    font-style: normal;
    font-size: 10.5px; font-weight: 600; letter-spacing: .2em;
    color: var(--accent);
}
.service h3 { font-size: clamp(1.25rem, 1.9vw, 1.55rem); margin-top: 14px; }
.service p { margin-top: 10px; color: var(--muted); font-size: .98rem; max-width: 44ch; }

/* ---------- Testimonials ---------- */
.testimonials {
    display: grid; grid-template-columns: repeat(3, 1fr);
    gap: clamp(28px, 4vw, 56px);
}
.tstm { display: flex; flex-direction: column; }
.tstm::before {
    content: ""; width: 26px; height: 1px; background: var(--accent);
    margin-bottom: 24px;
}
.tstm blockquote {
    font-family: var(--serif);
    font-size: 1.14rem;
    line-height: 1.6;
    color: var(--ink);
    flex: 1;
}
.tstm figcaption { margin-top: 24px; }
.tstm figcaption b { display: block; font-size: .95rem; font-weight: 600; color: var(--text); }
.tstm figcaption span {
    display: block; margin-top: 3px;
    font-size: 11px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
    color: var(--muted);
}

/* ---------- FAQ ---------- */
.faq { max-width: 800px; margin-inline: auto; border-top: 1px solid var(--line); }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__q {
    width: 100%;
    display: flex; align-items: center; justify-content: space-between; gap: 20px;
    text-align: left;
    padding: clamp(20px, 2.6vw, 28px) 0;
}
.faq__t {
    font-family: var(--serif);
    font-size: clamp(1.1rem, 1.7vw, 1.3rem);
    color: var(--ink);
    line-height: 1.4;
}
.faq__q .x { position: relative; width: 14px; height: 14px; flex: none; }
.faq__q .x::before, .faq__q .x::after {
    content: ""; position: absolute; top: 50%; left: 0;
    width: 100%; height: 1px; background: var(--muted);
    transition: transform .3s var(--ease);
}
.faq__q .x::after { transform: rotate(90deg); }
.faq__item.is-open .faq__q .x::after { transform: rotate(0); }
.faq__a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .35s var(--ease); }
.faq__item.is-open .faq__a { grid-template-rows: 1fr; }
.faq__a > div { overflow: hidden; }
.faq__a p { color: var(--muted); max-width: 62ch; padding-bottom: 26px; }

/* ---------- Contact (dark close) ---------- */
.band--dark ::selection { background: var(--bg); color: var(--ink); }
.contact {
    display: grid;
    grid-template-columns: minmax(280px, .9fr) 1.1fr;
    gap: clamp(44px, 7vw, 120px);
}
.contact__rows { margin-top: 40px; border-top: 1px solid var(--line-dark); }
.contact__row {
    display: grid; grid-template-columns: minmax(90px, 130px) 1fr;
    gap: 16px; align-items: baseline;
    padding: 16px 0;
    border-bottom: 1px solid var(--line-dark);
}
.contact__row span {
    font-size: 10.5px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase;
    color: var(--muted-on-dark);
}
.contact__row a, .contact__row p { font-size: 1rem; color: var(--bg); }
.contact__row a { border-bottom: 1px solid var(--line-dark); transition: border-color .25s; }
.contact__row a:hover { border-color: var(--bg); }

.form-alert {
    padding: 16px 18px; margin-bottom: 26px;
    border: 1px solid var(--line-dark);
    border-radius: var(--radius);
    font-size: .95rem;
}
.form-alert--success { border-color: rgba(250, 249, 246, .5); }
.form-alert--error { border-color: #B4685C; color: #DCA79E; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(18px, 3vw, 32px); }
.form-field { margin-bottom: 26px; display: flex; flex-direction: column; }
.form-field label {
    font-size: 10.5px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase;
    color: var(--muted-on-dark);
    margin-bottom: 10px;
}
.form-field input, .form-field select, .form-field textarea {
    font: inherit; color: var(--bg);
    background: transparent;
    border: 0; border-bottom: 1px solid var(--line-dark);
    border-radius: 0;
    padding: 8px 0 12px;
    transition: border-color .25s;
}
.form-field select { appearance: none; cursor: pointer; }
.form-field select option { color: var(--text); background: var(--bg); }
.form-field textarea { resize: vertical; min-height: 110px; }
.form-field input:focus, .form-field select:focus, .form-field textarea:focus {
    outline: none; border-color: var(--bg);
}
.form-field input[aria-invalid="true"],
.form-field select[aria-invalid="true"],
.form-field textarea[aria-invalid="true"] { border-color: #B4685C; }
.form-error { margin-top: 8px; font-size: .85rem; color: #DCA79E; }
.hp-field { position: absolute; left: -9999px; opacity: 0; pointer-events: none; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: var(--bg); }
.footer-top {
    border-top: 1px solid var(--line-dark);
    padding-block: clamp(48px, 6vw, 72px);
    display: grid;
    grid-template-columns: 1.3fr 1fr 1fr 1fr;
    gap: clamp(28px, 4vw, 56px);
}
.footer-brand .brand { color: var(--bg); }
.footer-brand p {
    margin-top: 16px;
    color: var(--muted-on-dark);
    font-size: .93rem;
    max-width: 32ch;
}
.footer-col { display: flex; flex-direction: column; align-items: flex-start; gap: 11px; }
.footer-col h4 {
    font-family: var(--sans);
    font-size: 10.5px; font-weight: 600; letter-spacing: .22em; text-transform: uppercase;
    color: var(--muted-on-dark);
    margin-bottom: 6px;
}
.footer-col a, .footer-col span { font-size: .93rem; color: var(--bg); }
.footer-col span { color: var(--muted-on-dark); }
.footer-col a { border-bottom: 1px solid transparent; transition: border-color .25s; }
.footer-col a:hover { border-color: var(--bg); }

.footer-bar {
    border-top: 1px solid var(--line-dark);
    padding-block: 22px;
    display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap;
    font-size: 12px; color: var(--muted-on-dark);
}
.footer-bar__motto { font-family: var(--serif); font-size: .95rem; }
.footer-bar__top:hover { color: var(--bg); }

/* ---------- Page head (sub-pages) ---------- */
.page-head {
    padding-top: calc(var(--nav-h) + clamp(52px, 8vh, 100px));
    padding-bottom: clamp(44px, 6vw, 80px);
}
.page-head h1 {
    font-size: clamp(2.4rem, 4.6vw, 3.8rem);
    line-height: 1.06;
    letter-spacing: -0.015em;
    margin-top: 24px;
    max-width: 16ch;
}
.page-head .lead {
    margin-top: 20px;
    font-size: clamp(1.05rem, 1.4vw, 1.2rem);
    color: var(--muted);
    max-width: 52ch;
}
.page-head__actions { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; margin-top: 34px; }

/* ---------- Journal ---------- */
.journal { border-top: 1px solid var(--line); margin-bottom: var(--sec-pad); }
.journal__row {
    display: grid;
    grid-template-columns: minmax(120px, 190px) 1fr auto;
    gap: clamp(20px, 4vw, 56px);
    align-items: baseline;
    padding: clamp(26px, 3.4vw, 38px) 0;
    border-bottom: 1px solid var(--line);
}
.journal__meta {
    display: flex; flex-direction: column; gap: 5px;
    font-size: 11px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase;
    color: var(--muted);
}
.journal__row h2 {
    font-size: clamp(1.4rem, 2.4vw, 1.9rem);
    line-height: 1.25;
    transition: color .25s;
}
.journal__row:hover h2 { color: var(--accent); }
.journal__row p { margin-top: 8px; color: var(--muted); font-size: .98rem; max-width: 62ch; }
.journal__row .go {
    font-size: 1.1rem; color: var(--muted);
    transition: transform .25s var(--ease), color .25s;
}
.journal__row:hover .go { transform: translateX(4px); color: var(--ink); }

.journal-empty {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
    padding: clamp(48px, 7vw, 88px) clamp(24px, 4vw, 60px);
    text-align: center;
    margin-bottom: var(--sec-pad);
}
.journal-empty h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); }
.journal-empty p { margin-top: 12px; color: var(--muted); max-width: 54ch; margin-inline: auto; }
.journal-empty .text-link { margin-top: 26px; }

/* ---------- Article ---------- */
.article-head { text-align: center; }
.article-head h1 { margin-inline: auto; max-width: 22ch; }
.article-head__meta {
    margin-top: 22px;
    display: flex; justify-content: center; gap: 22px; flex-wrap: wrap;
    font-size: 11px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase;
    color: var(--muted);
}
.article-body {
    font-family: var(--serif);
    font-size: 1.16rem;
    line-height: 1.85;
    color: var(--text);
    padding-top: clamp(36px, 5vw, 56px);
}
.article-foot {
    border-top: 1px solid var(--line);
    margin-top: clamp(40px, 5vw, 60px);
    padding-top: 30px;
    padding-bottom: var(--sec-pad);
    display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
}

/* ---------- Split (sub-pages) ---------- */
.split {
    display: grid;
    grid-template-columns: minmax(230px, 360px) 1fr;
    gap: clamp(40px, 6vw, 96px);
    align-items: start;
}
.split__aside img {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: 0 24px 48px rgba(20, 24, 27, .08);
}
.split__body .lede {
    font-family: var(--serif);
    font-size: clamp(1.2rem, 1.8vw, 1.45rem);
    line-height: 1.55;
    color: var(--ink);
}
.split__body p + p { margin-top: 18px; color: var(--muted); }

.def-rows { margin-top: 38px; border-top: 1px solid var(--line); }
.def-row {
    display: grid; grid-template-columns: minmax(110px, 180px) 1fr;
    gap: 18px; padding: 16px 0;
    border-bottom: 1px solid var(--line);
    align-items: baseline;
}
.def-row span {
    font-size: 10.5px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase;
    color: var(--muted);
}

/* ---------- Closing CTA (sub-pages) ---------- */
.closing {
    text-align: center;
    padding-block: clamp(72px, 9vw, 120px);
}
.closing h2 {
    font-size: clamp(1.8rem, 3.2vw, 2.6rem);
    line-height: 1.2;
    max-width: 22ch;
    margin-inline: auto;
}
.closing p {
    margin-top: 14px;
    color: var(--muted);
    font-size: 1rem;
}
.closing__actions { margin-top: 32px; display: flex; justify-content: center; align-items: center; gap: 24px; flex-wrap: wrap; }

/* ---------- Reveal on scroll ---------- */
[data-reveal] {
    opacity: 0; transform: translateY(16px);
    transition: opacity .7s var(--ease), transform .7s var(--ease);
    transition-delay: calc(var(--i, 0) * 80ms);
}
[data-reveal].in-view { opacity: 1; transform: none; }
.no-js [data-reveal] { opacity: 1; transform: none; }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
    [data-reveal], .fade-up { opacity: 1; transform: none; }
}

/* ---------- Breakpoints ---------- */
@media (max-width: 1080px) {
    .testimonials { grid-template-columns: 1fr; gap: 40px; }
    .tstm blockquote { max-width: 60ch; }
}

@media (max-width: 920px) {
    .site-nav__links, .site-nav__cta { display: none; }

    .books-teaser { grid-template-columns: 1fr; gap: 36px; }

    .hero__grid { grid-template-columns: 1fr; gap: 44px; }
    .hero__portrait { max-width: 400px; order: -1; }
    .hero h1 { max-width: none; }

    .about-grid { grid-template-columns: 1fr; gap: 32px; }
    .stats { grid-template-columns: 1fr 1fr; }
    .stat:nth-child(2n) { border-right: 0; }
    .stat:nth-child(-n+2) { border-bottom: 1px solid var(--line); }

    .ventures { grid-template-columns: 1fr; }
    .venture { min-height: 0; }

    .book, .book--flip { grid-template-columns: 1fr; gap: 36px; }
    .book--flip .book__cover { order: 0; }
    .book__cover { max-width: 340px; }

    .program { grid-template-columns: 1fr; }
    .program__panel { max-width: 440px; }

    .services { grid-template-columns: 1fr; }

    .contact { grid-template-columns: 1fr; }
    .footer-top { grid-template-columns: 1fr 1fr; }

    .split { grid-template-columns: 1fr; }
    .split__aside { max-width: 320px; }
}

@media (max-width: 620px) {
    :root { --nav-h: 64px; }
    body { font-size: 16px; }
    .form-row { grid-template-columns: 1fr; }
    .stats { grid-template-columns: 1fr 1fr; }
    .timeline__row { grid-template-columns: 1fr; gap: 8px; }
    .journal__row { grid-template-columns: 1fr; gap: 10px; }
    .journal__row .go { display: none; }
    .journal__meta { flex-direction: row; gap: 14px; }
    .footer-top { grid-template-columns: 1fr; }
    .affiliations { gap: 14px 24px; }
    .affiliations__label { width: 100%; margin-right: 0; }
    .hero__actions .btn { width: 100%; }
}

/* ---------- Gallery ---------- */
.gallery-meta {
    display: flex; gap: clamp(20px, 4vw, 44px); flex-wrap: wrap;
    margin-top: clamp(30px, 4vw, 42px);
    padding-top: 18px;
    border-top: 1px solid var(--line);
    font-size: 11px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase;
    color: var(--muted);
}
.gallery-meta strong { color: var(--ink); font-weight: 600; }

.gallery-grid {
    column-count: 4;
    column-gap: clamp(10px, 1.3vw, 18px);
}
.gallery__item {
    display: block;
    position: relative;
    break-inside: avoid;
    margin-bottom: clamp(10px, 1.3vw, 18px);
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--bg-alt);
}
.gallery__item[hidden] { display: none; }
.gallery__item img {
    width: 100%; height: auto;
    filter: saturate(.94);
    transition: transform .7s var(--ease), filter .7s var(--ease);
}
/* hairline veil so the frame number stays legible over bright photographs */
.gallery__item::after {
    content: "";
    position: absolute; inset: 0;
    background: linear-gradient(to top, rgba(20, 24, 27, .34), rgba(20, 24, 27, 0) 45%);
    opacity: 0;
    transition: opacity .45s var(--ease);
}
.gallery__item:hover img,
.gallery__item:focus-visible img { transform: scale(1.035); filter: saturate(1); }
.gallery__item:hover::after,
.gallery__item:focus-visible::after { opacity: 1; }

.gallery__num {
    position: absolute; left: 14px; bottom: 12px; z-index: 2;
    font-size: 10.5px; font-weight: 600; letter-spacing: .2em;
    color: var(--bg);
    opacity: 0; transform: translateY(6px);
    transition: opacity .4s var(--ease), transform .4s var(--ease);
}
.gallery__item:hover .gallery__num,
.gallery__item:focus-visible .gallery__num { opacity: 1; transform: none; }

.gallery-more {
    display: flex; flex-direction: column; align-items: center; gap: 14px;
    margin-top: clamp(40px, 5vw, 60px);
}
.gallery-more__count {
    font-size: 11px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase;
    color: var(--muted);
}
.gallery-more[hidden] { display: none; }


/* ---------- Lightbox ---------- */
.lightbox {
    position: fixed; inset: 0; z-index: 200;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    grid-template-rows: minmax(0, 1fr) auto;
    gap: clamp(8px, 2vw, 26px);
    padding: clamp(58px, 8vh, 88px) clamp(12px, 3vw, 40px) clamp(20px, 3vh, 34px);
    /* Solid from the first frame — a viewer's backdrop must never depend on an
       animation or a stacking-context trick to hide the page behind it. The entrance
       polish is carried by the photograph's own fade-in (see .is-loading below). */
    background: #14181B;
}
.lightbox[hidden] { display: none; }

.lightbox__stage {
    grid-column: 2; grid-row: 1;
    position: relative;
    display: flex; align-items: center; justify-content: center;
    min-width: 0; min-height: 0;
}
.lightbox__stage img {
    max-width: 100%; max-height: 100%;
    width: auto; height: auto;
    border-radius: var(--radius);
    transition: opacity .3s var(--ease);
}
.lightbox.is-loading .lightbox__stage img { opacity: 0; }
/* quiet loading tick — no spinner, in keeping with the rest of the site */
.lightbox__stage::after {
    content: "Loading";
    position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
    font-size: 10.5px; font-weight: 600; letter-spacing: .24em; text-transform: uppercase;
    color: var(--muted-on-dark);
    opacity: 0; transition: opacity .3s var(--ease) .25s;
    pointer-events: none;
}
.lightbox.is-loading .lightbox__stage::after { opacity: 1; }

.lightbox__nav {
    grid-row: 1;
    align-self: center;
    display: flex; align-items: center; justify-content: center;
    width: clamp(42px, 5vw, 54px); height: clamp(42px, 5vw, 54px);
    font-size: 1.15rem;
    color: var(--bg);
    border: 1px solid var(--line-dark);
    border-radius: 50%;
    transition: border-color .25s var(--ease), background .25s var(--ease);
}
.lightbox__nav:hover { background: rgba(250, 249, 246, .1); border-color: rgba(250, 249, 246, .4); }
.lightbox__nav--prev { grid-column: 1; }
.lightbox__nav--next { grid-column: 3; }

.lightbox__close {
    position: absolute; top: clamp(18px, 3vh, 30px); right: clamp(14px, 3vw, 40px);
    font-size: 11px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase;
    color: var(--bg);
    padding-bottom: 3px;
    border-bottom: 1px solid var(--line-dark);
    transition: border-color .25s var(--ease);
}
.lightbox__close:hover { border-color: var(--bg); }

.lightbox__counter {
    grid-column: 1 / -1; grid-row: 2;
    align-self: end;
    text-align: center;
    font-size: 11px; font-weight: 600; letter-spacing: .22em;
    color: var(--muted-on-dark);
}
.lightbox__counter b { color: var(--bg); font-weight: 600; }

/* ---------- Gallery breakpoints ---------- */
@media (max-width: 1080px) { .gallery-grid { column-count: 3; } }
@media (max-width: 760px)  { .gallery-grid { column-count: 2; } }
@media (max-width: 420px)  { .gallery-grid { column-count: 1; } }

@media (max-width: 760px) {
    /* controls drop into one row beneath the photo so the image keeps the full width */
    .lightbox { padding-inline: clamp(10px, 3vw, 20px); }
    .lightbox__stage { grid-column: 1 / -1; }
    .lightbox__nav { grid-row: 2; align-self: center; }
    .lightbox__counter { grid-column: 2; grid-row: 2; align-self: center; }
}

/* ---------- Mobile bottom bar ---------- */
.tabbar {
    display: none;
    position: fixed; inset: auto 0 0 0; z-index: 90;
    background: rgba(250, 249, 246, .96);
    -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
    border-top: 1px solid var(--line);
    padding-bottom: env(safe-area-inset-bottom, 0px);
}
.tabbar__item {
    flex: 1 1 0;
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
    min-width: 0;
    padding: 9px 2px 8px;
    color: var(--muted);
    text-align: center;
    transition: color .25s var(--ease);
}
.tabbar__item svg { width: 22px; height: 22px; flex: none; }
.tabbar__item span {
    font-size: 10px; font-weight: 600; letter-spacing: .06em;
    max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.tabbar__item.is-active { color: var(--ink); }
/* the active marker sits on the top hairline, echoing the desktop nav underline */
.tabbar__item.is-active::before {
    content: ""; position: absolute; top: -1px;
    left: 50%; transform: translateX(-50%);   /* explicit, not the static-position fallback */
    width: 26px; height: 2px; background: var(--accent);
    border-radius: 0 0 2px 2px;
}
.tabbar__item:active { color: var(--ink); }

/* Below the desktop nav breakpoint the bar replaces the inline links entirely. */
@media (max-width: 920px) {
    .tabbar { display: flex; align-items: stretch; }
    .tabbar__item { position: relative; }
    /* keep the bar off the page content and above the safe area */
    body { padding-bottom: calc(62px + env(safe-area-inset-bottom, 0px)); }
    .nav-actions { display: flex; }
}

/* A full-screen viewer covers the bar; nothing should float over a photograph. */
body.no-scroll .tabbar { visibility: hidden; }

/* ---------- Breadcrumbs ---------- */
.crumbs {
    padding-top: calc(var(--nav-h) + 18px);
    margin-bottom: -18px;
}
.crumbs + main .page-head,
.crumbs + main .hero { padding-top: clamp(28px, 4vh, 46px); }
.crumbs ol {
    display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
    list-style: none;
    font-size: 11px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase;
    color: var(--muted);
}
.crumbs li { display: flex; align-items: center; gap: 8px; }
.crumbs li + li::before { content: "/"; color: var(--line); font-weight: 400; }
.crumbs a { color: var(--muted); border-bottom: 1px solid transparent; transition: color .25s var(--ease), border-color .25s var(--ease); }
.crumbs a:hover { color: var(--ink); border-bottom-color: var(--line); }
.crumbs [aria-current] { color: var(--ink); }
@media (max-width: 620px) {
    .crumbs ol { font-size: 10px; letter-spacing: .12em; }
}

/* ---------- Search ---------- */
.visually-hidden {
    position: absolute; width: 1px; height: 1px; overflow: hidden;
    clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}

.searchbar {
    position: relative;
    display: flex; align-items: center; gap: 10px;
    margin-top: 32px;
    max-width: 620px;
    padding: 6px 6px 6px 16px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    transition: border-color .25s var(--ease), box-shadow .25s var(--ease);
}
.searchbar:focus-within { border-color: var(--ink); box-shadow: 0 6px 26px rgba(20, 24, 27, .07); }
.searchbar__icon { width: 19px; height: 19px; color: var(--muted); flex: none; }
.searchbar input {
    flex: 1 1 auto; min-width: 0;
    font: inherit; font-size: 1rem;
    color: var(--ink);
    background: none; border: 0; padding: 12px 0;
}
.searchbar input::placeholder { color: var(--muted); }
.searchbar input:focus { outline: none; }
.searchbar input::-webkit-search-cancel-button { -webkit-appearance: none; }
.searchbar .btn { flex: none; padding: 12px 22px; }

/* Autocomplete */
.suggestions {
    position: absolute; top: calc(100% + 8px); left: 0; right: 0; z-index: 60;
    list-style: none;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: 0 18px 44px rgba(20, 24, 27, .12);
    overflow: hidden;
}
.suggestions[hidden] { display: none; }
.suggestions a {
    display: flex; align-items: baseline; justify-content: space-between; gap: 16px;
    padding: 12px 16px;
    border-bottom: 1px solid var(--line);
}
.suggestions li:last-child a { border-bottom: 0; }
.suggestions a:hover,
.suggestions .is-active a { background: var(--bg-alt); }
.suggestions strong { font-weight: 400; font-family: var(--serif); font-size: 1.02rem; color: var(--ink); }
.suggestions span {
    flex: none;
    font-size: 10px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase;
    color: var(--muted);
}

.search-count { margin-top: 22px; font-size: .95rem; color: var(--muted); }

/* Identity card — the portfolio itself, for a name search */
.identity {
    display: flex; align-items: flex-start; justify-content: space-between; gap: clamp(20px, 4vw, 48px);
    padding: clamp(26px, 3.5vw, 40px);
    border: 1px solid var(--line);
    border-left: 2px solid var(--accent);
    border-radius: var(--radius);
    background: var(--surface);
    margin-bottom: clamp(32px, 4vw, 46px);
}
.identity__kicker {
    font-size: 10.5px; font-weight: 600; letter-spacing: .22em; text-transform: uppercase;
    color: var(--accent-text);
}
.identity h2 { font-size: clamp(1.6rem, 3vw, 2.15rem); line-height: 1.15; margin-top: 10px; }
.identity h2 a:hover { color: var(--accent); }
.identity__url { margin-top: 6px; font-size: .85rem; color: var(--muted); }
.identity__desc { margin-top: 14px; color: var(--muted); max-width: 56ch; }
.identity__links {
    display: flex; flex-wrap: wrap; gap: 10px 26px;
    margin-top: 20px; padding-top: 18px;
    border-top: 1px solid var(--line);
    list-style: none;
}
.identity__links a {
    font-size: 11.5px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
    color: var(--ink);
    padding-bottom: 2px; border-bottom: 1px solid var(--line);
    transition: border-color .25s var(--ease);
}
.identity__links a:hover { border-color: var(--ink); }
.identity__photo {
    flex: none; width: 96px; height: 96px;
    object-fit: cover; border-radius: 50%;
    border: 1px solid var(--line);
}

/* Category chips */
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: clamp(26px, 3vw, 38px); }
.chip {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 8px 15px;
    font-size: 11px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
    color: var(--muted);
    border: 1px solid var(--line);
    border-radius: 100px;
    transition: color .25s var(--ease), border-color .25s var(--ease), background .25s var(--ease);
}
.chip span { font-size: 10px; opacity: .7; }
.chip:hover { color: var(--ink); border-color: var(--ink); }
.chip.is-active { background: var(--ink); border-color: var(--ink); color: var(--bg); }

/* Result list */
.results + .results { margin-top: clamp(30px, 4vw, 44px); }
.results__head {
    font-size: 11px; font-weight: 600; letter-spacing: .22em; text-transform: uppercase;
    font-family: var(--sans); color: var(--muted);
    padding-bottom: 12px; border-bottom: 1px solid var(--line);
}
.results__list { list-style: none; }
.result { border-bottom: 1px solid var(--line); }
.result > a { display: block; padding: 22px 0; }
.result h3 {
    font-size: clamp(1.15rem, 2vw, 1.4rem); line-height: 1.3;
    transition: color .25s var(--ease);
}
.result > a:hover h3 { color: var(--accent); }
.result__ext { font-size: .8em; color: var(--muted); }
.result__meta {
    display: inline-block; margin-top: 7px;
    font-size: 10.5px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase;
    color: var(--muted);
}
.result p { margin-top: 8px; color: var(--muted); font-size: .97rem; max-width: 70ch; }
.result__url { display: block; margin-top: 9px; font-size: .8rem; color: var(--accent-text); word-break: break-all; }

/* Empty-query browse grid */
.search-browse { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.search-browse__item { background: var(--bg); padding: clamp(22px, 3vw, 30px); transition: background .25s var(--ease); }
.search-browse__item:hover { background: var(--surface); }
.search-browse__item h3 { font-size: 1.2rem; }
.search-browse__item p { margin-top: 7px; color: var(--muted); font-size: .93rem; }

@media (max-width: 620px) {
    .identity { flex-direction: column-reverse; align-items: flex-start; }
    .identity__photo { width: 72px; height: 72px; }
    .searchbar { flex-wrap: wrap; padding-right: 10px; }
    .searchbar .btn { width: 100%; margin-bottom: 4px; }
}

/* Search entry points in the navigation */
.nav-search {
    display: inline-flex; align-items: center; justify-content: center;
    width: 38px; height: 38px;
    color: var(--ink);
    border-radius: 50%;
    transition: background .25s var(--ease);
}
.nav-search svg { width: 19px; height: 19px; }
.nav-search:hover { background: rgba(20, 24, 27, .06); }

.site-menu__search {
    display: flex; align-items: center; gap: 12px;
    margin-top: 14px; padding: 13px 16px;
    background: var(--bg-alt);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    font-size: 13px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase;
    color: var(--muted);
    flex: none;
}
.site-menu__search svg { width: 18px; height: 18px; }
.site-menu__search:hover { color: var(--ink); border-color: var(--ink); }
