@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,wght@0,400;0,500;0,600;0,700;1,400&family=Manrope:wght@400;500;600;700;800&display=swap');

:root {
    --bg: #f7f8fc;
    --paper: #ffffff;
    --surface-alt: #f1f3f9;
    --ink: #14151a;
    --muted: #545768;
    --faint: #787b8d;
    --line: #dedfe9;
    --line-light: #eceef5;
    --control-border: #cbd0df;
    --accent: #e90046;
    --accent-hover: #c40038;
    --accent-soft: #fdf2f5;
    --max: 1160px;
    --background: #f7f8fc;
    --second-background: #ffffff;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 40px;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font: 16px/1.75 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color 0.15s ease;
}

button,
input,
select,
textarea {
    font: inherit;
    touch-action: manipulation;
}

button {
    cursor: pointer;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 4px;
}

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

.skip {
    position: absolute;
    top: -120px;
    left: 20px;
    background: #ffffff;
    color: var(--ink);
    padding: 12px 20px;
    font-weight: 600;
    font-size: 14px;
    z-index: 1000;
    transition: top 0.2s ease;
}

.skip:focus {
    top: 20px;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

.frame {
    background: var(--background);
    overflow: hidden;
    min-height: 100svh;
}

.container {
    width: min(var(--max), calc(100% - 64px));
    margin: 0 auto;
}

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

header {
    height: 110px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
}

.brand {
    font-family: 'Manrope', sans-serif;
    font-size: 26px;
    font-weight: 800;
    letter-spacing: -1.2px;
    color: var(--ink);
    display: inline-flex;
    align-items: center;
}

.brand span {
    color: var(--accent);
}

header nav,
#navigation {
    display: flex;
    gap: 24px;
    align-items: center;
}

header nav a,
#navigation a {
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.2px;
    color: var(--muted);
    transition: color 0.15s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

header nav a:not(.button):hover,
header nav a:not(.button).active,
#navigation a:not(.button):hover,
#navigation a:not(.button).active {
    color: var(--accent);
}

/* Navigation CTA Button (Aksen Merah - Refined Scholarly Crimson) */
header nav .button,
#navigation .button,
header nav a.button,
#navigation a.button,
.nav-cta {
    background: #9f1239;
    color: #ffffff !important;
    border: 1px solid #9f1239;
    border-radius: 6px;
    padding: 8px 18px;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.4;
    letter-spacing: 0.25px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 1px 3px rgba(159, 18, 57, 0.16);
    transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
    text-decoration: none;
}

header nav .button:hover,
#navigation .button:hover,
header nav a.button:hover,
#navigation a.button:hover,
.nav-cta:hover {
    background: #881337;
    border-color: #881337;
    color: #ffffff !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(159, 18, 57, 0.24);
}

header nav .button:active,
#navigation .button:active,
header nav a.button:active,
#navigation a.button:active,
.nav-cta:active {
    background: #700d2b;
    border-color: #700d2b;
    color: #ffffff !important;
    transform: translateY(0);
    box-shadow: 0 1px 2px rgba(159, 18, 57, 0.2);
}

header nav .button.active,
#navigation .button.active,
header nav a.button.active,
#navigation a.button.active,
.nav-cta.active {
    background: #700d2b;
    border-color: #700d2b;
    color: #ffffff !important;
    box-shadow: 0 0 0 2px var(--paper), 0 0 0 4px rgba(159, 18, 57, 0.35);
}

header nav .button:focus-visible,
#navigation .button:focus-visible,
header nav a.button:focus-visible,
#navigation a.button:focus-visible,
.nav-cta:focus-visible {
    outline: 2px solid #9f1239;
    outline-offset: 3px;
}

