*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Geist, system-ui, sans-serif;
  font-size: 18px;
  line-height: 1.6;
  color: #132843;
  background: #fff;
  overflow-x: clip;
}

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

a {
  color: inherit;
}

.screen-reader-text,
.paes-skip {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.paes-skip:focus {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 10000;
  width: auto;
  height: auto;
  clip: auto;
  padding: 8px 12px;
  background: #fff;
  color: #132843;
}

.paes-main {
  overflow: visible;
}

.wp-site-blocks,
.entry-content,
.paes-main > .entry-content {
  margin: 0;
}

.paes-main > *:not(.wp-block-paes-hero):not(.wp-block-paes-about):not(.wp-block-paes-agenda):not(.wp-block-paes-speakers):not(.wp-block-paes-partners) {
  max-width: 1240px;
  margin-left: auto;
  margin-right: auto;
}

/* Header */
.paes-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  height: 80px;
  color: #fff;
  transition: background 0.2s ease, box-shadow 0.2s ease;
}
.paes-header.is-scrolled, body.is-nav-open .paes-header {
  position: fixed;
  background: rgba(19, 40, 67, 0.96);
  backdrop-filter: blur(8px);
}

.paes-header__inner {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 40px;
  height: 80px;
  padding: 0 100px;
  max-width: 1440px;
  margin: 0 auto;
}
@media (max-width: 1024px) {
  .paes-header__inner {
    padding: 0 48px;
  }
}
@media (max-width: 768px) {
  .paes-header__inner {
    padding: 0 24px;
  }
}

.paes-logo {
  position: relative;
  display: grid;
  place-items: center;
  width: 74px;
  height: 74px;
  text-decoration: none;
  color: #fff;
  flex-shrink: 0;
}
.paes-logo img {
  width: 74px;
  height: 74px;
  object-fit: contain;
}

.paes-logo__mark {
  width: 74px;
  height: 74px;
  object-fit: contain;
}

.paes-nav {
  display: flex;
  align-items: center;
  gap: 40px;
}
.paes-nav a {
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
  color: #fff;
}

.paes-lang {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
}
.paes-lang a {
  opacity: 0.55;
}
.paes-lang a.is-active {
  opacity: 1;
}

.paes-nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.paes-nav-toggle__bars,
.paes-nav-toggle__bars::before,
.paes-nav-toggle__bars::after {
  display: block;
  width: 22px;
  height: 2px;
  background: #fff;
  position: relative;
}

.paes-nav-toggle__bars::before,
.paes-nav-toggle__bars::after {
  content: "";
  position: absolute;
  left: 0;
}

.paes-nav-toggle__bars::before {
  top: -7px;
}

.paes-nav-toggle__bars::after {
  top: 7px;
}

@media (max-width: 900px) {
  .paes-header__inner {
    justify-content: space-between;
    gap: 16px;
  }
  .paes-logo {
    margin-right: auto;
  }
  .paes-nav-toggle {
    display: grid;
    place-items: center;
  }
  .paes-nav {
    display: none;
    position: absolute;
    top: 80px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
    padding: 24px;
    background: #132843;
  }
  body.is-nav-open .paes-nav {
    display: flex;
  }
}
/* Hero */
.wp-block-paes-hero,
.paes-hero {
  position: relative;
  min-height: 700px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 80px 100px;
  background-color: #132843;
  color: #fff;
  overflow: visible;
}
@media (max-width: 1024px) {
  .wp-block-paes-hero,
  .paes-hero {
    padding: 120px 48px 80px;
    min-height: 640px;
    justify-content: center;
  }
}
@media (max-width: 768px) {
  .wp-block-paes-hero,
  .paes-hero {
    padding: 96px 20px 48px;
    min-height: min(72svh, 560px);
    align-items: center;
    overflow: hidden;
  }
}

.paes-hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.paes-hero__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
}

