/* ============================================
   Design System - Variables
   ============================================ */

:root {
    color-scheme: light;

    /* Palette */
    --navy: #17324d;
    --navy-light: #244966;
    --blue: #326f9f;
    --blue-soft: #4d89b6;
    --blue-pale: #e2ecf4;
    --teal: #a15a3a;
    --slate: #27323a;
    --slate-light: #60717e;
    --slate-pale: #8a98a3;
    --gray-50: #f7f4ec;
    --gray-100: #ece8de;
    --gray-200: #d9d4c9;
    --gray-300: #c2bbb0;
    --white: #fffdfa;

    /* Semantic */
    --text: var(--slate);
    --text-secondary: var(--slate-light);
    --text-muted: #65747e;
    --heading: var(--navy);
    --accent: var(--blue);
    --accent-hover: #24567d;
    --surface: var(--white);
    --surface-alt: var(--gray-50);
    --border: var(--gray-200);
    --warm: #a15a3a;
    --warm-pale: #f3e3da;
    --on-dark: #fffdfa;
    --footer-surface: #17324d;
    --footer-border: rgba(255, 253, 248, 0.16);
    --footer-text: #f4f0e8;
    --footer-muted: rgba(255, 253, 248, 0.72);
    --footer-accent: #b7d7ed;
    --shadow-sm: 0 1px 2px rgba(23, 50, 77, 0.06);
    --shadow-md: 0 12px 35px rgba(23, 50, 77, 0.08);
    --shadow-lg: 0 24px 70px rgba(23, 50, 77, 0.12);

    /* Typography */
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-serif: 'Source Serif 4', 'Georgia', serif;

    /* Layout */
    --content-width: 760px;
    --page-width: 1120px;
    --radius: 16px;
    --radius-sm: 9px;
    --transition: 0.2s ease;
}

/* ============================================
   Dark Mode
   ============================================ */

@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
        color-scheme: dark;

        --navy: #173a5c;
        --navy-light: #214f78;
        --blue: #7db5dd;
        --blue-soft: #a5cce7;
        --blue-pale: #1b3448;
        --teal: #e09a78;
        --slate: #e6e8ea;
        --slate-light: #b8c1c8;
        --slate-pale: #8f9aa3;
        --gray-50: #101820;
        --gray-100: #17232d;
        --gray-200: #2b3b48;
        --gray-300: #3b4d5b;
        --white: #17232d;
        --text: #e6e8ea;
        --text-secondary: #b8c1c8;
        --text-muted: #a6b0b8;
        --heading: #f6f3ec;
        --accent: #7db5dd;
        --accent-hover: #a5cce7;
        --surface: #17232d;
        --surface-alt: #101820;
        --border: #2b3b48;
        --warm: #e09a78;
        --warm-pale: #452c24;
        --on-dark: #fffdfa;
        --footer-surface: #0d1c28;
        --footer-border: rgba(255, 253, 248, 0.14);
        --footer-text: #f4f0e8;
        --footer-muted: rgba(255, 253, 248, 0.72);
        --footer-accent: #b7d7ed;
        --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.2);
        --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.25);
        --shadow-lg: 0 8px 30px rgba(0, 0, 0, 0.3);
    }
}

[data-theme="dark"] {
    color-scheme: dark;

    --navy: #173a5c;
    --navy-light: #214f78;
    --blue: #7db5dd;
    --blue-soft: #a5cce7;
    --blue-pale: #1b3448;
    --teal: #e09a78;
    --slate: #e6e8ea;
    --slate-light: #b8c1c8;
    --slate-pale: #8f9aa3;
    --gray-50: #101820;
    --gray-100: #17232d;
    --gray-200: #2b3b48;
    --gray-300: #3b4d5b;
    --white: #17232d;
    --text: #e6e8ea;
    --text-secondary: #b8c1c8;
    --text-muted: #a6b0b8;
    --heading: #f6f3ec;
    --accent: #7db5dd;
    --accent-hover: #a5cce7;
    --surface: #17232d;
    --surface-alt: #101820;
    --border: #2b3b48;
    --warm: #e09a78;
    --warm-pale: #452c24;
    --on-dark: #fffdfa;
    --footer-surface: #0d1c28;
    --footer-border: rgba(255, 253, 248, 0.14);
    --footer-text: #f4f0e8;
    --footer-muted: rgba(255, 253, 248, 0.72);
    --footer-accent: #b7d7ed;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.2);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.25);
    --shadow-lg: 0 8px 30px rgba(0, 0, 0, 0.3);
}

/* Dark mode overrides for elements with hardcoded colors */
@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) img.profile-photo {
        border-color: #334155;
    }
}

[data-theme="dark"] img.profile-photo {
    border-color: #334155;
}

/* ============================================
   Base
   ============================================ */

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-sans);
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--text);
    background: var(--gray-50);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    margin: 0;
}

main {
    flex: 1 0 auto;
}

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

a:hover {
    color: var(--accent-hover);
}

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

::selection {
    background: var(--blue-pale);
    color: var(--navy);
}

/* ============================================
   Accessibility
   ============================================ */

.skip-link {
    position: absolute;
    top: -50px;
    left: 8px;
    background: var(--navy);
    color: var(--white);
    padding: 8px 16px;
    border-radius: 0 0 var(--radius-sm) var(--radius-sm);
    z-index: 2000;
    font-size: 0.85rem;
    text-decoration: none;
    transition: top var(--transition);
}

.skip-link:focus {
    top: 0;
    color: var(--white);
}

/* Focus-visible styles for keyboard navigation */
a:focus-visible,
button:focus-visible,
.nav-link:focus-visible,
.social-links a:focus-visible,
.footer-social a:focus-visible,
.back-to-top:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
    border-radius: var(--radius-sm);
}

.navbar .nav-link:focus-visible {
    outline-color: var(--white);
}

/* Respect reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* ============================================
   Main Container
   ============================================ */

.main-container {
    max-width: var(--page-width);
    margin: 2.5rem auto;
    padding: 2.5rem 3rem;
    background: var(--surface);
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border);
}

/* ============================================
   Navigation
   ============================================ */

.navbar {
    background: var(--navy);
    padding: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    z-index: 1030;
}

.navbar .container {
    max-width: var(--page-width);
}

.navbar-brand {
    display: flex;
    flex-direction: column;
    padding: 0.65rem 0;
    text-decoration: none;
}

.brand-name {
    font-family: var(--font-serif);
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--white);
    letter-spacing: -0.01em;
    line-height: 1.2;
}

.brand-sub {
    font-size: 0.65rem;
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 400;
}

.navbar-brand:hover .brand-name {
    color: var(--white);
}

.navbar-toggler {
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 0.4rem 0.6rem;
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 0.8%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.nav-link {
    color: rgba(255, 255, 255, 0.7) !important;
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.3px;
    padding: 1rem 1.1rem !important;
    position: relative;
    transition: color var(--transition);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 1.1rem;
    right: 1.1rem;
    height: 2px;
    background: var(--blue-soft);
    transform: scaleX(0);
    transition: transform var(--transition);
}

.nav-link:hover {
    color: var(--white) !important;
}

.nav-link:hover::after,
.nav-link.active::after {
    transform: scaleX(1);
}

.nav-link.active {
    color: var(--white) !important;
}

/* ============================================
   Page Header
   ============================================ */

.page-header {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border);
}

.page-header h1 {
    font-family: var(--font-serif);
    font-size: 2rem;
    font-weight: 700;
    color: var(--heading);
    margin: 0 0 0.4rem 0;
    letter-spacing: -0.02em;
}

.page-description {
    font-size: 1.05rem;
    color: var(--text-secondary);
    margin: 0;
    line-height: 1.6;
}

/* ============================================
   Content Typography
   ============================================ */

.content {
    font-size: 0.95rem;
    line-height: 1.75;
}

.content p,
.content li {
    text-align: justify;
    hyphens: auto;
}

.content h2 {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--heading);
    margin: 2.5rem 0 1rem 0;
    letter-spacing: -0.01em;
}

.content h2::before {
    content: '';
    display: block;
    width: 30px;
    height: 3px;
    background: var(--accent);
    margin-bottom: 0.6rem;
    border-radius: 2px;
}

.content h3 {
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--navy-light);
    margin: 2rem 0 0.75rem 0;
}

.content h4 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text);
    margin: 1.5rem 0 0.5rem 0;
}

.content blockquote {
    border-left: 3px solid var(--accent);
    padding: 0.75rem 1.25rem;
    margin: 1.5rem 0;
    background: var(--surface-alt);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    color: var(--text-secondary);
    font-style: italic;
}

.content pre {
    background: var(--navy);
    color: #e2e8f0;
    padding: 1.25rem;
    border-radius: var(--radius-sm);
    overflow-x: auto;
    font-size: 0.85rem;
    line-height: 1.6;
}

/* MathJax display equations: horizontal scroll on overflow */
mjx-container[jax="SVG"][display="true"] {
    display: block;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    max-width: 100%;
    min-width: 0;
    padding: 0.75rem 0;
    text-align: center;
}

mjx-container[jax="SVG"][display="true"] svg {
    max-width: 100%;
    height: auto;
}

/* Inline math: keep on the text baseline */
mjx-container[jax="SVG"]:not([display="true"]) {
    display: inline-block;
    vertical-align: -0.2em;
    max-width: 100%;
}

/* Dark mode: MathJax SVG inherits text colour */
[data-theme="dark"] mjx-container[jax="SVG"] svg {
    color: var(--text);
}

@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) mjx-container[jax="SVG"] svg {
        color: var(--text);
    }
}

.content code {
    font-size: 0.88em;
    background: var(--gray-100);
    padding: 0.15em 0.4em;
    border-radius: 3px;
    color: var(--navy);
}

.content pre code {
    background: none;
    padding: 0;
    color: inherit;
}

.content hr {
    border: none;
    height: 1px;
    background: var(--border);
    margin: 2.5rem 0;
}

.content a {
    text-decoration: underline;
    text-decoration-color: var(--blue-pale);
    text-underline-offset: 2px;
    transition: text-decoration-color var(--transition), color var(--transition);
}

.content a:hover {
    text-decoration-color: var(--accent);
}

/* ============================================
   Section Headings & Containers
   ============================================ */

.section-heading {
    font-family: var(--font-serif);
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--heading);
    margin: 0 0 1.25rem 0;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--gray-200);
    display: flex;
    align-items: center;
    gap: 0.6rem;
    letter-spacing: -0.01em;
}

.section-heading i {
    color: var(--accent);
    font-size: 1rem;
    width: 32px;
    height: 32px;
    background: var(--blue-pale);
    border-radius: var(--radius-sm);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.subsection-heading {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--heading);
    margin: 1.5rem 0 0.75rem 0;
}

.home-section,
.exp-section,
.research-section {
    margin-bottom: 2.5rem;
}

.home-section:last-child,
.exp-section:last-child,
.research-section:last-child {
    margin-bottom: 0;
}

.about-text {
    font-size: 0.95rem;
    line-height: 1.75;
    color: var(--text);
}

.about-text p {
    margin-bottom: 0.75rem;
    text-align: justify;
    hyphens: auto;
}

.about-text p:last-child {
    margin-bottom: 0;
}

/* ============================================
   Footer
   ============================================ */

.site-footer {
    background: var(--navy);
    color: var(--white);
    padding: 2rem 0 1.25rem;
    margin-top: 0;
    flex-shrink: 0;
}

.site-footer .container {
    max-width: var(--page-width);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-info {
    text-align: left;
}

.footer-name {
    font-family: var(--font-serif);
    font-size: 1.05rem;
    font-weight: 600;
    margin: 0 0 0.15rem 0;
}

.footer-position {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.55);
    margin: 0;
}

.footer-social {
    display: flex;
    gap: 0.75rem;
}

.footer-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    color: rgba(255, 255, 255, 0.6);
    background: rgba(255, 255, 255, 0.06);
    font-size: 0.9rem;
    transition: all var(--transition);
    text-decoration: none;
}

.footer-social a:hover {
    color: var(--white);
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-1px);
}

.footer-bottom {
    padding-top: 1rem;
    text-align: center;
}

.footer-bottom p {
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.4);
    margin: 0;
}

/* ============================================
   Home Page
   ============================================ */

.home-header {
    display: flex;
    align-items: flex-start;
    gap: 2.5rem;
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border);
}

.profile-photo {
    width: 170px;
    height: 170px;
    border-radius: 50%;
    object-fit: cover;
    object-position: center 10%;
    border: 3px solid var(--gray-200);
    box-shadow: var(--shadow-md);
    flex-shrink: 0;
}

.home-intro h1 {
    font-family: var(--font-serif);
    color: var(--heading);
    margin: 0 0 0.25rem 0;
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.home-intro .title {
    color: var(--accent);
    font-size: 1rem;
    margin: 0 0 0.15rem 0;
    font-weight: 500;
}

.home-intro .tagline {
    color: var(--text-muted);
    font-size: 0.9rem;
    font-style: italic;
    margin: 0 0 0.75rem 0;
}

.home-intro .affiliation {
    color: var(--text-secondary);
    font-size: 0.88rem;
    margin: 0 0 0.75rem 0;
    line-height: 1.6;
}

.home-intro .affiliation i {
    width: 16px;
    color: var(--accent);
    margin-right: 0.25rem;
    font-size: 0.85rem;
}

/* Social Links */
.social-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.75rem;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.4rem 0.85rem;
    color: var(--text-secondary);
    font-size: 0.82rem;
    font-weight: 500;
    border-radius: 20px;
    background: var(--surface-alt);
    border: 1px solid var(--border);
    text-decoration: none;
    transition: all var(--transition);
}

.social-links a:hover {
    color: var(--white);
    background: var(--accent);
    border-color: var(--accent);
}

.social-links a i {
    font-size: 0.85rem;
}

/* Research Interests Tags */
.research-interests {
    background: var(--surface-alt);
    padding: 1.25rem 1.5rem;
    border-radius: var(--radius);
    margin: 1.5rem 0;
    border: 1px solid var(--border);
}

.research-interests h3 {
    margin: 0 0 0.75rem 0;
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

.interest-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.interest-tag {
    background: var(--white);
    padding: 0.4rem 0.9rem;
    border-radius: 20px;
    font-size: 0.82rem;
    color: var(--text);
    border: 1px solid var(--border);
    font-weight: 500;
}

.interest-tag i {
    color: var(--accent);
    margin-right: 0.35rem;
    font-size: 0.8rem;
}

/* News Section */
.news-list {
    margin-top: 0.75rem;
}

.news-item {
    display: flex;
    gap: 0.75rem;
    padding: 0.65rem 0;
    border-bottom: 1px solid var(--gray-100);
    align-items: center;
}

.news-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent);
    flex-shrink: 0;
    opacity: 0.6;
}

.news-item:first-child .news-dot {
    opacity: 1;
    box-shadow: 0 0 0 3px var(--blue-pale);
}

.news-item:last-child {
    border-bottom: none;
}

.news-date {
    color: var(--accent);
    font-weight: 600;
    font-size: 0.82rem;
    min-width: 75px;
    flex-shrink: 0;
}

.news-text {
    color: var(--text);
    font-size: 0.9rem;
}

/* ============================================
   Research Page
   ============================================ */

