/* ==========================================================================
   Kate K. Boye, PhD — Verified Credential Dossier
   Design system stylesheet
   ========================================================================== */

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html, body, h1, h2, h3, h4, p, figure, blockquote, dl, dd, ul, ol { margin: 0; }
ul[class], ol[class] { padding: 0; list-style: none; }
img, picture, svg { display: block; max-width: 100%; }
input, button, textarea, select { font: inherit; color: inherit; }
a { text-decoration: none; color: inherit; }
button { background: none; border: none; cursor: pointer; }

/* ---------- Design tokens ---------- */
:root {
    --bg: #0d1322;
    --bg-elevated: #151b2b;
    --surface: #191f2f;
    --surface-high: #242a3a;
    --surface-bright: #333949;

    --on-bg: #dce2f7;
    --on-surface-variant: #d2c4b6;

    --primary: #eabf87;
    --primary-container: #c29b66;
    --on-primary: #442b01;
    /* Deeper, more saturated gold for text/icons set against light
       (cream/white) surfaces — the light --primary gold reads as
       near-invisible there; this keeps the same hue family at a
       contrast ratio that's actually legible. */
    --primary-on-light: #8a5a17;

    --outline: #9b8f82;
    --outline-variant: #4e453a;

    --cream: #eee9e1;
    --cream-text: #2a3040;
    --cream-text-variant: #4e453a;
    --cream-outline: rgba(78, 69, 58, 0.2);

    --error: #ffb4ab;

    --font-display: "Source Serif 4", Georgia, serif;
    --font-body: "Hanken Grotesk", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    --font-mono: "JetBrains Mono", "SFMono-Regular", Consolas, monospace;

    --gutter: 24px;
    --margin-mobile: 20px;
    --margin-desktop: clamp(20px, 6vw, 80px);
    /* Two-tier rhythm: the full gap marks a real thematic break
       (hero -> content, dark -> light); the small gap separates
       sections that continue the same idea on the same surface. */
    --section-gap: clamp(56px, 8vw, 96px);
    --section-gap-sm: clamp(40px, 5vw, 64px);

    --radius-sm: 2px;
    --radius-lg: 4px;
    --radius-xl: 8px;
    --radius-full: 999px;

    --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ---------- Base ---------- */
html {
    scroll-behavior: smooth;
}
/* Keep anchor-link targets clear of the fixed navbar */
section[id] {
    scroll-margin-top: 96px;
}
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

body {
    background: var(--bg);
    color: var(--on-bg);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

.container {
    max-width: 1280px;
    margin-inline: auto;
    width: 100%;
}

.text-balance { text-wrap: balance; }

::selection { background: rgba(234, 191, 135, 0.3); }

/* Skip link */
.skip-link {
    position: absolute;
    left: -999px;
    top: 0;
    background: var(--primary);
    color: var(--on-primary);
    padding: 12px 20px;
    z-index: 1000;
    font-family: var(--font-mono);
    font-size: 13px;
}
.skip-link:focus {
    left: 12px;
    top: 12px;
}

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

/* ---------- Typography ---------- */
.eyebrow {
    font-family: var(--font-mono);
    font-size: 12px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    font-weight: 500;
}

.section-label {
    display: inline-block;
    padding: 4px 12px;
    border: 1px solid var(--outline-variant);
    margin-bottom: 24px;
}
.light-section .section-label { border-color: var(--cream-outline); }

.display-lg {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: clamp(32px, 5vw, 48px);
    line-height: 1.1;
    letter-spacing: -0.02em;
}
/* Signature rule under every major section heading — the recurring
   "dossier" mark that ties headings together site-wide. */
.display-lg::after {
    content: '';
    display: block;
    width: 56px;
    height: 3px;
    margin-top: 18px;
    background: var(--primary-on-light);
}

/* One hero title size for every page (home included) — kept to a
   max-width so it wraps into a left-aligned column instead of
   stretching edge to edge on wide screens. */
.hero-title {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: clamp(34px, 6vw, 64px);
    line-height: 1.1;
    letter-spacing: -0.02em;
    max-width: 720px;
}

.headline-lg {
    font-family: var(--font-display);
    font-weight: 500;
    font-size: clamp(24px, 3vw, 32px);
    line-height: 1.2;
}

.body-lg { font-size: clamp(16px, 2vw, 18px); line-height: 1.6; }
.body-md { font-size: 16px; line-height: 1.6; }

.text-muted { color: var(--on-surface-variant); }
.light-section .text-muted { color: var(--cream-text-variant); }
.text-primary { color: var(--primary); }
.light-section .text-primary { color: var(--primary-on-light); }
.italic { font-style: italic; }

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 16px 32px;
    font-family: var(--font-mono);
    font-size: 12px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    font-weight: 500;
    border-radius: var(--radius-sm);
    transition: transform 0.25s var(--ease), opacity 0.25s var(--ease), background-color 0.25s var(--ease);
    white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary {
    background: var(--primary);
    color: var(--on-primary);
}
.btn-primary:hover {
    opacity: 0.92;
    box-shadow: 0 10px 28px rgba(234, 191, 135, 0.35);
}
.btn-outline {
    border: 1px solid var(--outline-variant);
    color: var(--on-bg);
}
.btn-outline:hover { background: rgba(155, 143, 130, 0.12); }
.light-section .btn-outline {
    border-color: var(--cream-outline);
    color: var(--cream-text);
}

/* Buttons inside site "boxes" (the homepage teaser cards): gold by
   default, flipping to a white/gold-outline treatment on hover. */
.btn-box {
    background: var(--primary);
    color: var(--on-primary);
    border: 1px solid var(--primary);
    transition: transform 0.25s var(--ease), background-color 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease);
}
.btn-box:hover {
    background: #fff;
    color: var(--primary-on-light);
    border-color: var(--primary-on-light);
    box-shadow: none;
}

/* ---------- Seal icon (brand motif) ---------- */
.seal-icon {
    position: relative;
    width: 24px;
    height: 24px;
    border: 1px solid var(--primary);
    border-radius: 50%;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}
.seal-icon::after {
    content: '';
    width: 10px;
    height: 10px;
    border: 1px solid var(--primary);
    border-radius: 50%;
}
.seal-icon.sm { width: 16px; height: 16px; opacity: 0.5; }
.seal-icon.sm::after { width: 7px; height: 7px; }

/* The seal-icon doubles as a bullet marker in highlight/credential lists;
   the light hero gold nearly disappears against cream/white, so darken it
   wherever it sits on a light surface. */
.light-section .seal-icon,
.light-section .seal-icon::after {
    border-color: var(--primary-on-light);
}

/* ---------- Layout: sections ---------- */
.section {
    padding: var(--section-gap) var(--margin-mobile);
    background: var(--bg);
}
@media (min-width: 768px) { .section { padding-inline: var(--margin-desktop); } }

.section--tight { padding-top: 0; }
.section-divider {
    padding-top: var(--section-gap-sm);
}

.light-section {
    background: var(--cream);
    color: var(--cream-text);
}
.light-section .text-on-bg { color: var(--cream-text); }
/* Alternates a section to plain white instead of cream — same text/
   border rules as .light-section apply, only the surface changes. */
.light-section.bg-white { background: #fff; }

.dossier-border { border-bottom: 0.5px solid rgba(155, 143, 130, 0.3); }
.light-section .dossier-border { border-bottom: 0.5px solid rgba(78, 69, 58, 0.2); }

/* ---------- Navbar ---------- */
.navbar {
    position: fixed;
    top: 0;
    inset-inline: 0;
    z-index: 100;
    background: rgba(13, 19, 34, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(78, 69, 58, 0.3);
    transition: padding 0.3s var(--ease), background-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
    padding-block: 20px;
}
.navbar.is-scrolled {
    padding-block: 10px;
    background: rgba(13, 19, 34, 0.95);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.25);
}
.navbar__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    max-width: 1560px;
    margin-inline: auto;
    padding-inline: var(--margin-mobile);
}
@media (min-width: 768px) { .navbar__inner { padding-inline: var(--margin-desktop); } }

.navbar__logo {
    display: inline-flex;
    align-items: center;
}
.navbar__logo img {
    height: 44px;
    width: auto;
    display: block;
}

.navbar__links {
    display: none;
    align-items: center;
    gap: 24px;
}
@media (min-width: 768px) {
    .navbar__links {
        display: flex;
        justify-content: center;
        gap: 32px;
    }
}

.navbar__cta {
    padding: 10px 20px;
    font-size: 11px;
    flex-shrink: 0;
}
.navbar__cta--desktop { display: none; }
.navbar__cta--mobile { display: inline-flex; }
@media (min-width: 768px) {
    .navbar__cta--desktop { display: inline-flex; }
    .navbar__cta--mobile { display: none; }
}

.navbar__link {
    font-family: var(--font-mono);
    font-size: 12px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--on-surface-variant);
    transition: color 0.25s var(--ease);
    position: relative;
    padding-bottom: 2px;
    white-space: nowrap;
}
.navbar__link:hover { color: var(--primary); }
.navbar__link.is-active {
    color: var(--primary);
    font-weight: 600;
}
.navbar__link.is-active::after {
    content: '';
    position: absolute;
    left: 0; right: 0; bottom: -6px;
    height: 1px;
    background: var(--primary);
}