.paes-hero__ribbon {
  position: absolute;
  left: clamp(0px, 6.25vw, 90px);
  top: 0;
  z-index: 2;
  width: clamp(200px, 24vw, 397px);
  height: calc(100% + clamp(6rem, 14vw, 12rem));
  max-width: none;
  object-fit: cover;
  object-position: top center;
  pointer-events: none;
}
@media (max-width: 1024px) {
  .paes-hero__ribbon {
    left: clamp(-32px, -2vw, 16px);
    width: clamp(180px, 28vw, 300px);
  }
}
@media (max-width: 768px) {
  .paes-hero__ribbon {
    left: 0;
    width: 42%;
    max-width: 160px;
    height: 100%;
    opacity: 0.55;
    object-fit: contain;
    object-position: top left;
  }
}

.paes-hero__copy {
  position: relative;
  z-index: 4;
  width: 720px;
  max-width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
}
@media (max-width: 768px) {
  .paes-hero__copy {
    gap: 20px;
    text-align: center;
  }
}

.paes-hero__title {
  margin: 0;
  width: 100%;
  font-family: "Instrument Serif", Georgia, serif;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.95);
  letter-spacing: 3px;
  line-height: 1.2;
}
.paes-hero__title span {
  display: block;
}
.paes-hero__title .line-1 {
  font-size: 48px;
}
.paes-hero__title .line-2,
.paes-hero__title .line-3 {
  font-size: 128px;
}
@media (max-width: 1100px) {
  .paes-hero__title .line-1 {
    font-size: 36px;
  }
  .paes-hero__title .line-2,
  .paes-hero__title .line-3 {
    font-size: 72px;
  }
}
@media (max-width: 768px) {
  .paes-hero__title {
    letter-spacing: 0.6px;
    text-shadow: 0 2px 16px rgba(19, 40, 67, 0.55);
  }
  .paes-hero__title .line-1 {
    font-size: clamp(16px, 5.4vw, 22px);
  }
  .paes-hero__title .line-2,
  .paes-hero__title .line-3 {
    font-size: clamp(28px, 9.6vw, 40px);
    line-height: 1.08;
  }
}

.paes-hero__meta {
  position: relative;
  display: flex;
  align-items: center;
  gap: 5px;
  width: 100%;
  padding: 16px 24px;
  border-radius: 4px;
  overflow: hidden;
  font-family: "Instrument Serif", Georgia, serif;
  font-size: 20px;
  line-height: 1.2;
}
.paes-hero__meta img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}
.paes-hero__meta span {
  position: relative;
  z-index: 1;
  flex: 1;
}
.paes-hero__meta .loc {
  text-align: right;
}
.paes-hero__meta .dot {
  width: 9px;
  height: 9px;
  flex: 0 0 9px;
  border-radius: 50%;
  background: #c4a574;
}
@media (max-width: 768px) {
  .paes-hero__meta {
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    gap: 4px;
    padding: 11px 8px;
    font-size: clamp(16px, 4.8vw, 20px);
    line-height: 1.2;
  }
  .paes-hero__meta .loc,
  .paes-hero__meta .date {
    flex: 1 1 0;
    width: auto;
    white-space: nowrap;
  }
  .paes-hero__meta .loc {
    text-align: right;
  }
  .paes-hero__meta .date {
    text-align: left;
  }
}

.paes-hero__year {
  position: absolute;
  right: 200px;
  top: 258px;
  margin: 0;
  font-family: "Instrument Serif", Georgia, serif;
  font-size: 280px;
  line-height: 1;
  letter-spacing: 20px;
  color: rgba(255, 255, 255, 0.06);
  pointer-events: none;
  user-select: none;
}
@media (max-width: 1100px) {
  .paes-hero__year {
    font-size: 160px;
    right: 48px;
    top: auto;
    bottom: 24px;
  }
}
@media (max-width: 768px) {
  .paes-hero__year {
    display: none;
  }
}

