/* ---------------------------------------------------------
   Academic personal website
   FVT/TUKE-inspired restrained technical palette
   --------------------------------------------------------- */

:root {
  /* Official FVT TUKE identity */
  --fvt: #5F259F;       /* Pantone 267 C */
  --fvt-dark: #4A1D7C;
  --fvt-deep: #351459;
  --fvt-soft: #F4EFF9;

  --tuke-gold: #A29061; /* Pantone 871 C */
  --tuke-silver: #A7A9AC; /* Pantone 877 C */
  --tuke-black: #000000;

  /* Compatibility with existing layout */
  --navy: #5F259F;
  --navy-2: #4A1D7C;
  --blue: #5F259F;
  --blue-soft: #F4EFF9;
  --accent: #A29061;
  --accent-2: #D8CDAE;
  --ink: #1C1721;
  --muted: #6D6673;
  --line: #DED8E5;
  --surface: #FFFFFF;
  --surface-2: #F8F6FA;
  --max: 1180px;
  --radius: 18px;
  --shadow: 0 18px 55px rgba(95, 37, 159, .12);
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--surface);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

img { max-width: 100%; }

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

.skip-link {
  position: fixed;
  left: 12px;
  top: -60px;
  z-index: 999;
  background: #fff;
  padding: 10px 14px;
  border-radius: 8px;
  box-shadow: var(--shadow);
}
.skip-link:focus { top: 12px; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(220,227,233,.8);
}

.topbar {
  background: var(--navy);
  color: #fff;
}

.topbar-inner {
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.institution {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: #fff;
  text-decoration: none;
}

.institution .mark {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,.78);
  font-size: 12px;
  letter-spacing: .08em;
  font-weight: 800;
}

.institution strong,
.institution small {
  display: block;
}

.institution strong {
  font-size: 14px;
  line-height: 1.25;
  letter-spacing: .01em;
}

.institution small {
  font-size: 12px;
  color: rgba(255,255,255,.68);
  margin-top: 2px;
}

.lang-switch {
  display: inline-flex;
  padding: 3px;
  border: 1px solid rgba(255,255,255,.25);
  border-radius: 999px;
}

.lang-btn {
  appearance: none;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: rgba(255,255,255,.72);
  font-weight: 750;
  padding: 6px 10px;
  cursor: pointer;
}

.lang-btn.active {
  background: #fff;
  color: var(--navy);
}

.nav {
  background: #fff;
}

.nav-inner {
  min-height: 54px;
  display: flex;
  align-items: center;
  gap: 28px;
  overflow-x: auto;
  scrollbar-width: none;
}

.nav-inner::-webkit-scrollbar { display: none; }

.nav a {
  text-decoration: none;
  white-space: nowrap;
  font-size: 14px;
  font-weight: 650;
  color: #4d5965;
}

.nav a:hover,
.nav a:focus-visible {
  color: var(--blue);
}

.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 88% 18%, rgba(95,37,159,.18), transparent 28%),
    linear-gradient(180deg, #ffffff, #F4EFF9);
}

.hero::after {
  content: "";
  position: absolute;
  width: 520px;
  height: 520px;
  right: -260px;
  bottom: -320px;
  border: 80px solid rgba(162,144,97,.12);
  border-radius: 50%;
}

.hero-grid {
  position: relative;
  z-index: 1;
  min-height: 620px;
  display: grid;
  grid-template-columns: 1.55fr .75fr;
  gap: 72px;
  align-items: center;
  padding-block: 72px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--blue);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: .17em;
}

.eyebrow.light { color: #9fc7e8; }

h1, h2, h3 {
  line-height: 1.12;
  margin-top: 0;
}

h1 {
  max-width: 820px;
  margin-bottom: 22px;
  font-size: clamp(42px, 5.8vw, 74px);
  letter-spacing: -.04em;
  color: var(--navy);
}

h2 {
  font-size: clamp(30px, 3.5vw, 48px);
  letter-spacing: -.025em;
  color: var(--navy);
  margin-bottom: 16px;
}

h3 {
  font-size: 20px;
  color: var(--navy);
}

.lead {
  max-width: 780px;
  margin: 0;
  color: #4b5966;
  font-size: clamp(18px, 2vw, 22px);
  line-height: 1.6;
}

.hero-affiliation {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 24px;
  color: var(--muted);
  font-size: 15px;
  font-weight: 600;
}

.dot {
  width: 8px;
  height: 8px;
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 0 5px rgba(162,144,97,.12);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 48px;
  padding: 0 20px;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 750;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn.primary {
  background: var(--navy);
  color: #fff;
  box-shadow: 0 12px 30px rgba(95,37,159,.17);
}

.btn.primary:hover { background: var(--navy-2); }

.btn.secondary {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--navy);
}

.profile-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: #fff;
  box-shadow: var(--shadow);
}