.navbar__toggle {
    display: flex;
    color: var(--on-bg);
    font-size: 28px;
}
@media (min-width: 768px) { .navbar__toggle { display: none; } }

/* Mobile menu panel */
.navbar__links[data-open="true"] {
    display: flex;
}
@media (max-width: 767px) {
    .navbar__links {
        position: fixed;
        top: 0;
        right: 0;
        height: 100dvh;
        width: min(78vw, 320px);
        background: var(--bg-elevated);
        border-left: 1px solid var(--outline-variant);
        flex-direction: column;
        align-items: flex-start;
        justify-content: center;
        gap: 28px;
        padding: 40px var(--margin-mobile);
        transform: translateX(100%);
        transition: transform 0.35s var(--ease);
        z-index: 99;
    }
    .navbar__links[data-open="true"] { transform: translateX(0); }
    .navbar__link { font-size: 14px; }
}

.navbar__scrim {
    position: fixed;
    inset: 0;
    background: rgba(8, 14, 29, 0.6);
    z-index: 98;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s var(--ease);
}
.navbar__scrim[data-open="true"] {
    opacity: 1;
    pointer-events: auto;
}

/* ---------- Hero ---------- */
.hero {
    position: relative;
    padding: 152px var(--margin-mobile) 72px;
    background-color: var(--bg);
    overflow: hidden;
}
@media (min-width: 768px) { .hero { padding-inline: var(--margin-desktop); } }

