:root {
  --red: #ff0000;
  --blue-deep: #0000bb;
  --blue-bright: #0079ff;
  --cyan: #00d8ff;
  --yellow: #fab600;
  --white: #ffffff;
  --font-display: "Shippori Mincho", Georgia, serif;
  --font-sans: "Poppins", Arial, sans-serif;
  --content-max: 100rem;
  --gutter: clamp(1.5rem, 6vw, 7.5rem);
}

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

html {
  min-width: 20rem;
  background: var(--blue-deep);
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--white);
  background: var(--white);
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 300;
  line-height: 1.5;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body.menu-open {
  overflow: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

img,
svg {
  display: block;
}

.skip-link {
  position: fixed;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 200;
  padding: 0.65rem 0.9rem;
  color: var(--blue-deep);
  background: var(--white);
  font-weight: 500;
  transform: translateY(-200%);
  transition: transform 180ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.page-shell {
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  grid-template-rows: minmax(26.25rem, 61svh) minmax(18.75rem, 1fr);
}

.layout {
  width: min(calc(100% - (2 * var(--gutter))), var(--content-max));
  margin-inline: auto;
}

.hero {
  position: relative;
  isolation: isolate;
  min-height: 26.25rem;
  overflow: hidden;
  background: var(--blue-bright);
}

.hero-media,
.hero-media::after {
  position: absolute;
  inset: 0;
}

.hero-media {
  z-index: 0;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 51%;
}

.hero-media::after {
  content: "";
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(0, 0, 187, 0.03) 0%, rgba(0, 0, 187, 0) 54%),
    linear-gradient(0deg, rgba(0, 0, 187, 0.2) 0%, rgba(0, 0, 187, 0) 40%);
}

.site-header {
  position: absolute;
  inset: 0 0 auto;
  z-index: 20;
  padding-block: clamp(1.7rem, 4.3vh, 3.75rem);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(2rem, 4vw, 5.5rem);
}

.brand {
  flex: 0 1 clamp(18rem, 30vw, 27rem);
}

.brand img {
  width: 100%;
  height: auto;
}

.desktop-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: clamp(2.25rem, 5vw, 6.8rem);
  font-size: clamp(1rem, 1.3vw, 1.45rem);
  font-weight: 500;
  white-space: nowrap;
}

.nav-link {
  position: relative;
  padding-block: 0.35rem;
}

.nav-link::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 0.1rem;
  content: "";
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 220ms ease;
}

.nav-link:hover::after,
.nav-link:focus-visible::after {
  transform: scaleX(1);
  transform-origin: left;
}

.nav-link:focus-visible,
.language-link:focus-visible,
.social-link:focus-visible,
.menu-toggle:focus-visible {
  outline: 0.125rem solid var(--cyan);
  outline-offset: 0.3rem;
}

.is-pending {
  cursor: default;
}

.language-list {
  display: flex;
  align-items: center;
  gap: 0.32rem;
  margin: 0;
  padding: 0;
  font-size: clamp(0.75rem, 0.93vw, 1rem);
  font-weight: 400;
  list-style: none;
  text-transform: lowercase;
}

.language-link {
  padding: 0.25rem 0.03rem;
  opacity: 0.7;
  transition: opacity 180ms ease;
}

.language-link:hover,
.language-link:focus-visible,
.language-link[aria-current="page"] {
  opacity: 1;
}

.language-link[aria-current="page"] {
  font-weight: 600;
}

.hero-title-wrap {
  position: relative;
  z-index: 1;
  height: 100%;
  display: flex;
  align-items: flex-end;
  padding-block: clamp(2rem, 6.4vh, 5.5rem);
}

.hero-title {
  max-width: none;
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(4.5rem, 7.45vw, 9.4rem);
  font-weight: 700;
  letter-spacing: -0.065em;
  line-height: 0.86;
  text-wrap: balance;
  white-space: nowrap;
}

.intro {
  min-height: 18.75rem;
  background: var(--blue-deep);
}

.intro-grid {
  min-height: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto;
  gap: clamp(3.5rem, 7.2vw, 8.5rem);
  align-items: start;
  padding-block: clamp(2.25rem, 5vh, 4.8rem);
}

.intro-card {
  max-width: 35rem;
}

.intro-title {
  margin: 0 0 clamp(1rem, 2.3vh, 1.8rem);
  font-family: var(--font-display);
  font-size: clamp(2rem, 2.7vw, 3.35rem);
  font-weight: 700;
  letter-spacing: -0.055em;
  line-height: 1.05;
}

.intro-text {
  margin: 0;
  font-size: clamp(1rem, 1.12vw, 1.3rem);
  line-height: 1.48;
}

.closing-mark {
  display: block;
  margin-top: 0.35rem;
  font-size: 1.4em;
  line-height: 1;
}