.portrait {
  aspect-ratio: 4 / 4.25;
  background:
    linear-gradient(135deg, rgba(95,37,159,.12), rgba(95,37,159,.05)),
    var(--surface-2);
  display: grid;
  place-items: center;
}

.portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.portrait-fallback {
  display: none;
  place-items: center;
  width: 132px;
  height: 132px;
  border-radius: 50%;
  color: var(--navy);
  border: 1px solid rgba(95,37,159,.12);
  background: rgba(255,255,255,.58);
  font-size: 40px;
  font-weight: 850;
  letter-spacing: -.04em;
}

.profile-card-body {
  padding: 22px 24px 24px;
}

.profile-card-body strong,
.profile-card-body span {
  display: block;
}

.profile-card-body strong {
  font-size: 18px;
  color: var(--navy);
}

.profile-card-body span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 14px;
}

.section {
  padding-block: 94px;
}

.section-light {
  background: var(--surface-2);
}

.section-dark {
  color: #e8eef4;
  background:
    radial-gradient(circle at 12% 0%, rgba(95,37,159,.42), transparent 28%),
    linear-gradient(135deg, var(--navy), #351459);
}

.section-dark h2 { color: #fff; }

.section-heading {
  max-width: 760px;
  margin-bottom: 42px;
}

.section-heading > p:last-child {
  color: var(--muted);
  font-size: 17px;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.info-card {
  position: relative;
  min-height: 265px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.card-index {
  display: inline-block;
  margin-bottom: 52px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 850;
  letter-spacing: .08em;
}

.info-card p {
  margin-bottom: 0;
  color: var(--muted);
}

.profile-links {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  border-top: 1px solid var(--line);
}

.profile-link {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 4px 18px;
  padding: 24px 54px 24px 0;
  text-decoration: none;
  border-bottom: 1px solid var(--line);
}

.profile-link:nth-child(odd) {
  border-right: 1px solid var(--line);
  padding-right: 80px;
}

.profile-link:nth-child(even) {
  padding-left: 32px;
}

.profile-name {
  color: var(--navy);
  font-size: 18px;
  font-weight: 780;
}

.profile-meta {
  grid-column: 1;
  color: var(--muted);
  font-size: 13px;
}

.arrow {
  position: absolute;
  right: 20px;
  top: 28px;
  color: var(--blue);
  font-size: 20px;
  transition: transform .15s ease;
}

.profile-link:hover .arrow {
  transform: translate(2px, -2px);
}

.split {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 90px;
  align-items: start;
}

.dark-copy {
  font-size: 18px;
  color: rgba(232,238,244,.78);
}

.dark-copy > p { margin-top: 0; }

.check-list {
  list-style: none;
  padding: 0;
  margin: 30px 0 0;
}

.check-list li {
  position: relative;
  padding: 14px 0 14px 30px;
  border-top: 1px solid rgba(255,255,255,.12);
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 23px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--accent);
}

.timeline {
  border-top: 1px solid var(--line);
}

.timeline-item {
  display: grid;
  grid-template-columns: 170px 1fr;
  gap: 40px;
  padding: 30px 0;
  border-bottom: 1px solid var(--line);
}

.timeline-year {
  color: var(--blue);
  font-weight: 820;
  letter-spacing: .02em;
}

.timeline-item h3 {
  margin-bottom: 8px;
}

.timeline-item p {
  max-width: 820px;
  margin: 0;
  color: var(--muted);
}

.contact-section {
  background:
    linear-gradient(90deg, rgba(95,37,159,.08), transparent 55%);
}

.contact-grid {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 70px;
  align-items: start;
}

.contact-grid > div:first-child p:last-child {
  color: var(--muted);
  max-width: 520px;
}

.contact-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 10px 40px rgba(95,37,159,.06);
}

.contact-card > div {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 24px;
  padding: 20px 24px;
  border-bottom: 1px solid var(--line);
}

.contact-card > div:last-child {
  border-bottom: 0;
}

.label {
  color: var(--muted);
  font-size: 13px;
  font-weight: 750;
  text-transform: uppercase;
  letter-spacing: .07em;
}

.contact-card a {
  color: var(--blue);
  text-decoration: none;
  font-weight: 650;
}

.footer {
  padding: 28px 0;
  color: rgba(255,255,255,.62);
  background: #351459;
  font-size: 13px;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 24px;
}

.footer strong {
  color: #fff;
}

@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 36px;
    min-height: auto;
    padding-block: 56px;
  }

  .profile-card {
    max-width: 430px;
  }

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

  .info-card {
    min-height: auto;
  }

  .card-index {
    margin-bottom: 30px;
  }

  .split,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 38px;
  }

  .profile-links {
    grid-template-columns: 1fr;
  }

  .profile-link,
  .profile-link:nth-child(odd),
  .profile-link:nth-child(even) {
    padding-left: 0;
    padding-right: 52px;
    border-right: 0;
  }

  .timeline-item {
    grid-template-columns: 120px 1fr;
    gap: 26px;
  }
}

