:root {
  --navy: #082d5b;
  --navy-2: #0b3a74;
  --blue: #1769c2;
  --cyan: #2ab9cf;
  --green: #1ca66f;
  --orange: #ed8a23;
  --ink: #182536;
  --muted: #66758a;
  --line: #dfe6ef;
  --paper: #ffffff;
  --soft: #f5f8fc;
  --soft-blue: #edf5ff;
  --shadow: 0 18px 50px rgba(13, 45, 83, 0.10);
  --radius: 22px;
  --header-h: 78px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 22px);
}

body {
  margin: 0;
  color: var(--ink);
  background: #fff;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.65;
}

a {
  color: inherit;
}

/* Header and hero */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 4vw;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(8, 45, 91, 0.08);
}

.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  min-width: 210px;
  text-decoration: none;
}

.brand-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  color: #fff;
  background: linear-gradient(135deg, var(--navy), var(--blue));
  box-shadow: 0 8px 18px rgba(23, 105, 194, 0.22);
}

.brand strong {
  display: block;
  color: var(--navy);
  font: 700 1.15rem/1 "Space Grotesk", sans-serif;
}

.brand small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.72rem;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

.main-nav > a {
  padding: 10px 12px;
  border-radius: 10px;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  transition: 0.2s ease;
}

.main-nav > a:hover {
  color: var(--blue);
  background: var(--soft-blue);
}

.main-nav .muted-link {
  color: #98a1ad;
}

.main-nav .nav-submit {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 14px;
  border-radius: 9px;
  color: #fff;
  background: var(--green);
  font-size: 0.84rem;
  font-weight: 700;
  transition: transform 0.2s ease, filter 0.2s ease;
}

.main-nav .nav-submit:hover {
  color: #fff;
  background: var(--green);
  transform: translateY(-1px);
  filter: brightness(0.94);
}

.main-nav .nav-submit i {
  font-size: 0.8rem;
}

.main-nav .nav-cta {
  margin-left: 6px;
  padding-inline: 16px;
  color: #fff;
  background: var(--navy);
}

.main-nav .nav-cta:hover {
  color: #fff;
  background: var(--navy-2);
  transform: translateY(-1px);
}

.nav-toggle {
  display: none;
  border: 0;
  background: transparent;
  color: var(--navy);
  font-size: 1.6rem;
}

.hero {
  position: relative;
  overflow: hidden;
  min-height: 500px;
  display: flex;
  align-items: center;
  color: #fff;
  background:
    linear-gradient(
      90deg,
      rgba(4, 27, 55, 0.88) 0%,
      rgba(4, 27, 55, 0.65) 50%,
      rgba(4, 27, 55, 0.20) 100%
    ),
    url("img/barcelona.jpg") center 50% / cover no-repeat;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 150px;
  background: linear-gradient(to top, rgba(4, 23, 48, 0.34), transparent);
  pointer-events: none;
}

.hero-grid-overlay,
.hero-orb {
  display: none;
}

.hero-inner {
  position: relative;
  z-index: 2;
  width: min(1420px, 92vw);
  margin: 0 auto;
  padding: 42px 0;
}

.hero-copy {
  width: 100%;
  max-width: 1150px;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 11px;
  color: #b9d9f8;
  text-transform: uppercase;
  letter-spacing: 0.17em;
  font-size: 0.76rem;
  font-weight: 700;
}

.eyebrow span {
  width: 42px;
  height: 2px;
  background: var(--cyan);
}

.hero h1 {
  max-width: 1100px;
  margin: 12px 0 8px;
  font: 700 clamp(1.9rem, 3vw, 3rem)/1.05 "Space Grotesk", sans-serif;
  letter-spacing: -0.035em;
}

.hero h1 em {
  color: #78e0ed;
  font-style: normal;
}

.hero-acronym {
  margin: 0 0 18px;
  color: #9ed6ff;
  font: 600 1.25rem/1.2 "Space Grotesk", sans-serif;
}