/* Navigation Dropdown Sub-menu */
.nav-item.has-dropdown {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.nav-item-header {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.dropdown-toggle-btn {
    background: transparent;
    border: none;
    padding: 4px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--muted);
    cursor: pointer;
    border-radius: 4px;
    transition: color 0.15s ease, transform 0.15s ease;
}

.dropdown-toggle-btn:hover,
.nav-item.has-dropdown:hover .dropdown-toggle-btn {
    color: var(--accent);
}

.dropdown-chevron {
    transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    transform-origin: center;
}

.dropdown-chevron.rotate,
.nav-item.has-dropdown:hover .dropdown-chevron {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 220px;
    background: var(--paper);
    border: 1px solid var(--line);
    padding: 8px 0;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
    display: none;
    flex-direction: column;
    z-index: 1100;
    margin-top: 10px;
}

.dropdown-menu::before {
    content: '';
    position: absolute;
    top: -12px;
    left: 0;
    right: 0;
    height: 14px;
    background: transparent;
}

.nav-item.has-dropdown:hover>.dropdown-menu,
.nav-item.has-dropdown:focus-within>.dropdown-menu,
.dropdown-menu.show {
    display: flex;
}

.dropdown-item {
    padding: 10px 18px !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    color: var(--ink) !important;
    display: block !important;
    white-space: nowrap;
    text-decoration: none;
    transition: background 0.15s ease, color 0.15s ease, padding-left 0.15s ease;
}

.dropdown-item:hover,
.dropdown-item:focus {
    background: var(--surface-alt);
    color: var(--accent) !important;
    padding-left: 22px !important;
}

.dropdown-item.active {
    color: var(--accent) !important;
    font-weight: 700 !important;
    background: var(--surface-alt);
}

.search-icon {
    display: inline-block;
    vertical-align: middle;
}

.header-note {
    font-size: 12px;
    color: var(--muted);
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
}

.header-note i {
    display: inline-block;
    width: 6px;
    height: 6px;
    background: var(--accent);
    border-radius: 50%;
    margin-right: 8px;
}

.menu-toggle {
    display: none;
    border: 1px solid var(--control-border);
    background: var(--paper);
    padding: 8px 14px;
    color: var(--ink);
    font-size: 13px;
    font-weight: 600;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */

.hero-shell {
    position: relative;
    background: var(--paper);
    padding-bottom: 30px;
}

.hero {
    min-height: 580px;
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    align-items: center;
    gap: 48px;
    padding: 20px 0 60px;
}

.hero-copy {
    z-index: 2;
}

.hero-welcome {
    font-size: 14px;
    font-weight: 600;
    color: var(--accent);
    margin: 0 0 16px;
    letter-spacing: 0.2px;
}

h1,
h2,
h3 {
    margin-top: 0;
    font-family: 'Manrope', sans-serif;
    color: var(--ink);
}

h1 {
    font-size: clamp(44px, 5.2vw, 68px);
    font-weight: 800;
    letter-spacing: -2.5px;
    line-height: 1.12;
    margin-bottom: 20px;
}

h1 em {
    font-style: normal;
    color: var(--accent);
}

.role {
    font-size: 14px;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    font-weight: 700;
    color: var(--ink);
    margin-bottom: 18px;
}

.intro {
    max-width: 460px;
    color: var(--muted);
    font-size: 16px;
    line-height: 1.7;
    margin-bottom: 32px;
}

.actions {
    display: flex;
    gap: 20px;
    align-items: center;
    flex-wrap: wrap;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    background: var(--accent);
    color: #ffffff;
    padding: 14px 26px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.4px;
    border: 0;
    transition: background-color 0.15s ease, color 0.15s ease;
}

.button:hover {
    background: var(--accent-hover);
    color: #ffffff;
}

.button.outline {
    background: transparent;
    color: var(--ink);
    border: 1px solid var(--control-border);
}

.button.outline:hover {
    border-color: var(--ink);
    background: var(--surface-alt);
}

.button-full {
    width: 100%;
}

.text-link {
    font-size: 13px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--ink);
    transition: color 0.15s ease;
}

.text-link:hover {
    color: var(--accent);
}

.portrait {
    position: relative;
    width: 100%;
    max-width: 380px;
    height: 480px;
    margin: 0 auto;
    background: var(--surface-alt);
    border-radius: 40% 40% 0 0;
    overflow: hidden;
}

.portrait img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 50% 25%;
    border-radius: 40% 40% 0 0;
}