/* Per-page hero background photo. A CSS custom property swapped in via
   inline style proved unreliable for the image layer in a multi-layer
   background-image list, so each page gets its own explicit class
   instead — same recipe (glow + dark overlay + photo), only the url()
   changes. This is the standard, robust pattern for page-specific
   hero art. */
.hero-home,
.hero-about,
.hero-speaking,
.hero-publications,
.hero-services,
.hero-contact {
    background-position: center, center, center, 78% 25%;
    background-size: auto, auto, auto, cover;
    background-repeat: no-repeat, no-repeat, no-repeat, no-repeat;
}
.hero-home {
    background-image:
        radial-gradient(ellipse 900px 500px at 15% -10%, rgba(234, 191, 135, 0.16), transparent 60%),
        radial-gradient(ellipse 700px 500px at 100% 0%, rgba(194, 155, 102, 0.12), transparent 60%),
        linear-gradient(90deg, rgba(9, 13, 24, 0.92) 0%, rgba(9, 13, 24, 0.75) 32%, rgba(9, 13, 24, 0.3) 62%, rgba(9, 13, 24, 0.12) 100%),
        url("../img/1.png");
}
.hero-about {
    background-image:
        radial-gradient(ellipse 900px 500px at 15% -10%, rgba(234, 191, 135, 0.16), transparent 60%),
        radial-gradient(ellipse 700px 500px at 100% 0%, rgba(194, 155, 102, 0.12), transparent 60%),
        linear-gradient(90deg, rgba(9, 13, 24, 0.92) 0%, rgba(9, 13, 24, 0.75) 32%, rgba(9, 13, 24, 0.3) 62%, rgba(9, 13, 24, 0.12) 100%),
        url("../img/2.png");
}
.hero-speaking {
    background-image:
        radial-gradient(ellipse 900px 500px at 15% -10%, rgba(234, 191, 135, 0.16), transparent 60%),
        radial-gradient(ellipse 700px 500px at 100% 0%, rgba(194, 155, 102, 0.12), transparent 60%),
        linear-gradient(90deg, rgba(9, 13, 24, 0.92) 0%, rgba(9, 13, 24, 0.75) 32%, rgba(9, 13, 24, 0.3) 62%, rgba(9, 13, 24, 0.12) 100%),
        url("../img/3.png");
}
.hero-publications {
    background-image:
        radial-gradient(ellipse 900px 500px at 15% -10%, rgba(234, 191, 135, 0.16), transparent 60%),
        radial-gradient(ellipse 700px 500px at 100% 0%, rgba(194, 155, 102, 0.12), transparent 60%),
        linear-gradient(90deg, rgba(9, 13, 24, 0.92) 0%, rgba(9, 13, 24, 0.75) 32%, rgba(9, 13, 24, 0.3) 62%, rgba(9, 13, 24, 0.12) 100%),
        url("../img/4.png");
}
.hero-services {
    background-image:
        radial-gradient(ellipse 900px 500px at 15% -10%, rgba(234, 191, 135, 0.16), transparent 60%),
        radial-gradient(ellipse 700px 500px at 100% 0%, rgba(194, 155, 102, 0.12), transparent 60%),
        linear-gradient(90deg, rgba(9, 13, 24, 0.92) 0%, rgba(9, 13, 24, 0.75) 32%, rgba(9, 13, 24, 0.3) 62%, rgba(9, 13, 24, 0.12) 100%),
        url("../img/1.png");
}
.hero-contact {
    background-image:
        radial-gradient(ellipse 900px 500px at 15% -10%, rgba(234, 191, 135, 0.16), transparent 60%),
        radial-gradient(ellipse 700px 500px at 100% 0%, rgba(194, 155, 102, 0.12), transparent 60%),
        linear-gradient(90deg, rgba(9, 13, 24, 0.92) 0%, rgba(9, 13, 24, 0.75) 32%, rgba(9, 13, 24, 0.3) 62%, rgba(9, 13, 24, 0.12) 100%),
        url("../img/2.png");
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.035'/%3E%3C/svg%3E");
    pointer-events: none;
}

