/* ============================================================
   Arindam Brahma — editorial dark navy
   Tokens, base, navigation, hero, sections, components.
   ============================================================ */

:root {
    --bg:           #0d1117;
    --bg-alt:       #111620;
    --surface:      #161c27;
    --rule:         rgba(255, 255, 255, 0.08);
    --rule-dark:    rgba(255, 255, 255, 0.14);

    --text:         #e8e4dc;
    --text-soft:    #adb3c9;
    --text-mute:    #9296a6;

    --accent:       #e07c8a;
    --accent-hover: #eba0ab;
    --accent-soft:  rgba(224, 124, 138, 0.12);

    --nav-bg:       #080c12;
    --nav-text:     rgba(255, 255, 255, 0.55);
    --nav-active:   #ffffff;

    --serif:        'Cormorant Garamond', Georgia, serif;
    --sans:         'Inter', system-ui, -apple-system, sans-serif;
    --mono:         'DM Mono', 'Courier New', monospace;

    --container:    1140px;
    --nav-height:   52px;

    --ease-out:     cubic-bezier(0.16, 1, 0.3, 1);
    --transition:   0.25s var(--ease-out);
}

:root[data-accent="blue"]     { --accent: #5b9bd5; --accent-hover: #7ab3e0; --accent-soft: rgba(91, 155, 213, 0.12); }
:root[data-accent="slate"]    { --accent: #94a3b8; --accent-hover: #b0bdd0; --accent-soft: rgba(148, 163, 184, 0.12); }
:root[data-accent="teal"]     { --accent: #2dd4bf; --accent-hover: #5ee7d7; --accent-soft: rgba(45, 212, 191, 0.12); }
:root[data-accent="burgundy"] { --accent: #e07c8a; --accent-hover: #eba0ab; --accent-soft: rgba(224, 124, 138, 0.12); }
:root[data-accent="forest"]   { --accent: #5cba7e; --accent-hover: #7ece97; --accent-soft: rgba(92, 186, 126, 0.12); }

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--nav-height);
}

body {
    font-family: var(--sans);
    font-weight: 400;
    font-size: 16px;
    line-height: 1.7;
    color: var(--text);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

::selection { background: var(--accent); color: #0d1117; }

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

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

h1, h2, h3, h4, h5, h6 {
    font-family: var(--serif);
    font-weight: 500;
    line-height: 1.25;
    color: var(--text);
}

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--bg-alt); }
::-webkit-scrollbar-thumb {
    background: var(--rule-dark);
    border: 2px solid var(--bg-alt);
}
::-webkit-scrollbar-thumb:hover { background: var(--accent); }

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

/* ============================================================
   Reveal animations
   ============================================================ */
.reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}

.reveal--visible,
.reveal.visible { opacity: 1; transform: translateY(0); }

.reveal-stagger > * {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out);
}

.reveal-stagger.reveal--visible > *,
.reveal-stagger.visible > * { opacity: 1; transform: translateY(0); }

.reveal-stagger.reveal--visible > *:nth-child(1),
.reveal-stagger.visible > *:nth-child(1) { transition-delay: 0.05s; }
.reveal-stagger.reveal--visible > *:nth-child(2),
.reveal-stagger.visible > *:nth-child(2) { transition-delay: 0.13s; }
.reveal-stagger.reveal--visible > *:nth-child(3),
.reveal-stagger.visible > *:nth-child(3) { transition-delay: 0.21s; }
.reveal-stagger.reveal--visible > *:nth-child(4),
.reveal-stagger.visible > *:nth-child(4) { transition-delay: 0.29s; }
.reveal-stagger.reveal--visible > *:nth-child(5),
.reveal-stagger.visible > *:nth-child(5) { transition-delay: 0.37s; }

@keyframes fadeUp { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

@media (prefers-reduced-motion: reduce) {
    .reveal, .reveal-stagger > * { opacity: 1; transform: none; transition: none; }
}

/* ============================================================
   Container
   ============================================================ */
.container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 28px;
}

/* ============================================================
   Navigation — fixed, full-bleed, hairline-divided
   ============================================================ */
.navbar,
.nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    height: var(--nav-height);
    background: var(--nav-bg);
    display: flex;
    align-items: stretch;
    z-index: 100;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.nav-container {
    display: flex;
    align-items: stretch;
    width: 100%;
    height: 100%;
    max-width: none;
    padding: 0;
}

.nav-brand {
    display: flex;
    align-items: center;
    padding: 0 28px;
    font-family: var(--serif);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--nav-active);
    letter-spacing: 0.02em;
    border-right: 1px solid rgba(255, 255, 255, 0.07);
    white-space: nowrap;
    flex-shrink: 0;
    transition: color var(--transition);
}