.hero-lead {
  max-width: 780px;
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 1.06rem;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 24px;
  margin: 26px 0 0;
  color: #dceafd;
  font-size: 0.92rem;
  font-weight: 600;
}

.hero-meta span {
  display: flex;
  align-items: center;
  gap: 8px;
}

.hero-meta i {
  color: #66d9e7;
}

.hero-credit {
  position: absolute;
  right: 24px;
  bottom: 12px;
  z-index: 3;
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.68rem;
}

.hero-credit a {
  color: inherit;
  text-decoration: none;
}

.hero-credit a:hover {
  color: #fff;
  text-decoration: underline;
}

/* Main content */
.page-shell {
  width: min(1420px, 92vw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 42px;
  align-items: start;
}

.content-column {
  min-width: 0;
}

.section {
  padding: 86px 0;
  border-bottom: 1px solid var(--line);
}

.section-tinted {
  position: relative;
}

.section-tinted::before {
  content: "";
  position: absolute;
  inset: 26px -30px;
  z-index: -1;
  border-radius: 34px;
  background: linear-gradient(135deg, #f7faff 0%, #f4f9f7 100%);
}

.section-heading {
  max-width: 800px;
  margin-bottom: 34px;
}

#about .section-heading {
  width: 100%;
  max-width: 100%;
}

#about .section-heading p {
  width: 100%;
  max-width: none;
  margin: 0;
  text-align: justify;
  text-justify: inter-word;
  hyphens: auto;
  line-height: 1.65;
}

#about .section-heading p em {
  color: var(--navy);
  font-style: normal;
  font-weight: 700;
}

.section-kicker {
  display: inline-block;
  margin-bottom: 8px;
  color: var(--blue);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.76rem;
  font-weight: 800;
}

.section-heading h2 {
  margin: 0 0 12px;
  color: var(--navy);
  font: 700 clamp(2rem, 3vw, 3rem)/1.1 "Space Grotesk", sans-serif;
  letter-spacing: -0.03em;
}

.section-heading p {
  margin: 0;
  color: var(--muted);
  font-size: 1rem;
}

.topics-panel {
  margin-top: 24px;
  padding: 32px;
  border-radius: var(--radius);
  color: #fff;
  background: linear-gradient(135deg, #092f5f, #0a4679);
  box-shadow: var(--shadow);
}

.topics-panel h3 {
  margin: 0 0 6px;
  font: 700 1.7rem/1.2 "Space Grotesk", sans-serif;
}

.topics-panel .section-kicker {
  color: #6eddeb;
}

.topics-grid {
  display: block;
  width: 100%;
}

.topics-grid ul {
  width: 100%;
  margin: 0;
  padding: 0;
  list-style: none;
}

.topics-grid li {
  position: relative;
  width: 100%;
  margin: 9px 0;
  padding-left: 24px;
  color: #eef6ff;
  font-size: 1rem;
  line-height: 1.5;
}

.topics-grid li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.62em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #50d2a0;
  box-shadow: 0 0 0 5px rgba(80, 210, 160, 0.08);
}

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

.submission-card {
  padding: 25px;
  border: 1px solid #dce7f3;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.86);
}

.submission-card i {
  color: var(--blue);
  font-size: 1.7rem;
}

.submission-card span,
.submission-card strong,
.submission-card small {
  display: block;
}

.submission-card span {
  margin-top: 16px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.75rem;
  font-weight: 800;
}

.submission-card strong {
  margin: 4px 0 8px;
  color: var(--navy);
  font: 700 1.3rem/1.2 "Space Grotesk", sans-serif;
}

.submission-card small {
  color: var(--muted);
  line-height: 1.55;
}

.submission-note {
  margin-top: 20px;
  padding: 22px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border: 1px dashed #adc5df;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.72);
}