.social-nav {
  align-self: end;
  display: flex;
  justify-content: flex-end;
  gap: 0.5rem;
  padding-bottom: 0.15rem;
}

.social-link {
  width: clamp(2rem, 2.2vw, 2.5rem);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  color: var(--blue-deep);
  background: var(--white);
  border-radius: 50%;
  transition: color 180ms ease, background-color 180ms ease, transform 180ms ease;
}

.social-link:hover {
  color: var(--white);
  background: var(--blue-bright);
  transform: translateY(-0.14rem);
}

.social-link svg {
  width: 55%;
  height: 55%;
  fill: currentColor;
}

.menu-toggle,
.mobile-menu {
  display: none;
}

.schedule {
  scroll-margin-top: 0;
  color: #111111;
  background: var(--white);
  border-bottom: clamp(1rem, 1.7vw, 1.75rem) solid var(--blue-deep);
}

.schedule-inner {
  padding-block: clamp(2.6rem, 5vw, 5.5rem) clamp(3.8rem, 6.5vw, 7rem);
}

.schedule-title {
  margin: 0;
  color: var(--blue-deep);
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 3.7vw, 4.5rem);
  font-weight: 700;
  letter-spacing: -0.055em;
  line-height: 1;
}

.schedule-lead {
  margin: clamp(1.1rem, 2vw, 1.8rem) 0 0;
  font-size: clamp(1rem, 1.15vw, 1.28rem);
  line-height: 1.5;
}

.schedule-lead a {
  color: var(--blue-deep);
  font-weight: 500;
  text-decoration: underline;
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.18em;
}

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

.schedule-lead a:focus-visible {
  outline: 0.125rem solid var(--cyan);
  outline-offset: 0.25rem;
}

.schedule-grid {
  display: grid;
  grid-template-columns: 1.25fr 1fr 0.72fr;
  gap: clamp(2.5rem, 6vw, 7rem);
  margin-top: clamp(1.8rem, 3.5vw, 3.6rem);
}

.schedule-period {
  min-width: 0;
}

.schedule-period-title {
  margin: 0 0 1rem;
  color: var(--blue-deep);
  font-family: var(--font-display);
  font-size: clamp(1.45rem, 1.9vw, 2.15rem);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.15;
}

.schedule-time {
  margin: 0 0 0.9rem;
  font-size: clamp(0.96rem, 1vw, 1.12rem);
  line-height: 1.52;
}

.schedule-time:last-child {
  margin-bottom: 0;
}

.schedule-time strong,
.schedule-time span {
  display: block;
}

.schedule-time strong {
  font-weight: 600;
}

.schedule-closed {
  color: #303030;
  font-size: 0.94em;
}

@media (max-width: 68rem) and (min-width: 56.26rem) {
  .desktop-nav {
    gap: 2.2rem;
  }

  .intro-grid {
    gap: 3rem;
  }
}