/* About */
.wp-block-paes-about,
.paes-about {
  position: relative;
  padding: 120px 100px;
}
@media (max-width: 1024px) {
  .wp-block-paes-about,
  .paes-about {
    padding: 88px 48px;
  }
}
@media (max-width: 768px) {
  .wp-block-paes-about,
  .paes-about {
    padding: 64px 24px;
  }
}
.wp-block-paes-about,
.paes-about {
  display: flex;
  flex-direction: column;
  gap: 80px;
  overflow: visible;
  background: transparent;
}
@media (max-width: 768px) {
  .wp-block-paes-about,
  .paes-about {
    overflow: hidden;
  }
}

.paes-about__seal {
  position: absolute;
  right: -200px;
  top: 250px;
  width: 600px;
  height: 600px;
  opacity: 0.06;
  pointer-events: none;
}

.paes-about__row {
  display: grid;
  grid-template-columns: 500px 1fr;
  gap: 80px;
  align-items: center;
  position: relative;
  z-index: 5;
}
@media (max-width: 1024px) {
  .paes-about__row {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

.paes-about__heading {
  margin: 0;
  position: relative;
  z-index: 5;
  font-family: "Instrument Serif", Georgia, serif;
  font-size: 56px;
  font-weight: 400;
  line-height: 64px;
  color: #132843;
}
@media (max-width: 768px) {
  .paes-about__heading {
    font-size: 36px;
    line-height: 1.2;
  }
}

.paes-about__rule {
  display: block;
  width: 80px;
  height: 3px;
  margin-top: 12px;
  background: #e30613;
}

.paes-about__text {
  margin: 0;
  font-size: 18px;
  line-height: 30px;
  color: #132843;
}

.paes-about__stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px;
  padding-top: 60px;
  border-top: 1px solid rgba(209, 214, 224, 0.42);
  position: relative;
  z-index: 5;
}
@media (max-width: 768px) {
  .paes-about__stats {
    grid-template-columns: 1fr;
    gap: 32px;
    padding-top: 40px;
  }
}

.paes-stat {
  position: relative;
}
@media (min-width: 769px) {
  .paes-stat:not(:last-child)::after {
    content: "";
    position: absolute;
    right: -24px;
    top: 0;
    width: 1px;
    height: 100px;
    background: rgba(209, 214, 224, 0.42);
  }
}

.paes-stat__value {
  margin: 0 0 12px;
  font-family: "Instrument Serif", Georgia, serif;
  font-size: 64px;
  line-height: 1;
  font-weight: 400;
  color: #132843;
}

.paes-stat__label {
  margin: 0;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #4e5e73;
}

/* Agenda */
.wp-block-paes-agenda,
.paes-agenda {
  padding: 120px 100px;
}
@media (max-width: 1024px) {
  .wp-block-paes-agenda,
  .paes-agenda {
    padding: 88px 48px;
  }
}
@media (max-width: 768px) {
  .wp-block-paes-agenda,
  .paes-agenda {
    padding: 64px 24px;
  }
}
.wp-block-paes-agenda,
.paes-agenda {
  background: #132843;
  color: #fff;
  display: flex;
  flex-direction: column;
  gap: 64px;
}

.paes-agenda__title {
  margin: 0;
  font-family: "Instrument Serif", Georgia, serif;
  font-size: 48px;
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: 0;
}
@media (max-width: 768px) {
  .paes-agenda__title {
    font-size: 36px;
  }
}
.paes-agenda__title {
  color: #fff;
}

.paes-agenda__rule {
  display: block;
  width: 80px;
  height: 3px;
  margin-top: 12px;
  background: #e30613;
}

.paes-agenda__list {
  position: relative;
  background: #1a2f4c;
  border: 1px solid #233a54;
  border-radius: 12px;
  padding: 48px;
}
@media (max-width: 768px) {
  .paes-agenda__list {
    padding: 24px 16px;
  }
}

.wp-block-paes-agenda-item,
.paes-agenda-item {
  display: grid;
  grid-template-columns: 100px 16px 1fr;
  column-gap: 52px;
  align-items: start;
  padding: 24px 0;
  position: relative;
}
@media (max-width: 768px) {
  .wp-block-paes-agenda-item,
  .paes-agenda-item {
    grid-template-columns: 64px 16px 1fr;
    column-gap: 16px;
    padding: 16px 0;
  }
}

.paes-agenda-item__time {
  grid-column: 1;
  grid-row: 1;
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.3;
  color: #fff;
}

.paes-agenda-item__dot {
  grid-column: 2;
  grid-row: 1;
  align-self: stretch;
  justify-self: center;
  width: 16px;
  position: relative;
  z-index: 1;
}
.paes-agenda-item__dot::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 12px;
  bottom: -36px;
  width: 2px;
  margin-left: -1px;
  background: rgba(255, 255, 255, 0.18);
  pointer-events: none;
}
@media (max-width: 768px) {
  .paes-agenda-item__dot::before {
    bottom: -28px;
  }
}
.paes-agenda-item__dot::after {
  content: "";
  position: absolute;
  top: 4px;
  left: 0;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 0 6px #1a2f4c;
}

