/*
Dr. Chakra Raj Pandey — personal website stylesheet.
Shared across every static page generated by static-site/build.py.

Design direction: plum & gold on white, drawing from the Anamiwa Health
clinic palette (plum, coral, pale lavender) while staying his own —
confident, stat-driven, asymmetric layouts rather than centered/editorial.
*/

/* ---------- Design tokens ---------- */

:root {
    --plum: #5b2452;
    --plum-dark: #421a3b;
    --gold: #b3792f;
    --gold-dark: #8f5f24;
    --ink: #2a1c27;
    --ink-soft: rgba(42, 28, 39, 0.7);
    --ink-faint: rgba(42, 28, 39, 0.55);
    --hairline: rgba(42, 28, 39, 0.14);
    --paper: #ffffff;
    --lavender: #efe6ee;
    --lavender-line: rgba(91, 36, 82, 0.16);

    --font-display: 'Instrument Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    --font-body: 'IBM Plex Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    --font-mono: 'IBM Plex Mono', 'SF Mono', monospace;
}

/* ---------- Base reset & typography ---------- */

html {
    scroll-behavior: smooth;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: var(--font-body);
    color: var(--ink-soft);
    background: var(--paper);
    line-height: 1.65;
}

h1, h2, h3, h4 {
    font-family: var(--font-display);
    font-weight: 600;
    letter-spacing: -0.01em;
    color: var(--ink);
    line-height: 1.22;
    margin: 0 0 0.5em;
}

p {
    margin: 0 0 1em;
}

a {
    color: var(--plum);
    text-decoration: none;
}

a:hover {
    color: var(--gold-dark);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul {
    margin: 0;
    padding: 0;
}

.site-container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 24px;
}

.eyebrow {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--gold-dark);
    margin-bottom: 0.9em;
}

.placeholder-note {
    background: var(--lavender);
    border: 1px dashed var(--lavender-line);
    color: var(--ink-soft);
    font-size: 0.85rem;
    padding: 10px 14px;
    margin: 0 0 1.5em;
}

/* two-tone heading: first line ink, second line gold */
.two-tone .l1 { display: block; color: var(--ink); }
.two-tone .l2 { display: block; color: var(--gold); }

/* ---------- Buttons ---------- */

.btn {
    display: inline-block;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.82rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    text-decoration: none;
    padding: 14px 28px;
    border: 1.5px solid transparent;
    transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.btn-primary {
    background: var(--plum);
    color: #fff;
    border-color: var(--plum);
}

.btn-primary:hover {
    background: var(--plum-dark);
    border-color: var(--plum-dark);
    color: #fff;
}

.btn-outline-dark {
    background: transparent;
    color: var(--plum);
    border-color: var(--plum);
}

.btn-outline-dark:hover {
    background: var(--plum);
    color: #fff;
}

/* ---------- Header & primary nav ---------- */

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--paper);
    border-bottom: 1px solid var(--hairline);
}

.site-header-inner {
    max-width: 1140px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 18px 24px;
}

.site-branding a {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--plum);
}

.site-logo {
    height: 40px;
    width: auto;
}

.site-title {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    color: var(--plum);
    line-height: 1.3;
}

.site-title-sub {
    display: block;
    font-size: 0.68rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--ink-faint);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    padding: 0;
    border: none;
    background: transparent;
    cursor: pointer;
}

.nav-toggle-bar {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--plum);
    border-radius: 2px;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle.is-open .nav-toggle-bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.is-open .nav-toggle-bar:nth-child(2) { opacity: 0; }
.nav-toggle.is-open .nav-toggle-bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.primary-nav ul {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 22px;
    flex-wrap: wrap;
}

.primary-nav a {
    font-size: 0.82rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    color: var(--ink);
}

.primary-nav a:hover {
    color: var(--plum);
}

.primary-nav a.is-active {
    color: var(--plum);
    border-bottom: 2px solid var(--gold);
    padding-bottom: 4px;
}

.primary-nav a.nav-external {
    color: var(--ink-faint);
}

.primary-nav a.nav-external::after {
    content: '↗';
    margin-left: 3px;
    font-size: 0.75em;
}