@media (max-width: 620px) {
  .container {
    width: min(calc(100% - 28px), var(--max));
  }

  .topbar-inner {
    min-height: 58px;
  }

  .institution small {
    display: none;
  }

  .institution strong {
    font-size: 12px;
  }

  .institution .mark {
    width: 38px;
    height: 38px;
  }

  .nav-inner {
    gap: 20px;
  }

  h1 {
    font-size: 42px;
  }

  .section {
    padding-block: 72px;
  }

  .timeline-item {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .contact-card > div {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .footer-inner {
    flex-direction: column;
    gap: 8px;
  }
}

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


/* FVT faculty-colour enhancements */
.topbar {
  background: linear-gradient(135deg, var(--navy), var(--navy-2));
}
.btn.primary {
  background: linear-gradient(135deg, var(--navy), var(--navy-2));
}
.btn.primary:hover {
  background: linear-gradient(135deg, var(--navy-2), var(--blue));
}
.nav a {
  position: relative;
}
.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -14px;
  width: 100%;
  height: 2px;
  background: transparent;
  transition: background .15s ease;
}
.nav a:hover::after,
.nav a:focus-visible::after {
  background: var(--accent);
}
.profile-card {
  border-top: 4px solid var(--accent);
}
.info-card,
.contact-card,
.project-card,
.teaching-card {
  box-shadow: 0 10px 30px rgba(95, 37, 159, .05);
}
.btn.secondary:hover {
  border-color: var(--blue);
  color: var(--blue);
}
.course-tag,
.project-program {
  background: rgba(162,144,97,.12);
  color: #766641;
  border-radius: 999px;
  padding: 6px 10px;
  display: inline-block;
  font-weight: 800;
}
.project-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}
.featured-project {
  background:
    linear-gradient(180deg, rgba(95,37,159,.06), rgba(162,144,97,.06)),
    #ffffff;
  border: 1px solid rgba(95,37,159,.16);
}
.light-label {
  color: var(--accent-2);
}
a.text-link {
  color: var(--blue);
  font-weight: 700;
  text-decoration: none;
}
a.text-link:hover,
a.text-link:focus-visible {
  text-decoration: underline;
}
.hero-affiliation-links a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid rgba(95,37,159,.22);
}
.hero-affiliation-links a:hover,
.hero-affiliation-links a:focus-visible {
  color: var(--blue);
  border-bottom-color: var(--blue);
}
.contact-stack {
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.contact-stack a {
  line-height: 1.45;
}
.contact-stack .map-link {
  width: fit-content;
  margin-top: 3px;
  font-size: 13px;
  font-weight: 800;
  color: var(--blue);
}


/* Simplified VEGA / KEGA project presentation */
.project-simple-list {
  display: grid;
  gap: 18px;
}

.project-simple-card {
  padding: 26px 28px;
  border: 1px solid var(--line);
  border-left: 4px solid var(--blue);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 8px 26px rgba(95,37,159,.05);
}

.project-simple-code {
  margin-bottom: 10px;
  color: var(--blue);
  font-size: 14px;
  font-weight: 850;
  letter-spacing: .055em;
}

.project-simple-card h3 {
  max-width: 940px;
  margin-bottom: 20px;
  font-size: 19px;
  line-height: 1.35;
}

.project-simple-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(180px, 1fr));
  gap: 14px 28px;
  max-width: 650px;
  margin: 0;
}

.project-simple-meta > div {
  border-top: 1px solid var(--line);
  padding-top: 12px;
}

.project-simple-meta dt {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .075em;
  text-transform: uppercase;
}

.project-simple-meta dd {
  margin: 4px 0 0;
  color: var(--navy);
  font-size: 15px;
  font-weight: 750;
}

@media (max-width: 620px) {
  .project-simple-card {
    padding: 22px 20px;
  }
  .project-simple-meta {
    grid-template-columns: 1fr;
  }
}