.nav-brand:hover { color: var(--nav-active); opacity: 0.85; }

.nav-links {
    display: flex;
    list-style: none;
    flex: 1;
    align-items: stretch;
    gap: 0;
}

.nav-links > li {
    display: flex;
    align-items: stretch;
}

.nav-links > li > a {
    display: flex;
    align-items: center;
    height: var(--nav-height);
    padding: 0 20px;
    font-family: var(--sans);
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--nav-text);
    border-right: 1px solid rgba(255, 255, 255, 0.05);
    transition: color var(--transition), background var(--transition);
    position: relative;
}

.nav-links > li > a::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 2px;
    background: var(--accent);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.25s var(--ease-out);
}

.nav-links > li > a:hover {
    color: var(--nav-active);
    background: rgba(255, 255, 255, 0.03);
}

.nav-links > li > a:hover::after,
.nav-links > li > a.active::after { transform: scaleX(1); }
.nav-links > li > a.active { color: var(--nav-active); }

/* Right side: socials + monospace email */
.nav-right {
    display: flex;
    align-items: center;
    padding: 0 22px;
    gap: 14px;
    margin-left: auto;
    border-left: 1px solid rgba(255, 255, 255, 0.05);
}

.nav-right a {
    color: var(--nav-text);
    font-size: 0.95rem;
    transition: color var(--transition);
}

.nav-right a:hover { color: var(--nav-active); }

.nav-mono {
    font-family: var(--mono);
    font-size: 0.62rem;
    color: rgba(255, 255, 255, 0.32);
    letter-spacing: 0.08em;
    border-left: 1px solid rgba(255, 255, 255, 0.06);
    padding-left: 16px;
    white-space: nowrap;
}

/* Dropdown (Projects) */
.nav-dropdown { position: relative; display: flex; align-items: stretch; }
.dropdown-trigger { cursor: pointer; }
.dropdown-trigger i {
    margin-left: 6px;
    transition: transform var(--transition);
    font-size: 0.6em;
}
.nav-dropdown:hover .dropdown-trigger i,
.nav-dropdown.open .dropdown-trigger i { transform: rotate(180deg); }

.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 240px;
    background: var(--nav-bg);
    border: 1px solid var(--rule);
    border-top: none;
    list-style: none;
    padding: 4px 0;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.4);
    z-index: 100;
    animation: fadeIn 0.18s var(--ease-out);
}

.nav-dropdown:hover .dropdown-menu,
.nav-dropdown.open .dropdown-menu { display: block; }

.dropdown-menu li a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 18px;
    font-family: var(--sans);
    font-size: 0.78rem;
    font-weight: 400;
    letter-spacing: 0.02em;
    text-transform: none;
    color: rgba(255, 255, 255, 0.72);
    border: none;
    background: transparent;
    transition: background var(--transition), color var(--transition);
}

.dropdown-menu li a::after { display: none; }

.dropdown-menu li a:hover {
    background: rgba(255, 255, 255, 0.04);
    color: var(--nav-active);
}

.dropdown-menu li a i {
    font-size: 0.85rem;
    width: 14px;
    text-align: center;
    color: var(--accent);
}

/* Mobile nav toggle */
.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
    width: 38px;
    align-self: center;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    margin-right: 16px;
}

.nav-toggle span {
    display: block;
    width: 22px;
    height: 1.5px;
    background: var(--nav-text);
    transition: all var(--transition);
    margin: 0 auto;
}

/* Theme toggle (legacy — hidden, single dark theme) */
.theme-toggle { display: none !important; }

/* ============================================================
   Hero (home)
   ============================================================ */
.hero {
    margin-top: var(--nav-height);
    display: grid;
    grid-template-columns: 1fr 280px;
    min-height: 56vh;
    border-bottom: 1px solid var(--rule);
    background: var(--bg);
}