.header-cta {
    flex-shrink: 0;
}

@media (max-width: 900px) {
    .nav-toggle { display: flex; }
    .header-cta { display: none; }

    .nav-and-social {
        display: none;
        width: 100%;
        order: 3;
    }

    .nav-and-social.is-open { display: block; }

    .primary-nav ul {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
        padding: 12px 0 20px;
    }

    .primary-nav a {
        display: block;
        padding: 12px 0;
        width: 100%;
        border-bottom: 1px solid var(--hairline);
    }

    .primary-nav a.is-active { border-bottom: 1px solid var(--hairline); }

    .site-header-inner { flex-wrap: wrap; }
}

/* ---------- Hero ---------- */

.hero {
    padding: 60px 0 48px;
}

.hero-inner {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 24px;
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    gap: 40px;
    align-items: center;
}

.hero-eyebrow {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--gold-dark);
    margin-bottom: 20px;
}

.hero-eyebrow a {
    color: inherit;
    text-decoration: none;
}

.hero-eyebrow a:hover {
    text-decoration: underline;
}

.hero-heading {
    font-size: clamp(1.5rem, 2.3vw, 1.9rem);
    line-height: 1.25;
    margin: 0 0 20px;
}

.hero-name-line {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--plum);
    margin: 0 0 16px;
}

.hero-name-line span {
    font-weight: 400;
    color: var(--ink-faint);
}

.hero-tagline {
    font-size: 1rem;
    color: var(--ink-soft);
    max-width: 44ch;
    margin-bottom: 1.8em;
}

.hero-buttons {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

.hero-portrait-frame {
    background: var(--lavender);
    aspect-ratio: 4 / 5;
}

.hero-portrait-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.stat-col {
    display: flex;
    flex-direction: column;
    gap: 18px;
    padding-left: 32px;
    border-left: 1px solid var(--hairline);
}

.stat-num {
    font-family: var(--font-mono);
    font-variant-numeric: tabular-nums;
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--gold-dark);
    display: block;
    margin: 0;
}

.stat-label {
    font-size: 0.74rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--ink-faint);
    margin: 0.2em 0 0;
}

@media (max-width: 780px) {
    .hero-inner { grid-template-columns: 1fr; }
    .hero-portrait-frame { max-width: 320px; margin: 0 auto; }
    .stat-col { border-left: none; border-top: 1px solid var(--hairline); padding-left: 0; padding-top: 20px; flex-direction: row; flex-wrap: wrap; }
}

/* ---------- Credibility strip ---------- */

.cred-strip {
    background: var(--lavender);
    border-top: 1px solid var(--lavender-line);
    border-bottom: 1px solid var(--lavender-line);
    padding: 30px 0;
}

.cred-strip-label {
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--ink-soft);
    text-align: center;
    margin: 0 0 20px;
}

.cred-logos {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}

.cred-logo {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 0.92rem;
    color: var(--ink);
    opacity: 0.6;
    white-space: nowrap;
}

/* ---------- Stat bar (standalone, e.g. under hero on inner pages) ---------- */

.stat-bar {
    background: var(--paper);
    border-bottom: 1px solid var(--hairline);
}

.stat-bar-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    padding: 40px 24px;
    max-width: 1140px;
    margin: 0 auto;
    text-align: center;
}

/* ---------- Section basics ---------- */

.section {
    padding: 80px 0;
}

.section-alt {
    background: var(--lavender);
}

.section-heading-wrap {
    max-width: 640px;
    margin: 0 auto 48px;
    text-align: center;
}

.section-heading-wrap.align-left {
    margin: 0 0 48px;
    text-align: left;
}

/* ---------- Split section (photo + text) ---------- */

.split-section {
    display: grid;
    grid-template-columns: 0.85fr 1.15fr;
    gap: 56px;
    align-items: center;
}

.split-section.reverse {
    grid-template-columns: 1.15fr 0.85fr;
}

.split-section.reverse .split-image {
    order: 2;
}

.split-image-placeholder {
    aspect-ratio: 4 / 5;
    background: var(--lavender);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--ink-faint);
    font-size: 0.88rem;
}