.research-areas {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
    margin: 2rem 0;
}

.research-card {
    background: var(--surface-alt);
    padding: 1.5rem;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    transition: all var(--transition);
}

.research-card:hover {
    border-color: var(--accent);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.research-icon {
    width: 44px;
    height: 44px;
    background: var(--accent);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

.research-icon i {
    color: var(--white);
    font-size: 1.2rem;
}

.research-card h3 {
    color: var(--heading);
    font-size: 1.02rem;
    font-weight: 600;
    margin: 0 0 0.6rem 0;
}

.research-card p {
    color: var(--text-secondary);
    font-size: 0.88rem;
    margin: 0;
    line-height: 1.6;
}

/* Publications */
.publications-list {
    /* No counter styles needed */
}

.publication {
    display: flex;
    gap: 0.85rem;
    padding: 1rem 0;
    border-bottom: 1px solid var(--gray-100);
}

.publication:last-child {
    border-bottom: none;
}

.pub-number {
    color: var(--accent);
    font-weight: 700;
    font-size: 0.82rem;
    min-width: 28px;
    flex-shrink: 0;
    padding-top: 0.1rem;
}

.pub-content {
    flex: 1;
}

.pub-title {
    font-weight: 600;
    color: var(--heading);
    font-size: 0.93rem;
    margin-bottom: 0.25rem;
    line-height: 1.5;
}

.pub-authors {
    color: var(--text-secondary);
    font-size: 0.84rem;
    margin-bottom: 0.15rem;
    line-height: 1.5;
}

.pub-authors strong {
    color: var(--heading);
}

.pub-venue {
    color: var(--text-muted);
    font-size: 0.82rem;
    font-style: normal;
}

.pub-links {
    margin-top: 0.35rem;
}

.pub-links a {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.78rem;
    font-weight: 500;
    color: var(--accent);
    text-decoration: none;
    padding: 0.2rem 0.55rem;
    border: 1px solid var(--accent);
    border-radius: var(--radius-sm);
    transition: all var(--transition);
}

.pub-links a:hover {
    background: var(--accent);
    color: #fff;
}

.pub-links a i {
    font-size: 0.7rem;
}

.pub-annotation {
    margin-top: 0.5rem;
    font-size: 0.82rem;
    color: var(--text-muted);
    font-style: italic;
    line-height: 1.5;
}

.pub-footnote {
    margin-top: 1rem;
    font-size: 0.82rem;
    color: var(--text-muted);
}

.badge-dev {
    font-size: 0.68rem;
    font-weight: normal;
    color: var(--text-muted);
    border: 1px solid var(--border);
    border-radius: 3px;
    padding: 0.1rem 0.35rem;
    vertical-align: middle;
    margin-left: 0.4rem;
    letter-spacing: 0.02em;
}

/* Presentations */
.presentations-grid {
    display: grid;
    gap: 0.75rem;
    margin-top: 1rem;
}

.presentation-item {
    padding: 1rem 1.25rem;
    background: var(--surface-alt);
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
}

.pres-type {
    font-size: 0.7rem;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    font-weight: 600;
}

.pres-title {
    font-weight: 600;
    color: var(--heading);
    font-size: 0.95rem;
    margin: 0.2rem 0;
}

.pres-venue {
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* ============================================
   Experience Page
   ============================================ */

/* Education (on Experience page) */
.education-item {
    display: flex;
    gap: 1.25rem;
    padding: 1.25rem 1.5rem;
    margin-bottom: 0.75rem;
    background: var(--surface-alt);
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    transition: box-shadow var(--transition);
}

.education-item:hover {
    box-shadow: var(--shadow-sm);
}

.edu-icon {
    width: 42px;
    height: 42px;
    background: var(--accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 0.1rem;
}

.edu-icon i {
    color: var(--white);
    font-size: 1rem;
}

.edu-body {
    flex: 1;
}

.edu-degree {
    font-weight: 600;
    font-size: 1.02rem;
    color: var(--heading);
}

.edu-school {
    color: var(--accent);
    font-size: 0.9rem;
}

.edu-year {
    color: var(--text-muted);
    font-size: 0.82rem;
    margin-bottom: 0.4rem;
}

.edu-year i {
    margin-right: 0.25rem;
}

.edu-details {
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Timeline */
.timeline {
    position: relative;
    padding-left: 28px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 8px;
    top: 12px;
    bottom: 12px;
    width: 2px;
    background: var(--gray-200);
}

.timeline-item {
    position: relative;
    margin-bottom: 1.25rem;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-marker {
    position: absolute;
    left: -24px;
    top: 1.4rem;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--white);
    border: 3px solid var(--accent);
    z-index: 1;
}

.timeline-item:first-child .timeline-marker {
    background: var(--accent);
    border-color: var(--accent);
    box-shadow: 0 0 0 4px var(--blue-pale);
}

.timeline-content {
    background: var(--surface-alt);
    border-radius: var(--radius);
    padding: 1.25rem 1.5rem;
    border: 1px solid var(--border);
    transition: box-shadow var(--transition);
}

.timeline-content:hover {
    box-shadow: var(--shadow-sm);
}

.exp-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-bottom: 0.2rem;
}

.exp-title {
    font-weight: 600;
    color: var(--heading);
    font-size: 1.02rem;
}

.exp-badge {
    background: var(--accent);
    color: var(--white);
    font-size: 0.68rem;
    font-weight: 600;
    padding: 0.15rem 0.6rem;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.exp-period {
    color: var(--text-muted);
    font-size: 0.82rem;
    font-weight: 500;
}

.exp-period i {
    margin-right: 0.2rem;
}

.exp-institution {
    color: var(--text-secondary);
    font-size: 0.88rem;
    margin-bottom: 0.3rem;
}

.exp-institution i {
    color: var(--accent);
    margin-right: 0.3rem;
    font-size: 0.82rem;
}

.exp-summary {
    color: var(--text);
    font-size: 0.88rem;
    margin: 0.4rem 0 0 0;
    line-height: 1.6;
}

/* Teaching Cards */
.teaching-grid {
    display: grid;
    gap: 1rem;
}

.teaching-card {
    background: var(--surface-alt);
    border-radius: var(--radius);
    padding: 1.25rem 1.5rem;
    border: 1px solid var(--border);
    transition: box-shadow var(--transition);
}

.teaching-card:hover {
    box-shadow: var(--shadow-sm);
}

.teach-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.2rem;
}

.teach-role {
    font-weight: 600;
    color: var(--heading);
    font-size: 1rem;
}

.teach-period {
    color: var(--accent);
    font-size: 0.78rem;
    font-weight: 600;
    background: var(--blue-pale);
    padding: 0.15rem 0.6rem;
    border-radius: 20px;
}

.teach-inst {
    color: var(--text-secondary);
    font-size: 0.88rem;
    margin-bottom: 0.6rem;
}

.teach-inst i {
    color: var(--accent);
    margin-right: 0.3rem;
    font-size: 0.82rem;
}

.teach-courses {
    list-style: none;
    padding: 0;
    margin: 0;
}

.teach-courses li {
    padding: 0.4rem 0;
    border-bottom: 1px solid var(--gray-100);
    font-size: 0.88rem;
}

.teach-courses li:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.course-name {
    font-weight: 600;
    color: var(--heading);
    display: block;
    font-size: 0.9rem;
}

.course-detail {
    color: var(--text-muted);
    font-size: 0.82rem;
}

/* Awards List (Experience page) */
.awards-list {
    display: grid;
    gap: 0.6rem;
}

.award-item {
    display: flex;
    gap: 1rem;
    padding: 0.9rem 1.1rem;
    background: var(--surface-alt);
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    align-items: center;
    transition: box-shadow var(--transition);
}

.award-item:hover {
    box-shadow: var(--shadow-sm);
}

.award-icon {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.award-icon i {
    color: var(--white);
    font-size: 0.85rem;
}

.award-body {
    flex: 1;
}

.award-title {
    font-weight: 600;
    color: var(--heading);
    font-size: 0.92rem;
}

.award-meta {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    font-size: 0.8rem;
    margin-top: 0.1rem;
}

.award-source {
    color: var(--text-secondary);
}

.award-year {
    color: var(--accent);
    font-weight: 600;
}

/* Service Grid */
.service-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.service-card {
    background: var(--surface-alt);
    border-radius: var(--radius-sm);
    padding: 1rem 1.25rem;
    border: 1px solid var(--border);
    border-left: 3px solid var(--accent);
    transition: box-shadow var(--transition);
}

.service-card:hover {
    box-shadow: var(--shadow-sm);
}

.service-role {
    font-weight: 600;
    color: var(--heading);
    font-size: 0.9rem;
}

.service-org {
    color: var(--text-secondary);
    font-size: 0.82rem;
}

.service-period {
    color: var(--accent);
    font-size: 0.78rem;
    font-weight: 600;
    margin-top: 0.25rem;
}

/* Membership Badges */
.membership-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.membership-badge {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.65rem 1rem;
    background: var(--surface-alt);
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    font-size: 0.88rem;
    color: var(--text);
}

.membership-badge i {
    color: var(--accent);
    font-size: 0.9rem;
}

/* Skills Grouped */
.skills-grouped {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.skill-group {
    background: var(--surface-alt);
    border-radius: var(--radius-sm);
    padding: 1rem 1.25rem;
    border: 1px solid var(--border);
}

.skill-group-label {
    font-size: 0.72rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    font-weight: 600;
    margin-bottom: 0.6rem;
}

.skill-group-label i {
    color: var(--accent);
    margin-right: 0.3rem;
    font-size: 0.7rem;
}

/* ============================================
   Blog Page
   ============================================ */

.blog-intro {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 2rem;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid var(--border);
    line-height: 1.7;
}

.blog-posts {
    max-width: 100%;
}

.blog-card {
    margin-bottom: 1rem;
}

.blog-card-content {
    display: flex;
    gap: 1.25rem;
    padding: 1.25rem;
    background: var(--surface-alt);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    transition: all var(--transition);
}

.blog-card-content:hover {
    border-color: var(--accent);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.blog-card-date {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 60px;
    padding: 0.6rem;
    background: var(--navy);
    border-radius: var(--radius-sm);
    color: var(--white);
    text-align: center;
    flex-shrink: 0;
}

.date-day {
    font-size: 1.4rem;
    font-weight: 700;
    line-height: 1;
}

.date-month {
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 0.15rem;
    opacity: 0.75;
}

.blog-card-text h3 {
    margin: 0 0 0.4rem 0;
    font-size: 1.1rem;
    font-weight: 600;
}

.blog-card-text h3 a {
    color: var(--heading);
    text-decoration: none;
    transition: color var(--transition);
}

.blog-card-text h3 a:hover {
    color: var(--accent);
}

.post-excerpt {
    color: var(--text-secondary);
    font-size: 0.88rem;
    margin: 0 0 0.6rem 0;
    line-height: 1.6;
}

.post-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
}

.post-tags .tag {
    background: var(--white);
    color: var(--accent);
    padding: 0.15rem 0.55rem;
    border-radius: 3px;
    font-size: 0.72rem;
    font-weight: 600;
    border: 1px solid var(--blue-pale);
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

/* Blog Featured Card */
.blog-card-featured .blog-card-content {
    border-left: 3px solid var(--accent);
    background: linear-gradient(135deg, var(--surface-alt) 0%, var(--blue-pale) 100%);
}

.featured-label {
    display: inline-block;
    background: var(--accent);
    color: var(--white);
    font-size: 0.62rem;
    font-weight: 700;
    padding: 0.1rem 0.5rem;
    border-radius: 3px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-left: 0.5rem;
    vertical-align: middle;
}

.blog-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 0.4rem;
}

.read-time {
    color: var(--text-muted);
    font-size: 0.78rem;
    white-space: nowrap;
}

.read-time i {
    margin-right: 0.25rem;
    font-size: 0.72rem;
}

/* Skill Tags (shared) */
.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.skill-tag {
    background: var(--white);
    color: var(--text);
    padding: 0.35rem 0.85rem;
    border-radius: 20px;
    font-size: 0.82rem;
    border: 1px solid var(--border);
    font-weight: 500;
    transition: all var(--transition);
}

.skill-tag:hover {
    background: var(--accent);
    color: var(--white);
    border-color: var(--accent);
}

/* ============================================
   Post Layout (with sidebar)
   ============================================ */

.post-layout {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 2.5rem;
    align-items: start;
}

.post-sidebar {
    position: sticky;
    top: 80px;
}

.sidebar-inner {
    padding: 0;
}

.sidebar-heading {
    font-size: 0.7rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
    margin: 0 0 1rem 0;
    padding-bottom: 0.6rem;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.sidebar-heading i {
    font-size: 0.7rem;
}

.sidebar-posts {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-posts li {
    margin-bottom: 0.6rem;
}

.sidebar-post-link {
    display: block;
    padding: 0.5rem 0.6rem;
    border-radius: var(--radius-sm);
    transition: background var(--transition);
    text-decoration: none;
}

.sidebar-post-link:hover {
    background: var(--surface-alt);
}

.sidebar-post-title {
    display: block;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--heading);
    line-height: 1.35;
    margin-bottom: 0.15rem;
}

.sidebar-post-date {
    display: block;
    font-size: 0.7rem;
    color: var(--text-muted);
}

.sidebar-post-link:hover .sidebar-post-title {
    color: var(--accent);
}

.sidebar-back {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.78rem;
    font-weight: 500;
    color: var(--accent);
    margin-top: 0.75rem;
    padding: 0.35rem 0;
    text-decoration: none;
}

.sidebar-back:hover {
    color: var(--accent-hover);
}

/* Post Article */
.post-article {
    min-width: 0;
}

.post-header {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border);
}

.post-meta-top {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 0.75rem;
    font-weight: 500;
}

.meta-sep {
    color: var(--gray-300);
}

.post-title {
    font-family: var(--font-serif);
    font-size: 1.85rem;
    font-weight: 700;
    color: var(--heading);
    margin: 0 0 0.5rem 0;
    letter-spacing: -0.02em;
    line-height: 1.25;
}

.post-description {
    font-size: 1rem;
    color: var(--text-secondary);
    margin: 0 0 0.75rem 0;
    line-height: 1.6;
}

.post-header .post-tags .tag {
    background: var(--surface-alt);
    color: var(--text-secondary);
    padding: 0.2rem 0.6rem;
    border-radius: 3px;
    font-size: 0.72rem;
    font-weight: 600;
    border: 1px solid var(--border);
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

/* Post Navigation */
.post-nav {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
}

.post-nav-item a {
    display: block;
    padding: 1rem;
    border-radius: var(--radius-sm);
    background: var(--surface-alt);
    border: 1px solid var(--border);
    text-decoration: none;
    transition: all var(--transition);
}

.post-nav-item a:hover {
    border-color: var(--accent);
    box-shadow: var(--shadow-sm);
}

.post-nav-label {
    display: block;
    font-size: 0.72rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
    margin-bottom: 0.3rem;
}

.post-nav-title {
    display: block;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--heading);
}

.post-nav-next {
    text-align: right;
}

/* ============================================
   Buttons & UI
   ============================================ */

.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--navy);
    color: #fff;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s, transform 0.2s;
    z-index: 999;
    box-shadow: var(--shadow-sm);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    transform: translateY(-2px);
    background: var(--accent);
}

.btn {
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    font-weight: 500;
    padding: 0.5rem 1.2rem;
    transition: all var(--transition);
}

.btn:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm);
}

.btn-primary {
    background: var(--accent);
    border-color: var(--accent);
}

.btn-primary:hover {
    background: var(--accent-hover);
    border-color: var(--accent-hover);
}

.btn-outline-primary {
    color: var(--accent);
    border-color: var(--accent);
}

.btn-outline-primary:hover {
    background: var(--accent);
    border-color: var(--accent);
}

/* ============================================
   Print Styles
   ============================================ */

@media print {
    .navbar,
    .site-footer,
    .post-sidebar,
    .post-nav,
    .btn {
        display: none !important;
    }

    .main-container {
        max-width: none;
        margin: 0;
        padding: 0;
        box-shadow: none;
        border: none;
    }

    body {
        background: white;
    }
}

/* ============================================
   Responsive - Tablet
   ============================================ */

@media (max-width: 992px) {
    .main-container {
        margin: 1.5rem 1rem;
        padding: 2rem;
    }

    .post-layout {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .post-sidebar {
        position: static;
        display: none;
    }
}

/* ============================================
   Responsive - Mobile
   ============================================ */

@media (max-width: 768px) {
    .main-container {
        margin: 0;
        border-radius: 0;
        padding: 1.5rem 1.25rem;
        box-shadow: none;
        border-left: 0;
        border-right: 0;
    }

    /* Nav */
    .navbar-nav {
        padding: 0.5rem 0;
    }

    .nav-link {
        padding: 0.6rem 0.5rem !important;
    }

    .nav-link::after {
        display: none;
    }

    /* Home */
    .home-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 1.5rem;
    }

    .profile-photo {
        width: 140px;
        height: 140px;
    }

    .home-intro h1 {
        font-size: 1.6rem;
    }

    .social-links {
        justify-content: center;
    }

    .home-intro .affiliation {
        text-align: center;
    }

    .interest-tags {
        justify-content: center;
    }

    /* Content */
    .page-header h1 {
        font-size: 1.6rem;
    }

    .post-title {
        font-size: 1.45rem;
    }

    .content h2 {
        font-size: 1.3rem;
    }

    /* News */
    .news-item {
        flex-wrap: wrap;
        gap: 0.25rem;
    }

    .news-text {
        flex-basis: 100%;
    }

    /* Research */
    .research-areas {
        grid-template-columns: 1fr;
    }

    /* Experience */
    .exp-header {
        flex-direction: column;
        gap: 0.15rem;
    }

    .timeline {
        padding-left: 20px;
    }

    .timeline-marker {
        left: -16px;
        width: 10px;
        height: 10px;
    }

    .timeline::before {
        left: 6px;
    }

    .service-grid {
        grid-template-columns: 1fr;
    }

    .skills-grouped {
        grid-template-columns: 1fr;
    }

    .education-item {
        flex-direction: column;
        gap: 0.75rem;
    }

    .membership-badges {
        flex-direction: column;
    }

    .section-heading {
        font-size: 1.15rem;
    }

    .blog-card-footer {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.35rem;
    }

    /* Footer */
    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }

    .footer-info {
        text-align: center;
    }

    /* Blog */
    .blog-card-content {
        flex-direction: column;
        gap: 0.75rem;
    }

    .blog-card-date {
        flex-direction: row;
        gap: 0.4rem;
        justify-content: flex-start;
        padding: 0.4rem 0.75rem;
        width: fit-content;
    }

    .date-day {
        font-size: 1.1rem;
    }

    /* Post nav */
    .post-nav {
        grid-template-columns: 1fr;
    }
}

/* ============================================
   Theme Toggle Button
   ============================================ */

.theme-toggle {
    background: none;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.7);
    cursor: pointer;
    padding: 0.35rem 0.55rem;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    transition: color var(--transition), border-color var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 0.5rem;
}