.hero-left {
    display: flex;
    flex-direction: column;
    border-right: 1px solid var(--rule);
    overflow: hidden;
    position: relative;
}

.hero-top {
    flex: 1;
    padding: 44px 56px 28px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 36px;
}

.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    opacity: 0;
    transform: translateY(12px);
    animation: fadeUp 0.7s 0.1s var(--ease-out) forwards;
}

.eyebrow-line {
    width: 32px;
    height: 1px;
    background: var(--accent);
    flex-shrink: 0;
}

.eyebrow-text {
    font-family: var(--mono);
    font-size: 0.65rem;
    font-weight: 500;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--accent);
}

.hero-name {
    font-family: var(--serif);
    font-size: clamp(3.2rem, 6vw, 5.5rem);
    font-weight: 400;
    line-height: 0.95;
    letter-spacing: -0.02em;
    color: var(--text);
    margin: 0;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeUp 0.9s 0.2s var(--ease-out) forwards;
}

.hero-name .last,
.hero-name .accent {
    font-style: italic;
    font-weight: 300;
    color: var(--text-soft);
    display: block;
}

.hero-bottom {
    padding: 0 56px 32px;
    opacity: 0;
    transform: translateY(12px);
    animation: fadeUp 0.7s 0.45s var(--ease-out) forwards;
}

.hero-tagline,
.hero-title {
    font-size: 0.92rem;
    color: var(--text-soft);
    line-height: 1.7;
    max-width: 460px;
    margin: 0 0 6px;
}

.hero-affiliation {
    font-size: 0.82rem;
    color: var(--text-mute);
    margin: 0 0 28px;
}

.hero-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0;
    border-top: 1px solid var(--rule);
}

.hero-link,
.hero-links > a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 0;
    margin-right: 28px;
    font-family: var(--sans);
    font-size: 0.66rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--text-mute);
    border-bottom: 1.5px solid transparent;
    transition: color var(--transition), border-color var(--transition);
}

.hero-link:hover,
.hero-links > a:hover {
    color: var(--accent);
    border-bottom-color: var(--accent);
}

.hero-link i,
.hero-links > a i { font-size: 0.85rem; }

/* Right panel */
.hero-right {
    display: flex;
    flex-direction: column;
}

.hero-photo-wrap {
    flex: 0 0 240px;
    height: 240px;
    overflow: hidden;
    position: relative;
    border-bottom: 1px solid var(--rule);
    margin: 0;
    width: auto;
    border-radius: 0;
    opacity: 0;
    animation: fadeIn 1s 0.3s var(--ease-out) forwards;
}

.hero-photo,
.hero-photo-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    border-radius: 0;
    border: none;
    box-shadow: none;
    display: block;
}

.hero-photo-caption {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    padding: 36px 18px 14px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.6));
    font-family: var(--mono);
    font-size: 0.58rem;
    color: rgba(255, 255, 255, 0.55);
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.hero-meta {
    padding: 22px 24px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    flex: 1;
    background: var(--bg-alt);
    opacity: 0;
    animation: fadeUp 0.7s 0.5s var(--ease-out) forwards;
}

.meta-row { display: flex; flex-direction: column; gap: 3px; }

.meta-key {
    font-family: var(--mono);
    font-size: 0.58rem;
    font-weight: 500;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--accent);
}

.meta-val {
    font-size: 0.82rem;
    color: var(--text-soft);
    line-height: 1.45;
}

/* Legacy hero-scroll arrow — hidden in editorial layout */
.hero-scroll { display: none; }

/* ============================================================
   Stats strip
   ============================================================ */
.stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    border-bottom: 1px solid var(--rule);
    background: var(--bg-alt);
}

.stat {
    padding: 22px 48px;
    border-right: 1px solid var(--rule);
    opacity: 0;
    animation: fadeUp 0.6s calc(0.55s + var(--delay, 0s)) var(--ease-out) forwards;
}

.stat:last-child { border-right: none; }

.stat-num {
    font-family: var(--serif);
    font-size: 2.6rem;
    font-weight: 400;
    color: var(--text);
    line-height: 1;
    margin-bottom: 6px;
}

.stat-label {
    font-family: var(--mono);
    font-size: 0.62rem;
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--text-mute);
}

/* ============================================================
   Sections
   ============================================================ */
