:root {
  color-scheme: dark;
  --bg: #070a16;
  --bg-soft: #0b1022;
  --surface: rgba(15, 20, 40, 0.8);
  --surface-strong: rgba(18, 24, 48, 0.96);
  --line: rgba(255, 255, 255, 0.12);
  --line-strong: rgba(126, 232, 255, 0.32);
  --text: #f5f7ff;
  --muted: #b8c0d8;
  --quiet: #7e8aa8;
  --cyan: #58e6f5;
  --violet: #b897ff;
  --magenta: #ef86d7;
  --yellow: #f3c969;
  --max: 1180px;
  --radius: 24px;
  --shadow: 0 28px 70px rgba(0, 0, 0, 0.34);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--bg); }
body {
  margin: 0;
  min-width: 320px;
  background:
    radial-gradient(circle at 12% 4%, rgba(79, 209, 255, 0.12), transparent 34rem),
    radial-gradient(circle at 88% 18%, rgba(197, 106, 255, 0.13), transparent 32rem),
    linear-gradient(180deg, #070a16 0%, #090d1b 42%, #070a16 100%);
  color: var(--text);
  line-height: 1.65;
}
body::before {
  position: fixed;
  z-index: -1;
  inset: 0;
  content: "";
  opacity: 0.34;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.022) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.022) 1px, transparent 1px);
  background-size: 52px 52px;
  mask-image: linear-gradient(to bottom, black, transparent 88%);
}
img { max-width: 100%; }
a { color: inherit; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--cyan); outline-offset: 4px; }
.skip-link {
  position: fixed;
  z-index: 100;
  top: 0.8rem;
  left: 0.8rem;
  padding: 0.7rem 1rem;
  border-radius: 999px;
  background: white;
  color: #050814;
  font-weight: 800;
  transform: translateY(-180%);
  transition: transform 160ms ease;
}
.skip-link:focus { transform: translateY(0); }
.profile-header {
  position: sticky;
  z-index: 30;
  top: 0;
  border-bottom: 1px solid var(--line);
  background: rgba(7, 10, 22, 0.82);
  backdrop-filter: blur(18px);
}
.profile-header-inner {
  display: flex;
  width: min(var(--max), calc(100% - 2rem));
  min-height: 72px;
  margin: 0 auto;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}
.profile-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--text);
  font-size: 0.88rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-decoration: none;
  text-transform: uppercase;
}
.profile-brand img { width: 35px; height: 35px; }
.profile-header nav { display: flex; align-items: center; justify-content: flex-end; gap: 0.35rem; }
.profile-header nav > a {
  padding: 0.5rem 0.7rem;
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
  text-decoration: none;
}
.profile-header nav > a:hover { background: rgba(255, 255, 255, 0.07); color: var(--text); }
.language-switch {
  display: inline-flex;
  margin-left: 0.4rem;
  padding: 0.22rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.035);
}
.language-switch a, .language-switch span {
  min-width: 2.2rem;
  padding: 0.28rem 0.5rem;
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 900;
  text-align: center;
  text-decoration: none;
}
.language-switch [aria-current="page"] { background: rgba(88, 230, 245, 0.16); color: var(--cyan); }
.profile-hero { position: relative; overflow: hidden; border-bottom: 1px solid var(--line); }
.profile-hero::after {
  position: absolute;
  right: -10rem;
  bottom: -15rem;
  width: 38rem;
  height: 38rem;
  border: 1px solid rgba(88, 230, 245, 0.13);
  border-radius: 50%;
  box-shadow: 0 0 0 5rem rgba(184, 151, 255, 0.025), 0 0 0 10rem rgba(88, 230, 245, 0.018);
  content: "";
}
.profile-hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  width: min(var(--max), calc(100% - 2rem));
  min-height: 580px;
  margin: 0 auto;
  padding: clamp(4rem, 8vw, 7.5rem) 0;
  align-items: center;
  grid-template-columns: minmax(0, 1.35fr) minmax(290px, 0.65fr);
  gap: clamp(2.5rem, 7vw, 7rem);
}
.eyebrow { margin: 0 0 1rem; color: var(--cyan); font-size: 0.75rem; font-weight: 900; letter-spacing: 0.18em; text-transform: uppercase; }
.profile-hero h1 {
  max-width: 820px;
  margin: 0;
  font-size: clamp(3.2rem, 8vw, 7.1rem);
  font-weight: 850;
  letter-spacing: -0.075em;
  line-height: 0.92;
  text-wrap: balance;
}
.profile-role { max-width: 720px; margin: 1.5rem 0 0; color: var(--muted); font-size: clamp(1.15rem, 2vw, 1.5rem); line-height: 1.5; }
.tag-list { display: flex; margin: 1.65rem 0 0; padding: 0; flex-wrap: wrap; gap: 0.55rem; list-style: none; }
.tag-list li, .tag {
  padding: 0.42rem 0.72rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.035);
  color: #dce3f6;
  font-size: 0.78rem;
  font-weight: 720;
}
.hero-actions { display: flex; margin-top: 2rem; flex-wrap: wrap; gap: 0.75rem; }
.button {
  display: inline-flex;
  min-height: 46px;
  padding: 0.72rem 1rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  background: rgba(255, 255, 255, 0.045);
  color: var(--text);
  font-size: 0.86rem;
  font-weight: 820;
  text-decoration: none;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}