.theme-toggle:hover {
    color: var(--white);
    border-color: rgba(255, 255, 255, 0.4);
}

.theme-toggle .fa-moon { display: inline; }
.theme-toggle .fa-sun { display: none; }

[data-theme="dark"] .theme-toggle .fa-moon { display: none; }
[data-theme="dark"] .theme-toggle .fa-sun { display: inline; }

@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) .theme-toggle .fa-moon { display: none; }
    :root:not([data-theme="light"]) .theme-toggle .fa-sun { display: inline; }
}

[data-theme="light"] {
    color-scheme: light;
}

/* ============================================
   2026 Editorial Redesign
   ============================================ */

body {
    font-size: 1rem;
    line-height: 1.75;
    background:
        radial-gradient(circle at 8% 5%, rgba(50, 111, 159, 0.09), transparent 25rem),
        var(--surface-alt);
}

a {
    text-decoration-thickness: 1px;
    text-underline-offset: 0.18em;
}

.navbar {
    min-height: 76px;
    padding: 0.7rem 0;
    background: color-mix(in srgb, var(--surface) 92%, transparent);
    border-bottom: 1px solid var(--border);
    box-shadow: none;
    backdrop-filter: blur(16px);
}

.navbar .container {
    max-width: var(--page-width);
}

.navbar-brand {
    display: inline-flex;
    flex-direction: row;
    align-items: center;
    gap: 0.75rem;
    color: var(--heading) !important;
}

.brand-mark {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--navy);
    color: #fffdf8;
    font-family: var(--font-serif);
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.04em;
}

.brand-lockup {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.brand-name {
    color: var(--heading);
    font-size: 1rem;
}

.brand-sub {
    margin: 0.25rem 0 0;
    color: var(--text-muted);
    font-size: 0.64rem;
    letter-spacing: 0.12em;
}

.nav-link {
    margin: 0 0.12rem;
    padding: 0.5rem 0.68rem !important;
    color: var(--text-secondary) !important;
    font-size: 0.82rem;
    font-weight: 600;
    border-radius: 999px;
}

.nav-link::after {
    display: none;
}

.nav-link:hover {
    color: var(--heading) !important;
    background: var(--gray-100);
}

.nav-link.active {
    color: #fffdf8 !important;
    background: var(--navy);
}

.navbar-toggler {
    border-color: var(--border);
    background: var(--navy);
}

.theme-toggle {
    width: 36px;
    height: 36px;
    margin-left: 0.7rem;
    padding: 0;
    border-color: var(--border);
    border-radius: 50%;
    color: var(--text-secondary);
    background: var(--surface);
}

.theme-toggle:hover {
    color: var(--heading);
    border-color: var(--accent);
    background: var(--blue-pale);
}

.main-container {
    max-width: var(--page-width);
    margin: 3rem auto 5rem;
    padding: 0 2rem;
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
}

.page-article {
    max-width: 960px;
    margin: 0 auto;
}

.page-header {
    margin-bottom: 2.75rem;
    padding: 0 0 1.75rem;
    border-bottom: 1px solid var(--border);
    text-align: left;
}

.page-kicker {
    margin-bottom: 0.7rem;
    color: var(--warm);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.page-header h1 {
    max-width: 760px;
    margin: 0;
    color: var(--heading);
    font-size: clamp(2.75rem, 5vw, 3.85rem);
    font-weight: 600;
    line-height: 0.98;
    letter-spacing: -0.035em;
}

.page-description {
    max-width: 680px;
    margin: 1.1rem 0 0;
    color: var(--text-secondary);
    font-size: 1.05rem;
    line-height: 1.65;
}

.content {
    color: var(--text);
}

.content p,
.content li {
    font-size: 1rem;
    line-height: 1.75;
    text-align: left;
    hyphens: none;
}

.content a {
    text-decoration: underline;
    text-decoration-color: color-mix(in srgb, var(--accent) 35%, transparent);
}

.content h2,
.section-heading {
    margin: 0 0 1.5rem;
    padding: 0;
    border: 0;
    color: var(--heading);
    font-family: var(--font-serif);
    font-size: clamp(1.6rem, 2.4vw, 1.95rem);
    font-weight: 600;
    letter-spacing: -0.02em;
}

.content h2::before {
    display: none;
}

.section-heading i {
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    margin-right: 0.65rem;
    border-radius: 50%;
    color: var(--warm);
    background: var(--warm-pale);
    font-size: 0.76rem;
}

.home-header {
    position: relative;
    display: grid;
    grid-template-columns: minmax(210px, 240px) minmax(0, 1fr);
    align-items: center;
    gap: clamp(3rem, 5vw, 4rem);
    min-height: 0;
    margin: -3rem -2rem 3.75rem;
    padding: clamp(3.25rem, 5vw, 3.75rem) 2rem;
    border-bottom: 1px solid var(--border);
}

.home-header::after {
    display: none;
}

.portrait-panel {
    position: relative;
    grid-column: 1;
    grid-row: 1;
    width: min(100%, 240px);
    justify-self: start;
    isolation: isolate;
}

.portrait-panel::after {
    content: "";
    position: absolute;
    inset: 14px -14px -14px 14px;
    z-index: -1;
    border: 1px solid color-mix(in srgb, var(--warm) 42%, var(--border));
    border-radius: 22px;
    background: color-mix(in srgb, var(--warm-pale) 55%, transparent);
}

.profile-photo {
    position: relative;
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 5;
    border: 1px solid color-mix(in srgb, var(--heading) 12%, var(--border));
    border-radius: 18px;
    box-shadow: var(--shadow-lg);
    object-fit: cover;
    object-position: center 10%;
}

.home-intro {
    grid-column: 2;
    grid-row: 1;
    max-width: 640px;
}

.content .hero-kicker {
    margin: 0 0 1.25rem;
    color: var(--warm);
    font-size: 0.76rem;
    font-weight: 700;
    line-height: 1.4;
    letter-spacing: 0.15em;
    text-align: left;
    text-transform: uppercase;
}

.content .home-intro h1 {
    max-width: 640px;
    margin: 0 0 1rem;
    color: var(--heading);
    font-size: clamp(2.9rem, 4.4vw, 3.85rem);
    font-weight: 600;
    line-height: 0.9;
    letter-spacing: -0.05em;
}

.hero-name-primary,
.hero-name-family {
    display: block;
}

.hero-name-family {
    margin-top: 0.12em;
    font-size: 0.82em;
    letter-spacing: 0.015em;
}

.content .home-intro .title {
    color: var(--accent);
    font-size: 0.86rem;
    font-weight: 700;
    line-height: 1.4;
    letter-spacing: 0.04em;
    text-align: left;
    text-transform: uppercase;
}

.content .home-intro .tagline {
    max-width: 620px;
    color: var(--text-secondary);
    font-family: var(--font-serif);
    font-size: clamp(1.05rem, 1.35vw, 1.18rem);
    font-style: normal;
    line-height: 1.55;
    text-align: left;
}

.content .home-intro .affiliation {
    color: var(--text-muted);
    text-align: left;
}

.social-links {
    gap: 0.4rem;
}

.social-links a {
    padding: 0.35rem 0.55rem;
    border: 0;
    color: var(--text-secondary);
    background: transparent;
    font-size: 0.75rem;
}

.social-links a:hover {
    color: var(--accent);
    background: var(--blue-pale);
    transform: none;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1.4rem;
}

.button,
.content .button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    min-height: 44px;
    padding: 0.65rem 1rem;
    border: 1px solid var(--border);
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 700;
    text-decoration: none;
}

.button-primary,
.content .button-primary {
    border-color: var(--navy);
    color: #fffdf8;
    background: var(--navy);
}

.button-primary:hover,
.content .button-primary:hover {
    border-color: var(--accent-hover);
    color: #fffdf8;
    background: var(--accent-hover);
}

.button-secondary,
.content .button-secondary {
    color: var(--heading);
    background: var(--surface);
}

.home-section,
.exp-section,
.research-section {
    margin-bottom: 3.75rem;
    scroll-margin-top: 100px;
}

.section-nav {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.45rem 1rem;
    margin: -1rem 0 3.25rem;
    padding: 0 0 1rem;
    border-bottom: 1px solid var(--border);
}

.section-nav-label {
    color: var(--text-muted);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.section-nav a {
    color: var(--text-secondary);
    font-size: 0.78rem;
    font-weight: 600;
    text-decoration: none;
}

.section-nav a:hover {
    color: var(--accent);
}

.about-text {
    max-width: 760px;
    font-size: 1rem;
}

.about-text p {
    text-align: left;
}

.section-intro {
    margin-bottom: 1.5rem;
}

.interest-tags-spaced,
.contact-line {
    margin-top: 1.2rem;
}

.institutional-note {
    color: var(--text-muted);
    font-size: 0.82rem;
}

.about-text details {
    margin-bottom: 1rem;
}

.about-text details p {
    margin-top: 0.65rem;
}

.research-interests {
    margin-top: 2rem;
    padding: 1.5rem;
    border-left: 3px solid var(--warm);
    border-radius: 0 var(--radius) var(--radius) 0;
    background: var(--surface);
}

.interest-tag,
.skill-tag,
.membership-badge,
.post-tags .tag {
    border: 1px solid var(--border);
    border-radius: 999px;
    color: var(--text-secondary);
    background: var(--surface);
}

.interest-tag i {
    color: var(--warm);
}

.news-list {
    border-top: 1px solid var(--border);
}

.news-item {
    display: grid;
    grid-template-columns: 86px minmax(0, 1fr);
    gap: 1.25rem;
    padding: 1.15rem 0;
    border-bottom: 1px solid var(--border);
}

.news-dot {
    display: none;
}

.news-date {
    color: var(--warm);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.research-areas {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.research-card,
.education-item,
.timeline-content,
.teaching-card,
.award-item,
.service-card,
.skill-group {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface);
    box-shadow: none;
}

.research-card {
    padding: 1.6rem;
}

.research-card > p {
    margin-bottom: 0;
}

.research-card .card-action {
    margin-top: 1.15rem;
}

.research-card .card-action a {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    color: var(--accent);
    font-size: 0.78rem;
    font-weight: 700;
    text-decoration: none;
}

.research-card .card-action a:hover {
    color: var(--accent-hover);
}

.research-card-details {
    margin: 1rem 0 0;
    padding: 0.85rem 0 0;
    border: 0;
    border-top: 1px solid var(--border);
    border-radius: 0;
    background: transparent;
}

.research-card-details summary {
    color: var(--accent);
    font-size: 0.76rem;
    font-weight: 700;
}

.research-card-details[open] summary {
    margin-bottom: 0.8rem;
}

.research-card-details .pub-annotation {
    margin: 0 0 0.65rem;
    font-size: 0.82rem;
    line-height: 1.6;
}

.research-card-details .pub-annotation:last-child {
    margin-bottom: 0;
}

.research-card:hover,
.education-item:hover,
.timeline-content:hover,
.teaching-card:hover,
.award-item:hover,
.service-card:hover {
    border-color: color-mix(in srgb, var(--accent) 45%, var(--border));
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.research-icon,
.edu-icon,
.award-icon {
    color: var(--warm);
    background: var(--warm-pale);
}

.research-card h3,
.pub-title,
.edu-degree,
.exp-title,
.teach-role,
.award-title {
    color: var(--heading);
    font-family: var(--font-serif);
}

.publication {
    grid-template-columns: 44px minmax(0, 1fr);
    gap: 1rem;
    padding: 1.5rem 0;
    border-bottom: 1px solid var(--border);
}

.pub-number {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    color: var(--warm);
    background: var(--warm-pale);
    font-family: var(--font-serif);
}

.pub-links a {
    border-radius: 999px;
    color: var(--accent);
    background: var(--blue-pale);
}

.timeline::before {
    background: var(--border);
}

.timeline-marker {
    border-color: var(--surface-alt);
    background: var(--warm);
}

.timeline-item:first-child .timeline-marker {
    background: var(--accent);
}

.blog-intro {
    max-width: 720px;
    margin: -1.5rem 0 3rem;
    padding: 0;
    border: 0;
    color: var(--text-secondary);
    background: transparent;
    font-family: var(--font-serif);
    font-size: 1.2rem;
}

.blog-posts {
    gap: 0;
    border-top: 1px solid var(--border);
}

.blog-card-content,
.blog-card-featured .blog-card-content {
    gap: 1.5rem;
    padding: 1.6rem 0;
    border: 0;
    border-bottom: 1px solid var(--border);
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.blog-card-content:hover {
    padding-left: 0.7rem;
    border-color: var(--border);
    box-shadow: none;
    transform: none;
}

.blog-card-date {
    width: 84px;
    min-width: 84px;
    border-radius: var(--radius-sm);
    color: var(--warm);
    background: var(--warm-pale);
}

.blog-card-text h3 a {
    color: var(--heading);
    font-family: var(--font-serif);
    font-size: 1.2rem;
}

.blog-archive {
    margin-top: 3.75rem;
}

.archive-list {
    margin: 0;
    padding: 0;
    border-top: 1px solid var(--border);
    list-style: none;
}

.archive-list li {
    display: grid;
    grid-template-columns: 88px minmax(0, 1fr);
    gap: 1rem;
    align-items: baseline;
    padding: 0.85rem 0;
    border-bottom: 1px solid var(--border);
}

.archive-list time {
    color: var(--warm);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.archive-list a {
    color: var(--heading);
    font-family: var(--font-serif);
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.35;
    text-decoration: none;
}

.archive-list a:hover {
    color: var(--accent);
}

.featured-label {
    border-radius: 999px;
    color: #fffdf8;
    background: var(--warm);
}

.post-layout {
    grid-template-columns: 220px minmax(0, 760px);
    gap: 4rem;
    justify-content: center;
}

.sidebar-inner {
    padding: 1.2rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: color-mix(in srgb, var(--surface) 75%, transparent);
}

.sidebar-post-link:hover {
    background: var(--blue-pale);
}

.post-header {
    margin-bottom: 2.5rem;
    padding-bottom: 2.5rem;
    border-bottom: 1px solid var(--border);
}

.post-title {
    color: var(--heading);
    font-size: clamp(2.4rem, 4.5vw, 3.5rem);
    line-height: 1;
    letter-spacing: -0.04em;
}

.post-description {
    max-width: 680px;
    color: var(--text-secondary);
    font-family: var(--font-serif);
    font-size: 1.08rem;
}

.post-nav-item a {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface);
}

details {
    padding: 1rem 1.15rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--surface);
}

details summary {
    cursor: pointer;
    color: var(--heading);
}

.cta-block {
    max-width: none;
    padding: 2rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    text-align: center;
    background: var(--surface);
}

.booking-panel {
    max-width: 640px;
    padding: clamp(1.25rem, 4vw, 2rem);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface);
}

.form-field {
    margin-bottom: 1.25rem;
}

.form-field label {
    display: block;
    margin-bottom: 0.45rem;
    color: var(--heading);
    font-size: 0.88rem;
    font-weight: 700;
}

.required-mark,
.form-error {
    color: var(--warm);
}

.form-control {
    width: 100%;
    padding: 0.72rem 0.8rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text);
    background: var(--surface-alt);
    font: inherit;
}

textarea.form-control {
    resize: vertical;
}

.form-control:focus {
    border-color: var(--accent);
    outline: 3px solid color-mix(in srgb, var(--accent) 18%, transparent);
    box-shadow: none;
}

.form-control[aria-invalid="true"] {
    border-color: var(--warm);
}

.form-error {
    display: none;
    margin: 0.35rem 0 0;
    font-size: 0.82rem;
}

.booking-fallback,
.booking-status {
    margin: 1rem 0 0;
    color: var(--text-muted);
    font-size: 0.84rem;
}

.calendly-widget {
    display: none;
    min-width: 280px;
    height: 720px;
    margin-top: 1.5rem;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface);
}

.site-footer {
    padding: 3.25rem 0 1.5rem;
    color: #eee9df;
    background: #17324d;
}

.site-footer .container {
    max-width: var(--page-width);
}

.footer-name {
    font-size: 1.25rem;
}

.footer-position,
.footer-bottom p {
    color: rgba(255, 253, 248, 0.62);
}

.footer-social a {
    color: rgba(255, 253, 248, 0.75);
    background: rgba(255, 253, 248, 0.08);
}

.footer-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.45rem 1rem;
}

