/* ==========================================================================
   Atsuhisa Ota — personal site
   Concept: space × pop × simple × cute
   ========================================================================== */

:root {
    --bg: #fbf9ff;
    --bg-alt: #f3effe;
    --surface: #ffffff;
    --ink: #221d45;
    --muted: #625c84;
    --line: #e6e0f6;

    --violet: #6d4cf0;
    --pink: #f0569b;
    --mint: #16a98b;
    --yellow: #f2a516;
    --sky: #2f8fe0;

    --violet-soft: #e6dfff;
    --pink-soft: #ffdcea;
    --mint-soft: #ccf3e8;
    --yellow-soft: #ffefc4;
    --sky-soft: #d6ecff;

    --shadow: 0 1px 2px rgba(34, 29, 69, .06), 0 8px 24px rgba(34, 29, 69, .06);
    --radius: 20px;
    --paw: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cellipse cx='12' cy='16.5' rx='5.5' ry='4.5'/%3E%3Ccircle cx='5.5' cy='10.5' r='2.4'/%3E%3Ccircle cx='9.5' cy='6.5' r='2.4'/%3E%3Ccircle cx='14.5' cy='6.5' r='2.4'/%3E%3Ccircle cx='18.5' cy='10.5' r='2.4'/%3E%3C/svg%3E");
    --font-display: "Fredoka", system-ui, sans-serif;
    --font-body: "Nunito", system-ui, sans-serif;
    color-scheme: light;
}

@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
        --bg: #110f29;
        --bg-alt: #17143a;
        --surface: #1d1946;
        --ink: #f4f1ff;
        --muted: #b7b0dc;
        --line: #2e2961;

        --violet: #a891ff;
        --pink: #ff8cbf;
        --mint: #5ee0c1;
        --yellow: #ffcd5c;
        --sky: #7cc0ff;

        --violet-soft: #362c78;
        --pink-soft: #5a2a58;
        --mint-soft: #1d4d4f;
        --yellow-soft: #574622;
        --sky-soft: #22466f;

        --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px rgba(0, 0, 0, .25);
        color-scheme: dark;
    }
}

:root[data-theme="dark"] {
    --bg: #110f29;
    --bg-alt: #17143a;
    --surface: #1d1946;
    --ink: #f4f1ff;
    --muted: #b7b0dc;
    --line: #2e2961;

    --violet: #a891ff;
    --pink: #ff8cbf;
    --mint: #5ee0c1;
    --yellow: #ffcd5c;
    --sky: #7cc0ff;

    --violet-soft: #362c78;
    --pink-soft: #5a2a58;
    --mint-soft: #1d4d4f;
    --yellow-soft: #574622;
    --sky-soft: #22466f;

    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px rgba(0, 0, 0, .25);
    color-scheme: dark;
}

/* Base ------------------------------------------------------------------- */

:root:lang(ja) {
    --font-display: "Fredoka", "M PLUS Rounded 1c", system-ui, sans-serif;
    --font-body: "Nunito", "M PLUS Rounded 1c", "Hiragino Sans", system-ui, sans-serif;
}
:root:lang(zh-Hans) {
    --font-display: "Fredoka", "Noto Sans SC", system-ui, sans-serif;
    --font-body: "Nunito", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
}
:lang(ja) body, :lang(zh-Hans) body { line-break: strict; }

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

[hidden] { display: none !important; }

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