.button:hover { border-color: var(--line-strong); background: rgba(88, 230, 245, 0.08); transform: translateY(-2px); }
.button.primary { border-color: rgba(88, 230, 245, 0.4); background: rgba(88, 230, 245, 0.14); color: #d9fbff; }
.portrait-card {
  position: relative;
  min-height: 390px;
  border: 1px solid var(--line);
  border-radius: 32px;
  overflow: hidden;
  background: linear-gradient(145deg, rgba(88, 230, 245, 0.12), transparent 42%), linear-gradient(330deg, rgba(239, 134, 215, 0.16), transparent 52%), var(--surface-strong);
  box-shadow: var(--shadow);
}
.portrait-card::before, .portrait-card::after { position: absolute; border: 1px solid rgba(255, 255, 255, 0.08); border-radius: 50%; content: ""; }
.portrait-card::before { width: 17rem; height: 17rem; top: -7rem; right: -6rem; }
.portrait-card::after { width: 11rem; height: 11rem; bottom: -5rem; left: -4rem; }
.person-mark {
  position: absolute;
  top: 50%;
  left: 50%;
  color: transparent;
  font-size: clamp(7rem, 16vw, 12rem);
  font-weight: 900;
  letter-spacing: -0.12em;
  line-height: 1;
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.42);
  transform: translate(-52%, -57%);
}
.portrait-caption { position: absolute; right: 1.25rem; bottom: 1.25rem; left: 1.25rem; padding: 1rem; border: 1px solid var(--line); border-radius: 18px; background: rgba(5, 8, 20, 0.7); backdrop-filter: blur(16px); }
.portrait-caption strong, .portrait-caption span { display: block; }
.portrait-caption strong { font-size: 0.88rem; }
.portrait-caption span { margin-top: 0.18rem; color: var(--muted); font-size: 0.78rem; }
.profile-subnav {
  position: sticky;
  z-index: 20;
  top: 72px;
  overflow-x: auto;
  border-bottom: 1px solid var(--line);
  background: rgba(8, 12, 26, 0.9);
  backdrop-filter: blur(16px);
  scrollbar-width: none;
}
.profile-subnav::-webkit-scrollbar { display: none; }
.profile-subnav-inner { display: flex; width: min(var(--max), calc(100% - 2rem)); min-width: max-content; margin: 0 auto; gap: 0.25rem; }
.profile-subnav a { padding: 0.8rem 0.9rem; color: var(--muted); font-size: 0.78rem; font-weight: 800; text-decoration: none; }
.profile-subnav a:hover { color: var(--cyan); }
.profile-section { width: min(var(--max), calc(100% - 2rem)); margin: 0 auto; padding: clamp(4rem, 7vw, 6.5rem) 0; scroll-margin-top: 132px; }
.profile-section + .profile-section { border-top: 1px solid var(--line); }
.section-heading { display: grid; margin-bottom: 2rem; align-items: end; grid-template-columns: minmax(0, 1.1fr) minmax(260px, 0.9fr); gap: 2rem; }
.section-heading h2 { max-width: 720px; margin: 0; font-size: clamp(2rem, 4vw, 3.55rem); letter-spacing: -0.05em; line-height: 1.05; text-wrap: balance; }
.section-heading > p, .section-intro { margin: 0; color: var(--muted); font-size: 1.02rem; }
.focus-grid, .project-grid, .contact-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.focus-card, .project-card, .contact-card, .selected-work { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: 0 18px 50px rgba(0, 0, 0, 0.16); }
.focus-card, .project-card, .contact-card { padding: 1.45rem; }
.focus-index { display: inline-flex; width: 2.55rem; height: 2.55rem; border: 1px solid rgba(88, 230, 245, 0.28); border-radius: 13px; align-items: center; justify-content: center; background: rgba(88, 230, 245, 0.08); color: var(--cyan); font-size: 0.72rem; font-weight: 900; }
.focus-card h3, .project-card h3, .contact-card h3 { margin: 1rem 0 0.45rem; font-size: 1.2rem; letter-spacing: -0.025em; }
.focus-card p, .project-card p, .contact-card p { margin: 0; color: var(--muted); font-size: 0.92rem; }
.project-card { min-height: 230px; display: flex; flex-direction: column; }
.project-label { color: var(--magenta); font-size: 0.72rem; font-weight: 900; letter-spacing: 0.13em; text-transform: uppercase; }
.text-link { display: inline-flex; margin-top: auto; padding-top: 1.2rem; color: var(--cyan); font-size: 0.84rem; font-weight: 850; text-decoration: none; }
.text-link:hover { text-decoration: underline; text-underline-offset: 0.24em; }
.selected-work { overflow: hidden; }
.work-item { display: grid; padding: 1.25rem 1.4rem; grid-template-columns: 100px minmax(0, 1fr) auto; align-items: center; gap: 1.25rem; text-decoration: none; }
.work-item + .work-item { border-top: 1px solid var(--line); }
.work-item:hover { background: rgba(88, 230, 245, 0.045); }
.work-year { color: var(--quiet); font-size: 0.76rem; font-weight: 900; letter-spacing: 0.12em; text-transform: uppercase; }
.work-title strong, .work-title span { display: block; }
.work-title strong { font-size: 0.98rem; }
.work-title span { margin-top: 0.2rem; color: var(--muted); font-size: 0.8rem; }
.work-arrow { color: var(--cyan); font-size: 1.2rem; }
.contact-grid { grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.65fr); }
.contact-card.accent { background: linear-gradient(135deg, rgba(88, 230, 245, 0.1), transparent 55%), var(--surface-strong); }
.contact-card h2 { max-width: 760px; margin: 0.4rem 0 0.85rem; font-size: clamp(2rem, 4vw, 3.4rem); letter-spacing: -0.05em; line-height: 1.06; }
.contact-line { display: grid; padding: 0.85rem 0; grid-template-columns: 2.2rem minmax(0, 1fr); gap: 0.75rem; }
.contact-line + .contact-line { border-top: 1px solid var(--line); }
.contact-symbol { display: inline-flex; width: 2.1rem; height: 2.1rem; border: 1px solid var(--line); border-radius: 10px; align-items: center; justify-content: center; color: var(--cyan); font-size: 0.72rem; font-weight: 900; }
.contact-line strong, .contact-line a, .contact-line span { display: block; }
.contact-line a, .contact-line span { margin-top: 0.12rem; color: var(--muted); font-size: 0.85rem; overflow-wrap: anywhere; }
.contact-line a:hover { color: var(--cyan); }
.profile-footer { border-top: 1px solid var(--line); background: rgba(4, 7, 16, 0.7); }
.profile-footer-inner { display: flex; width: min(var(--max), calc(100% - 2rem)); min-height: 110px; margin: 0 auto; align-items: center; justify-content: space-between; gap: 1rem; color: var(--quiet); font-size: 0.78rem; }
.profile-footer a { color: var(--muted); }
/* Tomáš Nováček: only the visual frame changes. The original body copy and links remain intact. */
body.legacy-member-page { padding: 0; }
body.legacy-member-page > section:first-child {
  width: min(980px, calc(100% - 2rem));
  margin: clamp(3rem, 8vw, 7rem) auto 0;
  padding: clamp(1.5rem, 4vw, 3.5rem);
  border: 1px solid var(--line);
  border-radius: 30px;
  background: linear-gradient(145deg, rgba(88, 230, 245, 0.08), transparent 30%), var(--surface);
  box-shadow: var(--shadow);
}
body.legacy-member-page > section:first-child::before { display: block; margin-bottom: 1rem; color: var(--cyan); content: "GRAFIT · MEMBER PROFILE"; font-size: 0.72rem; font-weight: 900; letter-spacing: 0.17em; }
body.legacy-member-page h1 { margin: 0 0 1.6rem; font-size: clamp(2.8rem, 8vw, 5.8rem); letter-spacing: -0.065em; line-height: 0.98; }
body.legacy-member-page h2 { margin: 2.7rem 0 0.7rem; padding-top: 1.5rem; border-top: 1px solid var(--line); font-size: clamp(1.55rem, 3vw, 2.2rem); letter-spacing: -0.035em; }
body.legacy-member-page p, body.legacy-member-page li { color: var(--muted); }
body.legacy-member-page ul { padding-left: 1.25rem; }
body.legacy-member-page li { margin: 0.5rem 0; }
body.legacy-member-page a { color: var(--cyan); text-underline-offset: 0.2em; }
body.legacy-member-page > section:last-of-type { width: min(980px, calc(100% - 2rem)); margin: 0 auto; }
body.legacy-member-page footer { margin: 3rem 0 0; padding: 1.5rem 0 3rem; border-top: 1px solid var(--line); color: var(--quiet); }
body.legacy-member-page footer .social, body.legacy-member-page footer .resources { display: flex; margin-top: 1rem; align-items: center; flex-wrap: wrap; gap: 0.85rem; }
body.legacy-member-page footer .social img { display: none; }
body.legacy-member-page footer .social a { display: inline-flex; min-height: 2.25rem; padding: 0.45rem 0.75rem; align-items: center; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); font-size: 0.78rem; font-weight: 800; text-decoration: none; }
body.legacy-member-page footer .social a:nth-child(1)::after { content: "YouTube"; }
body.legacy-member-page footer .social a:nth-child(2)::after { content: "Twitter"; }
body.legacy-member-page footer .social a:nth-child(3)::after { content: "Discord"; }
@media (max-width: 880px) {
  .profile-header nav > a:not(.keep-mobile) { display: none; }
  .profile-hero-inner, .section-heading, .contact-grid { grid-template-columns: 1fr; }
  .profile-hero-inner { min-height: auto; padding-top: 4.5rem; }
  .portrait-card { min-height: 310px; }
  .focus-grid, .project-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 620px) {
  .profile-header-inner { width: min(100% - 1rem, var(--max)); }
  .profile-brand span { display: none; }
  .profile-header nav { gap: 0.1rem; }
  .profile-hero-inner, .profile-section, .profile-subnav-inner, .profile-footer-inner { width: min(100% - 1.25rem, var(--max)); }
  .profile-hero h1 { font-size: clamp(2.9rem, 15vw, 4.6rem); }
  .focus-grid, .project-grid { grid-template-columns: 1fr; }
  .work-item { grid-template-columns: 1fr auto; gap: 0.45rem 1rem; }
  .work-year { grid-column: 1 / -1; }
  .profile-footer-inner { padding: 1.5rem 0; align-items: flex-start; flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: 0.01ms !important; }
}