.footer-nav a {
    color: rgba(255, 253, 248, 0.72);
    font-size: 0.75rem;
    font-weight: 600;
    text-decoration: none;
}

.footer-nav a:hover {
    color: #fffdf8;
}

.back-to-top {
    border-radius: 50%;
    background: var(--warm);
}

@media (max-width: 992px) {
    .main-container {
        margin: 2rem auto 4rem;
        padding: 0 1.5rem;
    }

    .home-header {
        grid-template-columns: minmax(190px, 220px) minmax(0, 1fr);
        gap: 2.75rem;
        margin: -2rem -1.5rem 4rem;
        padding-inline: 1.5rem;
    }

    .post-layout {
        grid-template-columns: minmax(0, 760px);
    }

    .theme-toggle {
        margin: 0.5rem 0;
    }
}

@media (max-width: 768px) {
    .navbar {
        min-height: 68px;
    }

    .main-container {
        margin: 0 auto 3rem;
        padding: 0 1.15rem;
    }

    .page-header {
        margin-top: 2.5rem;
        margin-bottom: 2.5rem;
    }

    .page-header h1 {
        font-size: clamp(2.25rem, 10vw, 3rem);
    }

    .section-nav {
        gap: 0.55rem 0.85rem;
        margin: -0.5rem 0 2.75rem;
    }

    .section-nav-label {
        flex-basis: 100%;
    }

    .home-header {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 2rem;
        min-height: 0;
        margin: 0 -1.15rem 3.5rem;
        padding: 2.25rem 1.15rem 2.75rem;
        text-align: left;
    }

    .portrait-panel {
        order: -1;
        width: 160px;
        justify-self: auto;
        align-self: center;
    }

    .portrait-panel::after {
        inset: 10px -10px -10px 10px;
        border-radius: 18px;
    }

    .profile-photo {
        width: 100%;
        height: auto;
        border-radius: 14px;
    }

    .content .home-intro h1 {
        font-size: clamp(2.65rem, 11.5vw, 3.05rem);
    }

    .content .hero-kicker {
        margin-bottom: 1rem;
        font-size: 0.7rem;
        letter-spacing: 0.12em;
    }

    .content .home-intro .tagline {
        font-size: 1.02rem;
        line-height: 1.55;
    }

    .home-intro .affiliation,
    .social-links {
        justify-content: flex-start;
        text-align: left;
    }

    .hero-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .research-areas {
        grid-template-columns: 1fr;
    }

    .news-item {
        grid-template-columns: 1fr;
        gap: 0.35rem;
    }

    .blog-card-content {
        flex-direction: column;
    }

    .blog-card-date {
        flex-direction: row;
        width: fit-content;
        min-width: 0;
    }

    .archive-list li {
        grid-template-columns: 1fr;
        gap: 0.2rem;
    }

    .footer-nav {
        margin: 0.25rem 0;
    }
}

/* ============================================
   Homepage Editorial Redesign
   ============================================ */

.homepage-editorial {
    width: 100%;
}

.home-hero {
    display: grid;
    grid-template-columns: 210px minmax(0, 1fr);
    gap: clamp(3rem, 6vw, 5rem);
    align-items: center;
    padding: 2.75rem 0 5rem;
    border-bottom: 1px solid var(--border);
}

.home-portrait-wrap {
    width: 210px;
}

.home-portrait {
    position: relative;
    z-index: 1;
    display: block;
    width: 100%;
    aspect-ratio: 4 / 5;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: var(--surface);
    box-shadow: 0 18px 45px rgba(15, 33, 55, 0.12);
    object-fit: cover;
    object-position: center 8%;
}

.home-hero-copy {
    max-width: 620px;
}

.content .home-eyebrow,
.home-eyebrow {
    margin: 0 0 1.1rem;
    color: var(--accent);
    font-size: 0.7rem;
    font-weight: 700;
    line-height: 1.4;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.content .home-hero h1 {
    max-width: 620px;
    margin: 0;
    color: var(--heading);
    font-family: var(--font-sans);
    font-size: clamp(2.65rem, 5vw, 3.35rem);
    font-weight: 700;
    line-height: 1.02;
    letter-spacing: -0.055em;
}

.content .home-hero h1 span {
    display: block;
    margin-top: 0.12em;
    font-size: 0.73em;
    font-weight: 600;
    letter-spacing: 0.05em;
}

.content .home-lede {
    max-width: 610px;
    margin: 1.55rem 0 1.25rem;
    color: var(--text-secondary);
    font-size: clamp(1.08rem, 1.7vw, 1.22rem);
    line-height: 1.58;
}

.content .home-position {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.88rem;
    line-height: 1.65;
}

.content .home-position a {
    color: var(--text-secondary);
    text-decoration-color: var(--border);
}

.home-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.85rem 1.4rem;
    margin-top: 1.75rem;
}

.content .home-primary-action,
.content .home-text-action {
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    min-height: 44px;
    font-size: 0.82rem;
    font-weight: 700;
    text-decoration: none;
}

.content .home-primary-action {
    padding: 0.7rem 1rem;
    border: 1px solid var(--navy);
    border-radius: 8px;
    color: #fffdf8;
    background: var(--navy);
}

.content .home-primary-action:hover {
    border-color: var(--accent-hover);
    color: #fffdf8;
    background: var(--accent-hover);
}

.content .home-text-action {
    color: var(--heading);
    text-decoration: underline;
    text-decoration-color: var(--border);
    text-underline-offset: 0.3em;
}

.content .home-text-action:hover {
    color: var(--accent);
    text-decoration-color: var(--accent);
}

.home-profile-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem 1.2rem;
    margin-top: 1.5rem;
}

.content .home-profile-links a {
    color: var(--text-muted);
    font-size: 0.76rem;
    font-weight: 600;
    text-decoration: none;
}

.content .home-profile-links a:hover {
    color: var(--accent);
}

.home-editorial-section {
    display: grid;
    grid-template-columns: 145px minmax(0, 1fr);
    gap: clamp(2.5rem, 6vw, 4.75rem);
    padding: clamp(3.75rem, 7vw, 5.25rem) 0;
    border-bottom: 1px solid var(--border);
}

.home-section-label p {
    margin: 0.35rem 0 0;
    color: var(--text-muted);
    font-size: 0.68rem;
    font-weight: 700;
    line-height: 1.4;
    letter-spacing: 0.13em;
    text-transform: uppercase;
}

.home-section-content {
    min-width: 0;
}

.content .home-section-content > h2 {
    max-width: 640px;
    margin: 0 0 2rem;
    color: var(--heading);
    font-family: var(--font-sans);
    font-size: clamp(1.65rem, 3vw, 2rem);
    font-weight: 650;
    line-height: 1.2;
    letter-spacing: -0.035em;
}

.home-profile-copy {
    max-width: 690px;
}

.content .home-profile-copy p {
    margin: 0 0 1.15rem;
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.8;
}

.content .home-inline-link {
    display: inline-flex;
    gap: 0.55rem;
    margin-top: 0.35rem;
    color: var(--heading);
    font-size: 0.82rem;
    font-weight: 700;
    text-decoration: none;
}

.content .home-inline-link:hover {
    color: var(--accent);
}

.home-focus-list {
    margin: 0;
    padding: 0;
    border-top: 1px solid var(--border);
    list-style: none;
}

.home-focus-list li {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr);
    gap: 1.25rem;
    padding: 1.65rem 0;
    border-bottom: 1px solid var(--border);
}

.home-focus-list li:last-child {
    border-bottom: 0;
}

.home-item-number {
    padding-top: 0.18rem;
    color: var(--accent);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.08em;
}

.content .home-focus-list h3 {
    margin: 0 0 0.45rem;
    color: var(--heading);
    font-family: var(--font-sans);
    font-size: 1.02rem;
    font-weight: 650;
    line-height: 1.4;
}

.content .home-focus-list p {
    max-width: 620px;
    margin: 0;
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.7;
}

.home-work-list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    border-top: 1px solid var(--border);
}

.home-work-item {
    display: flex;
    flex-direction: column;
    min-width: 0;
    padding: 1.55rem 1.35rem 0 0;
    border-right: 1px solid var(--border);
}

.home-work-item + .home-work-item {
    padding-left: 1.35rem;
}

.home-work-item:last-child {
    padding-right: 0;
    border-right: 0;
}

.content .home-work-meta {
    margin: 0 0 0.8rem;
    color: var(--text-muted);
    font-size: 0.64rem;
    font-weight: 700;
    line-height: 1.4;
    letter-spacing: 0.09em;
    text-transform: uppercase;
}

.content .home-work-item h3 {
    margin: 0 0 0.65rem;
    font-family: var(--font-sans);
    font-size: 1rem;
    font-weight: 650;
    line-height: 1.45;
}

.content .home-work-item h3 a {
    color: var(--heading);
    text-decoration: none;
}

.content .home-work-item h3 a:hover {
    color: var(--accent);
}

.content .home-work-item > p:not(.home-work-meta) {
    margin: 0 0 1.2rem;
    color: var(--text-secondary);
    font-size: 0.82rem;
    line-height: 1.65;
}

.content .home-work-link {
    display: inline-flex;
    gap: 0.45rem;
    margin-top: auto;
    color: var(--accent);
    font-size: 0.74rem;
    font-weight: 700;
    text-decoration: none;
}

.content .home-work-link:hover {
    color: var(--accent-hover);
}

.home-update-list {
    border-top: 1px solid var(--border);
}

.home-update-list article {
    display: grid;
    grid-template-columns: 104px minmax(0, 1fr);
    gap: 1.4rem;
    padding: 1.25rem 0;
    border-bottom: 1px solid var(--border);
}