/* Faint concentric seal watermark — the "verified dossier" motif,
   restated large in the background. Off-canvas on the right so it
   never competes with the title text. */
.hero::after {
    content: '';
    position: absolute;
    top: 50%;
    right: -160px;
    width: 420px;
    height: 420px;
    border: 1px solid rgba(234, 191, 135, 0.14);
    border-radius: 50%;
    box-shadow: 0 0 0 56px rgba(234, 191, 135, 0.035);
    transform: translateY(-50%);
    pointer-events: none;
}
@media (max-width: 767px) { .hero::after { display: none; } }

.hero .container { position: relative; z-index: 1; }

/* ---------- Achievement ticker (home page, under the hero) ---------- */
.ticker {
    background: var(--bg-elevated);
    border-top: 1px solid rgba(234, 191, 135, 0.18);
    border-bottom: 1px solid rgba(234, 191, 135, 0.18);
    padding-block: 16px;
    overflow: hidden;
}
.ticker__inner {
    display: flex;
    align-items: center;
    gap: 20px;
}
.ticker__label {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
    padding-right: 20px;
    border-right: 1px solid rgba(234, 191, 135, 0.2);
    font-weight: 700;
    text-transform: none;
    color: var(--primary);
}
.ticker__label .material-symbols-outlined { font-size: 16px; }
.ticker__stage {
    position: relative;
    flex: 1;
    height: 20px;
    overflow: hidden;
}
.ticker__item {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    font-family: var(--font-mono);
    font-size: 13px;
    letter-spacing: 0.03em;
    color: var(--on-bg);
    opacity: 0;
    transform: translateY(14px);
    transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.ticker__item.is-active {
    opacity: 1;
    transform: translateY(0);
}
.ticker__item.is-leaving {
    opacity: 0;
    transform: translateY(-14px);
}

.hero__eyebrow {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 32px;
}

.hero__cta {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

/* Sub-page hero: same brand treatment as the homepage hero, sized down */
.hero--page {
    padding: 140px var(--margin-mobile) 56px;
}
@media (min-width: 768px) { .hero--page { padding-inline: var(--margin-desktop); } }

.hero__caption {
    max-width: 42rem;
}

/* ---------- Grid helpers ---------- */
.grid { display: grid; gap: var(--gutter); }
.grid-2 { grid-template-columns: 1fr; }
.grid-3 { grid-template-columns: 1fr; }
.grid-12 { grid-template-columns: 1fr; }
@media (min-width: 768px) {
    .grid-2 { grid-template-columns: repeat(2, 1fr); }
    .grid-3 { grid-template-columns: repeat(3, 1fr); }
    .grid-12 { grid-template-columns: repeat(12, 1fr); }
}
.col-span-7 { grid-column: span 12; }
.col-span-4-end { grid-column: span 12; }
.col-span-4 { grid-column: span 12; }
.col-span-8 { grid-column: span 12; }
@media (min-width: 768px) {
    .col-span-7 { grid-column: span 7; }
    .col-span-4-end { grid-column: 9 / 13; }
    .col-span-4 { grid-column: span 4; }
    .col-span-8 { grid-column: span 8; }
}
.items-start { align-items: start; }

/* ---------- Cards ---------- */
.card {
    position: relative;
    padding: clamp(24px, 4vw, 40px);
    border: 1px solid var(--cream-outline);
    background: #fff;
    box-shadow: 0 1px 2px rgba(42, 48, 64, 0.05);
    overflow: hidden;
    transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 40px rgba(42, 48, 64, 0.12);
}
.card__head {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

/* Shared hover accent: a gold rule that sweeps in from the left —
   the one hover "signature" reused across every card-like component. */
.card::before,
.page-teaser::before,
.service-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: var(--primary-on-light);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s var(--ease);
}
.card:hover::before,
.page-teaser:hover::before,
.service-card:hover::before {
    transform: scaleX(1);
}
.card__title {
    font-family: var(--font-display);
    font-weight: 500;
    font-size: 22px;
    line-height: 1.25;
}

/* Homepage "explore the site" teaser cards — brief + read-more button */
.page-teaser-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--gutter);
}
@media (min-width: 640px) { .page-teaser-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .page-teaser-grid { grid-template-columns: repeat(3, 1fr); } }