.section {
    padding: 60px 0;
    position: relative;
}

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

.section-title {
    font-family: var(--serif);
    font-size: clamp(1.6rem, 3vw, 2.1rem);
    font-weight: 500;
    margin-bottom: 22px;
    color: var(--text);
}

.section-title--left { text-align: left; }

.section-subtitle {
    color: var(--text-soft);
    font-size: 1rem;
    max-width: 640px;
    margin: 0 0 36px;
    line-height: 1.65;
}

/* ============================================================
   Section with index column (editorial)
   ============================================================ */
.section-about {
    display: grid;
    grid-template-columns: 80px 1fr;
    border-bottom: 1px solid var(--rule);
}

.section-index {
    border-right: 1px solid var(--rule);
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 48px;
}

.section-num {
    font-family: var(--serif);
    font-size: 0.96rem;
    font-weight: 400;
    color: var(--text-mute);
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    letter-spacing: 0.1em;
}

.section-body {
    display: grid;
    grid-template-columns: 1fr 280px;
}

.section-text {
    padding: 48px 56px;
    border-right: 1px solid var(--rule);
}

.section-label {
    font-family: var(--mono);
    font-size: 0.62rem;
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 22px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-label::after {
    content: '';
    flex: 0 0 24px;
    height: 1px;
    background: var(--accent);
    opacity: 0.35;
}

.section-text p {
    font-size: 1rem;
    line-height: 1.85;
    color: var(--text-soft);
    max-width: 580px;
    margin-bottom: 16px;
}

.section-text p:last-of-type { margin-bottom: 0; }
.section-text strong { color: var(--text); font-weight: 600; }

.section-aside {
    padding: 48px 32px;
    background: var(--bg-alt);
    display: flex;
    flex-direction: column;
    gap: 22px;
    border-left: 1px solid var(--rule);
}

.aside-item { display: flex; flex-direction: column; gap: 5px; }

.aside-key {
    font-family: var(--mono);
    font-size: 0.58rem;
    font-weight: 500;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--text-mute);
}

.aside-val {
    font-size: 0.84rem;
    color: var(--text-soft);
    line-height: 1.5;
}

.aside-val em { color: var(--text-mute); }
.aside-divider { height: 1px; background: var(--rule); }

/* ============================================================
   Research tags (also: legacy .research-tag)
   ============================================================ */
.research-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: 22px;
}

.r-tag,
.research-tag {
    display: inline-flex;
    align-items: center;
    font-family: var(--mono);
    font-size: 0.62rem;
    letter-spacing: 0.08em;
    color: var(--accent);
    padding: 4px 10px;
    background: var(--accent-soft);
    border: 1px solid rgba(224, 124, 138, 0.18);
    border-radius: 0;
    text-transform: none;
    font-weight: 400;
    transition: background var(--transition), border-color var(--transition);
}

.r-tag:hover,
.research-tag:hover {
    background: rgba(224, 124, 138, 0.18);
    border-color: var(--accent);
}

/* ============================================================
   Page links (3-column hairline grid on home)
   ============================================================ */
.page-links {
    display: grid;
    grid-template-columns: 80px repeat(3, 1fr);
}

.page-links-index {
    border-right: 1px solid var(--rule);
}

.page-link {
    display: flex;
    flex-direction: column;
    padding: 40px 40px 36px;
    border-right: 1px solid var(--rule);
    text-decoration: none;
    color: var(--text);
    position: relative;
    overflow: hidden;
    transition: background 0.25s var(--ease-out);
}

.page-link:last-child { border-right: none; }

.page-link::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: var(--accent);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.35s var(--ease-out);
}

.page-link:hover { background: var(--surface); color: var(--text); }
.page-link:hover::before { transform: scaleX(1); }

.pl-num {
    font-family: var(--mono);
    font-size: 0.62rem;
    color: var(--text-mute);
    margin-bottom: 14px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.pl-title {
    font-family: var(--serif);
    font-size: 1.65rem;
    font-weight: 500;
    color: var(--text);
    line-height: 1.1;
    margin-bottom: 10px;
}

.pl-desc {
    font-size: 0.84rem;
    color: var(--text-mute);
    line-height: 1.6;
    flex: 1;
}

.pl-arrow {
    margin-top: 22px;
    font-family: var(--mono);
    font-size: 0.62rem;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--accent);
    display: flex;
    align-items: center;
    gap: 8px;
    opacity: 0;
    transform: translateX(-6px);
    transition: opacity 0.2s, transform 0.25s var(--ease-out);
}