.split-image img {
    width: 100%;
    height: 100%;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    display: block;
}

/* offset photo frame — gold block behind the image, from the Chahla reference */
.photo-frame-offset {
    position: relative;
}

.photo-frame-offset::before {
    content: '';
    position: absolute;
    inset: 14px -14px -14px 14px;
    background: var(--gold);
    z-index: 0;
}

.photo-frame-offset > * {
    position: relative;
    z-index: 1;
}

.split-block {
    margin-bottom: 22px;
    padding-top: 18px;
    border-top: 1px solid var(--hairline);
}

.split-block h3 {
    font-size: 1.05rem;
}

@media (max-width: 780px) {
    .split-section, .split-section.reverse {
        grid-template-columns: 1fr;
    }
    .split-section.reverse .split-image {
        order: 0;
    }
}

/* ---------- Expertise checklist (home page: "His expertise") ---------- */

.expertise-block {
    margin: 24px 0 28px;
}

.expertise-heading {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 1.05rem;
    color: var(--plum);
    margin: 0 0 0.9em;
}

.expertise-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.expertise-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    color: var(--ink-soft);
    font-size: 0.95rem;
    line-height: 1.4;
}

.expertise-check {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: rgba(179, 121, 47, 0.14);
    color: var(--gold-dark);
    font-size: 0.75rem;
    font-weight: 700;
    margin-top: 0.15em;
}

/* ---------- Expertise / initiative grid (hairline cards, no icons) ---------- */

.expertise-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    border-top: 1px solid var(--hairline);
    border-left: 1px solid var(--hairline);
}

.expertise-card {
    padding: 30px;
    border-right: 1px solid var(--hairline);
    border-bottom: 1px solid var(--hairline);
}

.expertise-card h3 {
    font-size: 1rem;
    margin-bottom: 0.5em;
}

.expertise-card p {
    font-size: 0.92rem;
    color: var(--ink-soft);
    margin: 0;
}

@media (max-width: 900px) {
    .expertise-grid { grid-template-columns: repeat(2, 1fr); }
}

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

/* ---------- Timeline (career history) — alternating layout ---------- */

.timeline-alt {
    position: relative;
}

.timeline-alt::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 1px;
    background: var(--hairline);
    transform: translateX(-50%);
}

.tl-row {
    position: relative;
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 64px;
    padding: 48px 0;
}

.tl-row:first-child { padding-top: 0; }
.tl-row:last-child { padding-bottom: 0; }

.tl-row::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 48px;
    width: 13px;
    height: 13px;
    border-radius: 50%;
    background: var(--gold);
    border: 3px solid var(--paper);
    transform: translateX(-50%);
    z-index: 2;
}

.tl-row:first-child::before { top: 0; }

.tl-text { grid-column: 1; align-self: start; }
.tl-photo { grid-column: 2; align-self: start; }

.tl-row:nth-child(even) .tl-text { grid-column: 2; }
.tl-row:nth-child(even) .tl-photo { grid-column: 1; }

.tl-date {
    font-family: var(--font-mono);
    font-size: 0.76rem;
    font-weight: 500;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--gold-dark);
    margin-bottom: 0.4em;
}

.tl-text h3 {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.3rem;
    letter-spacing: -0.01em;
    margin-bottom: 0.4em;
}

.tl-text p {
    color: var(--ink-soft);
    margin: 0;
}

.tl-photo-frame {
    aspect-ratio: 4 / 3;
    background: var(--lavender);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--ink-faint);
    font-size: 0.82rem;
}

.tl-photo-pair {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

@media (max-width: 780px) {
    .timeline-alt::before { left: 6px; }

    .tl-row {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 0 0 40px 30px;
    }

    .tl-row:first-child { padding-top: 0; }

    .tl-row::before {
        left: 6px;
        top: 5px;
        width: 11px;
        height: 11px;
    }

    .tl-row:first-child::before { top: 5px; }

    .tl-text, .tl-row:nth-child(even) .tl-text { grid-column: 1; }
    .tl-photo, .tl-row:nth-child(even) .tl-photo { grid-column: 1; }
}

/* ---------- Media grid ---------- */

.media-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 32px 28px;
}