.page-teaser {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: clamp(28px, 4vw, 40px);
    border: 1px solid var(--cream-outline);
    background: #fff;
    box-shadow: 0 1px 2px rgba(42, 48, 64, 0.05);
    overflow: hidden;
    transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.page-teaser:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 40px rgba(42, 48, 64, 0.1);
}
.page-teaser__head {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
}
.page-teaser__eyebrow { display: block; }
.page-teaser__title {
    font-family: var(--font-display);
    font-weight: 500;
    font-size: clamp(22px, 2.4vw, 26px);
    line-height: 1.2;
    margin-bottom: 12px;
}
.page-teaser p { margin-bottom: 28px; flex: 1; }

/* Standalone service card — same box, gap and hover language as the
   homepage page-teaser grid, just without the "read more" button. */
.service-card {
    position: relative;
    display: flex;
    flex-direction: column;
    padding: clamp(24px, 4vw, 40px);
    border: 1px solid var(--cream-outline);
    background: #fff;
    box-shadow: 0 1px 2px rgba(42, 48, 64, 0.05);
    overflow: hidden;
    transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.service-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 40px rgba(42, 48, 64, 0.1);
}
.service-card__head {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}
.service-card__title {
    font-family: var(--font-mono);
    font-size: 12px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    font-weight: 700;
}

.panel {
    border: 1px solid var(--cream-outline);
    background: #fff;
    box-shadow: 0 1px 2px rgba(42, 48, 64, 0.05);
    overflow: hidden;
}

.services-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--gutter);
}
@media (min-width: 640px) { .services-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .services-grid { grid-template-columns: repeat(3, 1fr); } }

/* Credential category box — each certification group gets its own
   clearly bordered card with an icon-labeled heading, instead of one
   long undifferentiated wall of rows. */
.credential-card {
    padding: clamp(24px, 4vw, 36px);
    border: 1px solid var(--cream-outline);
    background: #fff;
    box-shadow: 0 1px 2px rgba(42, 48, 64, 0.05);
}
.credential-card__head {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 20px;
}
.credential-card__title {
    font-family: var(--font-display);
    font-weight: 500;
    font-size: 20px;
}
.credential-card .row:last-child,
.credential-card .row--compact:last-child { padding-bottom: 0; }

/* ---------- Timeline / list rows ---------- */
.row {
    padding-block: 32px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
}
@media (min-width: 768px) {
    .row { flex-direction: row; align-items: center; }
}
.row--compact { padding-block: 16px; }

.tag {
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--outline);
    white-space: nowrap;
}

/* Icon + text pairing (highlights, engagement/teaching lists) — grouped
   tightly on the left rather than the space-between two-endpoint layout
   used by `.row` for title/date pairs. */
