@font-face {
  font-family: "Barlow Condensed";
  src: url("/assets/fonts/barlow-condensed-latin-ext-800-italic.woff2") format("woff2");
  font-style: italic;
  font-weight: 800;
  font-display: swap;
}

@font-face {
  font-family: "Barlow Condensed";
  src: url("/assets/fonts/barlow-condensed-latin-ext-700-normal.woff2") format("woff2");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}

:root {
  --navy: #080632;
  --navy-soft: #151348;
  --paper: #fffdf8;
  --cream: #f4e5d6;
  --cyan: #08a9df;
  --cyan-bright: #19bceb;
  --amber: #df7b25;
  --muted-on-cream: #666276;
  --muted-on-dark: #bfbed0;
  --content-width: 780px;
  --radius: 14px;
  --ease-out: cubic-bezier(.16, 1, .3, 1);
}

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

html {
  background: #03021a;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background: #03021a;
  color: var(--paper);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.45;
  text-rendering: optimizeLegibility;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background: radial-gradient(circle at 50% 0%, #1c1957 0, #080632 48%, #03021a 100%);
}

::selection {
  color: var(--navy);
  background: var(--cyan-bright);
}

::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: #03021a;
}

::-webkit-scrollbar-thumb {
  border: 3px solid #03021a;
  border-radius: 10px;
  background: #373461;
}

a {
  color: inherit;
  text-underline-offset: .2em;
}

img,
svg {
  display: block;
}

.error-page {
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: 24px;
  text-align: center;
}

.error-page__content {
  width: min(100%, 560px);
}

.error-page__link {
  color: var(--cyan-bright);
  font-weight: 700;
}

.skip-link {
  position: fixed;
  inset: max(12px, env(safe-area-inset-top)) auto auto 12px;
  z-index: 30;
  padding: 10px 14px;
  transform: translateY(-160%);
  border-radius: 8px;
  background: var(--paper);
  color: var(--navy);
  font-weight: 700;
}

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

main {
  width: min(100%, var(--content-width));
  margin-inline: auto;
  overflow: clip;
  background: var(--navy);
  box-shadow: 0 26px 80px rgba(0, 0, 0, .42);
}

.hero {
  position: relative;
  min-height: clamp(560px, 105vw, 720px);
  isolation: isolate;
  overflow: hidden;
  background: #b9dff0;
}

.hero-media,
.hero-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-media img {
  object-fit: cover;
  object-position: 50% 38%;
}

.hero::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, .03) 0%, transparent 66%, var(--navy) 99%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: clamp(54px, 10vw, 84px) 24px 0;
  color: var(--navy);
  animation: hero-arrive 900ms var(--ease-out) both;
}

@keyframes hero-arrive {
  from {
    opacity: .78;
    transform: translateY(18px);
    filter: blur(5px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }
}

.campaign-line {
  position: absolute;
  top: clamp(46px, 8vw, 72px);
  left: clamp(20px, 6vw, 54px);
  width: 9ch;
  margin: 0;
  transform: rotate(-7deg);
  font-family: "Barlow Condensed", sans-serif;
  font-size: clamp(1.1rem, 4.7vw, 2.2rem);
  font-style: italic;
  font-weight: 800;
  line-height: .93;
  letter-spacing: .01em;
  text-transform: uppercase;
  text-wrap: balance;
}

.campaign-line::after {
  content: "";
  display: block;
  width: 84%;
  height: 4px;
  margin-top: 9px;
  transform: skewX(-24deg);
  background: var(--cyan);
}

.event-logo {
  width: clamp(164px, 41vw, 248px);
  margin-top: clamp(4px, 2vw, 14px);
}

.event-logo img {
  width: 100%;
  height: auto;
}

.event-date {
  margin: 10px 0 0;
  font-family: "Barlow Condensed", sans-serif;
  font-size: clamp(1.7rem, 6vw, 3rem);
  font-style: italic;
  font-weight: 800;
  line-height: 1;
  letter-spacing: .015em;
  text-align: center;
  text-transform: uppercase;
}

.social-row {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  margin-top: 6px;
}

.language-switcher {
  position: relative;
  z-index: 8;
  margin-top: 14px;
}

.language-switcher summary {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 34px;
  padding: 7px 11px 7px 13px;
  border: 1px solid rgba(255, 255, 255, .28);
  border-radius: 999px;
  background: rgba(8, 6, 50, .38);
  color: var(--paper);
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .12em;
  cursor: pointer;
  list-style: none;
  backdrop-filter: blur(12px);
}

.language-switcher summary::-webkit-details-marker {
  display: none;
}

.language-switcher summary .icon {
  width: 14px;
  height: 14px;
  transition: transform .2s ease;
}

.language-switcher[open] summary .icon {
  transform: rotate(180deg);
}

.language-menu {
  position: absolute;
  inset-block-start: calc(100% + 8px);
  inset-inline-start: 50%;
  width: min(280px, calc(100vw - 36px));
  max-height: 310px;
  padding: 7px;
  overflow-y: auto;
  transform: translateX(-50%);
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 16px;
  background: rgba(8, 6, 50, .96);
  box-shadow: 0 18px 50px rgba(0, 0, 0, .35);
  backdrop-filter: blur(18px);
}

[dir="rtl"] .language-menu {
  transform: translateX(50%);
}

.language-menu a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 12px;
  border-radius: 10px;
  color: rgba(255, 255, 255, .82);
  text-decoration: none;
}