.page-link:hover .pl-arrow { opacity: 1; transform: translateX(0); }

/* ============================================================
   Page header (inner pages)
   ============================================================ */
.page-header {
    margin-top: var(--nav-height);
    background: var(--nav-bg);
    border-bottom: 1px solid var(--rule);
    padding: 64px 0 56px;
    position: relative;
}

.page-header > .container {
    display: grid;
    grid-template-columns: 80px 1fr;
    align-items: end;
    padding: 0;
    max-width: none;
    gap: 0;
}

.page-header-index {
    border-right: 1px solid var(--rule);
    align-self: stretch;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding-bottom: 12px;
}

.page-header-index .section-num { color: var(--text-mute); }

.page-header-body {
    padding: 0 56px;
}

.page-header .page-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 18px;
}

.page-header .page-eyebrow .eyebrow-line {
    width: 28px;
    height: 1px;
    background: var(--accent);
}

.page-header .page-eyebrow span:last-child {
    font-family: var(--mono);
    font-size: 0.62rem;
    font-weight: 500;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--accent);
}

.page-header h1 {
    font-family: var(--serif);
    font-size: clamp(2.4rem, 5.5vw, 3.8rem);
    font-weight: 400;
    line-height: 1;
    letter-spacing: -0.015em;
    color: var(--text);
    margin: 0 0 14px;
}

.page-header h1 em,
.page-header h1 .italic {
    font-style: italic;
    font-weight: 300;
    color: var(--text-soft);
}

.page-header p {
    color: var(--text-soft);
    font-size: 0.96rem;
    max-width: 640px;
    line-height: 1.7;
    margin: 0;
}

/* ============================================================
   Publications (Scholarship)
   ============================================================ */
.pub-category {
    display: grid;
    grid-template-columns: 80px 1fr;
    border-bottom: 1px solid var(--rule);
}

.pub-category:last-child { border-bottom: none; }

.pub-category::before {
    content: '';
    border-right: 1px solid var(--rule);
}

.pub-category-body {
    padding: 56px 56px 56px 0;
}

.pub-category-title {
    font-family: var(--mono);
    font-size: 0.62rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--accent);
    padding: 0 0 26px;
    margin: 0 0 26px;
    border-bottom: 1px solid var(--rule);
    display: flex;
    align-items: center;
    gap: 14px;
}

.pub-category-title::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--rule);
}

.pub-category-title i {
    color: var(--accent);
    font-size: 0.85rem;
}

.pub-list {
    list-style: none;
    counter-reset: pub-counter;
    padding: 0;
    margin: 0;
}

.pub-list[reversed] { counter-reset: none; }

.pub-item {
    display: grid;
    grid-template-columns: 36px 1fr;
    gap: 18px;
    padding: 18px 22px 18px 0;
    margin: 0;
    font-size: 0.94rem;
    line-height: 1.75;
    color: var(--text-soft);
    border-left: 2px solid transparent;
    border-bottom: 1px solid var(--rule);
    transition: background var(--transition), border-left-color var(--transition), padding-left var(--transition);
}

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

.pub-item::before {
    content: counter(list-item, decimal-leading-zero);
    font-family: var(--mono);
    font-size: 0.6rem;
    color: var(--text-mute);
    letter-spacing: 0.08em;
    padding-top: 4px;
    text-align: right;
}

.pub-item:hover {
    background: var(--surface);
    border-left-color: var(--accent);
    padding-left: 18px;
}

.pub-item.pub-item-clickable {
    cursor: pointer;
}

.pub-item strong { color: var(--text); font-weight: 600; }
.pub-title { color: var(--text); font-weight: 500; }
.pub-item em { color: var(--text-mute); font-style: italic; }

.pub-link {
    display: inline-flex;
    align-items: center;
    margin-left: 8px;
    font-size: 0.78rem;
    color: var(--accent);
    opacity: 0.65;
    transition: opacity var(--transition);
}

.pub-item:hover .pub-link { opacity: 1; }

/* ============================================================
   Section tabs (Scholarship categories)
   ============================================================ */