.highlight-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding-block: 4px;
}
.highlight-item .seal-icon { margin-top: 3px; }
.highlight-item > :last-child { flex: 1; min-width: 0; }

/* ---------- Icon badge (used beside box/card titles site-wide) ---------- */
.icon-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    flex-shrink: 0;
    border: 1px solid var(--primary-on-light);
    border-radius: 50%;
    color: var(--primary-on-light);
}
.icon-badge .material-symbols-outlined { font-size: 18px; }
.icon-badge.sm { width: 26px; height: 26px; }
.icon-badge.sm .material-symbols-outlined { font-size: 15px; }
.contact-item__head {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}
.contact-item__head .footer__item-label { margin-bottom: 0; }
/* On dark surfaces (hero) the light gold reads fine on its own */
.hero .icon-badge {
    border-color: var(--primary);
    color: var(--primary);
}

/* ---------- Image holder (photo frame; also doubles as a placeholder
   when no <img> is present) ---------- */
.image-holder {
    position: relative;
    aspect-ratio: 4 / 5;
    border: 1px solid var(--cream-outline);
    background: linear-gradient(135deg, rgba(138, 90, 23, 0.07), rgba(42, 48, 64, 0.05));
    box-shadow: 0 1px 2px rgba(42, 48, 64, 0.05);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    overflow: hidden;
}
.image-holder--landscape { aspect-ratio: 16 / 10; }
.image-holder--square { aspect-ratio: 1 / 0.45; }
.image-holder--square img { object-fit: contain; }
.image-holder--compact { max-width: 280px; }
.image-holder::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: repeating-linear-gradient(135deg, rgba(78, 69, 58, 0.06) 0 2px, transparent 2px 16px);
}
.image-holder img {
    position: relative;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 15%;
    display: block;
}
.image-holder__icon {
    position: relative;
    font-size: 44px;
    color: var(--primary-on-light);
    opacity: 0.55;
}
.image-holder__label {
    position: relative;
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--cream-text-variant);
    opacity: 0.65;
}

/* ---------- Reveal-on-scroll ---------- */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* ---------- Footer ---------- */
.site-footer {
    background: var(--bg);
    padding: var(--section-gap) var(--margin-mobile) 40px;
}
@media (min-width: 768px) { .site-footer { padding-inline: var(--margin-desktop); } }

.footer__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px var(--gutter);
    margin-bottom: 64px;
}
@media (min-width: 640px) { .footer__grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .footer__grid { grid-template-columns: repeat(4, 1fr); } }

.footer__brand .navbar__logo { display: inline-block; margin-bottom: 16px; }
.footer__brand .navbar__logo img { height: 55px; }
.footer__blurb { max-width: 280px; margin-bottom: 20px; }
.footer__seal {
    display: flex;
    align-items: center;
    gap: 10px;
    opacity: 0.7;
}

.footer__item-label {
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--outline);
    display: block;
    margin-bottom: 14px;
}
.footer__links {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.footer__links a {
    font-size: 15px;
    color: var(--on-bg);
    transition: color 0.25s var(--ease);
}
.footer__links a:hover { color: var(--primary); }

.footer__link {
    font-size: 18px;
    border-bottom: 1px solid rgba(234, 191, 135, 0.2);
    padding-bottom: 4px;
    transition: color 0.25s var(--ease);
}
.footer__link:hover { color: var(--primary); }
.footer__grid a:hover { color: var(--primary); }

.footer__bottom {
    border-top: 0.5px solid rgba(155, 143, 130, 0.3);
    padding-top: 32px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    align-items: flex-start;
}
@media (min-width: 768px) {
    .footer__bottom { flex-direction: row; justify-content: space-between; align-items: center; }
}
.footer__bottom a:hover { color: var(--primary); }

/* ---------- Preloader ---------- */
.preloader {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg);
    transition: opacity 0.5s var(--ease), visibility 0.5s var(--ease);
}
.preloader.is-done {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}
.preloader__inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 28px;
}
.preloader__logo {
    width: min(260px, 55vw);
    height: auto;
}
.preloader__bar {
    width: min(200px, 45vw);
    height: 2px;
    background: rgba(234, 191, 135, 0.15);
    overflow: hidden;
}
.preloader__bar-fill {
    height: 100%;
    width: 0%;
    background: var(--primary);
    transition: width 0.2s linear;
}
.preloader__percent {
    font-family: var(--font-mono);
    font-size: 14px;
    letter-spacing: 0.18em;
    color: var(--primary);
}