.portrait-label {
    position: absolute;
    bottom: 16px;
    right: 16px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.6px;
    background: rgba(255, 255, 255, 0.95);
    padding: 6px 12px;
    color: var(--muted);
}

.hero-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 0 10px;
    font-size: 13px;
    color: var(--muted);
}

.socials {
    display: flex;
    gap: 24px;
}

.socials a {
    color: var(--muted);
    font-weight: 600;
}

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

.scroll {
    font-size: 13px;
    font-weight: 600;
    color: var(--muted);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

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

/* ==========================================================================
   Sections & Layout
   ========================================================================== */

.section {
    padding: 70px 0;
}

.section-title {
    font-size: clamp(32px, 3.8vw, 44px);
    font-weight: 800;
    line-height: 1.22;
    letter-spacing: -1.2px;
    margin-bottom: 24px;
}

.section-top {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 32px;
    margin-bottom: 48px;
}

.section-top h2 {
    margin-bottom: 0;
}

.section-footer-row {
    margin-top: 36px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

/* 01: Tentang Saya */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1.25fr;
    gap: 80px;
    align-items: start;
}

.about-text {
    color: var(--muted);
    font-size: 16px;
    line-height: 1.8;
}

.about-text p {
    margin-bottom: 20px;
}

.profile-facts {
    display: flex;
    gap: 48px;
    margin-top: 32px;
    padding: 24px 0;
}

.profile-facts span {
    display: block;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.5px;
    color: var(--faint);
    text-transform: uppercase;
    margin-bottom: 6px;
}

.profile-facts strong {
    font-size: 14px;
    font-weight: 600;
    color: var(--ink);
}

/* 02: Riset */
.research-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.research-card {
    background: var(--paper);
    padding: 36px 32px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    position: relative;
    cursor: pointer;
    transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.research-card:hover {
    transform: translateY(-4px);
}

.research-card .index {
    font-size: 13px;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 20px;
}

.research-card .arrow {
    position: absolute;
    right: 28px;
    top: 32px;
    font-size: 22px;
    color: var(--accent);
    transition: transform 0.15s ease;
}

.research-card:hover .arrow {
    transform: translate(3px, -3px);
}

.research-card h3 {
    font-size: 21px;
    line-height: 1.35;
    letter-spacing: -0.6px;
    margin: 0 0 16px;
    color: var(--ink);
}

.research-card p {
    color: var(--muted);
    font-size: 14px;
    line-height: 1.65;
    margin-bottom: 24px;
}

.tags-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.tag {
    font-size: 11px;
    font-weight: 600;
    padding: 4px 10px;
    background: var(--surface-alt);
    color: var(--ink);
    display: inline-block;
}

/* Projects Grid (2-Column Responsive for Research Area Detail) */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

@media (max-width: 860px) {
    .projects-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

.project-card {
    background: var(--second-background);
    border: 1px solid var(--line);
    padding: 32px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
    cursor: pointer;
    position: relative;
    text-decoration: none;
    color: inherit;
}

.project-card:hover {
    border-color: var(--accent);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.05);
}

.collaboration-banner {
    background: #eef0f8;
    border: 1px solid var(--line);
    padding: 36px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 32px;
    margin-top: 56px;
}

@media (max-width: 768px) {
    .collaboration-banner {
        flex-direction: column;
        align-items: flex-start;
        padding: 28px 24px;
        gap: 20px;
    }
}

.other-areas-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.other-area-card {
    background: var(--second-background);
    border: 1px solid var(--line);
    padding: 24px;
    display: block;
    color: inherit;
    transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
    text-decoration: none;
}

.other-area-card:hover {
    border-color: var(--accent);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.04);
}

/* Detail Layout Grid with Sidebar (Content dominant ~69%, Sidebar ~31%) */
.detail-layout-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 56px;
    align-items: start;
}