.media-card {
    display: block;
    color: inherit;
    text-decoration: none;
    background: var(--paper);
    border: 1px solid var(--hairline);
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.media-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 30px rgba(42, 28, 39, 0.14);
    border-color: rgba(42, 28, 39, 0.22);
}

.media-thumb {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: var(--ink);
}

.media-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.media-card:hover .media-thumb img {
    transform: scale(1.05);
}

.media-thumb.is-video::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 48px;
    height: 48px;
    transform: translate(-50%, -50%);
    background: rgba(255, 255, 255, 0.92);
    border-radius: 50%;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.28);
}

.media-thumb.is-video::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-38%, -50%);
    width: 0;
    height: 0;
    border-top: 9px solid transparent;
    border-bottom: 9px solid transparent;
    border-left: 15px solid var(--plum);
}

.media-thumb-fallback {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 20px;
    background: linear-gradient(135deg, var(--plum), var(--plum-dark));
}

.media-thumb-fallback span {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.92);
}

.media-card-body {
    padding: 16px 18px 18px;
}

.media-card .publication-tag {
    display: inline-block;
    margin-bottom: 8px;
    padding: 3px 8px;
    border-radius: 3px;
    background: rgba(179, 121, 47, 0.12);
}

.publication-title {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 1rem;
    line-height: 1.35;
    color: var(--ink);
    margin: 0 0 0.4em;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.publication-meta {
    font-size: 0.85rem;
    color: var(--ink-soft);
    margin: 0;
}

.publication-tag {
    font-family: var(--font-mono);
    font-size: 0.68rem;
    font-weight: 500;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--gold-dark);
    white-space: nowrap;
}

/* ---------- Cases (patient outcome cases) ---------- */

.case-filter {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 36px;
}

.case-filter-label {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--ink-faint);
}

.case-filter-select-wrap {
    position: relative;
    display: inline-block;
}

.case-filter-toggle {
    position: relative;
    display: block;
    font-family: var(--font-body);
    font-size: 0.88rem;
    text-align: left;
    color: var(--ink);
    background: var(--paper);
    border: 1px solid var(--hairline);
    border-radius: 6px;
    padding: 10px 40px 10px 16px;
    min-width: 260px;
    cursor: pointer;
    transition: border-color 0.15s ease;
}

.case-filter-toggle::after {
    content: '';
    position: absolute;
    top: 50%;
    right: 16px;
    width: 7px;
    height: 7px;
    border-right: 1.5px solid var(--ink-soft);
    border-bottom: 1.5px solid var(--ink-soft);
    transform: translateY(-70%) rotate(45deg);
    pointer-events: none;
    transition: transform 0.15s ease;
}

.case-filter-toggle[aria-expanded="true"]::after {
    transform: translateY(-30%) rotate(-135deg);
}

.case-filter-toggle:hover,
.case-filter-toggle[aria-expanded="true"] {
    border-color: var(--plum);
}

.case-filter-toggle:focus-visible {
    outline: none;
    border-color: var(--plum);
    box-shadow: 0 0 0 3px rgba(91, 36, 82, 0.12);
}

.case-filter-menu {
    position: absolute;
    z-index: 20;
    top: calc(100% + 8px);
    left: 0;
    min-width: 260px;
    max-height: 340px;
    overflow-y: auto;
    margin: 0;
    padding: 6px;
    list-style: none;
    background: var(--paper);
    border: 1px solid var(--hairline);
    border-radius: 8px;
    box-shadow: 0 14px 30px rgba(42, 28, 39, 0.16);
}

.case-filter-menu li {
    font-family: var(--font-body);
    font-size: 0.88rem;
    color: var(--ink-soft);
    padding: 9px 12px;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.12s ease, color 0.12s ease;
}

.case-filter-menu li:hover {
    background: rgba(91, 36, 82, 0.06);
    color: var(--plum);
}

.case-filter-menu li.is-selected {
    color: var(--plum);
    font-weight: 600;
    background: rgba(179, 121, 47, 0.1);
}

.case-empty-note {
    color: var(--ink-faint);
    font-size: 0.95rem;
    padding: 24px 0;
}