.paes-agenda-item:last-of-type .paes-agenda-item__dot::before {
  content: none;
}

.paes-agenda-item__body {
  grid-column: 3;
  grid-row: 1;
  min-width: 0;
}

.paes-agenda-item__title {
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  font-family: inherit;
  font-size: 18px;
  font-weight: 500;
  line-height: 1.3;
  color: inherit;
  text-align: left;
}

button.paes-agenda-item__title {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  width: 100%;
  cursor: pointer;
}
button.paes-agenda-item__title::after {
  content: "";
  flex: 0 0 10px;
  width: 10px;
  height: 10px;
  margin-top: 6px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  opacity: 0.7;
  transition: transform 0.2s ease;
}
button.paes-agenda-item__title[aria-expanded=true]::after {
  margin-top: 10px;
  transform: rotate(225deg);
}

.paes-agenda-item__desc {
  margin: 8px 0 0;
  font-size: 14px;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.6);
}

.paes-agenda-item.is-highlight .paes-agenda-item__time,
.paes-agenda-item.is-highlight .paes-agenda-item__title {
  color: #e30613;
  font-weight: 700;
}
.paes-agenda-item.is-highlight .paes-agenda-item__dot::after {
  background: #e30613;
}

/* Speakers */
.wp-block-paes-speakers,
.paes-speakers {
  padding: 120px 100px;
}
@media (max-width: 1024px) {
  .wp-block-paes-speakers,
  .paes-speakers {
    padding: 88px 48px;
  }
}
@media (max-width: 768px) {
  .wp-block-paes-speakers,
  .paes-speakers {
    padding: 64px 24px;
  }
}
.wp-block-paes-speakers,
.paes-speakers {
  background: #f4f6f9;
  display: flex;
  flex-direction: column;
  gap: 64px;
}

.paes-speakers__title {
  margin: 0;
  font-family: "Instrument Serif", Georgia, serif;
  font-size: 48px;
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: 0;
}
@media (max-width: 768px) {
  .paes-speakers__title {
    font-size: 36px;
  }
}
.paes-speakers__title {
  color: #132843;
}

.paes-speakers__rule {
  display: block;
  width: 80px;
  height: 3px;
  margin-top: 12px;
  background: #e30613;
}

.paes-speakers__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
}
@media (max-width: 900px) {
  .paes-speakers__grid {
    grid-template-columns: 1fr;
  }
}