body {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font-family: var(--font-body);
    font-size: 17px;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

a { color: var(--violet); text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
a:hover { color: var(--pink); }

:focus-visible { outline: 3px solid var(--pink); outline-offset: 3px; border-radius: 6px; }

h1, h2, h3 { font-family: var(--font-display); font-weight: 600; line-height: 1.2; margin: 0; }

.container { width: min(1080px, 100% - 32px); margin-inline: auto; }

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

/* Header / navigation ---------------------------------------------------- */

.site-header {
    position: sticky; top: 0; z-index: 10;
    background: color-mix(in srgb, var(--bg) 82%, transparent);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--line);
}

.nav {
    display: flex; align-items: center; gap: 16px;
    min-height: 64px;
}

.brand {
    display: inline-flex; align-items: center; gap: 8px;
    font-family: var(--font-display); font-weight: 600; font-size: 1.2rem;
    color: var(--ink); text-decoration: none; white-space: nowrap;
}
.brand:hover { color: var(--ink); }
.brand svg { width: 30px; height: 30px; }

.nav-links {
    display: flex; gap: 4px; margin: 0 0 0 auto; padding: 0; list-style: none;
    overflow-x: auto; scrollbar-width: none;
}
.nav-links::-webkit-scrollbar { display: none; }

.nav-links a {
    display: block; padding: 6px 14px; border-radius: 999px;
    font-family: var(--font-display); font-weight: 500;
    color: var(--muted); text-decoration: none; white-space: nowrap;
    transition: background-color .2s, color .2s;
}
.nav-links a:hover { background: var(--violet-soft); color: var(--ink); }
.nav-links a[aria-current="true"] { background: var(--violet); color: #fff; }

.lang-menu { position: relative; flex: none; }
.lang-menu summary {
    display: flex; align-items: center; gap: 6px; height: 40px; padding: 0 12px; border-radius: 999px;
    border: 1px solid var(--line); background: var(--surface); color: var(--ink);
    font-family: var(--font-display); font-weight: 500; font-size: .92rem; cursor: pointer; list-style: none;
}
.lang-menu summary::-webkit-details-marker { display: none; }
.lang-menu summary:hover, .lang-menu[open] summary { border-color: var(--violet); }
.lang-menu summary svg { width: 18px; height: 18px; }
.lang-menu ul {
    position: absolute; right: 0; top: calc(100% + 8px); z-index: 20; min-width: 150px;
    margin: 0; padding: 6px; list-style: none;
    background: var(--surface); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow);
}
.lang-menu a {
    display: block; padding: 8px 12px; border-radius: 10px; color: var(--ink); text-decoration: none;
    font-family: var(--font-display); font-weight: 500;
}
.lang-menu a:hover { background: var(--violet-soft); color: var(--ink); }
.lang-menu a[aria-current="true"] { color: var(--violet); }
.lang-menu a[aria-current="true"]::after { content: " ✓"; }

.theme-toggle {
    flex: none; width: 40px; height: 40px; border-radius: 50%;
    display: grid; place-items: center;
    border: 1px solid var(--line); background: var(--surface); color: var(--ink);
    cursor: pointer;
}
.theme-toggle:hover { border-color: var(--violet); }
.theme-toggle svg { width: 20px; height: 20px; }
.theme-toggle .icon-sun { display: none; }
:root[data-theme="dark"] .theme-toggle .icon-sun { display: block; }
:root[data-theme="dark"] .theme-toggle .icon-moon { display: none; }

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

.hero {
    position: relative; overflow: hidden;
    padding: 72px 0 80px;
    background:
        radial-gradient(circle at 12% 20%, var(--pink-soft) 0, transparent 32%),
        radial-gradient(circle at 88% 15%, var(--sky-soft) 0, transparent 30%),
        radial-gradient(circle at 70% 95%, var(--violet-soft) 0, transparent 35%),
        var(--bg);
}


.hero-kicker {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 4px 14px; border-radius: 999px;
    background: var(--surface); border: 1px solid var(--line);
    font-family: var(--font-display); font-weight: 500; font-size: .95rem; color: var(--muted);
}
.hero-kicker::before {
    content: ""; width: 14px; height: 14px; background: var(--pink);
    -webkit-mask: var(--paw) center / contain no-repeat; mask: var(--paw) center / contain no-repeat;
}

.hero h1 {
    margin-top: 18px;
    font-size: clamp(2.6rem, 7vw, 4.4rem);
    letter-spacing: -.01em;
}

.hero h1 .name-sub {
    display: block; margin-top: 8px; font-size: .36em; font-weight: 500; letter-spacing: .04em; color: var(--muted);
}
.hero-role { margin: 18px 0 0; font-size: 1.15rem; font-weight: 600; }
.hero-role span { display: block; font-weight: 400; color: var(--muted); }

.pill-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }

.pill {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 9px 16px; border-radius: 999px;
    background: var(--surface); border: 1.5px solid var(--line);
    color: var(--ink); text-decoration: none;
    font-family: var(--font-display); font-weight: 500;
    box-shadow: var(--shadow);
    transition: transform .2s, border-color .2s;
}
.pill:hover { color: var(--ink); border-color: var(--violet); transform: translateY(-2px); }
.pill svg { width: 20px; height: 20px; flex: none; }
.pill.is-primary { background: var(--violet); border-color: var(--violet); color: #fff; }
.pill.is-primary:hover { color: #fff; }

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

/* Sections --------------------------------------------------------------- */

.section { padding: 80px 0; }
.section.is-alt { background: var(--bg-alt); }

.section-head { display: flex; align-items: center; gap: 12px; margin-bottom: 28px; }
.section-head h2 { font-size: clamp(1.8rem, 4vw, 2.3rem); }
.section-head .badge {
    width: 44px; height: 44px; flex: none; border-radius: 14px;
    display: grid; place-items: center;
}
.section-head .badge { position: relative; margin-top: 8px; }
.section-head .badge::before,
.section-head .badge::after {
    content: ""; position: absolute; top: -9px; width: 16px; height: 14px; background: inherit;
}
.section-head .badge::before { left: 3px; clip-path: polygon(0 100%, 18% 0, 100% 100%); }
.section-head .badge::after { right: 3px; clip-path: polygon(0 100%, 82% 0, 100% 100%); }
.section-head .badge svg { width: 24px; height: 24px; }
.section-head .meta { margin-left: auto; color: var(--muted); font-size: .95rem; }

.badge.violet { background: var(--violet-soft); color: var(--violet); }
.badge.pink { background: var(--pink-soft); color: var(--pink); }
.badge.mint { background: var(--mint-soft); color: var(--mint); }
.badge.yellow { background: var(--yellow-soft); color: var(--yellow); }
.badge.sky { background: var(--sky-soft); color: var(--sky); }

.card {
    background: var(--surface); border: 1px solid var(--line);
    border-radius: var(--radius); box-shadow: var(--shadow);
}

.lead { margin: 0 0 24px; max-width: 46em; font-size: 1.08rem; color: var(--muted); }

/* About ------------------------------------------------------------------ */

.about-text { max-width: 46em; }
.about-text p { margin: 0 0 1em; font-size: 1.12rem; line-height: 1.85; }
.about-text p:first-child { font-family: var(--font-display); font-weight: 500; font-size: 1.35rem; line-height: 1.6; }
.about-text p:last-child { margin-bottom: 0; }

/* Research --------------------------------------------------------------- */
.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 0 0 20px; padding: 0; list-style: none; }
.facts li { display: flex; align-items: center; gap: 14px; padding: 18px 20px; font-size: 1.02rem; line-height: 1.45; }
.fact-icon { flex: none; width: 42px; height: 42px; border-radius: 14px; display: grid; place-items: center; }
.fact-icon svg { width: 22px; height: 22px; }
.fact-icon.pink { background: var(--pink-soft); color: var(--pink); }
.fact-icon.violet { background: var(--violet-soft); color: var(--violet); }
.fact-icon.mint { background: var(--mint-soft); color: var(--mint); }



.figure { margin: 0; padding: 20px; }
.figure svg { display: block; width: 100%; height: auto; }
.figure .scroller { overflow-x: auto; }
.figure figcaption { display: none; margin-top: 8px; text-align: center; font-size: .9rem; color: var(--muted); }

.chips { display: flex; flex-wrap: wrap; gap: 10px; margin: 24px 0 0; padding: 0; list-style: none; }
.chips li {
    padding: 6px 14px; border-radius: 999px;
    font-family: var(--font-display); font-weight: 500; font-size: .95rem;
}
.chips li:nth-child(5n+1) { background: var(--violet-soft); }
.chips li:nth-child(5n+2) { background: var(--pink-soft); }
.chips li:nth-child(5n+3) { background: var(--mint-soft); }
.chips li:nth-child(5n+4) { background: var(--yellow-soft); }
.chips li:nth-child(5n+5) { background: var(--sky-soft); }

/* Illustration (inline SVG) */
.ill .ln { fill: none; stroke: var(--ink); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.ill .ln.thin { stroke-width: 2; }
.ill .ln.dash { stroke-dasharray: 2 7; }
.ill .ln.ghost { stroke-dasharray: 5 6; opacity: .45; }
.ill .ink { fill: var(--ink); }
.ill .dk { fill: #1d1838; stroke: var(--ink); stroke-width: 1.5; }
:root:not([data-theme="dark"]) .ill .dk { stroke-width: 0; }
.ill .wh { fill: #fff; }
.ill .bg { fill: var(--surface); }
.ill .fv { fill: var(--violet-soft); }
.ill .fp { fill: var(--pink-soft); }
.ill .fm { fill: var(--mint-soft); }
.ill .fy { fill: var(--yellow-soft); }
.ill .fs { fill: var(--sky-soft); }
.ill .av { fill: var(--violet); }
.ill .ap { fill: var(--pink); }
.ill .am { fill: var(--mint); }
.ill .ay { fill: var(--yellow); }
.ill .as { fill: var(--sky); }
.ill .sv { stroke: var(--violet); }
.ill .sp { stroke: var(--pink); }
.ill .sm { stroke: var(--mint); }
.ill .ss { stroke: var(--sky); }
.ill .word {
    font-family: var(--font-display); font-weight: 600;
    fill: var(--surface); stroke: var(--ink); stroke-width: 2.4; stroke-linejoin: round;
}
.ill .label { font-family: var(--font-display); font-weight: 600; fill: var(--ink); letter-spacing: .04em; }
.ill .tag { font-family: var(--font-display); font-weight: 600; fill: var(--ink); }
.ill .formula { font-family: "Times New Roman", "STIX Two Math", serif; font-style: italic; fill: var(--muted); }
.ill .g1 { stop-color: var(--pink-soft); }
.ill .g2 { stop-color: var(--violet-soft); }
.ill .g3 { stop-color: var(--sky-soft); }

/* Selected results ------------------------------------------------------- */

.highlights { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.highlight { display: flex; flex-direction: column; padding: 26px 28px; }
.highlight h3 { display: flex; align-items: baseline; gap: 12px; font-size: 1.2rem; line-height: 1.35; margin-bottom: 14px; }
.highlight .num {
    flex: none; padding: 2px 10px; border-radius: 10px;
    background: var(--violet-soft); color: var(--violet); font-size: .9rem;
}
.highlight:nth-child(2) .num { background: var(--pink-soft); color: var(--pink); }
.highlight:nth-child(3) .num { background: var(--mint-soft); color: var(--mint); }
.highlight:nth-child(4) .num { background: var(--sky-soft); color: var(--sky); }
.highlight ul { margin: 0 0 16px; padding-left: 1.2em; display: grid; gap: 6px; line-height: 1.6; }
.highlight ul li::marker { color: var(--muted); }
.highlight .pub-links { margin: auto 0 0; }

/* Recruiting ------------------------------------------------------------- */

.recruit {
    padding: 32px 36px;
    background:
        radial-gradient(circle at 100% 0, var(--pink-soft) 0, transparent 45%),
        radial-gradient(circle at 0 100%, var(--sky-soft) 0, transparent 40%),
        var(--surface);
}
.recruit-lead { margin: 0 0 14px; font-family: var(--font-display); font-weight: 600; font-size: 1.45rem; }
.recruit-points { margin: 0 0 24px; padding: 0; list-style: none; display: grid; gap: 8px; }
.recruit-points li { position: relative; padding-left: 28px; font-size: 1.05rem; }
.recruit-points li::before {
    content: ""; position: absolute; left: 0; top: 4px; width: 18px; height: 18px; background: var(--pink);
    -webkit-mask: var(--paw) center / contain no-repeat; mask: var(--paw) center / contain no-repeat;
}

/* Software --------------------------------------------------------------- */

.software { padding: 26px 30px; }
.software h3 { margin: 0 0 8px; font-size: 1.3rem; }
.software p { margin: 0; }

/* Publications ----------------------------------------------------------- */

.pub-status { margin: 0 0 20px; color: var(--muted); }

.pub-list { display: grid; gap: 14px; margin: 0; padding: 0; list-style: none; }

.pub {
    display: grid; grid-template-columns: auto 1fr; gap: 6px 18px;
    padding: 18px 22px;
}
.pub-year {
    grid-row: span 3; align-self: start;
    padding: 4px 10px; border-radius: 10px;
    background: var(--violet-soft); color: var(--ink);
    font-family: var(--font-display); font-weight: 600; font-size: .9rem;
}
.pub:nth-child(4n+2) .pub-year { background: var(--pink-soft); }
.pub:nth-child(4n+3) .pub-year { background: var(--mint-soft); }
.pub:nth-child(4n+4) .pub-year { background: var(--sky-soft); }

.pub-title { font-family: var(--font-display); font-weight: 500; font-size: 1.08rem; line-height: 1.35; }
.pub-title a { color: var(--ink); text-decoration: none; }
.pub-title a:hover { color: var(--violet); text-decoration: underline; }
.pub-authors { color: var(--muted); font-size: .95rem; }
.pub-authors strong { color: var(--ink); }
.pub-links { display: flex; flex-wrap: wrap; gap: 8px; font-size: .88rem; }
.pub-links a, .pub-links span {
    padding: 2px 10px; border-radius: 999px;
    border: 1px solid var(--line); color: var(--muted); text-decoration: none;
}
.pub-links a:hover { border-color: var(--violet); color: var(--violet); }

.pub.is-skeleton { height: 108px; }
.pub.is-skeleton::after {
    content: ""; grid-column: 1 / -1; border-radius: 12px;
    background: linear-gradient(90deg, var(--bg-alt), var(--line), var(--bg-alt));
    background-size: 200% 100%; animation: shimmer 1.4s linear infinite;
}
@keyframes shimmer { to { background-position: -200% 0; } }

.more { display: flex; justify-content: center; margin-top: 24px; }
.button {
    padding: 10px 22px; border-radius: 999px; cursor: pointer;
    border: 1.5px solid var(--violet); background: transparent; color: var(--violet);
    font: 500 1rem var(--font-display);
}
.button:hover { background: var(--violet); color: #fff; }

/* CV --------------------------------------------------------------------- */

.cv-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.cv-block { padding: 26px 28px; }
.cv-block.is-wide { grid-column: 1 / -1; }
.cv-block h3 { display: flex; align-items: center; gap: 10px; font-size: 1.3rem; margin-bottom: 18px; }
.cv-block h3::before {
    content: ""; width: 18px; height: 18px; background: var(--dot, var(--violet));
    -webkit-mask: var(--paw) center / contain no-repeat; mask: var(--paw) center / contain no-repeat;
}

.timeline { margin: 0; padding: 0; list-style: none; }
.timeline li {
    position: relative; display: grid; grid-template-columns: 190px 1fr; gap: 4px 20px;
    padding: 0 0 18px 26px;
}
.timeline li::before {
    content: ""; position: absolute; left: -3px; top: 3px;
    width: 18px; height: 18px; background: var(--violet); opacity: .45;
    -webkit-mask: var(--paw) center / contain no-repeat; mask: var(--paw) center / contain no-repeat;
}
.timeline li::after {
    content: ""; position: absolute; left: 5px; top: 24px; bottom: 2px;
    width: 2px; background: var(--line);
}
.timeline li:last-child { padding-bottom: 0; }
.timeline li:last-child::after { display: none; }
.timeline li:first-child::before { opacity: 1; }
.timeline .when { color: var(--muted); font-size: .92rem; padding-top: 1px; }
.timeline .what { font-weight: 700; }
.timeline .where { display: block; font-weight: 400; color: var(--muted); }

.plain-list { margin: 0; padding: 0; list-style: none; display: grid; gap: 12px; }
.plain-list .when { display: block; color: var(--muted); font-size: .92rem; }

/* Talks ------------------------------------------------------------------ */
.subhead { margin: 36px 0 16px; font-size: 1.3rem; display: flex; align-items: center; gap: 10px; }
.subhead:first-of-type { margin-top: 0; }
.count {
    padding: 1px 10px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line);
    font-family: var(--font-display); font-weight: 500; font-size: .85rem; color: var(--muted);
}
.tag {
    display: inline-flex; align-items: center; gap: 4px; margin: 2px 4px 0 0; padding: 1px 9px; border-radius: 999px;
    background: var(--violet-soft); color: var(--ink); font-size: .8rem; font-weight: 600; text-decoration: none; vertical-align: 1px;
}
.tag.is-soft { background: transparent; border: 1px solid var(--line); color: var(--muted); font-weight: 400; }
.tag.is-link { background: var(--pink-soft); }
.tag.is-link:hover { color: var(--ink); background: var(--pink); }
.tag svg { width: 10px; height: 10px; }

.talk-groups { display: grid; gap: 14px; }
.talk-group summary {
    display: flex; align-items: center; gap: 10px; padding: 18px 24px; cursor: pointer; list-style: none;
    font-family: var(--font-display); font-weight: 600; font-size: 1.15rem;
}
.talk-group summary::-webkit-details-marker { display: none; }
.talk-group summary::after {
    content: ""; margin-left: auto; width: 10px; height: 10px;
    border-right: 2.5px solid var(--muted); border-bottom: 2.5px solid var(--muted);
    transform: rotate(45deg); transition: transform .2s;
}
.talk-group[open] summary::after { transform: rotate(-135deg); }
.talk-group summary:hover { color: var(--violet); }
.talk-list { padding: 4px 24px 24px !important; }
.talk-list .talk-title { display: block; font-weight: 700; }
.talk-list .talk-subtitle { display: block; font-size: .92rem; font-weight: 400; color: var(--muted); font-style: italic; }
.talk-list .where { font-size: .92rem; }
.talk-list .tags { display: block; margin-top: 4px; }
.talk-group:nth-child(2) { --violet: var(--pink); }
.talk-group:nth-child(3) { --violet: var(--mint); }
.talk-group:nth-child(4) { --violet: var(--sky); }


.talk-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.talk {
    display: flex; gap: 16px; padding: 22px 24px;
    color: var(--ink); text-decoration: none;
    transition: transform .2s, border-color .2s;
}
.talk:hover { color: var(--ink); border-color: var(--violet); transform: translateY(-3px); }
.talk .play {
    width: 48px; height: 48px; flex: none; border-radius: 50%;
    display: grid; place-items: center; background: var(--pink-soft); color: var(--pink);
}
.talk:nth-child(2n) .play { background: var(--sky-soft); color: var(--sky); }
.talk .play svg { width: 20px; height: 20px; margin-left: 3px; }
.talk .event { display: block; color: var(--muted); font-size: .92rem; }
.talk .title { display: block; margin-top: 4px; font-family: var(--font-display); font-weight: 500; font-size: 1.1rem; line-height: 1.35; }

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

.site-footer {
    padding: 36px 0 44px; border-top: 1px solid var(--line);
    color: var(--muted); font-size: .92rem;
}
.site-footer .container { display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; }
.site-footer a { color: var(--muted); }
.footer-cat { display: inline-flex; align-items: center; gap: 10px; }
.footer-meta { display: flex; flex-direction: column; gap: 2px; text-align: right; }
.ai-note { flex-basis: 100%; font-size: .85rem; opacity: .85; }
.footer-cat svg { width: 52px; height: 26px; }

/* Responsive ------------------------------------------------------------- */

@media (max-width: 860px) {
    .hero { padding: 40px 0 56px; }
    .cv-grid, .talk-grid, .facts, .highlights { grid-template-columns: 1fr; }
    .timeline li { grid-template-columns: 1fr; }
    .talk-group summary { padding: 16px 18px; }
    .talk-list { padding: 4px 18px 20px !important; }
}

@media (max-width: 640px) {
    body { font-size: 16px; }
    .nav { flex-wrap: wrap; gap: 0 12px; padding-top: 8px; }
    .nav-links { order: 3; width: 100%; margin: 0 -16px; padding: 4px 16px 10px; width: calc(100% + 32px); }
    .lang-menu { margin-left: auto; }
    .section { padding: 56px 0; }
    .section-head { flex-wrap: wrap; }
    .section-head .meta { margin-left: 0; width: 100%; }
    .figure { padding: 10px; }
    .figure svg { min-width: 680px; }
    .figure figcaption { display: block; }
    .pub { grid-template-columns: 1fr; padding: 16px 18px; }
    .pub-year { grid-row: auto; justify-self: start; }
    .cv-block { padding: 22px 20px; }
    .recruit { padding: 24px 20px; }
    .highlight { padding: 22px 20px; }
    .footer-meta { text-align: left; }
    .recruit-lead { font-size: 1.25rem; }
    .about-text p:first-child { font-size: 1.2rem; }
}