.submission-note h3 {
  margin: 0 0 5px;
  color: var(--navy);
  font-size: 1rem;
}

.submission-note h3 i {
  margin-right: 5px;
  color: var(--orange);
}

.submission-note p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.submission-note .button {
  flex: 0 0 auto;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 13px 18px;
  border-radius: 12px;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 700;
  transition: 0.2s ease;
}

.button-primary {
  color: #fff;
  background: var(--blue);
  box-shadow: 0 10px 24px rgba(23, 105, 194, 0.24);
}

.button-primary:hover {
  background: #0f5baa;
  transform: translateY(-2px);
}

.timeline {
  position: relative;
  display: grid;
  gap: 14px;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 49px;
  top: 54px;
  bottom: 54px;
  width: 2px;
  background: #d9e6f3;
}

.timeline-item {
  position: relative;
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 22px;
  align-items: center;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
}

.timeline-date {
  position: relative;
  z-index: 2;
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
  align-content: center;
  border: 1px solid #d7e8fb;
  border-radius: 17px;
  color: var(--navy);
  background: var(--soft-blue);
}

.timeline-date span {
  font: 700 1.05rem/1 "Space Grotesk", sans-serif;
}

.timeline-date small {
  margin-top: 4px;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.timeline-item h3 {
  margin: 0 0 4px;
  color: var(--navy);
  font: 700 1.05rem/1.25 "Space Grotesk", sans-serif;
}

.timeline-item p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.timeline-item.highlight {
  border-color: #bde6d2;
  background: linear-gradient(90deg, #f8fffb, #fff);
}

.timeline-item.highlight .timeline-date {
  border-color: #cfeedd;
  color: #0f8155;
  background: #e9f8f1;
}

/* Committee, related links and footer */
.subheading {
  margin: 34px 0 16px;
  color: var(--navy);
  font: 700 1.25rem/1.2 "Space Grotesk", sans-serif;
}

.chair-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.person-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
}

.person-card-featured {
  box-shadow: 0 8px 24px rgba(13, 45, 83, 0.04);
}

.avatar {
  flex: 0 0 110px;
  width: 110px;
  height: 110px;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: 14px;
}

.avatar-attila {
  object-position: center 30%;
}

.avatar-amjad {
  object-position: center center;
}

.person-card h4 {
  margin: 0 0 3px;
  color: var(--navy);
  font-size: 1rem;
}

.person-card p {
  margin: 0 0 6px;
  color: var(--muted);
  font-size: 0.87rem;
}

.person-card a {
  color: var(--blue);
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 700;
}

.person-card a:hover {
  text-decoration: underline;
}

.person-email {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--muted);
  font-size: 0.82rem;
}

.person-email strong {
  font-weight: 600;
}

.pc-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.pc-grid > div {
  padding: 15px 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.76);
}

.pc-grid strong,
.pc-grid span {
  display: block;
}

.pc-grid strong {
  color: var(--navy);
  font-size: 0.88rem;
}

.pc-grid span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.35;
}

.support-rail {
  position: relative;
}

.support-card {
  position: sticky;
  top: calc(var(--header-h) + 22px);
  margin-top: 86px;
  padding: 22px;
  border: 1px solid #dce7f3;
  border-radius: 22px;
  background: linear-gradient(180deg, #f7fbff, #fff);
  box-shadow: 0 16px 40px rgba(13, 45, 83, 0.08);
}

.support-title {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--navy);
  font: 700 1rem/1.2 "Space Grotesk", sans-serif;
}

.support-title i {
  color: var(--blue);
}

.support-logo {
  display: flex;
  align-items: center;
  gap: 15px;
  margin: 10px 0;
  padding: 13px;
  border: 1px solid #e3ebf4;
  border-radius: 15px;
  background: #fff;
  text-decoration: none;
  transition: 0.2s ease;
}