@media (max-width: 1023px) {
    .detail-layout-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

/* 2-Column Card Grid inside Content Columns */
.card-grid-2col {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 16px;
}

/* 03: Publikasi */
.publication-section {
    background: var(--paper);
}

.tools {
    display: flex;
    gap: 16px;
    margin-bottom: 24px;
}

.tools input {
    flex: 1;
    min-width: 0;
}

.tools input,
.tools select {
    background: var(--bg);
    border: 1px solid var(--control-border);
    padding: 12px 18px;
    color: var(--ink);
    font-size: 14px;
}

.tools input:focus,
.tools select:focus {
    border-color: var(--accent);
    outline: none;
}

.publication {
    display: grid;
    grid-template-columns: 80px 1fr 48px;
    gap: 28px;
    padding: 30px 24px;
    background: var(--bg);
    margin-bottom: 12px;
    align-items: center;
    transition: background-color 0.15s ease;
}

.publication:hover {
    background: var(--surface-alt);
}

.year {
    font-size: 18px;
    font-weight: 700;
    color: var(--ink);
    font-family: 'Manrope', sans-serif;
}

.pub-type {
    font-size: 11px;
    font-weight: 700;
    color: var(--accent);
    letter-spacing: 0.6px;
    text-transform: uppercase;
    margin-bottom: 6px;
}

.publication h3 {
    font-size: 19px;
    line-height: 1.45;
    letter-spacing: -0.4px;
    margin-bottom: 6px;
    max-width: 780px;
}

.publication h3 a {
    color: var(--ink);
}

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

.publication p {
    font-size: 13px;
    color: var(--muted);
    margin: 0;
}

.detail-button {
    border: 0;
    background: var(--paper);
    font-size: 20px;
    color: var(--ink);
    width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.15s ease, color 0.15s ease;
}

.detail-button:hover {
    background: var(--accent);
    color: #ffffff;
}

.demo-note {
    font-size: 13px;
    color: var(--muted);
    margin: 0;
}

.empty {
    padding: 48px 24px;
    text-align: center;
    background: var(--bg);
    color: var(--muted);
}

/* 04: Pengajaran */
.teaching {
    display: grid;
    grid-template-columns: 1fr 1.25fr;
    gap: 80px;
    align-items: start;
}

.teaching p {
    font-size: 16px;
    color: var(--muted);
    max-width: 420px;
    line-height: 1.75;
    margin-bottom: 24px;
}

.courses-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.course {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 28px;
    background: var(--paper);
    gap: 20px;
    cursor: pointer;
    transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.15s ease;
}

.course:hover {
    transform: translateX(4px);
    background: var(--surface-alt);
}

.course h3 {
    font-size: 18px;
    margin: 0 0 6px;
    letter-spacing: -0.4px;
    transition: color 0.15s ease;
}

.course:hover h3 {
    color: var(--accent);
}

.course span {
    font-size: 12px;
    font-weight: 600;
    color: var(--muted);
}

.course-arrow {
    font-size: 20px;
    color: var(--ink);
}

/* 05: Artikel */
.journal-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
}

.article-card {
    display: block;
    text-align: left;
    background: var(--paper);
    padding: 32px;
    color: inherit;
    cursor: pointer;
    transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.article-card:hover {
    transform: translateY(-4px);
}

.article-art {
    height: 200px;
    background: var(--surface-alt);
    margin-bottom: 24px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.article-art img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.art-mark {
    font-family: 'Manrope', sans-serif;
    font-size: 64px;
    font-weight: 800;
    color: var(--control-border);
    letter-spacing: -2px;
}

.article-card .micro {
    color: var(--faint);
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 12px;
}

.article-card h3 {
    font-size: 22px;
    letter-spacing: -0.5px;
    line-height: 1.45;
    margin-bottom: 16px;
    transition: color 0.15s ease;
}

.article-card:hover h3 {
    color: var(--accent);
}

/* 06: Kontak */
.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 72px;
    align-items: start;
}

.contact-intro {
    font-size: 16px;
    color: var(--muted);
    line-height: 1.75;
    margin: 20px 0 28px;
}

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

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
    background: var(--paper);
    padding: 40px;
}

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

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-label {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.5px;
    color: var(--ink);
}