.section-tabs {
    background: var(--bg);
    border-bottom: 1px solid var(--rule);
    position: sticky;
    top: var(--nav-height);
    z-index: 50;
}

.section-tabs > .container {
    display: grid;
    grid-template-columns: 80px repeat(4, 1fr);
    gap: 0;
    max-width: none;
    padding: 0;
}

.section-tabs > .container::before {
    content: '';
    border-right: 1px solid var(--rule);
}

.section-tab {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 22px 26px;
    background: transparent;
    border: 0;
    border-right: 1px solid var(--rule);
    color: var(--text);
    text-align: left;
    cursor: pointer;
    transition: background var(--transition);
    position: relative;
    font-family: var(--sans);
    width: 100%;
}

.section-tab:last-child { border-right: none; }

.section-tab::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: var(--accent);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s var(--ease-out);
}

.section-tab:hover { background: var(--surface); }
.section-tab:hover::before { transform: scaleX(1); }

.section-tab.active { background: var(--surface); }
.section-tab.active::before { transform: scaleX(1); }

.section-tab-kicker {
    font-family: var(--mono);
    font-size: 0.6rem;
    font-weight: 500;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--accent);
}

.section-tab-title {
    font-family: var(--serif);
    font-size: 1.1rem;
    font-weight: 500;
    line-height: 1.25;
    color: var(--text);
}

.section-tab-count {
    font-family: var(--mono);
    font-size: 0.6rem;
    letter-spacing: 0.12em;
    color: var(--text-mute);
}

[role="tabpanel"][hidden] { display: none; }

/* ============================================================
   CV
   ============================================================ */
.cv-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    border-bottom: 1px solid var(--rule);
}

.cv-block {
    padding: 48px 48px;
    border-right: 1px solid var(--rule);
    border-top: 1px solid var(--rule);
}

.cv-block:nth-child(2n) { border-right: none; }
.cv-block:nth-child(1),
.cv-block:nth-child(2) { border-top: none; }

.cv-block-title {
    font-family: var(--mono);
    font-size: 0.62rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--accent);
    margin-bottom: 28px;
    padding-bottom: 0;
    border-bottom: none;
    display: flex;
    align-items: center;
    gap: 12px;
}

.cv-block-title::after {
    content: '';
    flex: 0 0 24px;
    height: 1px;
    background: var(--accent);
    opacity: 0.4;
}

.cv-block-title i {
    color: var(--accent);
    font-size: 0.78rem;
    margin-right: 2px;
}

.cv-item {
    display: grid;
    grid-template-columns: 110px 1fr;
    gap: 22px;
    margin-bottom: 26px;
    padding-bottom: 26px;
    border-bottom: 1px solid var(--rule);
    position: relative;
}

.cv-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.cv-date {
    font-family: var(--mono);
    font-size: 0.62rem;
    font-weight: 500;
    color: var(--text-mute);
    padding-top: 4px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.cv-details h4 {
    font-family: var(--sans);
    font-size: 0.96rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 4px;
    line-height: 1.4;
}

.cv-institution {
    font-size: 0.84rem;
    color: var(--accent);
    font-weight: 500;
    margin-bottom: 10px;
}

.cv-details p {
    font-size: 0.88rem;
    color: var(--text-soft);
    line-height: 1.7;
}

.cv-details p + p { margin-top: 8px; }
.cv-details p strong { color: var(--text); font-weight: 600; }
.cv-details em { color: var(--text-mute); }

/* ============================================================
   Contact
   ============================================================ */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    border-bottom: 1px solid var(--rule);
    border-top: 1px solid var(--rule);
}

.contact-card {
    padding: 48px 40px;
    border-right: 1px solid var(--rule);
    background: transparent;
    position: relative;
    transition: background var(--transition);
}

.contact-card:last-child { border-right: none; }
.contact-card:hover { background: var(--surface); }

.contact-card > i:first-child {
    display: none;
}

.contact-card .contact-key {
    display: block;
    font-family: var(--mono);
    font-size: 0.62rem;
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 18px;
}

.contact-card h4 {
    font-family: var(--mono);
    font-size: 0.62rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--accent);
    margin-bottom: 18px;
}

.contact-card p {
    font-size: 0.92rem;
    color: var(--text-soft);
    line-height: 1.75;
    margin: 0;
}

