:root {
  --ink: #102027;
  --muted: #566d6a;
  --paper: #ffffff;
  --surface: #fbfdfb;
  --soft: #f4faf7;
  --mint: #dff4eb;
  --blue: #1257b7;
  --green: #008a73;
  --coral: #e85d3f;
  --sun: #f5c84c;
  --line: #dbe7e3;
  --shadow: 0 20px 50px rgba(16, 32, 39, 0.12);
  --radius: 8px;
  --content: 1180px;
  --flag-stripe: linear-gradient(90deg, var(--blue), var(--green), var(--coral), var(--sun));
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

:root[data-theme="hr"] {
  --blue: #005baa;
  --green: #005baa;
  --coral: #d50000;
  --sun: #ffffff;
  --mint: #e8f2fb;
  --soft: #f8fbff;
  --flag-stripe: linear-gradient(90deg, #d50000 0 33%, #ffffff 33% 66%, #005baa 66% 100%);
}

:root[data-theme="et"] {
  --blue: #0072ce;
  --green: #0072ce;
  --coral: #111111;
  --sun: #ffffff;
  --mint: #e6f3ff;
  --soft: #f7fbff;
  --flag-stripe: linear-gradient(90deg, #0072ce 0 33%, #111111 33% 66%, #ffffff 66% 100%);
}

:root[data-theme="fi"] {
  --blue: #002f6c;
  --green: #002f6c;
  --coral: #5f8fc9;
  --sun: #ffffff;
  --mint: #eaf2fb;
  --soft: #f8fbff;
  --flag-stripe: linear-gradient(90deg, #ffffff 0 28%, #002f6c 28% 44%, #ffffff 44% 58%, #002f6c 58% 74%, #ffffff 74% 100%);
}

:root[data-theme="pt"] {
  --blue: #006600;
  --green: #006600;
  --coral: #ff0000;
  --sun: #ffcc00;
  --mint: #e8f6eb;
  --soft: #fbfff9;
  --flag-stripe: linear-gradient(90deg, #006600 0 40%, #ff0000 40% 82%, #ffcc00 82% 100%);
}

:root[data-theme="tr"] {
  --blue: #e30a17;
  --green: #e30a17;
  --coral: #b00012;
  --sun: #ffffff;
  --mint: #fde8ea;
  --soft: #fff8f8;
  --flag-stripe: linear-gradient(90deg, #e30a17 0 78%, #ffffff 78% 100%);
}

:root[data-theme="hu"] {
  --blue: #477050;
  --green: #477050;
  --coral: #ce2939;
  --sun: #ffffff;
  --mint: #ecf5ed;
  --soft: #fbfffb;
  --flag-stripe: linear-gradient(90deg, #ce2939 0 33%, #ffffff 33% 66%, #477050 66% 100%);
}

:root[data-theme="lv"] {
  --blue: #9e1b34;
  --green: #9e1b34;
  --coral: #7f162a;
  --sun: #ffffff;
  --mint: #f7e8ec;
  --soft: #fff9fa;
  --flag-stripe: linear-gradient(90deg, #9e1b34 0 42%, #ffffff 42% 58%, #9e1b34 58% 100%);
}

:root[data-theme="de"] {
  --blue: #dd0000;
  --green: #111111;
  --coral: #dd0000;
  --sun: #ffce00;
  --mint: #fff5cc;
  --soft: #fffdf5;
  --flag-stripe: linear-gradient(90deg, #111111 0 33%, #dd0000 33% 66%, #ffce00 66% 100%);
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: linear-gradient(180deg, var(--paper) 0%, var(--surface) 48%, var(--paper) 100%);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}

body::before {
  background: var(--flag-stripe);
  content: "";
  height: 4px;
  left: 0;
  position: fixed;
  right: 0;
  top: 0;
  z-index: 30;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.18em;
}

button,
input,
textarea {
  font: inherit;
}

.skip-link {
  left: 1rem;
  padding: 0.65rem 0.9rem;
  position: fixed;
  top: -10rem;
  z-index: 20;
  background: var(--ink);
  color: var(--paper);
  border-radius: var(--radius);
}

.skip-link:focus {
  top: 1rem;
}

.visually-hidden {
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  height: 1px;
  overflow: hidden;
  position: absolute;
  white-space: nowrap;
  width: 1px;
}

.site-header {
  align-items: center;
  background: rgba(255, 255, 255, 0.9);
  border-bottom: 1px solid rgba(219, 231, 227, 0.86);
  box-shadow: 0 10px 30px rgba(16, 32, 39, 0.06);
  display: grid;
  gap: 1rem;
  grid-template-columns: auto 1fr auto;
  left: 0;
  min-height: 78px;
  padding: 0.75rem clamp(1rem, 4vw, 3.5rem);
  position: sticky;
  right: 0;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(18px);
}

.brand {
  align-items: center;
  display: inline-flex;
  gap: 0.75rem;
  min-width: 0;
  text-decoration: none;
}

.brand img {
  height: 52px;
  width: 52px;
  object-fit: contain;
}

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

.brand strong {
  font-size: 1.03rem;
  line-height: 1.1;
}

.brand small {
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.25;
}

.site-nav {
  align-items: center;
  display: flex;
  gap: clamp(0.35rem, 1vw, 0.85rem);
  justify-content: center;
}

.site-nav a {
  appearance: none;
  border-radius: var(--radius);
  border: 0;
  color: var(--muted);
  cursor: pointer;
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0;
  padding: 0.55rem 0.62rem;
  text-decoration: none;
  background: transparent;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  background: var(--soft);
  color: var(--ink);
  outline: none;
}

.language-switcher {
  align-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  display: inline-flex;
  gap: 0.15rem;
  justify-self: end;
  padding: 0.18rem 0.35rem;
  background: rgba(255, 255, 255, 0.78);
}

.language-switcher select {
  appearance: none;
  background:
    linear-gradient(45deg, transparent 50%, var(--muted) 50%),
    linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position:
    calc(100% - 0.85rem) 50%,
    calc(100% - 0.55rem) 50%;
  background-size:
    0.32rem 0.32rem,
    0.32rem 0.32rem;
  background-repeat: no-repeat;
  border: 0;
  border-radius: calc(var(--radius) - 2px);
  color: var(--ink);
  cursor: pointer;
  font-size: 0.88rem;
  font-weight: 800;
  min-height: 38px;
  min-width: 142px;
  padding: 0.45rem 1.35rem 0.45rem 0.55rem;
}

.language-switcher select:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}

.menu-toggle {
  align-items: center;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  cursor: pointer;
  display: none;
  height: 44px;
  justify-content: center;
  padding: 0;
  width: 44px;
}

.menu-toggle span:not(.visually-hidden) {
  background: var(--ink);
  display: block;
  height: 2px;
  position: absolute;
  transition: transform 160ms ease, opacity 160ms ease;
  width: 19px;
}

.menu-toggle span:nth-child(1) {
  transform: translateY(-6px);
}

.menu-toggle span:nth-child(3) {
  transform: translateY(6px);
}

.site-header.is-open .menu-toggle span:nth-child(1) {
  transform: rotate(45deg);
}

.site-header.is-open .menu-toggle span:nth-child(2) {
  opacity: 0;
}

.site-header.is-open .menu-toggle span:nth-child(3) {
  transform: rotate(-45deg);
}

.hero {
  isolation: isolate;
  min-height: calc(84svh - 78px);
  overflow: hidden;
  padding: clamp(4rem, 8vw, 8rem) clamp(1rem, 4vw, 3.5rem) 2rem;
  position: relative;
}

.hero::before {
  background:
    linear-gradient(115deg, rgba(16, 32, 39, 0.93) 0%, rgba(16, 32, 39, 0.79) 42%, rgba(18, 87, 183, 0.18) 100%),
    url("assets/consortium.jpg");
  background-position: center;
  background-size: cover;
  content: "";
  inset: 0;
  position: absolute;
  z-index: -2;
}

.hero::after {
  background:
    linear-gradient(90deg, rgba(0, 138, 115, 0.34), rgba(232, 93, 63, 0.18)),
    linear-gradient(180deg, transparent 70%, var(--paper) 100%);
  content: "";
  inset: 0;
  position: absolute;
  z-index: -1;
}

.hero-backdrop {
  border: 1px solid rgba(255, 255, 255, 0.28);
  height: min(44vw, 470px);
  position: absolute;
  right: clamp(1rem, 6vw, 6rem);
  top: 19%;
  width: min(44vw, 470px);
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
}

.hero-content,
.hero-stats {
  margin: 0 auto;
  max-width: var(--content);
}

.hero-content {
  color: var(--paper);
  position: relative;
}

.hero-content::before {
  background: linear-gradient(180deg, var(--sun), transparent);
  content: "";
  height: 100%;
  left: -1.35rem;
  position: absolute;
  top: 0.25rem;
  width: 3px;
}

.eyebrow {
  color: var(--green);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  margin: 0 0 0.9rem;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: var(--sun);
}

.hero h1 {
  font-size: 9rem;
  letter-spacing: 0;
  line-height: 0.92;
  margin: 0;
  max-width: 9ch;
  text-shadow: 0 18px 45px rgba(0, 0, 0, 0.2);
}

.hero-lede {
  color: rgba(255, 255, 255, 0.86);
  font-size: 1.28rem;
  line-height: 1.55;
  margin: 1.6rem 0 0;
  max-width: 720px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
}

.button {
  align-items: center;
  border: 1px solid transparent;
  border-radius: var(--radius);
  display: inline-flex;
  font-weight: 800;
  justify-content: center;
  min-height: 46px;
  padding: 0.7rem 1rem;
  text-decoration: none;
  box-shadow: 0 12px 28px rgba(16, 32, 39, 0.1);
  transition: background 160ms ease, border-color 160ms ease, color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.button:hover,
.button:focus-visible {
  outline: none;
  transform: translateY(-1px);
  box-shadow: 0 18px 34px rgba(16, 32, 39, 0.16);
}

.button-primary {
  background: var(--sun);
  color: var(--ink);
}

.button-primary:hover,
.button-primary:focus-visible {
  background: #ffd96a;
}

.button-secondary {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.34);
  color: var(--paper);
}

.contact-section .button-secondary {
  background: var(--paper);
  border-color: var(--line);
  color: var(--ink);
}

.hero-stats {
  display: grid;
  gap: 0;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: clamp(3.2rem, 8vw, 6.5rem);
  overflow: hidden;
  position: relative;
  box-shadow: var(--shadow);
}

.hero-stats div {
  background: rgba(255, 255, 255, 0.92);
  border-right: 1px solid var(--line);
  min-height: 122px;
  padding: 1.1rem;
}

.hero-stats div:first-child {
  border-radius: var(--radius) 0 0 var(--radius);
}

.hero-stats div:last-child {
  border-radius: 0 var(--radius) var(--radius) 0;
  border-right: 0;
}

.hero-stats dt {
  color: var(--blue);
  font-size: 2rem;
  font-weight: 900;
  line-height: 1;
}

.hero-stats dd {
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 700;
  margin: 0.45rem 0 0;
}

.section {
  margin: 0 auto;
  max-width: var(--content);
  padding: clamp(3.5rem, 7vw, 6rem) clamp(1rem, 4vw, 2rem);
  width: 100%;
}

.section-heading {
  display: grid;
  gap: 1.4rem;
  grid-template-columns: minmax(180px, 0.38fr) minmax(0, 1fr);
  margin-bottom: clamp(2rem, 5vw, 3.4rem);
}

.section-heading h2,
.text-panel h2,
.contact-section h2 {
  font-size: 3.45rem;
  letter-spacing: 0;
  line-height: 1.04;
  margin: 0;
  overflow-wrap: anywhere;
}

.section-heading > *,
.split-section > *,
.output-layout > *,
.contact-section > *,
.footer-inner > * {
  min-width: 0;
}

.intro-band {
  max-width: none;
  padding-left: 0;
  padding-right: 0;
}

.intro-band .section-heading,
.intro-grid {
  margin-left: auto;
  margin-right: auto;
  max-width: var(--content);
  padding-left: clamp(1rem, 4vw, 2rem);
  padding-right: clamp(1rem, 4vw, 2rem);
}

.intro-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.intro-grid article {
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 18px 42px rgba(16, 32, 39, 0.07);
  min-height: 300px;
  padding: 1.45rem;
  transition: border-color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.intro-grid article:first-child {
  border-radius: var(--radius);
}

.intro-grid article:last-child {
  border-radius: var(--radius);
}

.intro-grid article:hover {
  border-color: rgba(0, 138, 115, 0.35);
  box-shadow: 0 24px 50px rgba(16, 32, 39, 0.1);
  transform: translateY(-2px);
}

.card-index {
  color: var(--coral);
  display: block;
  font-weight: 900;
  margin-bottom: 3.5rem;
}

.intro-grid h3,
.work-card h3,
.news-card h3,
.output-feature h3 {
  font-size: 1.25rem;
  letter-spacing: 0;
  line-height: 1.18;
  margin: 0;
  overflow-wrap: anywhere;
}

.intro-grid p,
.work-card p,
.news-card p,
.output-feature p,
.text-panel p,
.contact-section p {
  color: var(--muted);
  margin: 1rem 0 0;
  overflow-wrap: anywhere;
}

.split-section {
  align-items: center;
  display: grid;
  gap: clamp(2rem, 5vw, 5rem);
  grid-template-columns: minmax(280px, 0.46fr) minmax(0, 1fr);
  padding-top: clamp(2.5rem, 5vw, 4.5rem);
}

.visual-panel {
  align-items: center;
  background:
    radial-gradient(circle at 24% 22%, rgba(245, 200, 76, 0.3), transparent 32%),
    linear-gradient(135deg, rgba(0, 138, 115, 0.16), rgba(18, 87, 183, 0.1)),
    var(--soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  display: flex;
  min-height: 420px;
  padding: clamp(1.5rem, 4vw, 3rem);
}

.visual-panel img {
  margin: auto;
  width: min(100%, 420px);
}

.compact-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1.4rem;
}

.compact-list span {
  background: var(--mint);
  border: 1px solid #c5e6d9;
  border-radius: var(--radius);
  color: #0b5d4f;
  font-size: 0.88rem;
  font-weight: 800;
  padding: 0.5rem 0.65rem;
}

.pathway-section {
  padding-top: clamp(2.5rem, 5vw, 4rem);
}

.pathway-grid {
  display: grid;
  gap: 0.9rem;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  position: relative;
}

.pathway-grid::before {
  background: linear-gradient(90deg, var(--green), var(--sun), var(--coral));
  content: "";
  height: 3px;
  left: 0;
  position: absolute;
  right: 0;
  top: 1.2rem;
}

.pathway-grid article {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 18px 42px rgba(16, 32, 39, 0.06);
  min-height: 230px;
  padding: 3rem 1.2rem 1.2rem;
  position: relative;
}

.pathway-grid span {
  align-items: center;
  background: var(--ink);
  border: 3px solid var(--paper);
  border-radius: 999px;
  color: var(--sun);
  display: inline-flex;
  font-size: 0.78rem;
  font-weight: 900;
  height: 2.45rem;
  justify-content: center;
  left: 1.15rem;
  position: absolute;
  top: 0;
  transform: translateY(-50%);
  width: 2.45rem;
}

.pathway-grid h3 {
  font-size: 1.18rem;
  line-height: 1.18;
  margin: 0;
  overflow-wrap: anywhere;
}

.pathway-grid p {
  color: var(--muted);
  margin: 0.9rem 0 0;
  overflow-wrap: anywhere;
}

.objectives-section {
  padding-top: clamp(2.5rem, 5vw, 4rem);
}

.objectives-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.objectives-grid article {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 18px 42px rgba(16, 32, 39, 0.06);
  min-height: 260px;
  padding: 1.25rem;
}

.objectives-grid span {
  color: var(--coral);
  display: inline-block;
  font-weight: 900;
  margin-bottom: 2rem;
}

.objectives-grid h3 {
  font-size: 1.18rem;
  line-height: 1.18;
  margin: 0;
  overflow-wrap: anywhere;
}

.objectives-grid p {
  color: var(--muted);
  margin: 0.9rem 0 0;
}

.work-section {
  max-width: none;
  background: var(--ink);
  color: var(--paper);
}

.work-section .section-heading,
.work-grid {
  margin-left: auto;
  margin-right: auto;
  max-width: var(--content);
}

.work-section .eyebrow {
  color: var(--sun);
}

.work-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.work-card {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius);
  min-height: 235px;
  padding: 1.35rem;
  transition: background 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.work-card:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(245, 200, 76, 0.38);
  transform: translateY(-2px);
}

.work-card span {
  color: var(--sun);
  display: inline-block;
  font-weight: 900;
  margin-bottom: 2.8rem;
}

.work-card p {
  color: rgba(255, 255, 255, 0.72);
}

.work-card .work-detail {
  color: rgba(255, 255, 255, 0.86);
  font-size: 0.92rem;
  margin-top: 0.8rem;
}

.output-layout {
  display: grid;
  gap: 1rem;
  grid-template-columns: minmax(280px, 0.42fr) minmax(0, 1fr);
}

.output-feature {
  background:
    linear-gradient(145deg, rgba(0, 138, 115, 0.98), rgba(18, 87, 183, 0.84)),
    var(--green);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  color: var(--paper);
  min-height: 360px;
  padding: clamp(1.3rem, 3vw, 2rem);
}

.output-feature p {
  color: rgba(255, 255, 255, 0.84);
}

.text-link {
  color: var(--blue);
  display: inline-block;
  font-weight: 850;
  margin-top: 1.5rem;
}

.output-feature .text-link {
  color: var(--paper);
}

.output-list {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 18px 42px rgba(16, 32, 39, 0.06);
  overflow: hidden;
}

.output-list a {
  align-items: center;
  background: var(--paper);
  display: grid;
  gap: 1rem;
  grid-template-columns: 72px 1fr;
  min-height: 74px;
  padding: 1rem 1.2rem;
  text-decoration: none;
}

.output-list a + a {
  border-top: 1px solid var(--line);
}

.output-list a:hover,
.output-list a:focus-visible {
  background: var(--soft);
  outline: none;
}

.output-list span {
  color: var(--blue);
  font-weight: 900;
}

.output-list strong {
  line-height: 1.25;
}

.materials-detail-section {
  padding-top: clamp(2.8rem, 5vw, 4.5rem);
}

.materials-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.material-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 18px 42px rgba(16, 32, 39, 0.06);
  display: flex;
  flex-direction: column;
  min-height: 300px;
  padding: 1.2rem;
  scroll-margin-top: 105px;
}

.material-card span {
  color: var(--blue);
  font-weight: 900;
  margin-bottom: 2rem;
}

.material-card h3 {
  font-size: 1.12rem;
  line-height: 1.18;
  margin: 0;
  overflow-wrap: anywhere;
}

.material-card p {
  color: var(--muted);
  margin: 1rem 0;
  overflow-wrap: anywhere;
}

.material-card small {
  color: var(--green);
  display: block;
  font-weight: 850;
  line-height: 1.35;
  margin-top: auto;
}

.material-card .status-note {
  color: var(--coral);
  margin-top: 0.8rem;
}

.featured-material {
  background:
    linear-gradient(145deg, rgba(16, 32, 39, 0.96), rgba(18, 87, 183, 0.9)),
    var(--ink);
  color: var(--paper);
}

.featured-material p {
  color: rgba(255, 255, 255, 0.78);
}

.featured-material span,
.featured-material .text-link {
  color: var(--sun);
}

.news-section {
  max-width: none;
  background: var(--soft);
}

.news-section .section-heading,
.news-grid,
.seminar-archive {
  margin-left: auto;
  margin-right: auto;
  max-width: var(--content);
}

.news-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.news-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 18px 42px rgba(16, 32, 39, 0.06);
  display: flex;
  flex-direction: column;
  min-height: 310px;
  overflow: hidden;
  transition: border-color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.news-card > div {
  padding: 1.25rem;
}

.news-card img {
  aspect-ratio: 16 / 10;
  background: var(--soft);
  object-fit: contain;
  padding: 0.35rem;
  width: 100%;
}

.news-card:hover {
  border-color: rgba(232, 93, 63, 0.38);
  box-shadow: 0 24px 50px rgba(16, 32, 39, 0.1);
  transform: translateY(-2px);
}

.news-card time {
  color: var(--coral);
  display: block;
  font-size: 0.84rem;
  font-weight: 900;
  margin-bottom: 1.1rem;
}

.news-card a {
  color: var(--blue);
  display: inline-block;
  font-weight: 850;
  margin-top: 1rem;
}

.seminar-archive {
  display: grid;
  gap: 1rem;
  margin-top: 1.25rem;
}

.seminar-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 18px 42px rgba(16, 32, 39, 0.06);
  display: grid;
  gap: 1.2rem;
  grid-template-columns: minmax(170px, 0.25fr) minmax(0, 1fr) minmax(240px, 0.34fr);
  padding: 1.25rem;
  scroll-margin-top: 105px;
}

.seminar-media {
  align-self: start;
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin: 0;
  overflow: hidden;
}

.seminar-media img {
  aspect-ratio: 4 / 3;
  background: var(--soft);
  object-fit: contain;
  padding: 0.35rem;
  width: 100%;
}

.seminar-card time {
  color: var(--coral);
  display: block;
  font-size: 0.84rem;
  font-weight: 900;
  margin-bottom: 0.6rem;
}

.seminar-card h3 {
  font-size: 1.22rem;
  line-height: 1.18;
  margin: 0;
}

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

.seminar-card dl {
  display: grid;
  gap: 0.75rem;
  margin: 0;
}

.seminar-card dt {
  color: var(--green);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.seminar-card dd {
  color: var(--muted);
  margin: 0.12rem 0 0;
}

.seminar-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 0.2rem;
}

.people-section {
  max-width: none;
}

.people-section .section-heading,
.people-section .section-intro,
.people-grid {
  margin-left: auto;
  margin-right: auto;
  max-width: var(--content);
}

.section-intro {
  color: var(--muted);
  margin-top: -1.4rem;
  max-width: 820px;
}

.people-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 2rem;
}

.person-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 18px 42px rgba(16, 32, 39, 0.06);
  display: grid;
  gap: 1rem;
  grid-template-columns: 118px minmax(0, 1fr);
  min-height: 275px;
  padding: 1rem;
}

.person-card img {
  aspect-ratio: 1;
  border-radius: var(--radius);
  object-fit: cover;
  width: 100%;
}

.person-card h3 {
  font-size: 1.08rem;
  line-height: 1.18;
  margin: 0;
}

.person-role,
.person-institution,
.person-bio {
  margin: 0.45rem 0 0;
}

.person-role {
  color: var(--green);
  font-weight: 850;
  line-height: 1.3;
}

.person-institution {
  color: var(--blue);
  font-size: 0.88rem;
  font-weight: 850;
  line-height: 1.35;
}

.person-bio {
  color: var(--muted);
  font-size: 0.93rem;
}

.person-links {
  display: flex;
  gap: 0.75rem;
  margin-top: 0.1rem;
}

.consortium-section {
  max-width: min(1440px, 100%);
}

.consortium-section > .section-heading,
.consortium-section > .consortium-figure,
.consortium-section > .partner-details {
  margin-left: auto;
  margin-right: auto;
  max-width: var(--content);
}

.partner-network {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.82), rgba(244, 250, 247, 0.9)),
    var(--soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 18px 42px rgba(16, 32, 39, 0.08);
  margin: clamp(1.8rem, 4vw, 3rem) 0;
  overflow: hidden;
  padding: clamp(1rem, 2.4vw, 1.5rem);
}

.network-intro {
  align-items: end;
  display: grid;
  gap: 1rem;
  grid-template-columns: minmax(0, 0.92fr) minmax(280px, 0.8fr);
  margin-bottom: 1rem;
}

.network-intro h3 {
  font-size: clamp(2rem, 4vw, 3.65rem);
  line-height: 0.98;
  margin: 0;
  max-width: 820px;
}

.network-intro > p {
  color: var(--muted);
  margin: 0;
}

.network-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-bottom: 1rem;
}

.network-filter {
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(16, 32, 39, 0.16);
  border-radius: var(--radius);
  color: var(--ink);
  cursor: pointer;
  font-size: 0.82rem;
  font-weight: 850;
  line-height: 1;
  min-height: 2.35rem;
  padding: 0.65rem 0.85rem;
}

.network-filter:hover,
.network-filter:focus-visible,
.network-filter.is-active {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper);
  outline: none;
}

.network-layout {
  display: grid;
  gap: 0.9rem;
  grid-template-columns: minmax(0, 1fr) clamp(270px, 24vw, 310px);
}

.network-scroll {
  background:
    linear-gradient(90deg, rgba(18, 87, 183, 0.07) 1px, transparent 1px),
    linear-gradient(180deg, rgba(0, 138, 115, 0.07) 1px, transparent 1px),
    rgba(255, 255, 255, 0.66);
  background-size: 64px 64px;
  border: 1px solid rgba(16, 32, 39, 0.12);
  border-radius: var(--radius);
  min-width: 0;
  overflow: hidden;
  overscroll-behavior-inline: contain;
}

.network-stage {
  aspect-ratio: 1320 / 1200;
  min-width: 0;
  position: relative;
  width: 100%;
}

.network-svg,
.network-nodes {
  height: 100%;
  inset: 0;
  position: absolute;
  width: 100%;
}

.network-svg {
  pointer-events: none;
}

.network-orbit {
  fill: none;
  opacity: 0.42;
  stroke: rgba(16, 32, 39, 0.28);
  stroke-dasharray: 7 12;
  stroke-width: 1.6;
}

.network-orbit-outer {
  opacity: 0.24;
}

.network-edge {
  fill: none;
  opacity: 0.38;
  stroke: var(--edge-color, var(--blue));
  stroke-linecap: round;
  stroke-width: 2;
  transition: opacity 180ms ease, stroke-width 180ms ease;
}

.country-edge {
  opacity: 0.28;
  stroke-width: 2.7;
}

.organization-edge {
  opacity: 0.46;
  stroke-width: 1.7;
}

.network-edge.is-active {
  opacity: 0.92;
  stroke-width: 4;
}

.network-edge.is-muted {
  opacity: 0.07;
}

.network-node {
  align-items: center;
  border: 0;
  cursor: pointer;
  display: inline-flex;
  justify-content: center;
  position: absolute;
  transform: translate(-50%, -50%);
  transition: opacity 180ms ease, transform 180ms ease, box-shadow 180ms ease;
  z-index: 2;
}

.network-node:hover,
.network-node:focus-visible,
.network-node.is-active {
  box-shadow: 0 18px 36px rgba(16, 32, 39, 0.2);
  outline: 3px solid rgba(245, 200, 76, 0.72);
  outline-offset: 3px;
  transform: translate(-50%, -50%) scale(1.055);
  z-index: 5;
}

.network-node.is-selected {
  z-index: 8;
}

.network-node:hover,
.network-node:focus-visible {
  z-index: 12;
}

.network-node.is-muted {
  opacity: 0.28;
}

.center-node {
  background:
    linear-gradient(135deg, rgba(18, 87, 183, 0.98), rgba(0, 138, 115, 0.98)),
    var(--ink);
  border: 4px solid var(--paper);
  border-radius: 50%;
  box-shadow: 0 22px 52px rgba(18, 87, 183, 0.24);
  color: var(--paper);
  height: 80px;
  line-height: 1;
  overflow: hidden;
  text-transform: none;
  width: 80px;
}

.center-node::before {
  background: url("assets/acastemy-logo-small.png") center / 58% auto no-repeat;
  content: "";
  inset: 0;
  opacity: 0.22;
  position: absolute;
  z-index: 0;
}

.center-node strong {
  font-size: 0.84rem;
  font-weight: 950;
  position: relative;
  z-index: 1;
}

.country-node {
  background: var(--country-flag);
  border: 3px solid rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  box-shadow: 0 16px 32px rgba(16, 32, 39, 0.15);
  color: #ffffff;
  flex-direction: column;
  height: 60px;
  overflow: hidden;
  padding: 0.36rem;
  text-align: center;
  width: 60px;
}

.country-node::before {
  background: linear-gradient(180deg, rgba(16, 32, 39, 0.18), rgba(16, 32, 39, 0.32));
  border-radius: inherit;
  content: "";
  inset: 0;
  position: absolute;
  z-index: 0;
}

.country-node > * {
  position: relative;
  z-index: 2;
}

.country-node.has-no-visible-orgs {
  opacity: 0.36;
}

.country-node[data-id="international"] {
  background:
    radial-gradient(circle at center, rgba(255, 255, 255, 0.78), rgba(255, 255, 255, 0.16) 54%, rgba(16, 32, 39, 0.14)),
    linear-gradient(135deg, rgba(18, 87, 183, 0.5), rgba(0, 138, 115, 0.5), rgba(245, 200, 76, 0.5));
  padding: 0.48rem;
}

.country-node[data-id="international"]::before {
  background: radial-gradient(circle at center, rgba(255, 255, 255, 0.18), rgba(16, 32, 39, 0.08) 72%);
}

.country-cluster {
  display: grid;
  gap: 0.12rem;
  grid-template-columns: repeat(3, 1fr);
  place-items: center;
}

.country-cluster-dot {
  background: var(--mini-flag);
  border: 1.4px solid rgba(255, 255, 255, 0.94);
  border-radius: 50%;
  box-shadow: 0 4px 10px rgba(16, 32, 39, 0.18);
  height: 11px;
  overflow: hidden;
  position: relative;
  width: 11px;
}

.country-cluster-dot[data-country="turkey"]::before {
  background: #ffffff;
  border-radius: 50%;
  content: "";
  height: 7px;
  left: 4px;
  position: absolute;
  top: 4px;
  width: 7px;
}

.country-cluster-dot[data-country="turkey"]::after {
  background: #e30a17;
  border-radius: 50%;
  content: "";
  height: 6px;
  left: 6px;
  position: absolute;
  top: 4px;
  width: 6px;
}

.country-name {
  color: #f7d35f;
  font-size: 0.82rem;
  font-weight: 950;
  line-height: 1.08;
  max-width: 76px;
  overflow-wrap: anywhere;
  text-shadow:
    0 1px 0 rgba(7, 16, 20, 0.92),
    1px 0 0 rgba(7, 16, 20, 0.92),
    0 -1px 0 rgba(7, 16, 20, 0.92),
    -1px 0 0 rgba(7, 16, 20, 0.92),
    0 2px 8px rgba(7, 16, 20, 0.5);
  -webkit-text-stroke: 0.58px rgba(7, 16, 20, 0.9);
}

.country-node[data-id="international"] .country-name {
  font-size: 0.68rem;
  max-width: 82px;
  overflow-wrap: normal;
  white-space: nowrap;
}

.country-symbol {
  inset: 0;
  pointer-events: none;
  position: absolute;
  z-index: 1;
}

.country-symbol .crescent {
  background: #ffffff;
  border-radius: 50%;
  height: 20px;
  left: 17px;
  position: absolute;
  top: 14px;
  width: 20px;
}

.country-symbol .crescent::after {
  background: #e30a17;
  border-radius: 50%;
  content: "";
  height: 17px;
  left: 6px;
  position: absolute;
  top: 2px;
  width: 17px;
}

.country-symbol .star {
  background: #ffffff;
  clip-path: polygon(50% 0%, 61% 36%, 99% 36%, 68% 57%, 80% 94%, 50% 72%, 20% 94%, 32% 57%, 1% 36%, 39% 36%);
  height: 10px;
  left: 36px;
  position: absolute;
  top: 20px;
  transform: rotate(18deg);
  width: 10px;
}

.organization-node {
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(16, 32, 39, 0.13);
  border-radius: 50%;
  border-top: 4px solid var(--organization-accent, var(--blue));
  box-shadow: 0 12px 28px rgba(16, 32, 39, 0.1);
  color: var(--ink);
  height: 30px;
  padding: 0;
  width: 30px;
}

.network-icon {
  color: var(--organization-accent, var(--blue));
  height: 17px;
  width: 17px;
}

.organization-label {
  background: rgba(255, 255, 255, 0.97);
  border: 1px solid rgba(16, 32, 39, 0.14);
  border-radius: var(--radius);
  box-shadow: 0 12px 28px rgba(16, 32, 39, 0.14);
  color: var(--ink);
  font-size: 0.72rem;
  font-weight: 850;
  left: 50%;
  line-height: 1.12;
  max-width: 142px;
  min-width: 104px;
  opacity: 0;
  overflow-wrap: anywhere;
  padding: 0.48rem 0.55rem;
  pointer-events: none;
  position: absolute;
  text-align: center;
  top: calc(100% + 0.38rem);
  transform: translateX(-50%);
  transition: opacity 160ms ease, visibility 160ms ease;
  visibility: hidden;
}

.organization-node:hover .organization-label,
.organization-node:focus-visible .organization-label,
.organization-node.is-selected .organization-label {
  opacity: 1;
  visibility: visible;
  z-index: 1;
}

.network-panel {
  align-self: start;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(16, 32, 39, 0.13);
  border-radius: var(--radius);
  box-shadow: 0 12px 30px rgba(16, 32, 39, 0.08);
  display: flex;
  flex-direction: column;
  min-height: 420px;
  padding: 1rem;
  transform: translateY(var(--network-panel-offset, 0));
  transition: transform 170ms ease;
  will-change: transform;
}

.network-panel > span {
  color: var(--green);
  font-size: 0.76rem;
  font-weight: 950;
  text-transform: uppercase;
}

.network-panel h4 {
  font-size: 1.35rem;
  line-height: 1.08;
  margin: 0.35rem 0 0;
  overflow-wrap: anywhere;
}

.network-panel p {
  color: var(--muted);
  margin: 0.65rem 0 1rem;
}

.network-panel dl {
  display: grid;
  gap: 0.55rem;
  margin: 0 0 1rem;
}

.network-panel dl div {
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0.7rem;
}

.network-panel dt {
  color: var(--green);
  font-size: 0.72rem;
  font-weight: 950;
  text-transform: uppercase;
}

.network-panel dd {
  font-weight: 850;
  margin: 0.12rem 0 0;
}

.network-panel ul {
  display: grid;
  gap: 0.45rem;
  list-style: none;
  margin: 0;
  max-height: 260px;
  overflow: auto;
  padding: 0;
}

.network-panel li {
  border-left: 3px solid var(--blue);
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.25;
  padding-left: 0.55rem;
}

.consortium-figure {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 18px 42px rgba(16, 32, 39, 0.06);
  margin: 0;
  overflow: hidden;
  padding: clamp(0.8rem, 2vw, 1.4rem);
}

.consortium-figure img {
  width: 100%;
}

.partner-details {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin-top: 1rem;
  overflow: hidden;
}

.partner-details summary {
  cursor: pointer;
  font-weight: 900;
  padding: 1rem 1.2rem;
}

.partner-list {
  column-gap: 2rem;
  columns: 2;
  color: var(--muted);
  margin: 0;
  padding: 0 1.2rem 1.2rem 2.5rem;
}

.partner-list li {
  break-inside: avoid;
  margin-bottom: 0.45rem;
}

.contact-section {
  align-items: center;
  background:
    linear-gradient(135deg, rgba(18, 87, 183, 0.13), rgba(245, 200, 76, 0.24)),
    var(--soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  display: grid;
  gap: 2rem;
  grid-template-columns: minmax(0, 1fr) auto;
  margin-bottom: clamp(4rem, 8vw, 7rem);
}

.contact-section .contact-channels {
  display: grid;
  gap: 0.75rem;
  grid-column: 1 / -1;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 0;
}

.contact-channels div {
  background: rgba(255, 255, 255, 0.76);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1rem;
}

.contact-channels dt {
  color: var(--green);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.contact-channels dd {
  margin: 0.22rem 0 0;
  overflow-wrap: anywhere;
}

.contact-channels a {
  color: var(--blue);
  font-weight: 850;
}

.contact-section p {
  max-width: 720px;
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  justify-content: flex-end;
  min-width: min(100%, 360px);
}

.contact-section .button-primary {
  background: var(--ink);
  color: var(--paper);
}

.site-footer {
  background: var(--ink);
  color: rgba(255, 255, 255, 0.76);
  padding: clamp(2.5rem, 6vw, 4.5rem) clamp(1rem, 4vw, 3.5rem);
}

.footer-inner {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 280px minmax(0, 1fr);
  margin: 0 auto;
  max-width: var(--content);
}

.footer-inner img {
  background: var(--paper);
  border-radius: var(--radius);
  padding: 0.8rem;
}

.footer-inner p {
  margin: 0;
}

.footer-inner dl {
  display: grid;
  gap: 1rem;
  grid-column: 2;
  margin: 0;
}

.footer-inner dt {
  color: var(--sun);
  font-size: 0.82rem;
  font-weight: 900;
  text-transform: uppercase;
}

.footer-inner dd {
  margin: 0.15rem 0 0;
}

@media (max-width: 1000px) {
  .network-layout {
    grid-template-columns: 1fr;
  }

  .network-panel {
    min-height: auto;
    transform: none;
  }
}

@media (max-width: 1040px) {
  .site-header {
    grid-template-columns: auto auto;
  }

  .menu-toggle {
    display: inline-flex;
    justify-self: end;
    position: relative;
  }

  .site-nav,
  .language-switcher {
    display: none;
  }

  .site-header.is-open .site-nav,
  .site-header.is-open .language-switcher {
    display: flex;
  }

  .site-header.is-open .site-nav {
    align-items: stretch;
    border-top: 1px solid var(--line);
    flex-direction: column;
    grid-column: 1 / -1;
    padding-top: 0.75rem;
  }

  .site-header.is-open .language-switcher {
    grid-column: 1 / -1;
    justify-self: start;
  }

  .section-heading,
  .split-section,
  .output-layout,
  .network-intro,
  .contact-section,
  .footer-inner {
    grid-template-columns: 1fr;
  }

  .hero h1 {
    font-size: 6.4rem;
  }

  .section-heading h2,
  .text-panel h2,
  .contact-section h2 {
    font-size: 3rem;
  }

  .hero-stats,
  .intro-grid,
  .pathway-grid,
  .objectives-grid,
  .work-grid,
  .news-grid,
  .materials-grid,
  .people-grid,
  .contact-section .contact-channels {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .seminar-card {
    grid-template-columns: minmax(160px, 0.34fr) minmax(0, 1fr);
  }

  .seminar-card dl {
    grid-column: 1 / -1;
  }

  .pathway-grid::before {
    display: none;
  }

  .footer-inner dl {
    grid-column: auto;
  }

  .network-panel {
    min-height: auto;
  }
}

@media (max-width: 680px) {
  .site-header {
    min-height: 68px;
  }

  .brand img {
    height: 44px;
    width: 44px;
  }

  .hero {
    min-height: calc(78svh - 68px);
    padding-top: 3.2rem;
  }

  .hero h1 {
    font-size: 4.5rem;
  }

  .hero-lede {
    font-size: 1.05rem;
  }

  .hero-backdrop {
    display: none;
  }

  .hero-actions,
  .contact-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .network-filters {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 0.2rem;
  }

  .network-filter {
    white-space: nowrap;
  }

  .hero-stats,
  .intro-grid,
  .pathway-grid,
  .objectives-grid,
  .work-grid,
  .news-grid,
  .materials-grid,
  .people-grid,
  .contact-section .contact-channels {
    grid-template-columns: 1fr;
  }

  .hero-stats div,
  .hero-stats div:first-child,
  .hero-stats div:last-child,
  .intro-grid article:first-child,
  .intro-grid article:last-child {
    border-radius: var(--radius);
  }

  .hero-stats div {
    border: 1px solid var(--line);
  }

  .section-heading h2,
  .text-panel h2,
  .contact-section h2 {
    font-size: 2.25rem;
  }

  .intro-grid article,
  .pathway-grid article,
  .objectives-grid article,
  .work-card,
  .news-card,
  .material-card {
    min-height: auto;
  }

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

  .person-card img {
    max-width: 150px;
  }

  .partner-network {
    padding: 0.9rem;
  }

  .network-filters {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 0.2rem;
    scrollbar-width: thin;
  }

  .network-filter {
    flex: 0 0 auto;
  }

  .network-scroll {
    overflow-x: auto;
    padding-bottom: 0.2rem;
    scrollbar-width: thin;
  }

  .network-stage {
    min-width: 640px;
  }

  .center-node {
    height: 76px;
    width: 76px;
  }

  .country-node {
    height: 58px;
    width: 58px;
  }

  .country-cluster-dot {
    height: 11px;
    width: 11px;
  }

  .country-symbol .crescent {
    height: 19px;
    left: 16px;
    top: 14px;
    width: 19px;
  }

  .country-symbol .crescent::after {
    height: 16px;
    left: 6px;
    top: 2px;
    width: 16px;
  }

  .country-symbol .star {
    height: 9px;
    left: 34px;
    top: 20px;
    width: 9px;
  }

  .organization-node {
    height: 30px;
    width: 30px;
  }

  .network-icon {
    height: 17px;
    width: 17px;
  }

  .organization-label {
    font-size: 0.66rem;
    min-width: 92px;
  }

  .card-index,
  .work-card span,
  .news-card time {
    margin-bottom: 1.4rem;
  }

  .visual-panel {
    min-height: 300px;
  }

  .output-list a {
    grid-template-columns: 1fr;
  }

  .partner-list {
    columns: 1;
  }
}