.support-logo:hover {
  transform: translateX(-3px);
  border-color: #bfd5ec;
  box-shadow: 0 8px 20px rgba(13, 45, 83, 0.07);
}

.logo-symbol {
  flex: 0 0 64px;
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo-symbol img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.support-logo strong,
.support-logo small {
  display: block;
}

.support-logo strong {
  color: var(--navy);
  font-size: 0.82rem;
  line-height: 1.15;
}

.support-logo small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.67rem;
}

.site-footer {
  min-height: 130px;
  padding: 28px 4vw;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  color: #dce8f5;
  background: #06274e;
}

.site-footer strong,
.site-footer span {
  display: block;
}

.site-footer strong {
  color: #fff;
  font: 700 1rem/1.2 "Space Grotesk", sans-serif;
}

.site-footer span {
  margin-top: 4px;
  font-size: 0.78rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.footer-links a {
  color: #dce8f5;
  text-decoration: none;
  font-size: 0.78rem;
  font-weight: 700;
}

.footer-links a:hover {
  color: #7be2ed;
}

/* Responsive */
@media (max-width: 1120px) {
  .page-shell {
    grid-template-columns: 1fr;
  }

  .support-card {
    position: static;
    margin: 0 0 72px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .support-title {
    grid-column: 1 / -1;
  }

  .support-logo {
    margin: 0;
  }
}

@media (max-width: 900px) {
  :root {
    --header-h: 70px;
  }

  .site-header {
    padding-inline: 5vw;
  }

  .nav-toggle {
    display: block;
  }

  .main-nav {
    position: absolute;
    top: calc(100% + 1px);
    left: 4vw;
    right: 4vw;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 0 0 18px 18px;
    background: #fff;
    box-shadow: var(--shadow);
  }

  .main-nav.open {
    display: flex;
  }

  .main-nav .nav-submit,
  .main-nav .nav-cta {
    margin-left: 0;
    justify-content: center;
    text-align: center;
  }

  .hero {
    min-height: auto;
  }

  .hero-inner {
    padding: 72px 0 80px;
  }

  .submission-grid,
  .chair-grid,
  .pc-grid {
    grid-template-columns: 1fr;
  }

  .submission-note {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 620px) {
  .brand small {
    display: none;
  }

  .hero h1 {
    font-size: clamp(2rem, 9vw, 2.8rem);
  }

  .hero-lead {
    font-size: 0.96rem;
  }

  .hero-meta {
    display: grid;
    gap: 8px;
  }

  .hero-credit {
    right: 14px;
    bottom: 8px;
    max-width: calc(100% - 28px);
    text-align: right;
  }

  .section {
    padding: 66px 0;
  }

  .section-tinted::before {
    inset-inline: -10px;
  }

  #about .section-heading p {
    text-align: left;
    hyphens: none;
  }

  .topics-panel {
    padding: 24px 20px;
  }

  .timeline::before {
    left: 42px;
  }

  .timeline-item {
    grid-template-columns: 76px 1fr;
    gap: 12px;
    padding: 14px;
  }

  .timeline-date {
    width: 56px;
    height: 56px;
    border-radius: 14px;
  }

  .person-card {
    align-items: flex-start;
  }

  .avatar {
    flex-basis: 92px;
    width: 92px;
    height: 92px;
  }

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

  .support-title {
    grid-column: 1;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 430px) {
  .site-header {
    padding-inline: 4vw;
  }

  .brand {
    min-width: 0;
  }

  .hero-inner {
    padding: 56px 0 72px;
  }

  .hero h1 {
    font-size: clamp(1.85rem, 9.5vw, 2.45rem);
  }

  .topics-panel {
    padding: 22px 17px;
  }

  .topics-grid li {
    padding-left: 21px;
    font-size: 0.95rem;
  }

  .person-card {
    flex-direction: column;
  }

  .avatar {
    width: 100px;
    height: 100px;
    flex-basis: 100px;
  }
}

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