/* ---------- Back to top ---------- */
.back-to-top {
    position: fixed;
    right: 220px;
    bottom: 24px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--primary);
    color: var(--on-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transform: translateY(12px);
    transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
    z-index: 90;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}
/* WhatsApp button collapses to an icon-only circle below 640px, so
   back-to-top needs a smaller offset to stay beside it there too. */
@media (max-width: 640px) {
    .back-to-top { right: 84px; }
}
.back-to-top.is-visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

/* ---------- WhatsApp floating chat button ---------- */
.whatsapp-fab {
    position: fixed;
    right: 20px;
    bottom: 24px;
    height: 52px;
    padding: 0 20px 0 14px;
    border-radius: 999px;
    background: #25d366;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 91;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
    transition: transform 0.25s var(--ease);
}
.whatsapp-fab:hover { transform: scale(1.05); }
.whatsapp-fab .material-symbols-outlined { font-size: 26px; flex-shrink: 0; }
.whatsapp-fab__text {
    font-family: var(--font-mono);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.04em;
    white-space: nowrap;
}
@media (max-width: 640px) {
    .whatsapp-fab {
        width: 52px;
        height: 52px;
        padding: 0;
        justify-content: center;
        border-radius: 50%;
    }
    .whatsapp-fab__text { display: none; }
}

/* ---------- Floating share rail (left edge) ---------- */
.share-rail {
    position: fixed;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    z-index: 80;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    background: var(--bg-elevated);
    border: 1px solid rgba(234, 191, 135, 0.2);
    border-left: none;
    padding: 16px 8px;
    border-radius: 0 10px 10px 0;
}
.share-rail__label {
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--primary);
    margin-bottom: 6px;
}
.share-rail__link {
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--on-surface-variant);
    transition: color 0.25s var(--ease), transform 0.25s var(--ease);
}
.share-rail__link:hover {
    color: var(--primary);
    transform: scale(1.15);
}
.share-rail__mark {
    font-family: var(--font-mono);
    font-size: 13px;
    font-weight: 600;
}
.share-rail__link .material-symbols-outlined { font-size: 17px; }
@media (max-width: 900px) { .share-rail { display: none; } }

/* ---------- Utility spacing (4px scale, matches the mb-N numbering: N*4px) ---------- */
.mb-1 { margin-bottom: 4px; } .mb-2 { margin-bottom: 8px; }
.mb-4 { margin-bottom: 16px; } .mb-6 { margin-bottom: 24px; } .mb-8 { margin-bottom: 32px; }
.mb-12 { margin-bottom: 48px; } .mb-16 { margin-bottom: 64px; } .mb-20 { margin-bottom: 80px; }
.mt-4 { margin-top: 16px; } .mt-6 { margin-top: 24px; }
.pb-2 { padding-bottom: 8px; } .pb-4 { padding-bottom: 16px; }
.pb-6 { padding-bottom: 24px; } .pb-8 { padding-bottom: 32px; }
.ml-2 { margin-left: 8px; }

/* ---------- Repeated inline patterns, promoted to real classes ---------- */
.fw-500 { font-weight: 500; }
.fw-700 { font-weight: 700; }
/* Item title used across credential/paper lists: bold, small gap to the line below */
.entry-title { font-weight: 700; margin-bottom: 4px; }
/* The italic gold accent word inside every hero h1 */
.hero-accent { font-weight: 400; }
/* Small "in progress / secondary" label next to a title */
.title-tag { font-weight: 400; font-size: 14px; }
/* Icon + title pairing (credential rows) */
.title-row { display: flex; align-items: center; gap: 12px; margin-bottom: 4px; }
/* Standalone eyebrow label not wrapped in a .section-label box */
.eyebrow-block { display: block; }
/* Padded content panel (CTA callouts) */
.cta-panel { padding: clamp(32px, 5vw, 64px); }
.link-underline { text-decoration: underline; }

.max-w-2xl { max-width: 42rem; } .max-w-3xl { max-width: 48rem; } .max-w-4xl { max-width: 56rem; }
.space-y > * + * { margin-top: 24px; }
.space-y-sm > * + * { margin-top: 12px; }
.items-center { align-items: center; }

/* Material Symbols baseline */
.material-symbols-outlined {
    font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
    vertical-align: middle;
}