.form-input,
.form-textarea,
.form-select {
    width: 100%;
    background: var(--bg);
    border: 1px solid var(--control-border);
    padding: 13px 16px;
    color: var(--ink);
    font-size: 14px;
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
    border-color: var(--accent);
    outline: none;
    background: #ffffff;
}

.consent-wrapper {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 4px 0 8px;
}

.consent-wrapper input[type="checkbox"] {
    margin-top: 5px;
}

.consent-label {
    font-size: 12px;
    color: var(--muted);
    line-height: 1.5;
}

.consent-label a {
    color: var(--ink);
    text-decoration: underline;
}

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

.form-error {
    font-size: 12px;
    color: var(--accent);
    font-weight: 600;
}

.form-success {
    background: #e6f4ea;
    border: 1px solid #34a853;
    color: #137333;
    padding: 18px;
    font-size: 14px;
    margin-bottom: 20px;
}

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

.site-footer,
footer.footer {
    width: 100%;
    background: var(--paper);
    padding: 80px 0 60px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 48px;
}

.footer-brand-col {
    max-width: 440px;
}

.footer-desc {
    margin: 12px 0 16px;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.65;
}

.footer-nav-col {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 20px;
}

.footer-links {
    display: flex;
    gap: 24px;
    font-size: 13px;
    font-weight: 600;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.footer-links a {
    color: var(--muted);
    transition: color 0.15s ease;
}

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

.footer-legal-links {
    display: flex;
    gap: 20px;
    font-size: 12px;
    color: var(--faint);
    flex-wrap: wrap;
    justify-content: flex-end;
}

.footer-legal-links a {
    color: var(--faint);
    transition: color 0.15s ease;
}

.footer-legal-links a:hover {
    color: var(--accent);
}

/* Dialog Overlay */
dialog {
    width: min(580px, calc(100% - 32px));
    border: 1px solid var(--control-border);
    background: var(--paper);
    padding: 40px;
    color: var(--ink);
}

dialog::backdrop {
    background: rgba(20, 21, 26, 0.65);
}

dialog h2 {
    font-size: 26px;
    margin: 20px 0 14px;
}

dialog p {
    color: var(--muted);
    font-size: 15px;
    line-height: 1.7;
}

.dialog-close {
    float: right;
    background: none;
    border: 0;
    font-size: 26px;
    color: var(--ink);
    line-height: 1;
}

[hidden] {
    display: none !important;
}

/* ==========================================================================
   Sub-pages & Academic Modules Styling
   ========================================================================== */

.page-header {
    padding: 50px 0 32px;
    background: var(--paper);
    position: relative;
    z-index: 1;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: var(--muted);
    margin: 0 0 14px 0;
    position: static;
    line-height: 1.5;
}

.breadcrumb a {
    color: var(--muted);
    transition: color 0.15s ease;
    text-decoration: none;
}

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

.breadcrumb span.sep {
    color: var(--faint);
    user-select: none;
    padding: 0 2px;
}

.breadcrumb span[aria-current="page"] {
    color: var(--ink);
    font-weight: 600;
}

.page-title {
    font-size: clamp(28px, 3.5vw, 44px);
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -1.2px;
    margin-bottom: 12px;
}

.page-lead {
    font-size: 16px;
    color: var(--muted);
    max-width: 720px;
    line-height: 1.75;
}

/* Badges */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 5px 12px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    background: var(--surface-alt);
    color: var(--ink);
}

.badge-accent {
    color: var(--accent);
    background: var(--accent-soft);
}

.badge-open-access {
    color: #1e6b23;
    background: #eef7ee;
}