.home-update-list time {
    padding-top: 0.12rem;
    color: var(--text-muted);
    font-size: 0.68rem;
    font-weight: 700;
    line-height: 1.5;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.content .home-update-list p {
    margin: 0;
    color: var(--text-secondary);
    font-size: 0.88rem;
    line-height: 1.65;
}

.content .home-update-list a {
    color: var(--heading);
    font-weight: 600;
    text-decoration-color: var(--border);
}

.content .home-update-list a:hover {
    color: var(--accent);
    text-decoration-color: var(--accent);
}

.home-contact-band {
    padding: clamp(4rem, 8vw, 6rem) 0 1.25rem 195px;
}

.content .home-contact-band h2 {
    max-width: 650px;
    margin: 0 0 1.35rem;
    color: var(--heading);
    font-family: var(--font-sans);
    font-size: clamp(1.55rem, 3.2vw, 2rem);
    font-weight: 650;
    line-height: 1.32;
    letter-spacing: -0.035em;
}

.content .home-contact-band > a {
    display: inline-flex;
    gap: 0.65rem;
    color: var(--accent);
    font-size: 0.9rem;
    font-weight: 700;
    text-decoration: none;
}

.content .home-contact-band > a:hover {
    color: var(--accent-hover);
}

@media (max-width: 820px) {
    .home-hero {
        grid-template-columns: 170px minmax(0, 1fr);
        gap: 2.5rem;
    }

    .home-portrait-wrap {
        width: 170px;
    }

    .home-editorial-section {
        grid-template-columns: 110px minmax(0, 1fr);
        gap: 2.5rem;
    }

    .home-work-list {
        grid-template-columns: 1fr;
    }

    .home-work-item,
    .home-work-item + .home-work-item {
        padding: 1.4rem 0;
        border-right: 0;
        border-bottom: 1px solid var(--border);
    }

    .home-work-item:last-child {
        border-bottom: 0;
    }

    .home-contact-band {
        padding-left: 135px;
    }
}

@media (max-width: 620px) {
    .home-hero {
        grid-template-columns: 1fr;
        gap: 2.25rem;
        padding: 2.25rem 0 3.75rem;
    }

    .home-portrait-wrap {
        width: 148px;
    }

    .home-portrait {
        border-radius: 11px;
        box-shadow: 0 12px 32px rgba(15, 33, 55, 0.11);
    }

    .content .home-hero h1 {
        font-size: clamp(2.05rem, 9.5vw, 2.35rem);
        letter-spacing: -0.05em;
    }

    .content .home-lede {
        font-size: 1.04rem;
    }

    .home-actions {
        align-items: flex-start;
    }

    .home-editorial-section {
        grid-template-columns: 1fr;
        gap: 1.35rem;
        padding: 3.5rem 0;
    }

    .home-section-label p {
        margin: 0;
    }

    .content .home-section-content > h2 {
        margin-bottom: 1.5rem;
    }

    .home-update-list article {
        grid-template-columns: 1fr;
        gap: 0.3rem;
    }

    .home-contact-band {
        padding: 3.75rem 0 0.75rem;
    }
}

/* ============================================
   Blog Page Editorial Redesign
   ============================================ */

.blog-page .page-header {
    margin-bottom: 0;
    padding: 3rem 0 4rem;
}

.blog-page .page-header h1 {
    font-family: var(--font-sans);
    font-size: clamp(2.8rem, 5vw, 3.4rem);
    font-weight: 700;
    line-height: 1;
    letter-spacing: -0.055em;
}

.blog-page .page-description {
    max-width: 650px;
    color: var(--text-secondary);
    font-size: 1.08rem;
    line-height: 1.65;
}

.blog-editorial {
    width: 100%;
}

.blog-page-nav {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.6rem 1.3rem;
    padding: 1.15rem 0;
    border-bottom: 1px solid var(--border);
}

.blog-page-nav span {
    margin-right: 0.3rem;
    color: var(--text-muted);
    font-size: 0.64rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.content .blog-page-nav a {
    color: var(--text-secondary);
    font-size: 0.75rem;
    font-weight: 600;
    text-decoration: none;
}

.content .blog-page-nav a:hover {
    color: var(--accent);
}

.content .blog-editorial-intro {
    max-width: 680px;
    margin: -0.55rem 0 2.6rem;
    color: var(--text-secondary);
    font-size: 0.94rem;
    line-height: 1.8;
}

.blog-lead {
    padding: 2.2rem 0 2.35rem;
    border-top: 1px solid var(--heading);
    border-bottom: 1px solid var(--border);
}

.blog-lead-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.6rem 1.25rem;
    margin-bottom: 1.05rem;
}

.blog-lead-meta span {
    color: var(--accent);
    font-size: 0.63rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.blog-lead-meta time {
    color: var(--text-muted);
    font-size: 0.68rem;
    letter-spacing: 0.025em;
}

.content .blog-lead h3 {
    max-width: 680px;
    margin: 0;
    font-family: var(--font-sans);
    font-size: clamp(1.4rem, 3vw, 1.85rem);
    font-weight: 650;
    line-height: 1.25;
    letter-spacing: -0.035em;
}

.content .blog-lead h3 a {
    color: var(--heading);
    text-decoration: none;
}

.content .blog-lead h3 a:hover {
    color: var(--accent);
}

.content .blog-lead > p {
    max-width: 650px;
    margin: 1rem 0 0;
    color: var(--text-secondary);
    font-size: 0.88rem;
    line-height: 1.75;
}

.blog-lead-footer {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.65rem 1.25rem;
    margin-top: 1.4rem;
}

.content .blog-lead-footer a {
    color: var(--accent);
    font-size: 0.72rem;
    font-weight: 700;
    text-decoration: none;
}

.blog-lead-footer > span {
    color: var(--text-muted);
    font-size: 0.66rem;
}

.blog-reading-list {
    border-bottom: 1px solid var(--border);
}

.blog-reading-list article {
    display: grid;
    grid-template-columns: 92px minmax(0, 1fr);
    gap: 1.6rem;
    padding: 1.55rem 0;
    border-bottom: 1px solid var(--border);
}

.blog-reading-list article:last-child {
    border-bottom: 0;
}

.blog-reading-list article > time {
    padding-top: 0.2rem;
    color: var(--accent);
    font-size: 0.64rem;
    font-weight: 700;
    letter-spacing: 0.035em;
    text-transform: uppercase;
}

.content .blog-reading-list h3 {
    max-width: 640px;
    margin: 0;
    font-family: var(--font-sans);
    font-size: 0.98rem;
    font-weight: 650;
    line-height: 1.45;
}

.content .blog-reading-list h3 a {
    color: var(--heading);
    text-decoration: none;
}

.content .blog-reading-list h3 a:hover {
    color: var(--accent);
}

.content .blog-reading-list article div > p:not(.blog-topic) {
    max-width: 640px;
    margin: 0.55rem 0 0;
    color: var(--text-muted);
    font-size: 0.78rem;
    line-height: 1.65;
}

.content .blog-reading-list .blog-topic {
    margin: 0.65rem 0 0;
    color: var(--text-secondary);
    font-size: 0.61rem;
    font-weight: 700;
    letter-spacing: 0.075em;
    text-transform: uppercase;
}

.blog-archive-section {
    border-bottom: 0;
}

.blog-editorial-archive {
    margin: 0;
    padding: 0;
    border-top: 1px solid var(--border);
    list-style: none;
}

.blog-editorial-archive li {
    display: grid;
    grid-template-columns: 92px minmax(0, 1fr);
    gap: 1.6rem;
    padding: 1rem 0;
    border-bottom: 1px solid var(--border);
}

.blog-editorial-archive time {
    padding-top: 0.12rem;
    color: var(--text-muted);
    font-size: 0.64rem;
    font-weight: 650;
    letter-spacing: 0.025em;
    text-transform: uppercase;
}

.content .blog-editorial-archive a {
    color: var(--text-secondary);
    font-size: 0.79rem;
    font-weight: 600;
    line-height: 1.5;
    text-decoration: none;
}

.content .blog-editorial-archive a:hover {
    color: var(--accent);
}

.content .blog-empty {
    color: var(--text-muted);
    font-size: 0.86rem;
}

@media (max-width: 760px) {
    .blog-page .page-header {
        padding: 2.5rem 0 3.25rem;
    }

    .blog-page .page-header h1 {
        font-size: clamp(2.45rem, 11vw, 3rem);
    }

    .blog-page-nav {
        gap: 0.65rem 1rem;
    }

    .blog-page-nav span {
        flex-basis: 100%;
        margin-bottom: 0.2rem;
    }
}

@media (max-width: 520px) {
    .blog-reading-list article,
    .blog-editorial-archive li {
        grid-template-columns: 1fr;
        gap: 0.45rem;
    }

    .blog-reading-list article > time,
    .blog-editorial-archive time {
        padding-top: 0;
    }
}

/* ============================================
   Shared Header and Footer
   ============================================ */

.navbar {
    min-height: 72px;
    padding: 0.65rem 0;
    background: var(--surface);
    background: color-mix(in srgb, var(--surface) 96%, transparent);
    border-bottom: 1px solid var(--border);
    backdrop-filter: blur(18px);
}

.navbar-brand {
    gap: 0.7rem;
    padding: 0;
}

.brand-mark {
    width: 34px;
    height: 34px;
    border: 1px solid color-mix(in srgb, var(--heading) 45%, var(--border));
    border-radius: 3px;
    color: var(--heading);
    background: transparent;
    font-size: 0.76rem;
    letter-spacing: 0.05em;
}

.brand-lockup {
    gap: 0.18rem;
}

.brand-name {
    font-family: var(--font-sans);
    font-size: 0.88rem;
    font-weight: 700;
    letter-spacing: -0.015em;
}

.brand-sub {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.62rem;
    font-weight: 650;
    letter-spacing: 0.105em;
    line-height: 1.2;
}

.nav-link {
    position: relative;
    margin: 0 0.08rem;
    padding: 0.62rem 0.68rem !important;
    border-radius: 0;
    color: var(--text-secondary) !important;
    font-size: 0.77rem;
    font-weight: 650;
    background: transparent;
}

.nav-link::after {
    display: block;
    right: 0.68rem;
    bottom: 0.15rem;
    left: 0.68rem;
    height: 1px;
    background: var(--accent);
}

.nav-link:hover,
.nav-link.active {
    color: var(--heading) !important;
    background: transparent;
}

.nav-link.active::after {
    transform: scaleX(1);
}

.theme-toggle {
    display: inline-grid;
    grid-template-columns: repeat(2, 1fr);
    width: 96px;
    height: 36px;
    gap: 2px;
    margin-left: 0.65rem;
    padding: 3px;
    border: 1px solid var(--border);
    border-radius: 999px;
    color: var(--text-secondary);
    background: var(--surface-alt);
    font-size: 0.7rem;
    font-weight: 650;
}

.theme-option {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    line-height: 1;
    transition: color var(--transition), background-color var(--transition), box-shadow var(--transition);
}

.theme-option-light {
    color: var(--heading);
    background: var(--surface);
    box-shadow: var(--shadow-sm);
}

[data-theme="dark"] .theme-option-light {
    color: var(--text-muted);
    background: transparent;
    box-shadow: none;
}

[data-theme="dark"] .theme-option-dark {
    color: var(--heading);
    background: var(--gray-200);
    box-shadow: var(--shadow-sm);
}

@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) .theme-option-light {
        color: var(--text-muted);
        background: transparent;
        box-shadow: none;
    }

    :root:not([data-theme="light"]) .theme-option-dark {
        color: var(--heading);
        background: var(--gray-200);
        box-shadow: var(--shadow-sm);
    }
}

.site-footer {
    margin-top: 0;
    padding: 4rem 0 1.5rem;
    color: var(--footer-text);
    background: var(--footer-surface);
}

.site-footer .container {
    max-width: var(--page-width);
}

.footer-introduction {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 2rem;
    align-items: end;
    padding-bottom: 2.5rem;
    border-bottom: 1px solid var(--footer-border);
}

.footer-kicker {
    margin: 0 0 0.7rem;
    color: var(--footer-accent);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.13em;
    text-transform: uppercase;
}

.footer-statement {
    max-width: 620px;
    margin: 0;
    color: var(--footer-text);
    font-family: var(--font-sans);
    font-size: clamp(1.25rem, 2.4vw, 1.7rem);
    font-weight: 600;
    line-height: 1.35;
    letter-spacing: -0.025em;
}

.footer-email {
    display: inline-flex;
    gap: 0.45rem;
    padding-bottom: 0.25rem;
    border-bottom: 1px solid var(--footer-accent);
    color: var(--footer-text);
    font-size: 0.78rem;
    font-weight: 650;
    text-decoration: none;
}

.footer-email:hover {
    color: var(--footer-accent);
}

.footer-directory {
    display: grid;
    grid-template-columns: minmax(220px, 1.2fr) auto auto;
    gap: 2rem 3.5rem;
    align-items: start;
    padding: 2rem 0;
}

.footer-name {
    margin: 0 0 0.25rem;
    color: var(--footer-text);
    font-family: var(--font-sans);
    font-size: 0.83rem;
    font-weight: 700;
}

.footer-position {
    margin: 0;
    color: var(--footer-muted);
    font-size: 0.75rem;
}

.footer-nav,
.footer-profiles {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem 1.15rem;
    justify-content: flex-start;
}

.footer-nav a,
.footer-profiles a {
    color: var(--footer-muted);
    font-size: 0.75rem;
    font-weight: 650;
    text-decoration: none;
}

.footer-nav a:hover,
.footer-profiles a:hover {
    color: var(--footer-text);
}

.footer-copyright {
    margin: 0;
    padding-top: 1.25rem;
    border-top: 1px solid var(--footer-border);
    color: var(--footer-muted);
    font-size: 0.7rem;
}

@media (max-width: 992px) {
    .navbar-collapse {
        padding-top: 0.65rem;
        border-top: 1px solid var(--border);
    }

    .nav-link {
        padding: 0.55rem 0 !important;
    }

    .nav-link::after {
        right: auto;
        bottom: 0.25rem;
        left: 0;
        width: 24px;
    }

    .theme-toggle {
        margin: 0.55rem 0 0.35rem;
    }

    .footer-directory {
        grid-template-columns: minmax(220px, 1fr) minmax(0, 1.4fr);
    }

    .footer-profiles {
        grid-column: 2;
    }
}

@media (max-width: 700px) {
    .navbar {
        min-height: 66px;
    }

    .brand-mark {
        width: 31px;
        height: 31px;
        font-size: 0.69rem;
    }

    .brand-name {
        font-size: 0.82rem;
    }

    .brand-sub {
        max-width: 180px;
        font-size: 0.49rem;
    }

    .site-footer {
        padding-top: 3.25rem;
    }

    .footer-introduction,
    .footer-directory {
        grid-template-columns: 1fr;
    }

    .footer-introduction {
        align-items: start;
    }

    .footer-email {
        justify-self: start;
    }

    .footer-directory {
        gap: 1.4rem;
    }

    .footer-profiles {
        grid-column: auto;
    }
}

/* ============================================
   Research Page Editorial Redesign
   ============================================ */

.research-page .page-header {
    margin-bottom: 0;
    padding: 3rem 0 4rem;
}

.research-page .page-header h1 {
    font-family: var(--font-sans);
    font-size: clamp(2.8rem, 5vw, 3.4rem);
    font-weight: 700;
    line-height: 1;
    letter-spacing: -0.055em;
}

.research-page .page-description {
    max-width: 650px;
    color: var(--text-secondary);
    font-size: 1.08rem;
    line-height: 1.65;
}

.research-editorial {
    width: 100%;
}

.research-page-nav {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.6rem 1.3rem;
    padding: 1.15rem 0;
    border-bottom: 1px solid var(--border);
}

