/* Matthias Nagl · homepage. Fjord dark theme, Inter served from this server. */

@font-face { font-family: Inter; font-style: normal; font-weight: 400; font-display: swap; src: url(/assets/fonts/inter-latin-400-normal.woff2) format("woff2"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: Inter; font-style: normal; font-weight: 500; font-display: swap; src: url(/assets/fonts/inter-latin-500-normal.woff2) format("woff2"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: Inter; font-style: normal; font-weight: 600; font-display: swap; src: url(/assets/fonts/inter-latin-600-normal.woff2) format("woff2"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: Inter; font-style: normal; font-weight: 400; font-display: swap; src: url(/assets/fonts/inter-latin-ext-400-normal.woff2) format("woff2"); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: Inter; font-style: normal; font-weight: 500; font-display: swap; src: url(/assets/fonts/inter-latin-ext-500-normal.woff2) format("woff2"); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: Inter; font-style: normal; font-weight: 600; font-display: swap; src: url(/assets/fonts/inter-latin-ext-600-normal.woff2) format("woff2"); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }

:root {
  --bg: #0B1620; --bg-deep: #07111A; --surface: #10202D; --surface-2: #0E1C28; --pill: #15293A;
  --line: #1C3242; --line-2: #2A4255;
  --text: #E6EEF2; --text-2: #A3B4C0; --text-3: #7F95A4; --body: #C4D1DA;
  --blue: #7DB3DE; --blue-hover: #97C3E6; --sage: #8FB3A3; --sand: #D4C29A;
  --music-bg: #15324A; --music-fg: #A8CDEB;
  --bio-bg: #183229; --bio-fg: #A9CBBB;
  --chal-bg: #2D2A20; --chal-fg: #DCCCA6;
  --pad: clamp(20px, 4vw, 40px);
  --section: clamp(64px, 8vw, 104px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: Inter, system-ui, -apple-system, "Segoe UI", sans-serif; font-size: 16px; line-height: 1.6; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
h1, h2, h3, p, ol, ul { margin: 0; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 6px; }

.skip { position: absolute; left: -9999px; top: 8px; z-index: 10; padding: 10px 16px; border-radius: 999px; background: var(--blue); color: var(--bg); font-weight: 600; text-decoration: none; }
.skip:focus { left: 16px; }

.wrap { max-width: 1200px; margin: 0 auto; padding-left: var(--pad); padding-right: var(--pad); }
.section { padding-top: var(--section); }
.section--last { padding-bottom: clamp(72px, 9vw, 112px); }
.rule { border-top: 1px solid var(--line); }
.eyebrow { font-size: 12px; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; color: var(--text-3); }
.h-section { margin-top: 12px; font-size: clamp(36px, 4.5vw, 54px); line-height: 1; letter-spacing: -.04em; font-weight: 600; }
.accent { color: var(--blue); }

/* Header */
.site-header { background: var(--bg); border-bottom: 1px solid var(--line); }
.site-header__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 24px; padding-top: 12px; padding-bottom: 12px; }
.brand { display: inline-flex; align-items: center; gap: 12px; min-height: 48px; text-decoration: none; }
.brand__mark { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 10px; background: var(--blue); color: var(--bg); font-size: 15px; font-weight: 600; letter-spacing: -.04em; }
.brand__name { font-weight: 500; letter-spacing: -.01em; }
.site-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; }
.nav-link { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border-radius: 999px; color: var(--text-2); text-decoration: none; font-size: 15px; font-weight: 500; transition: color .15s, background-color .15s; }
.nav-link:hover { color: var(--text); }
.nav-link[aria-current="page"] { background: var(--pill); color: var(--text); }
.site-nav .btn { margin-left: 8px; }

/* Buttons and links */
.btn { display: inline-flex; align-items: center; gap: 10px; min-height: 52px; padding: 0 26px; border: 1px solid var(--line-2); border-radius: 999px; color: var(--text); text-decoration: none; font-size: 16px; font-weight: 500; transition: background-color .15s, border-color .15s; }
.btn:hover { border-color: var(--text-3); }
.btn svg { width: 18px; height: 18px; }
.btn--primary { background: var(--blue); border-color: var(--blue); color: var(--bg); font-weight: 600; }
.btn--primary:hover { background: var(--blue-hover); border-color: var(--blue-hover); }
.btn--sage { background: var(--sage); border-color: var(--sage); color: var(--bg); font-weight: 600; }
.btn--sage:hover { background: #A5C3B5; border-color: #A5C3B5; }
.btn--sm { min-height: 44px; padding: 0 20px; font-size: 15px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.link-arrow { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; color: var(--blue); text-decoration: none; font-weight: 500; }
.link-arrow svg { width: 16px; height: 16px; transition: transform .15s; }
.link-arrow:hover svg, a:hover .link-arrow svg { transform: translateX(3px); }

/* Heroes */
.hero { overflow: hidden; }
.hero__grid { display: flex; flex-wrap: wrap; align-items: center; gap: 48px 56px; padding-top: clamp(40px, 6vw, 80px); padding-bottom: clamp(56px, 7vw, 96px); }
.hero__text { flex: 1 1 440px; min-width: 0; }
.hero__media { flex: 1 1 440px; min-width: 0; }
.badge { display: inline-flex; align-items: center; gap: 10px; padding: 8px 14px; border: 1px solid var(--line); border-radius: 999px; font-size: 13px; font-weight: 500; color: var(--text-2); }
.dot { flex: none; width: 8px; height: 8px; border-radius: 1px; background: var(--sage); }
.h-display { margin-top: 28px; font-size: clamp(60px, 8.5vw, 108px); line-height: .95; letter-spacing: -.055em; font-weight: 600; }
.h-page { margin-top: 12px; font-size: clamp(56px, 8vw, 100px); line-height: .95; letter-spacing: -.055em; font-weight: 600; }
.lead { margin-top: 28px; max-width: 540px; font-size: clamp(17px, 1.8vw, 20px); line-height: 1.6; color: var(--text-2); }
.h-page + .lead { margin-top: 24px; }
.hero .btn-row { margin-top: 40px; }
.breadcrumb { font-size: 14px; color: var(--text-3); }
.breadcrumb a { display: inline-block; padding: 12px 0; color: var(--text-3); text-decoration: none; }
.breadcrumb a:hover { color: var(--text); }
.breadcrumb span { color: var(--text); }

.figure { margin: 0; padding: 14px; border: 1px solid var(--line); border-radius: 24px; background: var(--surface-2); }
.figure__bar { display: flex; justify-content: space-between; gap: 12px; padding: 2px 4px 12px; font-size: 12px; color: var(--text-3); }
.figure__bar--bottom { padding: 12px 4px 2px; }
.thumb { width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 16px; background: var(--surface-2); }
.figure .thumb { border-radius: 12px; }

/* Moving band */
.ticker { overflow: hidden; white-space: nowrap; background: var(--surface-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); color: var(--text-2); }
.ticker__track { display: flex; width: max-content; animation: ticker 180s linear infinite; font-size: clamp(17px, 1.8vw, 21px); font-weight: 500; letter-spacing: -.01em; }
.ticker__group { display: flex; align-items: center; gap: 28px; padding: 18px 28px 18px 0; }
.ticker__dot { width: 6px; height: 6px; border-radius: 1px; background: var(--sage); }
@keyframes ticker { to { transform: translateX(-50%); } }

/* Grids and cards */
.grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.grid--fill { grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); }
.grid--now { gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }
.grid--two { grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); }
.section-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px 24px; margin-bottom: 40px; }

.card { padding: 28px; background: var(--surface); border: 1px solid var(--line); border-radius: 20px; }
.card .eyebrow { margin-top: 0; }
.eyebrow--dot { display: inline-flex; align-items: center; gap: 10px; }
.eyebrow--dot::before { content: ""; width: 8px; height: 8px; border-radius: 1px; background: var(--dot-color, var(--blue)); }
.dot--music { --dot-color: var(--blue); }
.dot--bio { --dot-color: var(--sage); }
.dot--chal { --dot-color: var(--sand); }
.card h3 { margin-top: 8px; font-size: 21px; line-height: 1.25; font-weight: 600; letter-spacing: -.02em; }
.card p { margin-top: 8px; line-height: 1.55; color: var(--text-2); }
.icon-tile { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 12px; }
.icon-tile svg { width: 22px; height: 22px; }
.tone-music { background: var(--music-bg); color: var(--music-fg); }
.tone-bio { background: var(--bio-bg); color: var(--bio-fg); }
.tone-chal { background: var(--chal-bg); color: var(--chal-fg); }

.chips { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 999px; font-size: 12px; font-weight: 500; line-height: 1.2; }
.chip--music { background: var(--music-bg); color: var(--music-fg); }
.chip--bio { background: var(--bio-bg); color: var(--bio-fg); }
.chip--chal { background: var(--chal-bg); color: var(--chal-fg); }
.chip--outline { padding: 4px 11px; border: 1px solid var(--line-2); color: var(--text-2); }
.chip--now { padding: 4px 10px; border: 1px solid var(--line-2); color: var(--body); }
.chip--now::before { content: ""; width: 6px; height: 6px; border-radius: 1px; background: var(--sage); }
.when { font-size: 13px; color: var(--text-3); }

.project { display: flex; flex-direction: column; padding: 12px; background: var(--surface); border: 1px solid var(--line); border-radius: 24px; color: var(--text); text-decoration: none; transition: border-color .15s, transform .15s; }
a.project:hover { border-color: var(--line-2); transform: translateY(-2px); }
.project__body { display: flex; flex-direction: column; flex: 1; padding: 20px 12px 12px; }
.project__title { margin-top: 14px; font-size: clamp(22px, 2vw, 24px); line-height: 1.2; font-weight: 600; letter-spacing: -.025em; }
.project__text { margin-top: 10px; flex: 1; color: var(--text-2); }
.project__foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 4px 16px; min-height: 44px; margin-top: 18px; padding-top: 6px; border-top: 1px solid var(--line); font-size: 13px; color: var(--text-3); }
.project__foot a { display: inline-flex; align-items: center; min-height: 44px; color: var(--blue); text-decoration: none; font-size: 14px; font-weight: 500; }
.project__foot a:hover { text-decoration: underline; text-underline-offset: 4px; }

/* Filters */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 40px; }
.filter { min-height: 44px; padding: 0 20px; border: 1px solid var(--line-2); border-radius: 999px; background: transparent; color: var(--text-2); font: 500 15px/1 Inter, system-ui, sans-serif; cursor: pointer; transition: color .15s, border-color .15s, background-color .15s; }
.filter:hover { color: var(--text); border-color: var(--text-3); }
.filter[aria-pressed="true"] { background: var(--blue); border-color: var(--blue); color: var(--bg); font-weight: 600; }
.count { margin-bottom: 24px; font-size: 13px; color: var(--text-3); }
.projects-list { padding-top: 24px; }