.contact-card p a { color: var(--accent); font-weight: 500; }
.contact-card p a:hover { color: var(--accent-hover); }

.contact-social {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 0;
}

.contact-social a {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: var(--sans);
    font-size: 0.85rem;
    font-weight: 400;
    padding: 0;
    border: none;
    background: none;
    color: var(--text-soft);
    transition: color var(--transition), transform var(--transition);
}

.contact-social a i {
    font-size: 0.88rem;
    color: var(--accent);
    width: 16px;
    text-align: center;
}

.contact-social a:hover {
    color: var(--accent);
    transform: translateX(3px);
    background: none;
    border: none;
}

/* ============================================================
   Legacy compatibility — about-grid / page-cards / highlight
   (kept so the home page or any leftover markup still renders)
   ============================================================ */
.about-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 64px;
    align-items: start;
    margin-bottom: 64px;
}

.about-text p {
    margin-bottom: 18px;
    line-height: 1.85;
    color: var(--text-soft);
    font-size: 1rem;
}

.about-text p:last-child { margin-bottom: 0; }
.about-text strong { color: var(--text); font-weight: 600; }

.about-highlights {
    display: flex;
    flex-direction: column;
    gap: 0;
    border: 1px solid var(--rule);
}

.highlight-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 22px 28px;
    background: var(--bg-alt);
    border-bottom: 1px solid var(--rule);
    transition: background var(--transition);
}

.highlight-card:last-child { border-bottom: none; }
.highlight-card:hover { background: var(--surface); }

.highlight-number {
    font-family: var(--serif);
    font-size: 2.2rem;
    font-weight: 400;
    color: var(--text);
    line-height: 1;
}

.highlight-label {
    font-family: var(--mono);
    font-size: 0.6rem;
    color: var(--text-mute);
    text-transform: uppercase;
    letter-spacing: 0.18em;
    margin-top: 8px;
}

.page-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    border: 1px solid var(--rule);
}

.page-card {
    display: block;
    padding: 36px 32px;
    border-right: 1px solid var(--rule);
    background: transparent;
    color: var(--text);
    text-decoration: none;
    position: relative;
    overflow: hidden;
    transition: background var(--transition);
}

.page-card:last-child { border-right: none; }
.page-card:hover { background: var(--surface); color: var(--text); }

.page-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: var(--accent);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.35s var(--ease-out);
}
.page-card:hover::before { transform: scaleX(1); }

.page-card > i:first-child {
    color: var(--accent);
    font-size: 1rem;
    margin-bottom: 16px;
    display: block;
    background: none;
    width: auto;
    height: auto;
    border-radius: 0;
}

.page-card h3 {
    font-family: var(--serif);
    font-size: 1.45rem;
    font-weight: 500;
    color: var(--text);
    margin-bottom: 8px;
}

.page-card p {
    font-size: 0.86rem;
    color: var(--text-mute);
    line-height: 1.65;
    margin: 0;
}

.page-card-arrow {
    margin-top: 18px;
    color: var(--accent);
    font-family: var(--mono);
    font-size: 0.62rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    opacity: 0;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transform: translateX(-4px);
    transition: opacity var(--transition), transform var(--transition);
    position: static;
}

.page-card:hover .page-card-arrow { opacity: 1; transform: translateX(0); }

/* ============================================================
   Footer
   ============================================================ */
footer {
    background: var(--nav-bg);
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding: 28px 56px;
    margin-top: auto;
}

footer > .container {
    max-width: none;
    padding: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 18px;
    flex-wrap: wrap;
}

.footer-brand {
    font-family: var(--serif);
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.45);
}

footer p {
    font-family: var(--mono);
    font-size: 0.6rem;
    color: rgba(255, 255, 255, 0.32);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin: 0;
}

footer .footer-links {
    display: flex;
    gap: 18px;
    list-style: none;
    margin: 0;
    padding: 0;
}

footer .footer-links a {
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.95rem;
    transition: color var(--transition);
}