/* Recent WoS publications */
.subheading-note {
  max-width: 690px;
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 14px;
}
.pub-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 7px;
}
.pub-badges span {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 3px 8px;
  border-radius: 999px;
  background: var(--blue-soft);
  color: var(--blue);
  font-size: 10px;
  font-weight: 850;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.featured-publication {
  background: linear-gradient(90deg, rgba(95,37,159,.055), transparent);
}
.featured-publication .pub-year {
  color: var(--accent);
}

/* Patents and utility models */
.ip-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 34px;
}
.ip-column {
  min-width: 0;
}
.ip-column-heading {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 18px;
}
.ip-column-heading h3 {
  margin-bottom: 0;
}
.ip-column-heading .eyebrow {
  margin-bottom: 5px;
}
.ip-icon {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--navy);
  color: #fff;
  font-size: 15px;
  font-weight: 900;
  letter-spacing: .04em;
}
.ip-item {
  margin-bottom: 14px;
  padding: 22px 22px 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 8px 28px rgba(95,37,159,.045);
}
.ip-meta {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  margin-bottom: 10px;
  color: var(--blue);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: .055em;
}
.ip-item h4 {
  margin: 0 0 12px;
  color: var(--navy);
  font-size: 17px;
  line-height: 1.36;
}
.ip-title-link {
  color: var(--navy);
  text-decoration: none;
  background-image: linear-gradient(currentColor, currentColor);
  background-size: 0 1px;
  background-repeat: no-repeat;
  background-position: 0 100%;
  transition: background-size .15s ease, color .15s ease;
}
.ip-title-link:hover,
.ip-title-link:focus-visible {
  color: var(--blue);
  background-size: 100% 1px;
}
.ip-status {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 13px;
}
.ip-item > a {
  color: var(--blue);
  font-size: 12px;
  font-weight: 750;
  text-decoration: none;
}
.ip-item > a:hover,
.ip-item > a:focus-visible {
  text-decoration: underline;
}
@media (max-width: 900px) {
  .ip-grid {
    grid-template-columns: 1fr;
  }
}




.section-light {
  background-image:
    linear-gradient(rgba(95,37,159,.022) 1px, transparent 1px),
    linear-gradient(90deg, rgba(95,37,159,.022) 1px, transparent 1px);
  background-size: 34px 34px;
  background-position: center center;
}

.section-light {
  background-image:
    linear-gradient(rgba(95,37,159,.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(95,37,159,.025) 1px, transparent 1px);
  background-size: 34px 34px;
  background-position: center center;
}


/* Conveyor diagnostics themed background */
.hero,
#publikacie,
#projekty,
#patenty,
.contact-section,
#vyskum {
  position: relative;
  overflow: hidden;
}

.hero::before,
#publikacie::before,
#projekty::before,
#patenty::before,
.contact-section::before,
#vyskum::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-repeat: no-repeat;
  z-index: 0;
}

.hero > *,
#publikacie > *,
#projekty > *,
#patenty > *,
.contact-section > *,
#vyskum > * {
  position: relative;
  z-index: 1;
}

/* Hero: conveyor belt, rollers, force vectors and sensor nodes */
.hero::before {
  opacity: 0.17;
  background-position: right -30px top 20px;
  background-size: 980px 430px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='980' height='430' viewBox='0 0 980 430'%3E%3Cg fill='none' stroke='%235F259F' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M510 170 C565 128, 648 128, 706 170 C764 212, 843 212, 910 172' stroke-width='2' opacity='.26'/%3E%3Cpath d='M510 196 C565 154, 648 154, 706 196 C764 238, 843 238, 910 198' stroke-width='2' opacity='.17'/%3E%3Ccircle cx='590' cy='182' r='34' stroke-width='1.6' opacity='.28'/%3E%3Ccircle cx='590' cy='182' r='13' stroke-width='1.3' opacity='.16'/%3E%3Ccircle cx='706' cy='182' r='34' stroke-width='1.6' opacity='.28'/%3E%3Ccircle cx='706' cy='182' r='13' stroke-width='1.3' opacity='.16'/%3E%3Ccircle cx='822' cy='182' r='34' stroke-width='1.6' opacity='.28'/%3E%3Ccircle cx='822' cy='182' r='13' stroke-width='1.3' opacity='.16'/%3E%3Cpath d='M590 102 V146' stroke-width='1.3' opacity='.22'/%3E%3Cpath d='M706 102 V146' stroke-width='1.3' opacity='.22'/%3E%3Cpath d='M822 102 V146' stroke-width='1.3' opacity='.22'/%3E%3Cpath d='M580 112 l10 -10 l10 10' stroke-width='1.3' opacity='.22'/%3E%3Cpath d='M696 112 l10 -10 l10 10' stroke-width='1.3' opacity='.22'/%3E%3Cpath d='M812 112 l10 -10 l10 10' stroke-width='1.3' opacity='.22'/%3E%3Cpath d='M560 276 C625 254, 685 254, 752 278 S860 306, 920 284' stroke-width='1.5' opacity='.18' stroke-dasharray='6 8'/%3E%3Cpath d='M542 314 H900' stroke-width='1.1' opacity='.12' stroke-dasharray='8 8'/%3E%3Cpath d='M552 314 l11 -7 v14 z' stroke-width='1.1' opacity='.12'/%3E%3Cpath d='M888 314 l-11 -7 v14 z' stroke-width='1.1' opacity='.12'/%3E%3C/g%3E%3Cg fill='%235F259F'%3E%3Ccircle cx='590' cy='92' r='4.2' opacity='.24'/%3E%3Ccircle cx='706' cy='92' r='4.2' opacity='.24'/%3E%3Ccircle cx='822' cy='92' r='4.2' opacity='.24'/%3E%3Ccircle cx='552' cy='282' r='4' opacity='.18'/%3E%3Ccircle cx='625' cy='266' r='4' opacity='.18'/%3E%3Ccircle cx='692' cy='266' r='4' opacity='.18'/%3E%3Ccircle cx='760' cy='282' r='4' opacity='.18'/%3E%3Ccircle cx='830' cy='296' r='4' opacity='.18'/%3E%3C/g%3E%3C/svg%3E");
}