.case-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 36px 28px;
}

.case-card {
    display: block;
    color: inherit;
    text-decoration: none;
    background: var(--paper);
    border: 1px solid var(--hairline);
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.case-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 30px rgba(42, 28, 39, 0.14);
    border-color: rgba(42, 28, 39, 0.22);
}

.case-thumb {
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: var(--ink);
}

.case-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.case-card:hover .case-thumb img {
    transform: scale(1.05);
}

.case-card-body {
    padding: 20px 20px 22px;
}

.case-meta-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
}

.case-year {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.06em;
    color: var(--ink-faint);
}

.case-tag {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 0.66rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--gold-dark);
    background: rgba(179, 121, 47, 0.12);
    padding: 3px 8px;
    border-radius: 3px;
}

.case-title {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 1.1rem;
    line-height: 1.3;
    color: var(--ink);
    margin: 0 0 0.4em;
}

.case-excerpt {
    color: var(--ink-soft);
    font-size: 0.92rem;
    line-height: 1.55;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ---------- Case detail page ---------- */

.case-back-link {
    display: block;
    font-family: var(--font-mono);
    font-size: 0.78rem;
    font-weight: 500;
    letter-spacing: 0.03em;
    color: var(--ink-soft);
    text-decoration: none;
    margin-bottom: 18px;
}

.case-back-link:hover { color: var(--plum); }

.case-detail-tags {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-top: 14px;
}

.case-detail-body {
    max-width: 700px;
    margin: 0 auto;
    color: var(--ink-soft);
    font-size: 1rem;
    line-height: 1.75;
}

.case-detail-body p {
    margin: 0 0 1.2em;
}

.case-detail-body p:last-child { margin-bottom: 0; }

.case-gallery-heading {
    max-width: 700px;
    margin: 0 auto 20px;
    font-family: var(--font-mono);
    font-size: 0.78rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--ink-faint);
}

.case-photo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 16px;
    margin-bottom: 16px;
}

.case-photo-grid a {
    display: block;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    border-radius: 6px;
    border: 1px solid var(--hairline);
}

.case-photo-grid img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.case-photo-grid a:hover img {
    transform: scale(1.04);
}

.case-video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
}

.case-video-grid video {
    width: 100%;
    display: block;
    border-radius: 6px;
    border: 1px solid var(--hairline);
    background: var(--ink);
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

@media (max-width: 700px) {
    .case-detail-body { max-width: 100%; }
    .case-gallery-heading { max-width: 100%; }
}

/* ---------- Badge / affiliation strip ---------- */

.badge-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 0;
    border-top: 1px solid var(--hairline);
}

.badge-pill {
    display: inline-flex;
    align-items: center;
    padding: 14px 24px 14px 0;
    margin-right: 24px;
    border-bottom: 1px solid var(--hairline);
    font-size: 0.85rem;
    color: var(--ink-soft);
}

/* ---------- CTA banner ---------- */

.cta-banner {
    background: var(--lavender);
    padding: 72px 0;
    text-align: center;
}

.cta-banner h2 {
    margin-bottom: 0.4em;
}

.cta-banner p {
    color: var(--ink-soft);
    max-width: 52ch;
    margin: 0 auto 1.8em;
}

/* ---------- Workplace section (home page: Anamiwa Health) ---------- */

.workplace-section {
    position: relative;
    background-image: url('/images/crp-anamiwa3.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    padding: 100px 0;
    overflow: hidden;
}

.workplace-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(42, 28, 39, 0.42);
    z-index: 0;
}

.workplace-section .site-container {
    position: relative;
    z-index: 1;
}

.workplace-inner {
    display: grid;
    grid-template-columns: 1fr 0.9fr;
    gap: 56px;
    align-items: center;
}

.workplace-text h2 .l1 {
    color: #fff;
}

.workplace-text h2 .l2 {
    display: inline;
    color: var(--plum);
    background: rgba(255, 255, 255, 0.68);
    padding: 3px 10px;
    box-decoration-break: clone;
    -webkit-box-decoration-break: clone;
}

.workplace-text p {
    color: rgba(255, 255, 255, 0.82);
}