/* Expandable publication and thesis catalogues. */
.catalog {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.16);
}
.catalog .selected-work {
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
.catalog-archive { border-top: 1px solid var(--line); }
.catalog-archive summary {
  display: flex;
  min-height: 76px;
  padding: 1rem 1.4rem;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  color: var(--text);
  cursor: pointer;
  list-style: none;
}
.catalog-archive summary::-webkit-details-marker { display: none; }
.catalog-archive summary:hover { background: rgba(88, 230, 245, 0.045); }
.catalog-archive summary::after {
  content: "+";
  display: inline-flex;
  width: 2rem;
  height: 2rem;
  flex: 0 0 auto;
  border: 1px solid var(--line);
  border-radius: 50%;
  align-items: center;
  justify-content: center;
  color: var(--cyan);
  font-size: 1.1rem;
  font-weight: 700;
}
.catalog-archive[open] summary::after { content: "−"; }
.catalog-summary-title,
.catalog-summary-meta { display: block; }
.catalog-summary-title { font-weight: 850; }
.catalog-summary-meta {
  margin-top: 0.15rem;
  color: var(--muted);
  font-size: 0.78rem;
}
.catalog-archive .selected-work { border-top: 1px solid var(--line); }
.catalog-source {
  color: var(--cyan);
  text-decoration: none;
}
.catalog-source:hover {
  text-decoration: underline;
  text-underline-offset: 0.2em;
}
.records-loading,
.records-empty {
  margin: 0;
  padding: 1.25rem 1.4rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--muted);
}