/* Research: measured forces, coordinate axes and signal traces */
#vyskum::before {
  opacity: 0.10;
  background-position: right -20px top 0;
  background-size: 620px 420px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='620' height='420' viewBox='0 0 620 420'%3E%3Cg fill='none' stroke='%235F259F' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='445' cy='112' r='52' stroke-width='1.4' opacity='.16'/%3E%3Ccircle cx='445' cy='112' r='24' stroke-width='1.1' opacity='.11'/%3E%3Cpath d='M445 112 H520' stroke-width='1.2' opacity='.16'/%3E%3Cpath d='M445 112 V42' stroke-width='1.2' opacity='.16'/%3E%3Cpath d='M445 112 L392 160' stroke-width='1.2' opacity='.16'/%3E%3Cpath d='M510 112 l10 -5 l0 10 z' stroke-width='1.2' opacity='.16'/%3E%3Cpath d='M445 52 l-5 -10 l10 0 z' stroke-width='1.2' opacity='.16'/%3E%3Cpath d='M399 154 l-10 2 l7 7 z' stroke-width='1.2' opacity='.16'/%3E%3Cpath d='M316 244 C344 232, 370 232, 395 244 C420 256, 447 256, 474 243 C501 230, 528 229, 554 242' stroke-width='1.5' opacity='.18'/%3E%3Cpath d='M316 266 C344 254, 370 254, 395 266 C420 278, 447 278, 474 265 C501 252, 528 251, 554 264' stroke-width='1.1' opacity='.12' stroke-dasharray='6 8'/%3E%3Cpath d='M330 318 H556' stroke-width='1' opacity='.10'/%3E%3Cpath d='M330 300 V336 M380 300 V336 M430 300 V336 M480 300 V336 M530 300 V336' stroke-width='1' opacity='.08'/%3E%3C/g%3E%3Cg fill='%235F259F'%3E%3Ccircle cx='395' cy='244' r='3.8' opacity='.18'/%3E%3Ccircle cx='474' cy='243' r='3.8' opacity='.18'/%3E%3Ccircle cx='554' cy='242' r='3.8' opacity='.18'/%3E%3C/g%3E%3C/svg%3E");
}

/* Publications / projects / patents: diagnostics hubs, rollers and spectra */
#publikacie::before,
#projekty::before,
#patenty::before {
  opacity: 0.09;
  background-position: right -30px top 15px;
  background-size: 560px 520px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='560' height='520' viewBox='0 0 560 520'%3E%3Cg fill='none' stroke='%235F259F' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='392' cy='128' r='72' stroke-width='1.3' opacity='.16'/%3E%3Ccircle cx='392' cy='128' r='38' stroke-width='1.1' opacity='.11'/%3E%3Ccircle cx='392' cy='128' r='12' stroke-width='1.1' opacity='.09'/%3E%3Cpath d='M320 128 H464' stroke-width='1.1' opacity='.10'/%3E%3Cpath d='M392 56 V200' stroke-width='1.1' opacity='.10'/%3E%3Cpath d='M286 250 H498' stroke-width='1.1' opacity='.14'/%3E%3Ccircle cx='328' cy='250' r='21' stroke-width='1.2' opacity='.17'/%3E%3Ccircle cx='328' cy='250' r='8' stroke-width='1.0' opacity='.11'/%3E%3Ccircle cx='392' cy='250' r='21' stroke-width='1.2' opacity='.17'/%3E%3Ccircle cx='392' cy='250' r='8' stroke-width='1.0' opacity='.11'/%3E%3Ccircle cx='456' cy='250' r='21' stroke-width='1.2' opacity='.17'/%3E%3Ccircle cx='456' cy='250' r='8' stroke-width='1.0' opacity='.11'/%3E%3Cpath d='M318 302 C346 286, 372 286, 400 302 C428 318, 454 318, 484 302' stroke-width='1.3' opacity='.16'/%3E%3Cpath d='M302 354 H492' stroke-width='1' opacity='.09' stroke-dasharray='6 8'/%3E%3Cpath d='M302 374 H344 M356 374 H398 M410 374 H452 M464 374 H492' stroke-width='1.1' opacity='.12'/%3E%3C/g%3E%3Cg fill='%235F259F'%3E%3Ccircle cx='302' cy='354' r='4' opacity='.14'/%3E%3Ccircle cx='348' cy='374' r='4' opacity='.14'/%3E%3Ccircle cx='402' cy='374' r='4' opacity='.14'/%3E%3Ccircle cx='456' cy='374' r='4' opacity='.14'/%3E%3Ccircle cx='492' cy='354' r='4' opacity='.14'/%3E%3C/g%3E%3C/svg%3E");
}