.language-menu a[aria-current="page"] {
  background: rgba(25, 188, 235, .18);
  color: #fff;
}

.language-menu small {
  color: var(--cyan-bright);
  font-size: .66rem;
  font-weight: 800;
  letter-spacing: .1em;
}

[dir="rtl"] .card-copy,
[dir="rtl"] .section-heading,
[dir="rtl"] .section-description,
[dir="rtl"] .phase-line h1 {
  direction: rtl;
  text-align: right;
}

.social-link {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  color: var(--navy);
  transition: transform 220ms var(--ease-out), background-color 220ms ease;
}

.social-link .icon {
  width: 23px;
  height: 23px;
}

.social-link.is-pending {
  opacity: .5;
  cursor: not-allowed;
}

.social-separator {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: currentColor;
  opacity: .6;
}

.hero-foot {
  position: absolute;
  z-index: 2;
  right: clamp(20px, 5vw, 44px);
  bottom: clamp(48px, 8vw, 76px);
  left: clamp(20px, 5vw, 44px);
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  font-family: "Barlow Condensed", sans-serif;
  font-size: clamp(.84rem, 2.7vw, 1.15rem);
  font-style: italic;
  font-weight: 800;
  line-height: 1.17;
  letter-spacing: .25em;
  text-transform: uppercase;
  text-shadow: 0 2px 18px rgba(8, 6, 50, .45);
}

.hero-foot p {
  margin: 0;
}

.hero-foot p:last-child {
  max-width: 12ch;
  padding-bottom: 8px;
  border-bottom: 2px solid currentColor;
  text-align: right;
}

.utility-field {
  position: relative;
  z-index: 3;
  margin-top: -2px;
  background: var(--navy);
}

.utility-inner {
  padding: 22px clamp(16px, 4vw, 34px) max(42px, env(safe-area-inset-bottom));
}

.phase-line {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  color: var(--muted-on-dark);
}

.phase-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 0 4px rgba(8, 169, 223, .14);
}