.btn-lavender {
    background: var(--lavender);
    color: var(--plum);
    border-color: var(--lavender);
}

.btn-lavender:hover {
    background: var(--plum);
    color: #fff;
    border-color: var(--plum);
}

.workplace-photos {
    position: relative;
    max-width: 420px;
    margin: 0 auto;
}

.workplace-photos .wp-photo {
    width: 100%;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    display: block;
    border: 6px solid #fff;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    position: relative;
    z-index: 1;
}

@media (max-width: 900px) {
    .workplace-section {
        background-attachment: scroll;
        background-position: left center;
    }

    .workplace-inner {
        grid-template-columns: 1fr;
    }

    .workplace-photos {
        margin-top: 16px;
    }
}

/* ---------- Teaser cards (home page: Career / Cases / Charity) ---------- */

.teaser-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.teaser-card {
    padding: 32px;
    background: rgba(255, 255, 255, 0.55);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    text-decoration: none;
    display: block;
    color: inherit;
    transition: background 0.15s ease;
}

.teaser-card:hover {
    background: rgba(255, 255, 255, 0.75);
}

.teaser-card:hover .teaser-title { color: var(--gold-dark); }

.teaser-eyebrow {
    font-family: var(--font-mono);
    font-size: 0.68rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--gold-dark);
    margin-bottom: 0.8em;
}

.teaser-title {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--ink);
    margin: 0 0 0.5em;
}

.teaser-card p {
    font-size: 0.92rem;
    color: var(--ink-soft);
    margin: 0;
}

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

/* ---------- Contact / Request Appointment page ---------- */

.contact-grid {
    display: grid;
    grid-template-columns: 0.7fr 1.3fr;
    gap: 56px;
}

.contact-info-block {
    margin-bottom: 26px;
}

.contact-info-label {
    display: block;
    font-family: var(--font-mono);
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--gold-dark);
    margin-bottom: 6px;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.contact-form label {
    font-size: 0.76rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--ink-soft);
    margin-bottom: 8px;
    display: block;
}

.contact-form input,
.contact-form textarea,
.contact-form select {
    width: 100%;
    font-family: var(--font-body);
    font-size: 0.95rem;
    padding: 12px 0;
    border: none;
    border-bottom: 1px solid var(--hairline);
    border-radius: 0;
    background: transparent;
    color: var(--ink);
}

.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus {
    outline: none;
    border-bottom-color: var(--plum);
}

.contact-form textarea {
    min-height: 120px;
    resize: vertical;
}

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

/* ---------- Footer ---------- */

.site-footer {
    background: var(--ink);
    color: rgba(255, 255, 255, 0.62);
    padding-top: 64px;
}

.footer-inner {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 24px 40px;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 160px;
}

.footer-contact-grid {
    display: flex;
    gap: 40px;
    text-align: left;
}

.footer-column-contact h3 {
    text-align: center;
}

.footer-column h3 {
    font-family: var(--font-display);
    color: #fff;
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    margin-bottom: 0.9em;
}

.footer-column p {
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0 0 20px;
}

p.footer-info-label {
    display: block;
    font-size: 0.72rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.4);
    margin: 0 0 6px;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    font-size: 0.95rem;
    margin-bottom: 16px;
}

.footer-links a,
.footer-column a {
    color: rgba(255, 255, 255, 0.75);
    text-decoration: none;
}

.footer-links a:hover,
.footer-column a:hover {
    color: var(--gold);
    text-decoration: underline;
}

.footer-copyright {
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    text-align: center;
    font-size: 0.76rem;
    letter-spacing: 0.04em;
    padding: 22px 24px;
    margin: 0;
}

@media (max-width: 780px) {
    .footer-inner {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 40px;
    }

    .footer-contact-grid {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }
}

/* ---------- Generic page (page.php / index.php equivalents) ---------- */

.entry-header {
    max-width: 800px;
    margin: 0 auto;
    padding: 64px 24px 0;
    text-align: center;
}

.entry-content {
    max-width: 760px;
    margin: 0 auto;
    padding: 32px 24px 80px;
}

.entry-content h2 {
    margin-top: 1.4em;
}