/* Contact: technical drawing / dimensional motif */
.contact-section::before {
  opacity: 0.08;
  background-position: right -28px bottom -10px;
  background-size: 740px 260px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='740' height='260' viewBox='0 0 740 260'%3E%3Cg fill='none' stroke='%235F259F' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M366 176 H654' stroke-width='1.1' opacity='.14'/%3E%3Cpath d='M404 118 H614' stroke-width='1.1' opacity='.12'/%3E%3Ccircle cx='440' cy='176' r='28' stroke-width='1.2' opacity='.16'/%3E%3Ccircle cx='440' cy='176' r='10' stroke-width='1.0' opacity='.10'/%3E%3Ccircle cx='584' cy='176' r='28' stroke-width='1.2' opacity='.16'/%3E%3Ccircle cx='584' cy='176' r='10' stroke-width='1.0' opacity='.10'/%3E%3Cpath d='M440 92 V148 M584 92 V148' stroke-width='1.0' opacity='.10'/%3E%3Cpath d='M440 92 l-6 -8 M440 92 l6 -8 M584 92 l-6 -8 M584 92 l6 -8' stroke-width='1.0' opacity='.10'/%3E%3Cpath d='M392 218 H630' stroke-width='1.0' opacity='.09' stroke-dasharray='7 8'/%3E%3C/g%3E%3C/svg%3E");
}

/* Very light technical raster */
.section-light {
  background-image:
    linear-gradient(rgba(95,37,159,.022) 1px, transparent 1px),
    linear-gradient(90deg, rgba(95,37,159,.022) 1px, transparent 1px);
  background-size: 34px 34px;
  background-position: center center;
}


/* Conveyor research thematic refinements */
.info-card:nth-child(1),
.project-simple-card,
.ip-item,
.publication-item {
  position: relative;
}

.info-card:nth-child(1)::after,
.project-simple-card::after,
.ip-item::after,
.publication-item::after {
  content: "";
  position: absolute;
  right: 16px;
  top: 16px;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(95,37,159,.12);
  border-radius: 50%;
  opacity: .55;
}

.pub-title-link {
  color: var(--navy);
  text-decoration: none;
  background-image: linear-gradient(currentColor, currentColor);
  background-size: 0 1px;
  background-repeat: no-repeat;
  background-position: 0 100%;
  transition: background-size .15s ease, color .15s ease;
}
.pub-title-link:hover,
.pub-title-link:focus-visible {
  color: var(--blue);
  background-size: 100% 1px;
}


/* Icon-only academic database links */
.database-icons {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
  margin: 8px 0 52px;
}

.database-icon {
  position: relative;
  display: grid;
  place-items: center;
  width: 72px;
  height: 72px;
  padding: 9px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255,255,255,.92);
  box-shadow: 0 8px 24px rgba(95,37,159,.06);
  text-decoration: none;
  transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}

.database-icon svg {
  display: block;
  width: 52px;
  height: 52px;
}

.database-icon:hover,
.database-icon:focus-visible {
  transform: translateY(-4px);
  border-color: rgba(95,37,159,.38);
  box-shadow: 0 14px 32px rgba(95,37,159,.13);
  outline: none;
}

.database-icon::after {
  content: attr(title);
  position: absolute;
  left: 50%;
  bottom: -34px;
  z-index: 4;
  transform: translateX(-50%) translateY(-3px);
  padding: 5px 8px;
  border-radius: 6px;
  background: #17212b;
  color: #fff;
  font-size: 11px;
  font-weight: 650;
  line-height: 1;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity .14s ease, transform .14s ease;
}

.database-icon:hover::after,
.database-icon:focus-visible::after {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

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

@media (max-width: 620px) {
  .database-icons {
    gap: 12px;
    margin-bottom: 44px;
  }
  .database-icon {
    width: 62px;
    height: 62px;
    border-radius: 15px;
  }
  .database-icon svg {
    width: 45px;
    height: 45px;
  }
}


/* VEGA / KEGA leadership history */
.project-leadership-history {
  margin-top: 48px;
}

.project-history-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.project-history-card {
  padding: 20px 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255,255,255,.94);
  box-shadow: 0 8px 24px rgba(95,37,159,.045);
}