.wp-block-paes-speaker,
.paes-speaker {
  display: flex;
  align-items: center;
  gap: 32px;
  padding: 32px 0;
  border-bottom: 1px solid rgba(209, 214, 224, 0.42);
}
@media (max-width: 600px) {
  .wp-block-paes-speaker,
  .paes-speaker {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
}

.paes-speaker__photo {
  position: relative;
  flex: 0 0 140px;
  width: 140px;
  height: 140px;
  display: grid;
  place-items: center;
}

.paes-speaker__ring {
  position: absolute;
  inset: 0;
  width: 140px;
  height: 140px;
  object-fit: contain;
}

.paes-speaker__avatar {
  width: 106px;
  height: 106px;
  border-radius: 53px;
  object-fit: cover;
  background: #d8dee8;
}

.paes-speaker__name {
  margin: 0;
  font-size: 22px;
  font-weight: 700;
  color: #132843;
}

.paes-speaker__role {
  margin: 2px 0 0;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: #c5a55a;
}

.paes-speaker__bio {
  margin: 8px 0 0;
  font-size: 15px;
  line-height: 22px;
  color: #4e5e73;
}

/* Partners */
.wp-block-paes-partners,
.paes-partners {
  padding: 120px 100px;
}
@media (max-width: 1024px) {
  .wp-block-paes-partners,
  .paes-partners {
    padding: 88px 48px;
  }
}
@media (max-width: 768px) {
  .wp-block-paes-partners,
  .paes-partners {
    padding: 64px 24px;
  }
}
.wp-block-paes-partners,
.paes-partners {
  background: #fff;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 64px;
}

.paes-partners__title {
  margin: 0;
  font-family: "Instrument Serif", Georgia, serif;
  font-size: 48px;
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: 0;
}
@media (max-width: 768px) {
  .paes-partners__title {
    font-size: 36px;
  }
}
.paes-partners__title {
  color: #132843;
}

.paes-partners__rule {
  display: block;
  width: 80px;
  height: 3px;
  margin-top: 12px;
  background: #e30613;
}

.paes-partners__logos {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: center;
}
@media (max-width: 900px) {
  .paes-partners__logos {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 560px) {
  .paes-partners__logos {
    gap: 12px;
  }
}

.paes-partners__logo {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 140px;
  padding: 24px;
  border-radius: 8px;
}
.paes-partners__logo img {
  max-width: 336px;
  max-height: 92px;
  width: 100%;
  height: 92px;
  object-fit: contain;
}
@media (max-width: 560px) {
  .paes-partners__logo {
    height: 100px;
    padding: 12px;
  }
  .paes-partners__logo img {
    height: 72px;
  }
}

.paes-org {
  display: flex;
  align-items: center;
  gap: 48px;
  padding-top: 40px;
}
@media (max-width: 768px) {
  .paes-org {
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
  }
}

.paes-org__logo {
  flex: 0 0 130px;
  width: 130px;
  height: 90px;
  object-fit: contain;
  border-radius: 8px;
}

.paes-org__rule {
  width: 1px;
  height: 160px;
  background: #cbd5e1;
  flex-shrink: 0;
}
@media (max-width: 768px) {
  .paes-org__rule {
    width: 80px;
    height: 1px;
  }
}

.paes-org__name {
  margin: 0 0 10px;
  font-size: 16px;
  font-weight: 700;
  color: #1e293b;
}

.paes-org__address,
.paes-org__text {
  margin: 0 0 10px;
  font-size: 13px;
  line-height: 1.4;
  color: #4e5e73;
}

.paes-org__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 32px;
}

.paes-org__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  text-decoration: none;
  color: #2563eb;
}
.paes-org__link.is-mail {
  color: #4e5e73;
}
.paes-org__link img {
  width: 14px;
  height: 14px;
}

.paes-org__social {
  display: flex;
  gap: 10px;
}
.paes-org__social a {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 6px;
  background: #1e293b;
}
.paes-org__social img {
  width: 16px;
  height: 16px;
}

/* Footer */
.paes-footer {
  position: relative;
  height: 400px;
  overflow: hidden;
  background: #132843;
}
@media (max-width: 768px) {
  .paes-footer {
    height: 240px;
  }
}

.paes-footer__bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.paes-header.is-scrolled .paes-nav a,
.paes-header.is-scrolled .paes-logo {
  color: #fff;
}