/* Timeline */
.timeline {
    position: relative;
    padding-left: 28px;
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.timeline-item {
    position: relative;
}

.timeline-period {
    font-size: 12px;
    color: var(--accent);
    font-weight: 700;
    letter-spacing: 0.8px;
    margin-bottom: 4px;
}

.timeline-title {
    font-size: 20px;
    font-weight: 700;
    letter-spacing: -0.4px;
    margin-bottom: 6px;
}

.timeline-inst {
    font-size: 14px;
    color: var(--ink);
    font-weight: 500;
    margin-bottom: 8px;
}

.timeline-desc {
    font-size: 14px;
    color: var(--muted);
    line-height: 1.7;
}

/* Editorial Prose */
.prose {
    font-size: 17px;
    line-height: 1.85;
    color: var(--ink);
    max-width: 760px;
}

.prose p {
    margin-bottom: 24px;
}

.prose h2 {
    font-size: 28px;
    margin-top: 48px;
    margin-bottom: 18px;
    letter-spacing: -0.8px;
}

.prose h3 {
    font-size: 22px;
    margin-top: 36px;
    margin-bottom: 14px;
    letter-spacing: -0.4px;
}

.prose ul,
.prose ol {
    padding-left: 24px;
    margin-bottom: 24px;
}

.prose li {
    margin-bottom: 10px;
}

.prose blockquote {
    border-left: 3px solid var(--accent);
    padding-left: 24px;
    margin: 32px 0;
    color: var(--muted);
    font-style: italic;
}

.prose img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 28px 0;
}

.prose a {
    color: var(--accent);
    text-decoration: underline;
    text-underline-offset: 3px;
}

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

/* Citation Box */
.citation-box {
    background: var(--surface-alt);
    padding: 28px;
    margin: 28px 0;
}

.citation-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

pre.citation-text,
code.citation-text {
    font-family: 'DM Sans', monospace;
    font-size: 13px;
    color: var(--ink);
    background: var(--paper);
    padding: 18px;
    border: 1px solid var(--control-border);
    white-space: pre-wrap;
    overflow-x: auto;
    display: block;
}

/* Filter Navigation */
.filter-tabs {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 32px;
}

.filter-tab {
    padding: 10px 20px;
    font-size: 13px;
    font-weight: 700;
    background: var(--paper);
    color: var(--muted);
    cursor: pointer;
    border: 1px solid var(--control-border);
    transition: color 0.15s ease, border-color 0.15s ease, background-color 0.15s ease;
}

.filter-tab:hover,
.filter-tab.active {
    border-color: var(--accent);
    color: var(--accent);
    background: var(--accent-soft);
}

/* Academic Links */
.academic-links-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 16px;
}

.academic-link-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: var(--surface-alt);
    font-size: 12px;
    font-weight: 600;
    color: var(--ink);
    transition: color 0.15s ease, background-color 0.15s ease;
}

.academic-link-badge:hover {
    color: var(--accent);
    background: var(--accent-soft);
}