@media (max-width: 56.25rem) {
  :root {
    --gutter: clamp(1.35rem, 6vw, 2.6rem);
  }

  .page-shell {
    min-height: 0;
    display: block;
  }

  .hero {
    min-height: clamp(25rem, 56svh, 34rem);
  }

  body.menu-open .hero {
    z-index: 100;
    overflow: visible;
  }

  body.menu-open .site-header {
    position: fixed;
    inset: 0 0 auto;
    z-index: 1000;
  }

  .hero-media img {
    object-position: 64% center;
  }

  .hero-media::after {
    background:
      linear-gradient(180deg, rgba(0, 0, 187, 0.16) 0%, rgba(0, 0, 187, 0) 33%),
      linear-gradient(0deg, rgba(0, 0, 187, 0.25) 0%, rgba(0, 0, 187, 0) 52%);
  }

  .site-header {
    padding-block: 1.45rem;
  }

  .header-inner {
    gap: 1.5rem;
  }

  .brand {
    position: relative;
    z-index: 120;
    flex-basis: clamp(12.5rem, 62vw, 18rem);
  }

  .desktop-nav {
    display: none;
  }

  .menu-toggle {
    position: relative;
    z-index: 120;
    width: 2.75rem;
    height: 2.75rem;
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    padding: 0;
    color: var(--white);
    background: transparent;
    border: 0;
    cursor: pointer;
  }

  .menu-icon,
  .menu-icon::before,
  .menu-icon::after {
    width: 2rem;
    height: 0.12rem;
    display: block;
    content: "";
    background: currentColor;
    transition: transform 220ms ease, opacity 180ms ease;
  }

  .menu-icon {
    position: relative;
  }

  .menu-icon::before,
  .menu-icon::after {
    position: absolute;
    left: 0;
  }

  .menu-icon::before {
    top: -0.55rem;
  }

  .menu-icon::after {
    top: 0.55rem;
  }

  .menu-toggle[aria-expanded="true"] .menu-icon {
    background: transparent;
  }

  .menu-toggle[aria-expanded="true"] .menu-icon::before {
    top: 0;
    transform: rotate(45deg);
  }

  .menu-toggle[aria-expanded="true"] .menu-icon::after {
    top: 0;
    transform: rotate(-45deg);
  }

  .mobile-menu {
    position: fixed;
    inset: 0;
    z-index: 110;
    width: 100%;
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 2.3rem;
    padding: 7.5rem var(--gutter) 3rem;
    color: var(--white);
    background: var(--blue-deep);
    overflow-y: auto;
    overscroll-behavior: contain;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-1rem);
    transition: opacity 220ms ease, visibility 220ms ease, transform 220ms ease;
  }

  .mobile-menu.is-open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .mobile-menu .nav-link {
    width: fit-content;
    font-family: var(--font-display);
    font-size: clamp(2rem, 9vw, 3rem);
    font-weight: 700;
    line-height: 1.05;
  }

  .mobile-menu .language-list {
    gap: 0.8rem;
    margin-top: 0.4rem;
    font-size: 1.05rem;
  }

  .hero-title-wrap {
    padding-top: 8.5rem;
    padding-bottom: clamp(1.8rem, 5vh, 2.8rem);
  }

  .hero-title {
    font-size: clamp(3.3rem, 14.8vw, 6.6rem);
    line-height: 0.89;
  }

  html[lang="es"] .hero-title,
  html[lang="fr"] .hero-title {
    font-size: clamp(2.5rem, 12.7vw, 6rem);
  }

  html[lang="en"] .hero-title {
    font-size: clamp(2.2rem, 11.2vw, 5.5rem);
  }

  .intro {
    min-height: 0;
    background: var(--white);
  }

  .intro-grid {
    width: 100%;
    min-height: 0;
    display: block;
    padding: 0;
  }

  .intro-card {
    max-width: none;
    padding: clamp(2rem, 8.5vw, 3.6rem) var(--gutter) clamp(2.4rem, 10vw, 4rem);
    background: var(--blue-deep);
  }

  .intro-title {
    margin-bottom: 1.25rem;
    font-size: clamp(2rem, 9.2vw, 3.4rem);
  }

  .intro-text {
    max-width: 34rem;
    font-size: clamp(1rem, 4.6vw, 1.2rem);
    line-height: 1.48;
  }

  .social-nav {
    margin-top: 0;
    padding: 1.4rem var(--gutter) 1.7rem;
    background: var(--blue-deep);
  }

  .social-link {
    width: 2.35rem;
  }

  .schedule {
    border-bottom-width: 0.9rem;
  }

  .schedule-inner {
    padding-block: clamp(2.6rem, 10vw, 4rem) clamp(3.2rem, 13vw, 5rem);
  }

  .schedule-title {
    font-size: clamp(2.55rem, 11.5vw, 4rem);
  }

  .schedule-lead {
    max-width: 34rem;
    margin-top: 1.25rem;
    font-size: clamp(1rem, 4.5vw, 1.18rem);
  }

  .schedule-grid {
    display: block;
    margin-top: 2.4rem;
  }

  .schedule-period {
    padding-block: 1.8rem;
    border-top: 0.0625rem solid rgba(0, 0, 187, 0.22);
  }

  .schedule-period:first-child {
    padding-top: 0;
    border-top: 0;
  }

  .schedule-period:last-child {
    padding-bottom: 0;
  }

  .schedule-period-title {
    margin-bottom: 1rem;
    font-size: clamp(1.65rem, 7vw, 2.25rem);
  }

  .schedule-time {
    max-width: 34rem;
    margin-bottom: 1.05rem;
    font-size: clamp(0.98rem, 4.25vw, 1.12rem);
  }
}

@media (max-width: 56.25rem) and (orientation: landscape) and (max-height: 31.25rem) {
  .hero {
    min-height: 100svh;
  }

  .brand {
    flex-basis: 13rem;
  }

  .hero-title {
    font-size: clamp(3.8rem, 11vw, 5.5rem);
  }
}

@media (prefers-reduced-motion: no-preference) {
  .hero-title {
    animation: title-in 800ms 120ms both cubic-bezier(0.2, 0.7, 0.2, 1);
  }

  .site-header {
    animation: fade-in 650ms 100ms both ease-out;
  }

  .intro-card,
  .social-nav {
    animation: content-in 650ms 380ms both ease-out;
  }

  .intro-card:nth-child(2) {
    animation-delay: 470ms;
  }

  .social-nav {
    animation-delay: 560ms;
  }
}

@keyframes title-in {
  from {
    opacity: 0;
    transform: translateY(1.5rem);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes content-in {
  from {
    opacity: 0;
    transform: translateY(0.8rem);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