.project-history-program {
  margin-bottom: 6px;
  color: var(--blue);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: .08em;
}

.project-history-period {
  color: var(--navy);
  font-size: 21px;
  font-weight: 850;
  line-height: 1.2;
}

.project-history-role {
  margin-top: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 650;
}

@media (max-width: 900px) {
  .project-history-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  .project-history-grid {
    grid-template-columns: 1fr;
  }
}

/* Compact categorised project lists (APVV / VEGA / KEGA) */
.project-category {
  margin-top: 40px;
}

.project-category-title {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 14px;
}

.project-category-title h4 {
  color: var(--navy);
  font-size: 18px;
  font-weight: 850;
  margin: 0;
}

.project-category-count {
  color: var(--muted);
  font-size: 13px;
  font-weight: 650;
}

.project-compact-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.project-compact-item {
  display: grid;
  grid-template-columns: 130px 1fr auto;
  align-items: center;
  gap: 16px;
  padding: 14px 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255,255,255,.94);
}

.project-compact-code {
  color: var(--blue);
  font-weight: 850;
  font-size: 14px;
  letter-spacing: .01em;
}

.project-compact-title {
  color: var(--ink);
  font-size: 14.5px;
  line-height: 1.4;
}

.project-compact-status {
  justify-self: end;
  font-size: 12px;
  font-weight: 750;
  padding: 5px 12px;
  border-radius: 999px;
  white-space: nowrap;
  background: var(--fvt-soft);
  color: var(--navy);
}

.project-compact-status.done {
  background: #EAF5EC;
  color: #227A3E;
}

.project-compact-status.ongoing {
  background: #FDF1DC;
  color: #A26A00;
}

@media (max-width: 720px) {
  .project-compact-item {
    grid-template-columns: 1fr;
    gap: 6px;
  }
  .project-compact-status { justify-self: start; }
}

/* Simple bullet list (memberships, committees) */
.simple-bullet-list {
  display: flex;
  flex-direction: column;
  gap: 11px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.simple-bullet-list li {
  position: relative;
  padding-left: 20px;
  color: var(--ink);
  font-size: 14.5px;
  line-height: 1.5;
}

.simple-bullet-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
}

/* Tag list (reviewed journals) */
.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tag-list .tag {
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface-2);
  color: var(--navy);
  font-size: 13px;
  font-weight: 650;
  text-decoration: none;
  transition: background .15s ease, border-color .15s ease, color .15s ease;
}

a.tag-list .tag,
.tag-list a.tag {
  cursor: pointer;
}

.tag-list a.tag:hover,
.tag-list a.tag:focus-visible {
  background: var(--blue);
  border-color: var(--blue);
  color: #fff;
}


/* ==========================================================
   FINAL OFFICIAL FVT TUKE COLOUR OVERRIDES
   FVT: Pantone 267 C / #5F259F
   TUKE gold: #A29061
   TUKE silver: #A7A9AC
   ========================================================== */

.topbar {
  background: #5F259F !important;
}

.btn.primary {
  background: #5F259F !important;
  color: #fff !important;
}
.btn.primary:hover,
.btn.primary:focus-visible {
  background: #4A1D7C !important;
}

.eyebrow,
.profile-link .arrow,
.project-simple-code,
.project-history-program,
.database-icon:focus-visible,
a.text-link,
.ip-item > a,
.contact-card a,
.hero-affiliation-links a:hover,
.hero-affiliation-links a:focus-visible {
  color: #5F259F;
}

.dot,
.check-list li::before {
  background: #A29061 !important;
}

.profile-card {
  border-top-color: #A29061 !important;
}

.nav a:hover,
.nav a:focus-visible {
  color: #5F259F;
}
.nav a:hover::after,
.nav a:focus-visible::after {
  background: #A29061 !important;
}