footer .footer-links a:hover { color: rgba(255, 255, 255, 0.85); }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 960px) {
    .hero { grid-template-columns: 1fr; min-height: auto; }
    .hero-left { border-right: none; }
    .hero-right { flex-direction: row; border-top: 1px solid var(--rule); }
    .hero-photo-wrap { flex: 0 0 200px; height: 220px; }
    .hero-meta { flex: 1; }

    .section-body { grid-template-columns: 1fr; }
    .section-aside { display: none; }

    .page-links { grid-template-columns: 1fr; }
    .page-links-index { display: none; }
    .page-link { border-right: none; border-bottom: 1px solid var(--rule); }

    .about-grid { grid-template-columns: 1fr; gap: 36px; }
    .page-cards { grid-template-columns: 1fr; border-left: none; border-right: none; }
    .page-card { border-right: none; border-bottom: 1px solid var(--rule); }

    .pub-category { grid-template-columns: 1fr; }
    .pub-category::before { display: none; }
    .pub-category-body { padding: 40px 28px; }

    .section-tabs > .container { grid-template-columns: 1fr; }
    .section-tabs > .container::before { display: none; }
    .section-tab {
        border-right: none;
        border-bottom: 1px solid var(--rule);
        padding: 16px 28px;
    }
    .section-tab:last-child { border-bottom: none; }

    .cv-grid { grid-template-columns: 1fr; }
    .cv-block { border-right: none; padding: 40px 28px; }
    .cv-block:nth-child(2) { border-top: 1px solid var(--rule); }

    .contact-grid { grid-template-columns: 1fr; }
    .contact-card { border-right: none; border-bottom: 1px solid var(--rule); padding: 40px 28px; }
    .contact-card:last-child { border-bottom: none; }

    .page-header > .container { grid-template-columns: 1fr; }
    .page-header-index { display: none; }
    .page-header-body { padding: 0 28px; }

    footer { padding: 24px 28px; }
    footer > .container { flex-direction: column; gap: 14px; text-align: center; }
}

@media (max-width: 768px) {
    :root { --nav-height: 56px; }

    .nav-toggle { display: flex; }
    .nav-right { display: none; }
    .nav-mono { display: none; }

    .nav-links {
        display: none;
        position: absolute;
        top: var(--nav-height);
        left: 0;
        right: 0;
        flex-direction: column;
        align-items: stretch;
        background: var(--nav-bg);
        border-bottom: 1px solid var(--rule);
        padding: 0;
    }

    .nav-links.open { display: flex; }
    .nav-links > li { display: block; }
    .nav-links > li > a {
        height: auto;
        padding: 14px 28px;
        border-right: none;
        border-bottom: 1px solid var(--rule);
        font-size: 0.78rem;
    }
    .nav-links > li > a::after { display: none; }
    .nav-links > li > a.active { background: rgba(255, 255, 255, 0.04); }

    .dropdown-menu {
        position: static;
        background: rgba(255, 255, 255, 0.03);
        border: none;
        box-shadow: none;
        animation: none;
        padding: 0;
        min-width: 0;
    }
    .dropdown-menu li a { padding: 12px 40px; }
    .nav-dropdown:hover .dropdown-menu { display: none; }
    .nav-dropdown.open .dropdown-menu { display: block; }

    .stats { grid-template-columns: 1fr; }
    .stat { border-right: none; border-bottom: 1px solid var(--rule); }
    .stat:last-child { border-bottom: none; }

    .hero-top { padding: 40px 28px 28px; }
    .hero-bottom { padding: 0 28px 28px; }
    .stat { padding: 22px 28px; }
    .section-about { grid-template-columns: 1fr; }
    .section-index { display: none; }
    .section-text { padding: 36px 28px; border-right: none; }

    .cv-item { grid-template-columns: 1fr; gap: 6px; }
    .cv-date { padding-top: 0; }

    .pub-item { grid-template-columns: 28px 1fr; gap: 12px; padding-right: 0; }
}

@media (max-width: 480px) {
    .container { padding: 0 20px; }
    .hero-name { font-size: clamp(2.6rem, 10vw, 3.4rem); }
}

/* ============================================================
   Print
   ============================================================ */
@media print {
    .navbar, .nav, footer, .hero-scroll, .nav-toggle { display: none !important; }
    body { background: #fff; color: #000; }
    .page-header { background: none; padding: 24px 0; border-bottom: 1px solid #ccc; }
    .page-header h1, .page-header p { color: #000; }
    .pub-item, .cv-item { break-inside: avoid; }
    .pub-item:hover, .contact-card:hover { background: none; }
}