.phase-line h1 {
  display: flex;
  gap: 8px;
  align-items: baseline;
  margin: 0;
  font-family: "Barlow Condensed", sans-serif;
  font-size: .88rem;
  font-style: normal;
  font-weight: 700;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.phase-line h1 span + span {
  font-size: .75rem;
  opacity: .72;
}

.priority-grid,
.section-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.link-card {
  --card-bg: var(--cream);
  --card-fg: var(--navy);
  --card-muted: var(--muted-on-cream);
  --motif-color: var(--navy);
  position: relative;
  display: grid;
  grid-template-columns: auto 1px minmax(0, 1fr) auto;
  align-items: center;
  min-height: 112px;
  padding: clamp(16px, 3.3vw, 24px);
  overflow: hidden;
  border: 0;
  border-radius: var(--radius);
  background: var(--card-bg);
  color: var(--card-fg);
  text-decoration: none;
  isolation: isolate;
  transition: transform 230ms var(--ease-out), background-color 180ms ease, color 180ms ease;
}

.link-card.span-full,
.link-card.span-auto {
  grid-column: 1 / -1;
}

.link-card.span-half {
  grid-column: span 1;
  grid-template-columns: auto 1px minmax(0, 1fr) auto;
  min-height: 210px;
}

.link-card.appearance-cyan {
  --card-bg: var(--cyan);
  --card-fg: var(--paper);
  --card-muted: #dcf7ff;
  --motif-color: var(--navy);
}

.link-card.appearance-navy {
  --card-bg: var(--navy-soft);
  --card-fg: var(--paper);
  --card-muted: var(--muted-on-dark);
  --motif-color: var(--cream);
}

.link-card.appearance-outline {
  --card-bg: transparent;
  --card-fg: var(--paper);
  --card-muted: var(--muted-on-dark);
  --motif-color: var(--cream);
  outline: 1px solid rgba(255, 253, 248, .34);
  outline-offset: -1px;
}

.priority-grid > .link-card:first-child {
  min-height: 146px;
}

.card-media,
.card-divider,
.card-copy,
.card-arrow {
  position: relative;
  z-index: 2;
}

.card-media {
  display: grid;
  place-items: center;
  width: clamp(54px, 11vw, 78px);
  min-width: 0;
}

.card-icon .icon {
  width: clamp(40px, 8vw, 58px);
  height: clamp(40px, 8vw, 58px);
  stroke-width: 1.7;
}

.card-emblem,
.card-emblem img {
  width: clamp(54px, 11vw, 76px);
  height: clamp(54px, 11vw, 76px);
}

.card-emblem img {
  object-fit: contain;
}

.card-divider {
  align-self: stretch;
  width: 1px;
  min-height: 58px;
  margin-inline: clamp(13px, 2.8vw, 24px);
  transform: skewX(-12deg);
  background: currentColor;
  opacity: .78;
}

.card-copy {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.card-label,
.card-label-secondary {
  font-family: "Barlow Condensed", sans-serif;
  font-style: italic;
  font-weight: 800;
  line-height: .9;
  text-transform: uppercase;
  text-wrap: balance;
}

.card-label {
  max-width: 18ch;
  font-size: clamp(1.55rem, 5vw, 2.7rem);
  letter-spacing: -.025em;
}

.span-half .card-label {
  font-size: clamp(1.22rem, 4vw, 1.95rem);
}

.card-label-secondary {
  margin-top: 5px;
  font-size: clamp(.92rem, 2.8vw, 1.35rem);
  letter-spacing: .05em;
}

.card-supporting,
.card-status {
  margin-top: 7px;
  color: var(--card-muted);
  font-family: "Barlow Condensed", sans-serif;
  font-size: clamp(.78rem, 2.2vw, .98rem);
  font-style: normal;
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: .075em;
  text-transform: uppercase;
}

.card-status {
  color: inherit;
  opacity: .72;
}

.card-arrow {
  align-self: center;
  margin-left: 8px;
}

.card-arrow .icon {
  width: clamp(25px, 5vw, 34px);
  height: clamp(25px, 5vw, 34px);
  stroke-width: 2.5;
}

.card-motif {
  position: absolute;
  z-index: 1;
  right: -2%;
  bottom: -6%;
  width: 54%;
  height: 72%;
  background: var(--motif-color);
  opacity: .13;
  pointer-events: none;
  mask: var(--motif-image) right bottom / contain no-repeat;
  -webkit-mask: var(--motif-image) right bottom / contain no-repeat;
}

.motif-chimney-cluster { --motif-image: url("/assets/motifs/chimney-cluster.webp"); }
.motif-single-chimney-balloon { --motif-image: url("/assets/motifs/single-chimney-balloon.webp"); }
.motif-layered-valley { --motif-image: url("/assets/motifs/layered-valley.webp"); }
.motif-balloon-valley { --motif-image: url("/assets/motifs/balloon-valley.webp"); }
.motif-runner-ridge { --motif-image: url("/assets/motifs/runner-ridge.webp"); }
.motif-winding-trail { --motif-image: url("/assets/motifs/winding-trail.webp"); }

.link-card.is-disabled {
  cursor: not-allowed;
  filter: saturate(.58);
}

.link-card.is-disabled::after {
  content: "";
  position: absolute;
  z-index: 4;
  inset: 0;
  background: rgba(255, 253, 248, .09);
  pointer-events: none;
}

.resource-groups {
  margin-top: 30px;
  border-top: 1px solid rgba(255, 253, 248, .18);
}

.resource-section {
  border-bottom: 1px solid rgba(255, 253, 248, .18);
}

.resource-section summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 20px;
  min-height: 92px;
  cursor: pointer;
  list-style: none;
}

.resource-section summary::-webkit-details-marker {
  display: none;
}

.resource-section summary::after {
  content: "+";
  grid-column: 2;
  grid-row: 1;
  align-self: center;
  font-family: "Barlow Condensed", sans-serif;
  font-size: 2rem;
  font-weight: 700;
  line-height: 1;
  transition: transform 220ms var(--ease-out);
}

.resource-section[open] summary::after {
  transform: rotate(45deg);
}

.section-heading {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.section-heading strong {
  font-family: "Barlow Condensed", sans-serif;
  font-size: clamp(1.45rem, 4.5vw, 2.25rem);
  font-style: italic;
  font-weight: 800;
  line-height: .95;
  letter-spacing: -.02em;
  text-transform: uppercase;
}

.section-heading span {
  margin-top: 5px;
  color: var(--muted-on-dark);
  font-family: "Barlow Condensed", sans-serif;
  font-size: .84rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.section-count {
  grid-column: 2;
  grid-row: 1;
  margin-right: 38px;
  color: var(--muted-on-dark);
  font-variant-numeric: tabular-nums;
}

.section-description {
  display: grid;
  gap: 4px;
  max-width: 68ch;
  margin: -6px 0 18px;
  color: var(--muted-on-dark);
  font-size: .9rem;
}

.section-description span[lang="en"] {
  opacity: .75;
}

.section-grid {
  padding-bottom: 20px;
}

.section-grid .link-card {
  grid-column: 1 / -1;
}

.site-footer {
  display: grid;
  justify-items: center;
  gap: 8px;
  padding: 52px 16px 10px;
  color: var(--muted-on-dark);
  font-size: .82rem;
  text-align: center;
}

.site-footer img {
  width: 54px;
  height: auto;
  filter: invert(1) grayscale(1) brightness(4);
  opacity: .72;
}

.site-footer p {
  margin: 0;
}

.site-footer a {
  color: var(--paper);
}

:where(a, summary):focus-visible {
  outline: 3px solid var(--cyan-bright);
  outline-offset: 4px;
}

@media (hover: hover) and (pointer: fine) {
  .social-link:not(.is-pending):hover {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, .34);
  }

  a.link-card:hover {
    transform: translateY(-3px);
    background: color-mix(in srgb, var(--card-bg), white 7%);
  }
}

@media (max-width: 520px) {
  .priority-grid {
    gap: 10px;
  }

  .link-card.span-half {
    min-height: 118px;
    padding: 14px;
  }

  .span-half .card-media {
    width: 42px;
  }

  .span-half .card-icon .icon {
    width: 34px;
    height: 34px;
  }

  .span-half .card-divider {
    margin-inline: 10px;
  }

  .span-half .card-label-secondary,
  .span-half .card-supporting {
    font-size: .73rem;
  }

  .span-half .card-arrow {
    display: none;
  }
}

@media (max-width: 600px) {
  .priority-grid {
    grid-template-columns: 1fr;
  }

  .link-card.span-half {
    grid-column: 1 / -1;
    min-height: 132px;
  }
}

@media (min-width: 821px) {
  body {
    padding-block: 26px;
  }

  main {
    border-radius: 22px;
  }

  .hero {
    min-height: 720px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}
