/* ==========================================================================
   Prof. Fouotsa Emmanuel — portfolio stylesheet
   Plain CSS (no build step required)
   ========================================================================== */

:root {
    --navy: #0e1f38;
    --navy-deep: #0b1830;
    --ink: #1d2a42;
    --ink-soft: #3a4763;
    --muted: #5c6b84;
    --paper: #f7f5ef;
    --card-bg: #ffffff;
    --line: #e7e0d0;
    --line-soft: #ece5d6;
    --accent: #2aa9bd;
    --accent-soft: #e3f4f7;
    --accent-line: #bfe3e9;
    --accent-ink: #0f6c7f;
    --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;
    --sans: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* --------------------------------------------------------------------------
   Base
   -------------------------------------------------------------------------- */

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: var(--sans);
    font-size: 16px;
    line-height: 1.65;
    color: var(--ink);
    background: var(--paper);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

h1,
h2,
h3,
h4 {
    line-height: 1.25;
}

p {
    margin: 0.65rem 0;
}

a {
    color: var(--accent-ink);
}

::selection {
    background: #c8ecf1;
}

:focus-visible {
    outline: 3px solid rgba(42, 169, 189, 0.65);
    outline-offset: 2px;
    border-radius: 6px;
}

.container {
    width: min(1140px, 100% - 2.5rem);
    margin-inline: auto;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
}

.skip-link {
    position: absolute;
    left: 1rem;
    top: -100px;
    z-index: 200;
    padding: 0.7rem 1.2rem;
    border-radius: 0 0 12px 12px;
    background: var(--navy);
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    transition: top 0.2s ease;
}

.skip-link:focus {
    top: 0;
}

.icon {
    width: 18px;
    height: 18px;
    flex: none;
}

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.78rem 1.5rem;
    border-radius: 999px;
    border: 1px solid transparent;
    font-family: inherit;
    font-size: 0.93rem;
    font-weight: 650;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.16s ease, box-shadow 0.16s ease, background 0.16s ease,
        border-color 0.16s ease, color 0.16s ease;
}

.btn .icon {
    width: 16px;
    height: 16px;
}