/* Pagination */
.pagination-wrapper {
    margin-top: 48px;
    padding-top: 32px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

.pagination-info {
    font-size: 13px;
    color: var(--muted);
}

.pagination-controls {
    display: flex;
    align-items: center;
    gap: 8px;
}

.pagination-pages {
    display: flex;
    align-items: center;
    gap: 6px;
}

.pagination-btn,
.pagination-page {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 600;
    padding: 8px 16px;
    background: var(--paper);
    color: var(--ink);
    border: 1px solid var(--control-border);
    cursor: pointer;
    transition: color 0.15s ease, border-color 0.15s ease;
    text-decoration: none;
    line-height: 1;
}

.pagination-page {
    min-width: 40px;
    padding: 8px 12px;
}

.pagination-btn:hover:not(.disabled),
.pagination-page:hover:not(.active) {
    border-color: var(--ink);
    color: var(--accent);
}

.pagination-page.active {
    background: var(--accent);
    color: #ffffff;
    border-color: var(--accent);
    cursor: default;
    font-weight: 700;
}

.pagination-btn.disabled {
    opacity: 0.4;
    cursor: not-allowed;
    background: transparent;
}

.pagination-ellipsis {
    color: var(--muted);
    padding: 0 4px;
    font-size: 14px;
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */

@media(max-width: 1024px) {
    .container {
        width: calc(100% - 48px);
    }

    .hero {
        grid-template-columns: 1fr;
        gap: 36px;
        min-height: auto;
    }

    .portrait {
        max-width: 320px;
        height: 400px;
    }

    .about-grid,
    .teaching {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .research-grid {
        grid-template-columns: repeat(2, 1fr);
    }

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

    .contact-container {
        grid-template-columns: 1fr;
        gap: 48px;
    }
}

@media(max-width: 800px) {
    header {
        height: 80px;
        position: relative;
        z-index: 100;
    }

    .menu-toggle {
        display: block;
    }

    header nav,
    #navigation {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        width: 100%;
        padding: 24px;
        background: var(--paper);
        border: 1px solid var(--control-border);
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
        z-index: 1000;
    }

    header nav.open,
    #navigation.open {
        display: flex;
    }

    header nav .button,
    #navigation .button,
    header nav a.button,
    #navigation a.button,
    .nav-cta {
        width: 100%;
        min-height: 44px;
        justify-content: center;
        margin-top: 6px;
        font-size: 13.5px;
        box-sizing: border-box;
    }

    .nav-item.has-dropdown {
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: stretch;
    }

    .nav-item-header {
        width: 100%;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .dropdown-toggle-btn {
        padding: 6px 10px;
        background: var(--second-background);
        border: 1px solid var(--line);
        color: var(--ink);
    }

    .dropdown-menu {
        position: static;
        display: none;
        box-shadow: none;
        border: none;
        border-left: 2px solid var(--accent);
        background: transparent;
        padding: 6px 0 6px 14px;
        margin: 6px 0 8px 4px;
        min-width: auto;
        gap: 8px;
    }

    .dropdown-menu::before {
        display: none;
    }

    .nav-item.has-dropdown:hover>.dropdown-menu {
        display: none;
    }

    .dropdown-menu.show {
        display: flex !important;
    }

    .dropdown-item {
        padding: 6px 0 !important;
        font-size: 13px !important;
        color: var(--muted) !important;
    }

    .dropdown-item:hover,
    .dropdown-item.active {
        padding-left: 0 !important;
        background: transparent;
        color: var(--accent) !important;
    }

    .header-note {
        display: none;
    }

    .page-header {
        padding: 24px 0 18px;
    }

    .breadcrumb {
        font-size: 11px;
        gap: 4px;
        margin-bottom: 8px;
    }

    .page-title {
        font-size: 24px;
        letter-spacing: -0.6px;
        line-height: 1.2;
        margin-bottom: 8px;
    }

    .page-lead {
        font-size: 14px;
        line-height: 1.6;
    }

    .section {
        padding: 85px 0;
    }

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

    .publication {
        grid-template-columns: 60px 1fr 40px;
        gap: 16px;
        padding: 20px 16px;
    }

    .publication h3 {
        font-size: 17px;
    }

    .site-footer,
    footer.footer {
        padding: 50px 0 40px;
    }

    .footer-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 36px;
    }

    .footer-nav-col {
        align-items: flex-start;
        width: 100%;
        gap: 20px;
    }

    .footer-links,
    .footer-legal-links {
        justify-content: flex-start;
        gap: 16px;
    }

    .footer-links a,
    .footer-legal-links a {
        padding: 4px 0;
    }
}

@media(max-width: 500px) {
    .container {
        width: calc(100% - 32px);
    }

    .page-header {
        padding: 18px 0 14px;
    }

    .breadcrumb {
        font-size: 11px;
        line-height: 1.4;
        margin-bottom: 6px;
    }

    .page-title {
        font-size: 22px;
        letter-spacing: -0.5px;
    }

    h1 {
        font-size: 38px;
        letter-spacing: -1.5px;
    }

    .section-title {
        font-size: 28px;
    }

    .section {
        padding: 70px 0;
    }

    .tools {
        flex-direction: column;
    }

    .tools select {
        width: 100%;
    }

    .publication {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .detail-button {
        align-self: flex-start;
    }

    .contact-form {
        padding: 24px 20px;
    }

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

    .actions .button {
        text-align: center;
    }

    .site-footer,
    footer.footer {
        padding: 40px 0 32px;
    }
}

@media(prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}