/* Papers */
.paper { display: flex; flex-wrap: wrap; overflow: hidden; background: var(--surface); border: 1px solid var(--line); border-radius: 28px; color: var(--text); text-decoration: none; }
.paper + .paper { margin-top: 20px; }
a.paper:hover { border-color: var(--line-2); }
.paper__tag { flex: 1 1 280px; min-height: 240px; padding: 32px; display: flex; flex-direction: column; justify-content: space-between; gap: 24px; background: var(--blue); color: var(--bg); }
.paper__tag--sage { background: var(--sage); }
.paper__kicker { font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; }
.paper__big { font-size: clamp(52px, 6vw, 84px); line-height: .92; letter-spacing: -.055em; font-weight: 600; }
.paper__body { flex: 999 1 420px; padding: 32px 36px; display: flex; flex-direction: column; justify-content: center; gap: 12px; }
.paper__title { font-size: clamp(24px, 2.4vw, 28px); line-height: 1.25; font-weight: 600; letter-spacing: -.025em; }
.paper__authors { color: var(--text-2); }
.paper__authors strong { color: var(--text); font-weight: 600; }
.paper__venue { font-size: 14px; color: var(--text-3); }
.paper .btn-row { margin-top: 10px; gap: 10px; }

/* Research themes */
.theme { display: flex; flex-direction: column; gap: 18px; padding: 28px; background: var(--surface); border: 1px solid var(--line); border-radius: 24px; }
.theme__top { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.theme__num { font-size: 52px; line-height: 1; font-weight: 600; letter-spacing: -.05em; }
.theme h3 { font-size: 24px; font-weight: 600; letter-spacing: -.025em; }
.theme p { color: var(--text-2); }
.theme .thumb { margin-top: auto; border-radius: 14px; }
.c-blue { color: var(--blue); } .c-sage { color: var(--sage); } .c-sand { color: var(--sand); }

/* About */
.portrait { position: relative; width: 100%; max-width: 320px; aspect-ratio: 1 / 1; }
.portrait::before { content: ""; position: absolute; inset: 16px -16px -16px 16px; border-radius: 32px; background: var(--blue); }
.portrait img { position: relative; width: 100%; height: 100%; object-fit: cover; border: 1px solid var(--line); border-radius: 32px; }
.about-hero__media { flex: 0 1 320px; min-width: 0; }
.about-hero__text { flex: 999 1 440px; min-width: 0; }
.split { display: flex; flex-wrap: wrap; gap: 32px 64px; }
.split > * { flex: 1 1 380px; min-width: 0; }
.h-story { margin-top: 12px; font-size: clamp(32px, 3.8vw, 46px); line-height: 1.08; letter-spacing: -.04em; font-weight: 600; }
.prose p { font-size: 18px; line-height: 1.7; color: var(--body); }
.prose p + p { margin-top: 20px; }
.timeline { list-style: none; margin-top: 40px; padding: 0 0 0 28px; border-left: 2px solid var(--line-2); display: flex; flex-direction: column; gap: 20px; }
.timeline li { position: relative; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 24px; padding: 24px 28px; background: var(--surface); border: 1px solid var(--line); border-radius: 20px; }
.timeline li::before { content: ""; position: absolute; left: -38px; top: 28px; width: 18px; height: 18px; border: 3px solid var(--bg); border-radius: 3px; background: var(--dot, var(--blue)); }
.timeline .is-sage { --dot: var(--sage); }
.timeline h3 { font-size: 21px; font-weight: 600; letter-spacing: -.02em; }
.timeline p { margin-top: 6px; color: var(--text-2); }
.timeline .when { padding-top: 4px; }
.panel { padding: 32px; background: var(--surface); border: 1px solid var(--line); border-radius: 24px; }
.panel .eyebrow { color: var(--sage); }
.panel--blue .eyebrow { color: var(--blue); }
.pills { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; list-style: none; padding: 0; }
.pills li { display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border: 1px solid var(--line-2); border-radius: 999px; font-weight: 500; }
.pills--fill li { border-color: transparent; background: var(--pill); }

/* Simple text pages */
.text-page { max-width: 720px; }
.text-page h2 { margin-top: 40px; font-size: 22px; font-weight: 600; letter-spacing: -.02em; }
.text-page p { margin-top: 12px; color: var(--body); }
.text-page a { color: var(--blue); }

/* Footer */
.site-footer { background: var(--bg-deep); border-top: 1px solid var(--line); }
.site-footer__top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 40px 64px; padding-top: clamp(64px, 8vw, 112px); }
.site-footer__cta { flex: 999 1 520px; min-width: 0; }
.site-footer .eyebrow { display: inline-flex; align-items: center; gap: 10px; color: var(--sage); }
.footer-title { margin-top: 20px; font-size: clamp(42px, 6vw, 80px); line-height: 1; letter-spacing: -.045em; font-weight: 600; }
.footer-title span { color: var(--text-3); }
.footer-mail { display: inline-block; margin-top: 32px; padding: 6px 0; font-size: clamp(20px, 2.4vw, 28px); font-weight: 500; letter-spacing: -.02em; color: var(--blue); text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 8px; }
.social { flex: 1 1 260px; max-width: 360px; display: flex; flex-direction: column; border-bottom: 1px solid var(--line); }
.social a { display: flex; justify-content: space-between; align-items: center; min-height: 56px; border-top: 1px solid var(--line); text-decoration: none; font-weight: 500; }
.social a span { color: var(--text-3); transition: color .15s, transform .15s; }
.social a:hover span { color: var(--blue); transform: translate(2px, -2px); }
.site-footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px 24px; margin-top: 72px; padding-top: 16px; padding-bottom: 28px; border-top: 1px solid #16283A; font-size: 13px; color: var(--text-3); }
.site-footer__bottom nav { display: flex; flex-wrap: wrap; gap: 0 20px; }
.site-footer__bottom a { padding: 12px 0; color: var(--text-3); text-decoration: none; }
.site-footer__bottom a:hover { color: var(--text); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .ticker__track { animation: none; }
  *, *::before, *::after { transition: none !important; }
}

/* Additions */
.ticker__group { list-style: none; }
.themes, .papers { margin-top: 40px; }

/* Square full stop after headings, matching the spectrogram blocks */
.sq { display: inline-block; width: .15em; height: .15em; margin-left: .05em; background: currentColor; }