.research-page-nav span {
    margin-right: 0.3rem;
    color: var(--text-muted);
    font-size: 0.64rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.content .research-page-nav a {
    color: var(--text-secondary);
    font-size: 0.75rem;
    font-weight: 600;
    text-decoration: none;
}

.content .research-page-nav a:hover {
    color: var(--accent);
}

.editorial-section {
    display: grid;
    grid-template-columns: 145px minmax(0, 1fr);
    gap: clamp(2.5rem, 6vw, 4.75rem);
    padding: clamp(4rem, 7vw, 5.5rem) 0;
    border-bottom: 1px solid var(--border);
    scroll-margin-top: 88px;
}

.editorial-label p {
    margin: 0.35rem 0 0;
    color: var(--text-muted);
    font-size: 0.68rem;
    font-weight: 700;
    line-height: 1.4;
    letter-spacing: 0.13em;
    text-transform: uppercase;
}

.editorial-content {
    min-width: 0;
}

.content .editorial-content > h2 {
    max-width: 650px;
    margin: 0 0 2rem;
    color: var(--heading);
    font-family: var(--font-sans);
    font-size: clamp(1.7rem, 3vw, 2.05rem);
    font-weight: 650;
    line-height: 1.2;
    letter-spacing: -0.038em;
}

.research-introduction {
    max-width: 700px;
    margin-bottom: 2.75rem;
}

.content .research-introduction p,
.content .research-collaboration .editorial-content > p {
    margin: 0 0 1.15rem;
    color: var(--text-secondary);
    font-size: 0.96rem;
    line-height: 1.8;
}

.research-theme-list {
    border-top: 1px solid var(--border);
}

.research-theme-list > article {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr);
    gap: 1.25rem;
    padding: 1.75rem 0;
    border-bottom: 1px solid var(--border);
}

.research-theme-list > article:last-child {
    border-bottom: 0;
}

.research-theme-number {
    padding-top: 0.2rem;
    color: var(--accent);
    font-size: 0.69rem;
    font-weight: 700;
    letter-spacing: 0.08em;
}

.content .research-theme-list h3 {
    margin: 0 0 0.5rem;
    color: var(--heading);
    font-family: var(--font-sans);
    font-size: 1.04rem;
    font-weight: 650;
    line-height: 1.4;
}

.content .research-theme-list article > div > p {
    max-width: 640px;
    margin: 0;
    color: var(--text-secondary);
    font-size: 0.88rem;
    line-height: 1.7;
}

.content .research-theme-details {
    margin: 1rem 0 0;
    padding: 0.9rem 0 0;
    border: 0;
    border-top: 1px solid var(--border);
    border-radius: 0;
    background: transparent;
}