.section-dark {
  background:
    radial-gradient(circle at 12% 0%, rgba(95,37,159,.50), transparent 30%),
    linear-gradient(135deg, #5F259F, #351459) !important;
}

.footer {
  background: #351459 !important;
}

.project-simple-card {
  border-left-color: #5F259F !important;
}

.database-icon:hover,
.database-icon:focus-visible {
  border-color: rgba(95,37,159,.45) !important;
  box-shadow: 0 14px 32px rgba(95,37,159,.14) !important;
}

.course-tag,
.project-program {
  background: rgba(162,144,97,.14) !important;
  color: #766641 !important;
}

.featured-project {
  background:
    linear-gradient(180deg, rgba(95,37,159,.06), rgba(162,144,97,.06)),
    #fff !important;
  border-color: rgba(95,37,159,.17) !important;
}

::selection {
  background: rgba(95,37,159,.22);
  color: #1C1721;
}


/* TUKE badge in topbar */
.institution {
  gap: 14px;
}
.tuke-badge-wrap {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
}
.tuke-badge {
  display: block;
  width: 168px;
  max-width: 40vw;
  height: auto;
}
.mark {
  margin-left: 6px;
}

/* Dynamic research visuals slider */
.research-visuals .section-heading {
  margin-bottom: 26px;
}

.visual-slider {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 24px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 18px 48px rgba(95, 37, 159, .10);
}

.profile-banner {
  margin-top: 40px;
}

.profile-banner .visual-slide img {
  object-position: center 15%;
}

.visual-slide {
  position: relative;
  display: none;
  min-height: 400px;
}

.visual-slide.active {
  display: block;
}

.visual-slide img {
  display: block;
  width: 100%;
  min-height: 400px;
  max-height: 620px;
  object-fit: cover;
}

.visual-overlay {
  position: absolute;
  left: 28px;
  right: 28px;
  bottom: 24px;
  max-width: 700px;
  padding: 24px 26px;
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(19, 10, 34, .78), rgba(95, 37, 159, .72));
  color: #fff;
  backdrop-filter: blur(8px);
  box-shadow: 0 12px 40px rgba(19, 10, 34, .18);
}

.visual-kicker {
  margin: 0 0 8px;
  color: #D8CDAE;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .12em;
}

.visual-overlay h3 {
  margin: 0 0 10px;
  color: #fff;
  font-size: clamp(24px, 2vw, 32px);
  line-height: 1.2;
}

.visual-overlay p:last-child {
  margin-bottom: 0;
  color: rgba(255,255,255,.92);
  max-width: 62ch;
}

.visual-controls {
  position: absolute;
  right: 20px;
  bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  z-index: 3;
}

.visual-btn,
.visual-dot {
  border: 0;
  cursor: pointer;
}

.visual-btn {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(255,255,255,.92);
  color: #5F259F;
  font-size: 28px;
  line-height: 1;
  box-shadow: 0 8px 18px rgba(16, 36, 61, .12);
}

.visual-dots {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 4px;
}

.visual-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255,255,255,.55);
  box-shadow: inset 0 0 0 1px rgba(95,37,159,.18);
}

.visual-dot.active {
  background: #A29061;
}

.visual-btn:hover,
.visual-btn:focus-visible {
  background: #fff;
  outline: none;
}

@media (max-width: 900px) {
  .institution {
    flex-wrap: wrap;
  }
  .tuke-badge {
    width: 150px;
  }
  .visual-slide,
  .visual-slide img {
    min-height: 340px;
  }
  .visual-overlay {
    left: 18px;
    right: 18px;
    bottom: 16px;
    padding: 20px 20px;
  }
  .visual-controls {
    right: 14px;
    bottom: 14px;
  }
}

@media (max-width: 620px) {
  .tuke-badge {
    width: 136px;
  }
  .mark {
    margin-left: 0;
  }
  .visual-slide,
  .visual-slide img {
    min-height: 300px;
  }
  .visual-overlay {
    max-width: none;
    padding: 16px 16px;
  }
  .visual-overlay h3 {
    font-size: 22px;
  }
  .visual-controls {
    position: static;
    justify-content: center;
    padding: 14px 0 16px;
    background: rgba(255,255,255,.96);
  }
}


/* Contact links in the hero */
.quick-contact {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 24px 0 4px;
  max-width: 680px;
}

.quick-contact a {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 12px 15px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255,255,255,.78);
  text-decoration: none;
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.quick-contact a:hover,
.quick-contact a:focus-visible {
  transform: translateY(-2px);
  border-color: var(--accent);
  box-shadow: 0 8px 22px rgba(95,37,159,.10);
}

.quick-contact-label {
  font-size: 11px;
  line-height: 1.2;
  font-weight: 800;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--muted);
}

.quick-contact strong {
  font-size: 15px;
  line-height: 1.35;
  color: var(--fvt-dark);
}

@media (max-width: 620px) {
  .quick-contact {
    grid-template-columns: 1fr;
    margin-top: 18px;
  }

  .quick-contact a {
    padding: 11px 13px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .quick-contact a { transition: none; }
}


.contact-qr { display:flex; flex-direction:column; align-items:center; justify-content:flex-start; gap:12px; margin-top:8px; }
.contact-qr-image { width:min(260px, 100%); height:auto; display:block; }
@media (max-width: 800px) { .contact-qr { margin-top:24px; } .contact-qr-image { width:220px; } }