.btn--accent {
    background: linear-gradient(135deg, #4fc6d8, #1e8fa6);
    color: #062a33;
    box-shadow: 0 10px 24px rgba(30, 143, 166, 0.32);
}

.btn--accent:hover {
    transform: translateY(-1px);
    filter: brightness(1.05);
}

.btn--outline {
    border-color: rgba(255, 255, 255, 0.38);
    color: #f2f6fb;
}

.btn--outline:hover {
    background: rgba(255, 255, 255, 0.09);
    border-color: rgba(255, 255, 255, 0.6);
}

.btn--ghost {
    background: #fff;
    border-color: var(--line);
    color: var(--navy);
}

.btn--ghost:hover {
    border-color: var(--accent);
    color: var(--accent-ink);
}

.btn--sm {
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
}

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */

.site-header {
    position: sticky;
    top: 0;
    z-index: 60;
    background: rgba(247, 245, 239, 0.88);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid transparent;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.site-header.is-scrolled {
    border-bottom-color: var(--line);
    box-shadow: 0 10px 30px rgba(15, 31, 56, 0.07);
}

.site-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    min-height: 66px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    color: var(--navy);
    font-size: 0.98rem;
    font-weight: 750;
    text-decoration: none;
}

.brand__mark {
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: var(--navy);
    border: 1px solid rgba(95, 214, 230, 0.5);
    color: #8fe7f2;
    font-family: var(--serif);
    font-size: 0.85rem;
    font-weight: 700;
}

.brand__mark--sm {
    width: 26px;
    height: 26px;
    border-radius: 8px;
    font-size: 0.68rem;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 1.4rem;
}

.site-nav ul {
    display: flex;
    gap: 1.25rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.site-nav a {
    padding: 0.3rem 0;
    border-bottom: 2px solid transparent;
    color: var(--ink-soft);
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
}

.site-nav a:hover {
    color: var(--accent-ink);
}

.site-nav a[aria-current="true"] {
    color: var(--navy);
    border-bottom-color: var(--accent);
}

.nav-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #fff;
    cursor: pointer;
}

.nav-toggle__bars {
    position: relative;
    display: block;
    width: 18px;
    height: 2px;
    border-radius: 2px;
    background: var(--navy);
    transition: background 0.18s ease;
}

.nav-toggle__bars::before,
.nav-toggle__bars::after {
    content: "";
    position: absolute;
    left: 0;
    width: 18px;
    height: 2px;
    border-radius: 2px;
    background: var(--navy);
    transition: transform 0.18s ease;
}

.nav-toggle__bars::before {
    top: -6px;
}

.nav-toggle__bars::after {
    top: 6px;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bars {
    background: transparent;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bars::before {
    transform: translateY(6px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bars::after {
    transform: translateY(-6px) rotate(-45deg);
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */

.hero {
    position: relative;
    overflow: hidden;
    padding: 72px 0 0;
    color: #edf2f9;
    background:
        radial-gradient(1100px 480px at 82% -10%, rgba(38, 90, 148, 0.55), transparent 62%),
        linear-gradient(160deg, #0b1830 0%, #102a4c 55%, #0d2d47 100%);
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
    background-size: 44px 44px;
    pointer-events: none;
}

.hero__glow {
    position: absolute;
    top: -180px;
    right: -140px;
    width: 560px;
    height: 560px;
    background: radial-gradient(closest-side, rgba(95, 214, 230, 0.16), transparent);
    pointer-events: none;
}

.hero__curve {
    position: absolute;
    right: 2%;
    bottom: 84px;
    width: min(46vw, 680px);
    color: rgba(95, 214, 230, 0.28);
    pointer-events: none;
}

.hero__inner {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.65fr);
    gap: 56px;
    align-items: center;
    padding-bottom: 56px;
}

.hero__eyebrow {
    margin: 0;
    color: #5fd6e6;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.22em;
    text-transform: uppercase;
}

.hero__name {
    margin: 0.4rem 0 0.5rem;
    color: #fff;
    font-family: var(--serif);
    font-size: clamp(2.4rem, 5vw, 3.6rem);
    font-weight: 700;
    letter-spacing: -0.01em;
}

.hero__title {
    max-width: 52ch;
    margin: 0 0 0.35rem;
    color: #dfe9f5;
    font-size: 1.1rem;
    font-weight: 600;
}

.hero__role {
    margin: 0;
    color: #b9c8dc;
    font-size: 0.98rem;
}

.hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.7rem;
    margin-top: 1.8rem;
}

.hero__facts {
    display: grid;
    gap: 0.55rem;
    margin: 1.8rem 0 0;
    padding: 0;
    list-style: none;
}

.hero__facts li {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    color: #cdd9e8;
    font-size: 0.95rem;
}

.hero__facts .icon {
    width: 16px;
    height: 16px;
    color: #5fd6e6;
}

.hero__facts a {
    color: inherit;
    text-decoration: none;
    border-bottom: 1px solid rgba(95, 214, 230, 0.4);
}

.hero__facts a:hover {
    color: #8fe7f2;
}

.hero__card {
    padding: 30px;
    border: 1px solid rgba(95, 214, 230, 0.28);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.05);
    text-align: center;
}

.monogram {
    display: grid;
    place-items: center;
    width: 92px;
    height: 92px;
    margin: 0 auto 18px;
    border: 2px solid #5fd6e6;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 25%, rgba(95, 214, 230, 0.18), transparent 60%);
    color: #8fe7f2;
    font-family: var(--serif);
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: 0.06em;
}

/* Framed portrait of the professor inside the hero card */
.hero__photo {
    width: min(100%, 272px);
    margin: 0 auto 20px;
    padding: 7px;
    border: 1px solid rgba(95, 214, 230, 0.5);
    border-radius: 22px;
    background: linear-gradient(160deg, rgba(95, 214, 230, 0.35), rgba(95, 214, 230, 0.05) 55%);
    box-shadow: 0 18px 40px rgba(3, 9, 20, 0.35);
}

.hero__photo img {
    display: block;
    width: 100%;
    height: clamp(280px, 36vh, 360px);
    object-fit: cover;
    object-position: center top;
    border-radius: 16px;
}

/* Ambient echo of the portrait, softly blurred into the hero background */
.hero::after {
    content: "";
    position: absolute;
    top: 0;
    right: -4%;
    bottom: 92px;
    width: min(46vw, 560px);
    background: url("../images/hero-fouotsa.jpg") right center / auto 100% no-repeat;
    filter: blur(26px) saturate(1.1);
    opacity: 0.22;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 45%);
    mask-image: linear-gradient(90deg, transparent, #000 45%);
    pointer-events: none;
}

.hero__card-title {
    margin: 0 0 0.35rem;
    color: #fff;
    font-size: 1rem;
    font-weight: 650;
}

.hero__card-text {
    margin: 0;
    color: #b9c8dc;
    font-size: 0.9rem;
}

.hero__card-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    margin-top: 1rem;
    color: #8fe7f2;
    font-size: 0.92rem;
    font-weight: 600;
    text-decoration: none;
    border-bottom: 1px solid transparent;
}

.hero__card-link:hover {
    border-bottom-color: #8fe7f2;
}

.hero__card-link .icon {
    width: 14px;
    height: 14px;
}

.hero__stats {
    position: relative;
    z-index: 2;
    border-top: 1px solid rgba(95, 214, 230, 0.25);
    background: rgba(6, 14, 28, 0.35);
}

.hero__stats-inner {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
}

.stat {
    padding: 22px 8px;
    text-align: center;
}

.stat + .stat {
    border-left: 1px solid rgba(95, 214, 230, 0.2);
}

.stat__value {
    display: block;
    color: #8fe7f2;
    font-family: var(--serif);
    font-size: 1.9rem;
    font-weight: 700;
    line-height: 1.1;
}

.stat__label {
    display: block;
    margin-top: 0.3rem;
    color: #b9c8dc;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

/* --------------------------------------------------------------------------
   Sections
   -------------------------------------------------------------------------- */

.section {
    padding: 84px 0;
    scroll-margin-top: 84px;
}

.section--alt {
    background: #fffefb;
    border-top: 1px solid var(--line-soft);
    border-bottom: 1px solid var(--line-soft);
}

.section-head {
    max-width: 720px;
    margin-bottom: 40px;
}

.section-head--row {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
    max-width: none;
}

.section-kicker {
    margin: 0 0 0.5rem;
    color: var(--accent-ink);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

.section-kicker--light {
    color: #5fd6e6;
}

.section-title {
    margin: 0;
    color: var(--navy);
    font-family: var(--serif);
    font-size: clamp(1.7rem, 3vw, 2.2rem);
    font-weight: 700;
}

.section-note {
    margin: 0;
    color: var(--muted);
    font-size: 0.95rem;
}

.h-sub {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    margin: 2.4rem 0 1rem;
    color: var(--navy);
    font-size: 1.06rem;
    font-weight: 700;
}

.h-sub .icon {
    color: var(--accent);
}

.section-head + .h-sub,
.two-col > div > .h-sub:first-child {
    margin-top: 0;
}

.h-sub-note {
    margin: 0 0 1rem;
    color: var(--muted);
    font-size: 0.95rem;
}

.two-col {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 44px;
    align-items: start;
}

.two-col--tight {
    gap: 28px;
}

.grid {
    display: grid;
    gap: 20px;
}

.grid--3 {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

/* --------------------------------------------------------------------------
   Cards & chips
   -------------------------------------------------------------------------- */

.card {
    padding: 26px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: var(--card-bg);
    box-shadow: 0 12px 28px rgba(15, 31, 56, 0.05);
}

.card + .card,
.card--wide {
    margin-top: 22px;
}

.card__title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0 0 1rem;
    color: var(--navy);
    font-size: 1rem;
    font-weight: 700;
}

.card__title .icon {
    color: var(--accent);
}

.chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.chip {
    padding: 0.42rem 0.85rem;
    border: 1px solid var(--accent-line);
    border-radius: 999px;
    background: var(--accent-soft);
    color: #0d5a6b;
    font-size: 0.86rem;
    font-weight: 600;
}

.chips--stack {
    flex-direction: column;
    align-items: flex-start;
}

.check-list {
    display: grid;
    gap: 0.6rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.check-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    color: var(--ink-soft);
    font-size: 0.92rem;
}

.check-list .icon {
    width: 15px;
    height: 15px;
    margin-top: 0.25rem;
    color: var(--accent);
}

/* --------------------------------------------------------------------------
   About
   -------------------------------------------------------------------------- */

.about {
    display: grid;
    grid-template-columns: minmax(0, 1.6fr) minmax(280px, 1fr);
    gap: 48px;
    align-items: start;
}

.about__main p {
    color: var(--ink-soft);
}

.about__lead {
    color: #2a3850 !important;
    font-size: 1.14rem;
    font-weight: 500;
}

.facts {
    display: grid;
    gap: 0.8rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.facts li {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    color: var(--ink-soft);
    font-size: 0.93rem;
}

.facts .icon {
    width: 16px;
    height: 16px;
    margin-top: 0.2rem;
    color: var(--accent);
}

.facts a {
    color: inherit;
    text-decoration: none;
    border-bottom: 1px solid var(--accent-line);
}

.facts a:hover {
    color: var(--accent-ink);
}

.awards {
    display: grid;
    gap: 1rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.awards li {
    display: grid;
    gap: 0.15rem;
}

.awards__period {
    color: var(--accent-ink);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
}

.awards__title {
    color: var(--ink);
    font-size: 0.95rem;
    font-weight: 650;
}

.awards__detail {
    color: var(--muted);
    font-size: 0.88rem;
}

/* --------------------------------------------------------------------------
   Timelines
   -------------------------------------------------------------------------- */

.timeline {
    position: relative;
    margin: 0;
    padding: 0 0 0 26px;
    list-style: none;
}

.timeline::before {
    content: "";
    position: absolute;
    left: 7px;
    top: 6px;
    bottom: 6px;
    width: 2px;
    background: linear-gradient(#8fd3df, var(--line-soft));
}

.timeline > li {
    position: relative;
    padding: 0 0 26px 22px;
}

.timeline > li::before {
    content: "";
    position: absolute;
    left: -23px;
    top: 6px;
    width: 10px;
    height: 10px;
    border: 2px solid var(--accent);
    border-radius: 50%;
    background: #fff;
}

.timeline__period {
    display: inline-block;
    margin-bottom: 0.4rem;
    padding: 0.15rem 0.65rem;
    border: 1px solid var(--accent-line);
    border-radius: 999px;
    background: var(--accent-soft);
    color: var(--accent-ink);
    font-size: 0.78rem;
    font-weight: 700;
}

.timeline__title {
    margin: 0 0 0.2rem;
    color: var(--ink);
    font-size: 0.98rem;
    font-weight: 700;
}

.timeline__place {
    margin: 0;
    color: var(--muted);
    font-size: 0.9rem;
}

.timeline__course {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    margin: 0.35rem 0 0;
    color: #0f6b7d;
    font-size: 0.86rem;
}

.timeline__course .icon {
    width: 14px;
    height: 14px;
    color: var(--accent);
}

.timeline--compact > li {
    padding-bottom: 20px;
}

/* --------------------------------------------------------------------------
   Publications
   -------------------------------------------------------------------------- */

.pubs {
    display: grid;
    gap: 14px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.pub {
    display: grid;
    grid-template-columns: 46px minmax(0, 1fr) auto;
    gap: 18px;
    padding: 20px 22px;
    border: 1px solid var(--line);
    border-left: 3px solid transparent;
    border-radius: 14px;
    background: var(--card-bg);
    transition: border-color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

.pub:hover {
    border-left-color: var(--accent);
    transform: translateY(-1px);
    box-shadow: 0 14px 30px rgba(15, 31, 56, 0.07);
}

.pub__number {
    padding-top: 2px;
    color: var(--accent);
    font-family: var(--serif);
    font-size: 1.05rem;
    font-weight: 700;
}

.pub__title {
    margin: 0 0 0.3rem;
    color: var(--navy);
    font-size: 1.02rem;
    font-weight: 700;
    line-height: 1.4;
}

.pub__authors {
    margin: 0 0 0.2rem;
    color: #55637c;
    font-size: 0.9rem;
    font-style: italic;
}

.pub__venue {
    margin: 0;
    color: var(--muted);
    font-size: 0.9rem;
}

.pub__link {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    margin-top: 0.55rem;
    color: var(--accent-ink);
    font-size: 0.87rem;
    font-weight: 650;
    text-decoration: none;
}

.pub__link:hover {
    text-decoration: underline;
}

.pub__link .icon {
    width: 14px;
    height: 14px;
}

.pub__year {
    align-self: start;
    padding: 0.3rem 0.7rem;
    border-radius: 999px;
    background: #ddf1f4;
    color: var(--navy);
    font-size: 0.8rem;
    font-weight: 700;
    white-space: nowrap;
}

.badge {
    display: inline-flex;
    align-items: center;
    margin-left: 0.5rem;
    padding: 0.18rem 0.6rem;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    vertical-align: middle;
}

.badge--accent {
    border: 1px solid var(--accent-line);
    background: var(--accent-soft);
    color: var(--accent-ink);
}

.badge--defended {
    border: 1px solid #cbe7d3;
    background: #e6f4ea;
    color: #1d6b3a;
}

.badge--submitted {
    border: 1px solid #f0dcb4;
    background: #fdf3e0;
    color: #8a5b13;
}

/* --------------------------------------------------------------------------
   Talks & conferences
   -------------------------------------------------------------------------- */

.talk-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.talk-list > li {
    display: grid;
    grid-template-columns: 150px minmax(0, 1fr);
    gap: 22px;
    padding: 16px 0;
    border-top: 1px solid #e9e2d3;
}

.talk-list > li:first-child {
    border-top: 0;
}

.talk-list__date {
    padding-top: 0.1rem;
    color: var(--accent-ink);
    font-size: 0.85rem;
    font-weight: 700;
}

.talk-list__title {
    margin: 0 0 0.15rem;
    color: var(--ink);
    font-size: 0.98rem;
    font-weight: 650;
}

.talk-list__venue {
    margin: 0;
    color: var(--muted);
    font-size: 0.88rem;
}

.conf-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.conf-list > li {
    display: grid;
    gap: 0.2rem;
    padding: 14px 16px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--card-bg);
}

.conf-list__date {
    color: var(--accent-ink);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.conf-list__title {
    margin: 0;
    color: var(--ink);
    font-size: 0.92rem;
    font-weight: 650;
}

.conf-list__venue {
    margin: 0;
    color: var(--muted);
    font-size: 0.85rem;
}

/* --------------------------------------------------------------------------
   Projects & organised events
   -------------------------------------------------------------------------- */

.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.project-card {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 24px;
    border: 1px solid var(--line);
    border-top: 3px solid #9fd9e2;
    border-radius: 16px;
    background: var(--card-bg);
    box-shadow: 0 12px 26px rgba(15, 31, 56, 0.05);
}

.project-card:hover {
    border-top-color: var(--accent);
}

.project-card__role {
    margin: 0;
    color: var(--accent-ink);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.project-card__title {
    margin: 0;
    color: var(--navy);
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.4;
}

.project-card__detail {
    margin: 0;
    color: #55637c;
    font-size: 0.9rem;
}

.project-card__period {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    margin: auto 0 0;
    padding-top: 0.6rem;
    color: var(--ink-soft);
    font-size: 0.83rem;
    font-weight: 650;
}

.project-card__period .icon {
    width: 14px;
    height: 14px;
    color: var(--accent);
}

.org-list {
    display: grid;
    gap: 12px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.org-list > li {
    display: grid;
    grid-template-columns: 190px minmax(0, 1fr);
    gap: 20px;
    align-items: baseline;
    padding: 16px 18px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--card-bg);
}

.org-list__role {
    color: var(--accent-ink);
    font-size: 0.8rem;
    font-weight: 750;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.org-list__title {
    margin: 0;
    color: var(--ink);
    font-size: 0.95rem;
    font-weight: 650;
}

.org-list__meta {
    margin: 0.15rem 0 0;
    color: var(--muted);
    font-size: 0.86rem;
}

/* --------------------------------------------------------------------------
   Supervision
   -------------------------------------------------------------------------- */

.students-grid {
    display: grid;
    gap: 12px;
}

.student-card {
    padding: 18px 20px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--card-bg);
}

.student-card__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.student-card__head .badge {
    margin-left: 0;
}

.student-card__name {
    margin: 0;
    color: var(--navy);
    font-size: 0.98rem;
    font-weight: 700;
}

.student-card__uni,
.student-card__sup {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    margin: 0.4rem 0 0;
    color: var(--muted);
    font-size: 0.88rem;
}

.student-card__uni .icon {
    width: 15px;
    height: 15px;
    color: var(--accent);
}

.student-card__sup {
    align-items: flex-start;
}

.jury-list {
    display: grid;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.jury-list > li {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    padding: 12px 16px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--card-bg);
}

.jury-list__name {
    color: var(--ink);
    font-size: 0.93rem;
    font-weight: 650;
}

.jury-list__meta {
    color: var(--muted);
    font-size: 0.85rem;
}

.highlight-note {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    margin-top: 18px;
    padding: 16px 18px;
    border: 1px solid var(--accent-line);
    border-radius: 14px;
    background: var(--accent-soft);
    color: #0d5a6b;
    font-size: 0.92rem;
}

.highlight-note .icon {
    width: 20px;
    height: 20px;
    flex: none;
    color: var(--accent);
}

.highlight-note p {
    margin: 0;
}

.highlight-note strong {
    color: #094653;
}

/* --------------------------------------------------------------------------
   Courses
   -------------------------------------------------------------------------- */

.course-group {
    margin: 0 0 0.8rem;
    color: var(--accent-ink);
    font-size: 0.85rem;
    font-weight: 750;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

/* --------------------------------------------------------------------------
   Referees
   -------------------------------------------------------------------------- */

.referee-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 18px;
}

.referee-card {
    display: flex;
    gap: 16px;
    padding: 22px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: var(--card-bg);
    box-shadow: 0 10px 24px rgba(15, 31, 56, 0.04);
}

.referee-card__initials {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    flex: none;
    border-radius: 50%;
    background: var(--navy);
    color: #8fe7f2;
    font-family: var(--serif);
    font-size: 1.05rem;
    font-weight: 700;
}

.referee-card__name {
    margin: 0 0 0.2rem;
    color: var(--navy);
    font-size: 0.98rem;
    font-weight: 700;
}

.referee-card__position {
    margin: 0 0 0.4rem;
    color: var(--muted);
    font-size: 0.86rem;
}

.referee-card__mail {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    color: var(--accent-ink);
    font-size: 0.86rem;
    font-weight: 600;
    text-decoration: none;
    word-break: break-all;
}

.referee-card__mail .icon {
    width: 14px;
    height: 14px;
}

.referee-card__mail:hover {
    text-decoration: underline;
}

/* --------------------------------------------------------------------------
   Contact
   -------------------------------------------------------------------------- */

.contact-panel {
    position: relative;
    overflow: hidden;
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(280px, 0.9fr);
    gap: 44px;
    padding: clamp(30px, 5vw, 56px);
    border-radius: 24px;
    background: linear-gradient(150deg, #0b1830, #123255 60%, #0e3a56);
    color: #e8eef7;
}

.contact-panel::after {
    content: "";
    position: absolute;
    top: -160px;
    right: -120px;
    width: 420px;
    height: 420px;
    background: radial-gradient(closest-side, rgba(95, 214, 230, 0.14), transparent);
    pointer-events: none;
}

.contact-panel__title {
    margin: 0.3rem 0 0.6rem;
    color: #fff;
    font-family: var(--serif);
    font-size: clamp(1.6rem, 3vw, 2.1rem);
    font-weight: 700;
}

.contact-panel__text {
    max-width: 52ch;
    margin: 0;
    color: #bccbdd;
    font-size: 0.98rem;
}

.contact-panel__actions {
    position: relative;
    z-index: 1;
    display: flex;
    flex-wrap: wrap;
    gap: 0.7rem;
    margin-top: 1.4rem;
}

.contact-panel__facts {
    display: grid;
    gap: 1rem;
    align-content: start;
    margin: 0;
    padding: 0;
    list-style: none;
    position: relative;
    z-index: 1;
}

.contact-panel__facts li {
    display: flex;
    align-items: flex-start;
    gap: 0.7rem;
    color: #d5e0ee;
    font-size: 0.92rem;
    line-height: 1.5;
}

.contact-panel__facts .icon {
    width: 17px;
    height: 17px;
    margin-top: 0.15rem;
    color: #5fd6e6;
}

.contact-fact__label {
    display: block;
    margin-bottom: 0.15rem;
    color: #5fd6e6;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */

.site-footer {
    padding: 30px 0;
    background: var(--navy-deep);
    color: #9fb0c5;
    font-size: 0.88rem;
}

.site-footer__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    flex-wrap: wrap;
}

.site-footer__brand {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    margin: 0;
}

.site-footer__links {
    display: flex;
    gap: 1.1rem;
    flex-wrap: wrap;
    margin: 0;
}

.site-footer a {
    color: #cbd7e6;
    text-decoration: none;
}

.site-footer a:hover {
    color: #8fe7f2;
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */

@media (max-width: 1024px) {
    .hero__inner,
    .about,
    .two-col,
    .contact-panel {
        grid-template-columns: minmax(0, 1fr);
    }

    .hero__inner {
        gap: 36px;
    }

    .hero__card {
        max-width: 560px;
    }

    .hero__curve {
        opacity: 0.55;
    }
}

@media (max-width: 900px) {
    .nav-toggle {
        display: inline-flex;
    }

    .site-nav {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        display: none;
        flex-direction: column;
        align-items: stretch;
        gap: 0.25rem;
        padding: 0.5rem 1.25rem 1.25rem;
        background: var(--paper);
        border-bottom: 1px solid var(--line);
        box-shadow: 0 18px 30px rgba(15, 31, 56, 0.12);
    }

    .site-nav.is-open {
        display: flex;
    }

    .site-nav ul {
        flex-direction: column;
        gap: 0;
    }

    .site-nav ul li {
        border-bottom: 1px solid rgba(15, 31, 56, 0.06);
    }

    .site-nav a {
        display: block;
        padding: 0.7rem 0.1rem;
        font-size: 0.95rem;
    }

    .site-nav__cta {
        margin-top: 0.9rem;
        justify-content: center;
    }

    .talk-list > li,
    .org-list > li {
        grid-template-columns: minmax(0, 1fr);
        gap: 6px;
    }

    .conf-list {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (max-width: 640px) {
    .section {
        padding: 64px 0;
    }

    .hero {
        padding-top: 48px;
    }

    .hero__curve {
        display: none;
    }

    .hero__stats-inner {
        grid-template-columns: repeat(2, 1fr);
    }

    .stat {
        border-top: 1px solid rgba(95, 214, 230, 0.15);
    }

    .stat + .stat {
        border-left: 0;
    }

    .stat:nth-child(2n) {
        border-left: 1px solid rgba(95, 214, 230, 0.2);
    }

    .stat:nth-child(-n + 2) {
        border-top: 0;
    }

    .pub {
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 12px;
    }

    .pub__number {
        display: none;
    }

    .pub__year {
        grid-column: 2;
    }
}

/* --------------------------------------------------------------------------
   Motion & print
   -------------------------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        transition: none !important;
        animation: none !important;
    }
}

@media print {
    .site-header,
    .site-footer,
    .hero__actions,
    .hero__glow,
    .hero__curve,
    .highlight-note .icon {
        display: none !important;
    }

    body {
        background: #fff;
    }

    .hero,
    .contact-panel {
        background: #fff !important;
        color: #111 !important;
    }

    .hero__name,
    .hero__title,
    .hero__role,
    .hero__eyebrow,
    .hero__facts li,
    .hero__facts a,
    .hero__card-title,
    .hero__card-text,
    .hero__card-link,
    .stat__value,
    .stat__label,
    .contact-panel__title,
    .contact-panel__text,
    .contact-panel__facts li,
    .contact-fact__label {
        color: #111 !important;
    }

    .section--alt {
        background: #fff;
    }

    .pub,
    .card,
    .project-card,
    .referee-card {
        box-shadow: none;
    }
}

/* --------------------------------------------------------------------------
   Polish pass — gentle motion & micro-interactions
   -------------------------------------------------------------------------- */

/* More deliberate line-breaking where supported */
.hero__name,
.section-title,
.card__title,
.pub__title,
.hero__card-title {
    text-wrap: balance;
}

p {
    text-wrap: pretty;
}

/* Short gold flourish under section titles */
.section-title::after {
    content: "";
    display: block;
    width: 54px;
    height: 3px;
    margin-top: 0.75rem;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--accent), rgba(42, 169, 189, 0.12));
}

/* Desktop nav: animated gold underline */
@media (min-width: 901px) {
    .site-nav a {
        position: relative;
        border-bottom: 0;
    }

    .site-nav a::after {
        content: "";
        position: absolute;
        left: 0;
        right: 0;
        bottom: -3px;
        height: 2px;
        border-radius: 999px;
        background: linear-gradient(90deg, var(--accent), #7fe3ef);
        transform: scaleX(0);
        transform-origin: left;
        transition: transform 0.24s ease;
    }

    .site-nav a:hover::after,
    .site-nav a[aria-current="true"]::after {
        transform: scaleX(1);
    }
}

/* Cards drift up on hover */
.card,
.project-card,
.referee-card,
.student-card,
.conf-list > li,
.org-list > li,
.jury-list > li,
.hero__card {
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.card:hover,
.project-card:hover,
.referee-card:hover,
.student-card:hover,
.conf-list > li:hover,
.org-list > li:hover,
.jury-list > li:hover {
    transform: translateY(-3px);
    box-shadow: 0 20px 40px rgba(15, 31, 56, 0.1);
}

.hero__card:hover {
    transform: translateY(-3px);
    border-color: rgba(95, 214, 230, 0.5);
    box-shadow: 0 24px 48px rgba(3, 9, 20, 0.35);
}

/* Timeline entries wake up on hover */
.timeline > li::before {
    transition: background 0.2s ease, transform 0.2s ease;
}

.timeline > li:hover::before {
    background: var(--accent);
    transform: scale(1.15);
}

.timeline__title {
    transition: color 0.2s ease;
}

.timeline > li:hover .timeline__title {
    color: var(--accent-ink);
}

/* Chips get a touch of life */
.chip {
    transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease,
        box-shadow 0.18s ease;
}

.chip:hover {
    transform: translateY(-1px);
    border-color: var(--accent);
    background: #d2eff4;
    box-shadow: 0 8px 18px rgba(42, 169, 189, 0.18);
}

/* Links with a growing gold underline */
.pub__link {
    position: relative;
    text-decoration: none;
}

.pub__link::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -3px;
    height: 1.5px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--accent), var(--accent-ink));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.22s ease;
}

.pub__link:hover {
    text-decoration: none;
}

.pub__link:hover::after {
    transform: scaleX(1);
}

/* Stats respond to the cursor */
.stat {
    transition: background 0.22s ease;
}

.stat:hover {
    background: rgba(95, 214, 230, 0.07);
}

.stat__value {
    transition: color 0.22s ease, transform 0.22s ease;
}

.stat:hover .stat__value {
    color: #a8eef7;
    transform: translateY(-2px);
}

/* Primary button gains a soft sheen + press feedback */
.btn--accent {
    position: relative;
    overflow: hidden;
}

.btn--accent::after {
    content: "";
    position: absolute;
    top: -20%;
    bottom: -20%;
    left: -70%;
    width: 55%;
    background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.5), transparent);
    transform: skewX(-18deg);
    transition: left 0.5s ease;
}

.btn--accent:hover::after {
    left: 130%;
}

.btn:active {
    transform: translateY(0) scale(0.985);
}

/* Hero: gentle entrance + ambient motion */
@keyframes rise-in {
    from {
        opacity: 0;
        transform: translateY(16px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes gentle-float {
    from {
        transform: translateY(0);
    }
    to {
        transform: translateY(-6px);
    }
}

@keyframes glow-drift {
    from {
        transform: translate(0, 0);
    }
    to {
        transform: translate(-36px, 26px);
    }
}

.hero__eyebrow {
    animation: rise-in 0.6s ease 0.05s backwards;
}

.hero__name {
    animation: rise-in 0.6s ease 0.12s backwards;
}

.hero__title {
    animation: rise-in 0.6s ease 0.2s backwards;
}

.hero__role {
    animation: rise-in 0.6s ease 0.26s backwards;
}

.hero__actions {
    animation: rise-in 0.6s ease 0.32s backwards;
}

.hero__facts {
    animation: rise-in 0.6s ease 0.38s backwards;
}

.hero__card {
    animation: rise-in 0.7s ease 0.3s backwards;
}

.monogram {
    animation: gentle-float 5.5s ease-in-out infinite alternate;
}

.hero__glow {
    animation: glow-drift 16s ease-in-out infinite alternate;
}

/* Scroll reveal (progressive enhancement — JS adds .reveal-init) */
.reveal-init {
    opacity: 0;
    transform: translateY(18px);
}

.reveal-init.is-visible {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.65s ease, transform 0.65s ease;
}

/* Thin gold reading-progress bar (created by JS) */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    z-index: 110;
    pointer-events: none;
}

.scroll-progress__bar {
    height: 100%;
    transform: scaleX(0);
    transform-origin: 0 50%;
    background: linear-gradient(90deg, #5fd6e6, #1e8fa6 55%, #7fe3ef);
    box-shadow: 0 0 12px rgba(95, 214, 230, 0.45);
}