.content .research-theme-details summary {
    color: var(--text-muted);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.content .research-theme-details[open] summary {
    margin-bottom: 0.8rem;
}

.content .research-theme-details p {
    max-width: 640px;
    margin: 0 0 0.6rem;
    color: var(--text-muted);
    font-size: 0.8rem;
    line-height: 1.65;
}

.content .research-theme-details p:last-child {
    margin-bottom: 0;
}

.content .research-section-intro {
    max-width: 650px;
    margin: -0.6rem 0 2rem;
    color: var(--text-secondary);
    font-size: 0.88rem;
    line-height: 1.7;
}

.research-publication-list {
    border-top: 1px solid var(--border);
}

.research-publication {
    display: grid;
    grid-template-columns: 54px minmax(0, 1fr);
    gap: 1.5rem;
    padding: 1.8rem 0;
    border-bottom: 1px solid var(--border);
}

.research-publication > time {
    padding-top: 0.25rem;
    color: var(--accent);
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.06em;
}

.content .research-publication h3 {
    max-width: 660px;
    margin: 0 0 0.65rem;
    color: var(--heading);
    font-family: var(--font-sans);
    font-size: 0.98rem;
    font-weight: 650;
    line-height: 1.5;
}

.content .research-authors,
.content .research-venue,
.content .research-annotation {
    max-width: 660px;
}

.content .research-authors {
    margin: 0 0 0.3rem;
    color: var(--text-secondary);
    font-size: 0.78rem;
    line-height: 1.55;
}

.content .research-venue {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.76rem;
    line-height: 1.55;
}

.content .research-annotation {
    margin: 0.8rem 0 0;
    color: var(--text-muted);
    font-size: 0.78rem;
    line-height: 1.65;
}

.content .research-record-link {
    display: inline-flex;
    gap: 0.35rem;
    margin-top: 0.75rem;
    color: var(--accent);
    font-size: 0.7rem;
    font-weight: 700;
    text-decoration: none;
}

.content .research-record-link:hover {
    color: var(--accent-hover);
}

.research-talk-list,
.research-project-list {
    border-top: 1px solid var(--border);
}

.research-talk-list article,
.research-project-list article {
    display: grid;
    grid-template-columns: 190px minmax(0, 1fr);
    gap: 1.5rem;
    padding: 1.45rem 0;
    border-bottom: 1px solid var(--border);
}

.research-talk-list article {
    grid-template-areas:
        "meta title"
        "meta venue";
}

.content .research-talk-meta,
.content .research-project-meta {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.65rem;
    font-weight: 700;
    line-height: 1.5;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.content .research-talk-meta {
    grid-area: meta;
    padding-top: 0.2rem;
}

.content .research-talk-list h3,
.content .research-project-list h3 {
    margin: 0;
    color: var(--heading);
    font-family: var(--font-sans);
    font-size: 0.94rem;
    font-weight: 650;
    line-height: 1.5;
}

.content .research-talk-list h3 {
    grid-area: title;
}

.content .research-talk-list article > p:last-child {
    grid-area: venue;
    margin: 0.2rem 0 0;
    color: var(--text-muted);
    font-size: 0.77rem;
    line-height: 1.5;
}

.research-project-list article {
    grid-template-areas:
        "meta title"
        "meta description"
        "meta links";
}

.content .research-project-meta {
    grid-area: meta;
    padding-top: 0.2rem;
}

.content .research-project-list h3 {
    grid-area: title;
}

.content .research-project-list h3 a {
    color: var(--heading);
    text-decoration: none;
}

.content .research-project-list h3 a:hover {
    color: var(--accent);
}

.content .research-project-list article > p:last-child {
    grid-area: description;
    max-width: 620px;
    margin: 0.35rem 0 0;
    color: var(--text-secondary);
    font-size: 0.8rem;
    line-height: 1.65;
}

.research-project-links {
    grid-area: links;
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem 1rem;
    margin-top: 0.45rem;
}

.content .research-project-links a {
    color: var(--accent);
    font-size: 0.7rem;
    font-weight: 700;
    text-decoration: none;
}

.content .research-project-links a:hover {
    color: var(--accent-hover);
}

.research-collaboration {
    border-bottom: 0;
}

.research-collaboration .editorial-content {
    max-width: 680px;
}

.research-contact-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem 1.5rem;
    margin-top: 1.75rem;
}

.content .research-contact-links a {
    color: var(--accent);
    font-size: 0.82rem;
    font-weight: 700;
    text-decoration: none;
}

.content .research-contact-links a:last-child {
    color: var(--text-secondary);
    text-decoration: underline;
    text-decoration-color: var(--border);
    text-underline-offset: 0.3em;
}

.content .research-contact-links a:hover {
    color: var(--accent-hover);
}

@media (max-width: 760px) {
    .research-page .page-header {
        padding: 2.5rem 0 3.25rem;
    }

    .research-page .page-header h1 {
        font-size: clamp(2.45rem, 11vw, 3rem);
    }

    .research-page-nav {
        gap: 0.65rem 1rem;
    }

    .research-page-nav span {
        flex-basis: 100%;
        margin-bottom: 0.2rem;
    }

    .editorial-section {
        grid-template-columns: 1fr;
        gap: 1.35rem;
        padding: 3.5rem 0;
    }

    .editorial-label p {
        margin: 0;
    }

    .content .editorial-content > h2 {
        margin-bottom: 1.5rem;
    }

    .research-introduction {
        margin-bottom: 2.25rem;
    }

    .research-talk-list article,
    .research-project-list article {
        grid-template-columns: 1fr;
        grid-template-areas:
            "meta"
            "title"
            "venue";
        gap: 0.3rem;
    }

    .research-project-list article {
        grid-template-areas:
            "meta"
            "title"
            "description"
            "links";
    }
}

@media (max-width: 480px) {
    .research-publication {
        grid-template-columns: 1fr;
        gap: 0.45rem;
    }

    .research-publication > time {
        padding-top: 0;
    }

    .research-theme-list > article {
        grid-template-columns: 34px minmax(0, 1fr);
        gap: 0.9rem;
    }
}

/* ============================================
   Experience Page Editorial Redesign
   ============================================ */

.experience-page .page-header {
    margin-bottom: 0;
    padding: 3rem 0 4rem;
}

.experience-page .page-header h1 {
    font-family: var(--font-sans);
    font-size: clamp(2.8rem, 5vw, 3.4rem);
    font-weight: 700;
    line-height: 1;
    letter-spacing: -0.055em;
}

.experience-page .page-description {
    max-width: 650px;
    color: var(--text-secondary);
    font-size: 1.08rem;
    line-height: 1.65;
}

.experience-editorial {
    width: 100%;
}

.experience-page-nav {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.6rem 1.3rem;
    padding: 1.15rem 0;
    border-bottom: 1px solid var(--border);
}

.experience-page-nav span {
    margin-right: 0.3rem;
    color: var(--text-muted);
    font-size: 0.64rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.content .experience-page-nav a {
    color: var(--text-secondary);
    font-size: 0.75rem;
    font-weight: 600;
    text-decoration: none;
}

.content .experience-page-nav a:hover {
    color: var(--accent);
}

.content .experience-introduction {
    max-width: 680px;
    margin: -0.55rem 0 2.35rem;
    color: var(--text-secondary);
    font-size: 0.94rem;
    line-height: 1.8;
}

.experience-records {
    border-top: 1px solid var(--border);
}

.experience-record {
    display: grid;
    grid-template-columns: 145px minmax(0, 1fr);
    gap: 1.75rem;
    padding: 1.8rem 0;
    border-bottom: 1px solid var(--border);
}

.experience-record-meta {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    padding-top: 0.2rem;
}

.experience-record-meta time {
    color: var(--accent);
    font-size: 0.67rem;
    font-weight: 700;
    line-height: 1.5;
    letter-spacing: 0.055em;
    text-transform: uppercase;
}

.experience-record-meta span {
    color: var(--text-muted);
    font-size: 0.68rem;
    line-height: 1.5;
}

.experience-title-line {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.65rem;
}

.content .experience-record h3,
.content .experience-awards h3,
.content .experience-service-list h3,
.content .experience-skill-groups h3 {
    margin: 0;
    color: var(--heading);
    font-family: var(--font-sans);
    font-weight: 650;
    line-height: 1.45;
}

.content .experience-record h3 {
    font-size: 1rem;
}

.experience-status {
    display: inline-flex;
    padding: 0.18rem 0.48rem;
    border: 1px solid color-mix(in srgb, var(--accent) 35%, var(--border));
    border-radius: 999px;
    color: var(--accent);
    font-size: 0.57rem;
    font-weight: 700;
    letter-spacing: 0.07em;
    text-transform: uppercase;
}

.content .experience-institution {
    margin: 0.28rem 0 0.65rem;
    color: var(--text-secondary);
    font-size: 0.79rem;
    font-weight: 600;
    line-height: 1.55;
}

.content .experience-institution a {
    color: inherit;
    text-decoration-color: var(--border);
    text-underline-offset: 0.25em;
}

.content .experience-record > div:last-child > p:last-child {
    max-width: 640px;
    margin: 0;
    color: var(--text-muted);
    font-size: 0.81rem;
    line-height: 1.7;
}

.experience-education-records .experience-record {
    padding: 2rem 0;
}

.experience-details {
    max-width: 650px;
    margin: 1.05rem 0 0;
    padding-top: 0.9rem;
    border-top: 1px solid var(--border);
}

.experience-details > div {
    display: grid;
    grid-template-columns: 82px minmax(0, 1fr);
    gap: 0.75rem;
    padding: 0.25rem 0;
}

.experience-details dt {
    color: var(--text-muted);
    font-size: 0.67rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.experience-details dd {
    margin: 0;
    color: var(--text-secondary);
    font-size: 0.76rem;
    line-height: 1.6;
}

.experience-course-list {
    max-width: 640px;
    margin: 0.95rem 0 0;
    padding: 0;
    border-top: 1px solid var(--border);
    list-style: none;
}

.content .experience-course-list li {
    display: grid;
    grid-template-columns: minmax(150px, 0.7fr) minmax(0, 1fr);
    gap: 1rem;
    margin: 0;
    padding: 0.7rem 0;
    border-bottom: 1px solid var(--border);
    color: var(--text-secondary);
    font-size: 0.75rem;
    line-height: 1.55;
}

.experience-course-list span {
    color: var(--text-muted);
}

.experience-awards,
.experience-service-list {
    border-top: 1px solid var(--border);
}

.experience-awards article,
.experience-service-list article {
    display: grid;
    grid-template-columns: 145px minmax(0, 1fr);
    gap: 1.75rem;
    padding: 1.25rem 0;
    border-bottom: 1px solid var(--border);
}

.experience-awards time,
.experience-service-list time {
    padding-top: 0.15rem;
    color: var(--accent);
    font-size: 0.66rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.content .experience-awards h3,
.content .experience-service-list h3 {
    font-size: 0.9rem;
}

.content .experience-awards p,
.content .experience-service-list p {
    margin: 0.25rem 0 0;
    color: var(--text-muted);
    font-size: 0.74rem;
    line-height: 1.55;
}

.experience-memberships {
    margin-top: 2.4rem;
}

.content .experience-small-label {
    margin: 0 0 0.85rem;
    color: var(--text-muted);
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.experience-memberships ul {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem 1.75rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.content .experience-memberships li {
    position: relative;
    margin: 0;
    padding-left: 0.85rem;
    color: var(--text-secondary);
    font-size: 0.78rem;
    line-height: 1.55;
}

.experience-memberships li::before {
    position: absolute;
    top: 0.65em;
    left: 0;
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: var(--accent);
    content: "";
}

.experience-skills-section {
    border-bottom: 0;
}

.experience-skill-groups {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    border-top: 1px solid var(--border);
}

.experience-skill-groups article {
    min-height: 122px;
    padding: 1.35rem 1.5rem 1.35rem 0;
    border-bottom: 1px solid var(--border);
}

.experience-skill-groups article:nth-child(odd) {
    border-right: 1px solid var(--border);
}

.experience-skill-groups article:nth-child(even) {
    padding-left: 1.5rem;
}

.content .experience-skill-groups h3 {
    font-size: 0.86rem;
}

.content .experience-skill-groups p {
    margin: 0.5rem 0 0;
    color: var(--text-muted);
    font-size: 0.77rem;
    line-height: 1.65;
}

@media (max-width: 760px) {
    .experience-page .page-header {
        padding: 2.5rem 0 3.25rem;
    }

    .experience-page .page-header h1 {
        font-size: clamp(2.45rem, 11vw, 3rem);
    }

    .experience-page-nav {
        gap: 0.65rem 1rem;
    }

    .experience-page-nav span {
        flex-basis: 100%;
        margin-bottom: 0.2rem;
    }

    .experience-record,
    .experience-awards article,
    .experience-service-list article {
        grid-template-columns: 120px minmax(0, 1fr);
        gap: 1.25rem;
    }
}

@media (max-width: 520px) {
    .experience-record,
    .experience-awards article,
    .experience-service-list article {
        grid-template-columns: 1fr;
        gap: 0.55rem;
    }

    .experience-record-meta {
        gap: 0.15rem;
    }

    .experience-course-list li {
        grid-template-columns: 1fr;
        gap: 0.25rem;
    }

    .experience-skill-groups {
        grid-template-columns: 1fr;
    }

    .experience-skill-groups article,
    .experience-skill-groups article:nth-child(even) {
        min-height: 0;
        padding: 1.2rem 0;
        border-right: 0;
    }
}

/* ============================================
   Services Page Editorial Redesign
   ============================================ */

.services-page .page-header {
    margin-bottom: 0;
    padding: 3rem 0 4rem;
}

.services-page .page-header h1 {
    font-family: var(--font-sans);
    font-size: clamp(2.8rem, 5vw, 3.4rem);
    font-weight: 700;
    line-height: 1;
    letter-spacing: -0.055em;
}

.services-page .page-description {
    max-width: 680px;
    color: var(--text-secondary);
    font-size: 1.08rem;
    line-height: 1.65;
}

.services-editorial {
    width: 100%;
}

.services-page-nav {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.6rem 1.3rem;
    padding: 1.15rem 0;
    border-bottom: 1px solid var(--border);
}

.services-page-nav span {
    margin-right: 0.3rem;
    color: var(--text-muted);
    font-size: 0.64rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.content .services-page-nav a {
    color: var(--text-secondary);
    font-size: 0.75rem;
    font-weight: 600;
    text-decoration: none;
}

.content .services-page-nav a:hover {
    color: var(--accent);
}

.services-introduction {
    max-width: 690px;
    margin-bottom: 2.6rem;
}

.content .services-introduction p {
    margin: 0 0 1.05rem;
    color: var(--text-secondary);
    font-size: 0.94rem;
    line-height: 1.8;
}

.content .services-introduction p:last-child {
    margin-bottom: 0;
}

.services-principles {
    border-top: 1px solid var(--border);
}

.services-principles article {
    display: grid;
    grid-template-columns: 40px minmax(0, 1fr);
    gap: 1.15rem;
    padding: 1.3rem 0;
    border-bottom: 1px solid var(--border);
}

.services-principles article > span {
    padding-top: 0.15rem;
    color: var(--accent);
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.06em;
}

.content .services-principles h3,
.content .services-pathways h3,
.content .services-process h3 {
    margin: 0;
    color: var(--heading);
    font-family: var(--font-sans);
    font-weight: 650;
    line-height: 1.4;
}

.content .services-principles h3 {
    font-size: 0.9rem;
}

.content .services-principles p {
    max-width: 610px;
    margin: 0.3rem 0 0;
    color: var(--text-muted);
    font-size: 0.77rem;
    line-height: 1.65;
}

.services-pathways {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.services-pathways article {
    display: flex;
    min-width: 0;
    flex-direction: column;
    padding: 2rem 2rem 2rem 0;
}

.services-pathways article + article {
    padding-right: 0;
    padding-left: 2rem;
    border-left: 1px solid var(--border);
}

.content .services-pathway-label {
    margin: 0 0 1.25rem;
    color: var(--accent);
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.content .services-pathways h3 {
    max-width: 300px;
    font-size: 1.08rem;
    letter-spacing: -0.02em;
}

.content .services-pathways article > p:not(.services-pathway-label) {
    margin: 0.85rem 0 0;
    color: var(--text-secondary);
    font-size: 0.8rem;
    line-height: 1.7;
}

.services-pathways ul {
    margin: 1.3rem 0 1.6rem;
    padding: 1.1rem 0 0;
    border-top: 1px solid var(--border);
    list-style: none;
}

.content .services-pathways li {
    position: relative;
    margin: 0 0 0.62rem;
    padding-left: 0.9rem;
    color: var(--text-muted);
    font-size: 0.74rem;
    line-height: 1.55;
}

.services-pathways li::before {
    position: absolute;
    top: 0.65em;
    left: 0;
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: var(--accent);
    content: "";
}

.content .services-pathway-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    align-self: flex-start;
    margin-top: auto;
    color: var(--accent);
    font-size: 0.72rem;
    font-weight: 700;
    line-height: 1.5;
    text-decoration: none;
}

.content .services-pathway-link:hover {
    color: var(--accent-hover);
}

.services-process {
    margin: 0;
    padding: 0;
    border-top: 1px solid var(--border);
    list-style: none;
}

.services-process li {
    display: grid;
    grid-template-columns: 40px minmax(0, 1fr);
    gap: 1.15rem;
    padding: 1.45rem 0;
    border-bottom: 1px solid var(--border);
}

.services-process li > span {
    padding-top: 0.15rem;
    color: var(--accent);
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.06em;
}

.content .services-process h3 {
    font-size: 0.92rem;
}

.content .services-process p {
    max-width: 620px;
    margin: 0.35rem 0 0;
    color: var(--text-muted);
    font-size: 0.78rem;
    line-height: 1.65;
}

.services-contact {
    border-bottom: 0;
}

.services-contact .editorial-content {
    max-width: 680px;
}

.content .services-contact .editorial-content > p {
    max-width: 620px;
    margin: -0.5rem 0 0;
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.75;
}

.services-contact-links {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.85rem 1.5rem;
    margin-top: 1.8rem;
}

.content .services-contact-links a {
    color: var(--text-secondary);
    font-size: 0.78rem;
    font-weight: 650;
    text-decoration-color: var(--border);
    text-underline-offset: 0.28em;
}

.content .services-contact-links .services-primary-link {
    display: inline-flex;
    gap: 0.4rem;
    padding: 0.72rem 1rem;
    border: 1px solid var(--accent);
    color: var(--accent);
    text-decoration: none;
}

.content .services-contact-links a:hover {
    color: var(--accent-hover);
}

@media (max-width: 760px) {
    .services-page .page-header {
        padding: 2.5rem 0 3.25rem;
    }

    .services-page .page-header h1 {
        font-size: clamp(2.45rem, 11vw, 3rem);
    }

    .services-page-nav {
        gap: 0.65rem 1rem;
    }

    .services-page-nav span {
        flex-basis: 100%;
        margin-bottom: 0.2rem;
    }
}

@media (max-width: 620px) {
    .services-pathways {
        grid-template-columns: 1fr;
    }

    .services-pathways article,
    .services-pathways article + article {
        padding: 1.8rem 0;
        border-left: 0;
    }

    .services-pathways article + article {
        border-top: 1px solid var(--border);
    }

    .content .services-pathways h3 {
        max-width: 420px;
    }
}

/* ============================================
   Service Detail Pages
   ============================================ */

.service-detail-page .page-header {
    margin-bottom: 0;
    padding: 3rem 0 4rem;
}

.service-detail-page .page-header h1 {
    max-width: 820px;
    font-family: var(--font-sans);
    font-size: clamp(2.55rem, 5vw, 3.4rem);
    font-weight: 700;
    line-height: 1.02;
    letter-spacing: -0.055em;
}

.service-detail-page .page-description {
    max-width: 690px;
    color: var(--text-secondary);
    font-size: 1.05rem;
    line-height: 1.65;
}

.service-detail-editorial {
    width: 100%;
}

.service-detail-nav {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.6rem 1.15rem;
    padding: 1.15rem 0;
    border-bottom: 1px solid var(--border);
}

.content .service-detail-nav a {
    color: var(--text-secondary);
    font-size: 0.72rem;
    font-weight: 650;
    text-decoration: none;
}

.content .service-detail-nav .service-back-link {
    color: var(--accent);
}

.content .service-detail-nav a:hover {
    color: var(--accent-hover);
}

.service-nav-divider {
    width: 1px;
    height: 14px;
    background: var(--border);
}

.content .service-detail-intro {
    max-width: 680px;
    margin: -0.55rem 0 2.35rem;
    color: var(--text-secondary);
    font-size: 0.92rem;
    line-height: 1.8;
}

.service-offer-list,
.booking-expectations {
    border-top: 1px solid var(--border);
}

.service-offer-list article,
.booking-expectations article {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 1.2rem;
    padding: 1.65rem 0;
    border-bottom: 1px solid var(--border);
}

.service-offer-list article > span,
.booking-expectations article > span {
    padding-top: 0.18rem;
    color: var(--accent);
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.06em;
}

.content .service-offer-list h3,
.content .service-topic-grid h3,
.content .booking-expectations h3 {
    margin: 0;
    color: var(--heading);
    font-family: var(--font-sans);
    font-weight: 650;
    line-height: 1.45;
}

.content .service-offer-list h3,
.content .booking-expectations h3 {
    font-size: 0.95rem;
}

.content .service-offer-list article div > p,
.content .booking-expectations article div > p {
    max-width: 640px;
    margin: 0.45rem 0 0;
    color: var(--text-secondary);
    font-size: 0.8rem;
    line-height: 1.7;
}

.content .service-offer-list .service-offer-fit {
    color: var(--text-muted);
    font-size: 0.74rem;
}

.service-expertise {
    margin-top: 2.4rem;
}

.content .service-small-label {
    margin: 0 0 0.9rem;
    color: var(--text-muted);
    font-size: 0.63rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.service-expertise ul {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0;
    margin: 0;
    padding: 0;
    border-top: 1px solid var(--border);
    list-style: none;
}

.content .service-expertise li {
    position: relative;
    margin: 0;
    padding: 0.75rem 1rem 0.75rem 0.9rem;
    border-bottom: 1px solid var(--border);
    color: var(--text-secondary);
    font-size: 0.74rem;
    line-height: 1.55;
}

.content .service-expertise li:nth-child(odd) {
    border-right: 1px solid var(--border);
}

.service-expertise li::before {
    position: absolute;
    top: 1.05rem;
    left: 0;
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: var(--accent);
    content: "";
}

.service-topic-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    border-top: 1px solid var(--border);
}

.service-topic-grid article {
    min-height: 135px;
    padding: 1.4rem 1.5rem 1.4rem 0;
    border-bottom: 1px solid var(--border);
}

.service-topic-grid article:nth-child(odd) {
    border-right: 1px solid var(--border);
}

.service-topic-grid article:nth-child(even) {
    padding-right: 0;
    padding-left: 1.5rem;
}

.content .service-topic-grid h3 {
    font-size: 0.88rem;
}

.content .service-topic-grid p {
    margin: 0.5rem 0 0;
    color: var(--text-muted);
    font-size: 0.76rem;
    line-height: 1.65;
}

.content .service-evidence {
    max-width: 660px;
    margin: 1.75rem 0 0;
    padding-left: 1.1rem;
    border-left: 2px solid var(--accent);
    color: var(--text-muted);
    font-size: 0.78rem;
    line-height: 1.7;
}

.service-detail-copy {
    max-width: 680px;
}

.content .service-detail-copy p {
    margin: 0 0 1rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.8;
}

.service-boundary {
    max-width: 680px;
    margin-top: 2rem;
    padding: 1.35rem 1.5rem;
    border: 1px solid var(--border);
    background: color-mix(in srgb, var(--surface) 72%, var(--surface-alt));
}

.content .service-boundary .service-small-label {
    margin-bottom: 0.45rem;
    color: var(--warm);
}

.content .service-boundary > p:last-child {
    margin: 0;
    color: var(--text-secondary);
    font-size: 0.78rem;
    line-height: 1.7;
}

.service-faq {
    border-top: 1px solid var(--border);
}

.content .service-faq details {
    margin: 0;
    padding: 1.15rem 0;
    border: 0;
    border-bottom: 1px solid var(--border);
    border-radius: 0;
    background: transparent;
}

.content .service-faq summary {
    color: var(--heading);
    font-size: 0.82rem;
    font-weight: 650;
    line-height: 1.5;
}

.content .service-faq details[open] summary {
    margin-bottom: 0.75rem;
}

.content .service-faq p {
    max-width: 640px;
    margin: 0;
    color: var(--text-muted);
    font-size: 0.77rem;
    line-height: 1.7;
}

.service-detail-contact,
.booking-schedule-section {
    border-bottom: 0;
}

.service-detail-contact .editorial-content {
    max-width: 680px;
}

.content .service-detail-contact .editorial-content > p {
    margin: -0.5rem 0 0;
    color: var(--text-secondary);
    font-size: 0.88rem;
    line-height: 1.75;
}

.service-detail-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.85rem 1.5rem;
    margin-top: 1.8rem;
}

.content .service-detail-actions a {
    color: var(--text-secondary);
    font-size: 0.76rem;
    font-weight: 650;
    text-decoration-color: var(--border);
    text-underline-offset: 0.28em;
}

.content .service-detail-actions .service-detail-primary {
    display: inline-flex;
    gap: 0.4rem;
    padding: 0.72rem 1rem;
    border: 1px solid var(--accent);
    color: var(--accent);
    text-decoration: none;
}

.content .service-detail-actions a:hover {
    color: var(--accent-hover);
}

.booking-expectations {
    max-width: 680px;
}

.content .booking-note {
    margin: 1.5rem 0 0;
    color: var(--text-muted);
    font-size: 0.74rem;
}

.booking-panel-editorial {
    max-width: 680px;
    margin: 0;
    padding: 1.8rem 0 0;
    border: 0;
    border-top: 1px solid var(--border);
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.booking-panel-editorial .form-field {
    margin-bottom: 1.25rem;
}

.booking-panel-editorial label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--heading);
    font-size: 0.75rem;
    font-weight: 650;
}

.booking-panel-editorial .form-control {
    padding: 0.8rem 0.9rem;
    border-radius: 3px;
    color: var(--text);
    background: var(--surface);
    font-size: 0.82rem;
}

.booking-panel-editorial .form-control:focus {
    border-color: var(--accent);
    color: var(--text);
    background: var(--surface);
    box-shadow: 0 0 0 0.18rem color-mix(in srgb, var(--accent) 18%, transparent);
}

.booking-submit {
    display: inline-flex;
    gap: 0.45rem;
    align-items: center;
    padding: 0.75rem 1rem;
    border: 1px solid var(--accent);
    border-radius: 0;
    color: var(--on-dark);
    background: var(--navy);
    font-size: 0.76rem;
    font-weight: 700;
    cursor: pointer;
}

[data-theme="dark"] .booking-submit {
    color: var(--surface-alt);
    background: var(--accent);
}

.booking-submit:hover {
    border-color: var(--accent-hover);
    background: var(--accent-hover);
}

.content .booking-panel-editorial .booking-fallback,
.content .booking-panel-editorial .booking-status {
    margin-top: 0.9rem;
    color: var(--text-muted);
    font-size: 0.7rem;
}

@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) .booking-submit {
        color: var(--surface-alt);
        background: var(--accent);
    }
}

@media (max-width: 760px) {
    .service-detail-page .page-header {
        padding: 2.5rem 0 3.25rem;
    }

    .service-detail-page .page-header h1 {
        font-size: clamp(2.2rem, 10vw, 2.85rem);
    }

    .service-detail-nav {
        gap: 0.65rem 0.95rem;
    }

    .service-back-link {
        flex-basis: 100%;
        margin-bottom: 0.15rem;
    }

    .service-nav-divider {
        display: none;
    }
}

@media (max-width: 560px) {
    .service-expertise ul,
    .service-topic-grid {
        grid-template-columns: 1fr;
    }

    .content .service-expertise li:nth-child(odd),
    .service-topic-grid article:nth-child(odd) {
        border-right: 0;
    }

    .service-topic-grid article,
    .service-topic-grid article:nth-child(even) {
        min-height: 0;
        padding: 1.2rem 0;
    }

    .service-detail-actions {
        align-items: flex-start;
        flex-direction: column;
    }
}

/* ============================================
   Long-form Article Template
   ============================================ */

.post-shell {
    max-width: 960px;
    margin: 0 auto;
}

.post-breadcrumb {
    padding: 0.8rem 0 2.5rem;
}

.post-breadcrumb a {
    color: var(--text-muted);
    font-size: 0.69rem;
    font-weight: 650;
    text-decoration: none;
}

.post-breadcrumb a:hover {
    color: var(--accent);
}

.post-article {
    max-width: 760px;
    margin: 0 auto;
}

.post-header {
    margin: 0 0 3.25rem;
    padding: 1.25rem 0 3rem;
    border-bottom: 1px solid var(--border);
}

.post-meta-top {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    margin: 0 0 1.2rem;
    color: var(--text-muted);
    font-size: 0.65rem;
    font-weight: 650;
    letter-spacing: 0.045em;
    text-transform: uppercase;
}

.meta-sep {
    color: var(--border);
}

.post-title {
    max-width: 760px;
    margin: 0;
    color: var(--heading);
    font-family: var(--font-serif);
    font-size: clamp(2.6rem, 5.5vw, 4rem);
    font-weight: 650;
    line-height: 1.02;
    letter-spacing: -0.048em;
}

.post-description {
    max-width: 690px;
    margin: 1.25rem 0 0;
    color: var(--text-secondary);
    font-family: var(--font-sans);
    font-size: 1.02rem;
    line-height: 1.7;
}

.post-topic-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem 1rem;
    margin: 1.4rem 0 0;
    padding: 1.1rem 0 0;
    border-top: 1px solid var(--border);
    list-style: none;
}

.post-topic-list li {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.075em;
    line-height: 1.4;
    text-transform: uppercase;
}

.post-topic-list li + li::before {
    margin-right: 1rem;
    color: var(--border);
    content: "/";
}

.post-content {
    color: var(--text);
    font-size: 1rem;
    line-height: 1.88;
}

.content.post-content p {
    margin: 0 0 1.35rem;
    color: var(--text);
    font-size: 1rem;
    line-height: 1.88;
}

.content.post-content h2 {
    margin: 3.6rem 0 1.2rem;
    padding-top: 0.2rem;
    color: var(--heading);
    font-family: var(--font-sans);
    font-size: clamp(1.45rem, 3vw, 1.75rem);
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: -0.035em;
}

.content.post-content h3 {
    margin: 2.5rem 0 0.85rem;
    color: var(--heading);
    font-family: var(--font-sans);
    font-size: 1.08rem;
    font-weight: 700;
    line-height: 1.4;
}

.content.post-content h4 {
    margin-top: 2rem;
    color: var(--heading);
    font-size: 0.95rem;
    font-weight: 700;
}

.content.post-content ul,
.content.post-content ol {
    margin: 0 0 1.5rem;
    padding-left: 1.3rem;
}

.content.post-content li {
    margin-bottom: 0.5rem;
    color: var(--text);
    font-size: 0.97rem;
    line-height: 1.78;
}

.content.post-content strong {
    color: var(--heading);
    font-weight: 700;
}

.content.post-content a {
    color: var(--accent);
    text-decoration-color: color-mix(in srgb, var(--accent) 45%, transparent);
    text-underline-offset: 0.22em;
}

.content.post-content blockquote {
    margin: 2rem 0;
    padding: 1.1rem 1.35rem;
    border-left: 2px solid var(--warm);
    border-radius: 0;
    color: var(--text-secondary);
    background: var(--surface-alt);
    font-style: normal;
}

.content.post-content blockquote p:last-child {
    margin-bottom: 0;
}

.content.post-content pre {
    margin: 2rem 0;
    border: 1px solid var(--border);
    border-radius: 3px;
    background: var(--footer-surface);
}

.content.post-content img {
    display: block;
    margin: 2.25rem auto;
}

.post-content mjx-container[jax="SVG"][display="true"] {
    margin: 1.8rem 0 !important;
    padding: 1.1rem 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.post-author-note {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem 1.5rem;
    margin-top: 4rem;
    padding: 1.35rem 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.post-author-note p {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.72rem;
}

.post-author-note strong {
    color: var(--text-secondary);
}

.post-author-note a {
    color: var(--accent);
    font-size: 0.71rem;
    font-weight: 700;
    text-decoration: none;
}

.post-nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0;
    margin: 0;
    padding: 2.4rem 0 0;
    border-top: 0;
}

.post-nav-item {
    min-width: 0;
}

.post-nav-item + .post-nav-item {
    padding-left: 1.5rem;
    border-left: 1px solid var(--border);
}

.post-nav-single {
    grid-template-columns: 1fr;
}

.post-nav-single .post-nav-item:empty {
    display: none;
}

.post-nav-single .post-nav-item + .post-nav-item {
    padding-left: 0;
    border-left: 0;
}

.post-nav-item:first-child {
    padding-right: 1.5rem;
}

.post-nav-item a {
    display: block;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    text-decoration: none;
}

.post-nav-item a:hover {
    border-color: transparent;
    box-shadow: none;
}

.post-nav-label {
    margin: 0 0 0.45rem;
    color: var(--accent);
    font-size: 0.61rem;
    font-weight: 700;
    letter-spacing: 0.075em;
    text-transform: uppercase;
}

.post-nav-title {
    color: var(--heading);
    font-size: 0.78rem;
    font-weight: 650;
    line-height: 1.55;
}

.post-nav-item a:hover .post-nav-title {
    color: var(--accent);
}

.post-related {
    display: grid;
    grid-template-columns: 145px minmax(0, 1fr);
    gap: clamp(2.5rem, 6vw, 4.75rem);
    margin-top: 5.5rem;
    padding: 4rem 0 0;
    border-top: 1px solid var(--border);
}

.post-related-heading p {
    margin: 0 0 0.55rem;
    color: var(--text-muted);
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.post-related-heading h2 {
    margin: 0;
    color: var(--heading);
    font-family: var(--font-sans);
    font-size: 1rem;
    font-weight: 700;
}

.post-related-list {
    border-top: 1px solid var(--border);
}

.post-related-list article {
    display: grid;
    grid-template-columns: 90px minmax(0, 1fr);
    gap: 1.4rem;
    padding: 1.15rem 0;
    border-bottom: 1px solid var(--border);
}

.post-related-list time {
    padding-top: 0.12rem;
    color: var(--text-muted);
    font-size: 0.61rem;
    font-weight: 650;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.post-related-list h3 {
    margin: 0;
    font-family: var(--font-sans);
    font-size: 0.8rem;
    font-weight: 650;
    line-height: 1.5;
}

.post-related-list h3 a {
    color: var(--heading);
    text-decoration: none;
}

.post-related-list h3 a:hover {
    color: var(--accent);
}

.post-all-writing {
    grid-column: 2;
    justify-self: start;
    margin-top: 0.85rem;
    color: var(--accent);
    font-size: 0.69rem;
    font-weight: 700;
    text-decoration: none;
}

@media (max-width: 760px) {
    .post-breadcrumb {
        padding: 2rem 0 1rem;
    }

    .post-header {
        padding-top: 1.5rem;
    }

    .post-title {
        font-size: clamp(2.35rem, 11vw, 3.2rem);
    }

    .post-related {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .post-all-writing {
        grid-column: 1;
    }
}

@media (max-width: 520px) {
    .post-header {
        margin-bottom: 2.5rem;
        padding-bottom: 2.4rem;
    }

    .post-title {
        font-size: clamp(2.15rem, 11.5vw, 2.8rem);
    }

    .post-description {
        font-size: 0.94rem;
    }

    .content.post-content p {
        font-size: 0.96rem;
        line-height: 1.82;
    }

    .post-nav {
        grid-template-columns: 1fr;
        gap: 1.3rem;
    }

    .post-nav-item:first-child,
    .post-nav-item + .post-nav-item {
        padding: 0;
        border-left: 0;
    }

    .post-nav-next {
        padding-top: 1.3rem !important;
        border-top: 1px solid var(--border);
        text-align: left;
    }

    .post-related-list article {
        grid-template-columns: 1fr;
        gap: 0.35rem;
    }
}

/* ============================================
   Not-found Page
   ============================================ */

.not-found-page {
    display: grid;
    grid-template-columns: minmax(180px, 0.62fr) minmax(0, 1fr);
    gap: clamp(3rem, 8vw, 7rem);
    align-items: start;
    min-height: 58vh;
    padding: clamp(3rem, 8vw, 6.5rem) 0;
}

.not-found-code {
    margin: -0.08em 0 0;
    color: var(--border);
    font-family: var(--font-serif);
    font-size: clamp(6.5rem, 15vw, 11rem);
    font-weight: 650;
    line-height: 0.8;
    letter-spacing: -0.075em;
}

.not-found-copy {
    max-width: 570px;
}

.not-found-kicker {
    margin: 0 0 1rem;
    color: var(--accent);
    font-size: 0.66rem;
    font-weight: 700;
    letter-spacing: 0.11em;
    text-transform: uppercase;
}

.not-found-copy h1 {
    margin: 0;
    color: var(--heading);
    font-family: var(--font-serif);
    font-size: clamp(2.3rem, 5vw, 3.8rem);
    font-weight: 650;
    line-height: 1.04;
    letter-spacing: -0.047em;
}

.not-found-copy > p:not(.not-found-kicker) {
    max-width: 510px;
    margin: 1.35rem 0 0;
    color: var(--text-secondary);
    font-size: 0.98rem;
    line-height: 1.75;
}

.not-found-links {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.8rem 1.6rem;
    margin-top: 2.2rem;
}

.not-found-links a {
    color: var(--heading);
    font-size: 0.72rem;
    font-weight: 700;
    text-decoration: underline;
    text-decoration-color: var(--border);
    text-underline-offset: 0.3em;
}

.not-found-links a:hover {
    color: var(--accent);
}

.not-found-links .not-found-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    min-height: 44px;
    padding: 0.72rem 1rem;
    border: 1px solid var(--navy);
    border-radius: 3px;
    color: var(--on-dark);
    background: var(--navy);
    text-decoration: none;
}

.not-found-links .not-found-primary:hover {
    border-color: var(--accent-hover);
    color: var(--on-dark);
    background: var(--accent-hover);
}

main:focus {
    outline: none;
}

@media (max-width: 760px) {
    .not-found-page {
        grid-template-columns: 1fr;
        gap: 2.2rem;
        min-height: 0;
        padding: 3.5rem 0 4rem;
    }

    .not-found-code {
        font-size: clamp(5.5rem, 27vw, 8rem);
    }
}

@media (max-width: 480px) {
    .not-found-copy h1 {
        font-size: clamp(2.15rem, 10.5vw, 2.8rem);
    }

    .not-found-links {
        align-items: flex-start;
        flex-direction: column;
    }
}

/* Readability floor for navigation, editorial labels, and long-form articles. */
.brand-name {
    font-size: 0.94rem;
}

.brand-sub {
    font-size: 0.68rem;
}

.nav-link {
    font-size: 0.84rem;
}

.content .home-eyebrow,
.home-eyebrow,
.home-section-label p {
    font-size: 0.75rem;
}

.content .home-primary-action,
.content .home-text-action,
.content .home-inline-link,
.content .home-profile-links a {
    font-size: 0.84rem;
}

.footer-nav a,
.footer-profiles a,
.footer-copyright {
    font-size: 0.78rem;
}

.post-breadcrumb a,
.post-meta-top,
.post-topic-list li,
.post-nav-label,
.post-all-writing {
    font-size: 0.75rem;
}

.post-title {
    font-size: clamp(2.35rem, 5vw, 3.5rem);
    line-height: 1.06;
}

.post-description {
    font-size: 1.05rem;
}

.post-content,
.content.post-content p {
    font-size: 1.0625rem;
    line-height: 1.82;
}

.content.post-content li {
    font-size: 1rem;
}

.post-nav-title {
    font-size: 0.9rem;
}

@media (max-width: 700px) {
    .brand-name {
        font-size: 0.88rem;
    }

    .brand-sub {
        max-width: 190px;
        font-size: 0.66rem;
        letter-spacing: 0.08em;
    }
}

@media (max-width: 520px) {
    .post-title {
        font-size: clamp(2.05rem, 10.5vw, 2.65rem);
    }

    .post-description,
    .content.post-content p {
        font-size: 1rem;
    }
}

/* Keep secondary information legible without weakening the editorial hierarchy. */
.brand-mark,
.brand-sub,
.page-kicker,
.footer-kicker,
.home-item-number,
.content .home-work-meta,
.home-update-list time,
.research-theme-number,
.experience-status,
.content .services-pathway-label,
.blog-topic {
    font-size: 0.75rem;
}

.research-page-nav span,
.experience-page-nav span,
.services-page-nav span,
.blog-page-nav span,
.content .research-page-nav a,
.content .experience-page-nav a,
.content .services-page-nav a,
.content .blog-page-nav a,
.editorial-label p,
.experience-record-meta,
.experience-record-meta time,
.experience-record-meta span,
.services-principles article > span,
.services-process li > span,
.blog-lead-meta,
.blog-lead-meta span,
.blog-lead-meta time,
.blog-reading-list article > time {
    font-size: 0.75rem;
}

.content .services-pathways li,
.research-theme-details summary {
    font-size: 0.8rem;
}

.research-publication > time,
.content .research-talk-meta,
.content .research-project-meta,
.experience-details dt,
.experience-awards time,
.experience-service-list time,
.content .experience-small-label,
.content .blog-reading-list .blog-topic,
.blog-reading-list article > time,
.blog-editorial-archive time,
.post-related-heading p,
.post-related-list time {
    font-size: 0.75rem;
}

.experience-details dd,
.content .experience-awards p,
.content .experience-service-list p,
.post-related-list h3,
.post-author-note strong {
    font-size: 0.8rem;
}

/* Maintain a 12px floor for compact labels and secondary navigation. */
.not-found-kicker,
.not-found-links a,
.blog-lead-footer > span,
.content .research-theme-details summary,
.content .service-detail-nav a,
.service-offer-list article > span,
.booking-expectations article > span,
.content .service-small-label,
.content .booking-note,
.content .booking-panel-editorial .booking-fallback,
.content .booking-panel-editorial .booking-status {
    font-size: 0.75rem;
}

.content .service-offer-list .service-offer-fit {
    font-size: 0.8rem;
}

.content .service-expertise li {
    font-size: 0.75rem;
}
