@font-face {
  font-family: "Onest";
  src: url("./assets/onest-cyrillic.woff2") format("woff2");
  font-display: swap;
  font-weight: 400 800;
  unicode-range: U+0400-052F, U+2DE0-2DFF, U+A640-A69F;
}

@font-face {
  font-family: "Onest";
  src: url("./assets/onest-latin.woff2") format("woff2");
  font-display: swap;
  font-weight: 400 800;
  unicode-range: U+0000-00FF, U+0100-024F, U+1E00-1EFF;
}

:root {
  color-scheme: light;
  --night: #08083c;
  --night-deep: #030326;
  --blue: #4791ff;
  --blue-deep: #000080;
  --gold: #f6af09;
  --red: #b30000;
  --blue-soft: oklch(0.91 0.045 244);
  --signal: oklch(0.86 0.16 102);
  --paper: oklch(0.965 0.006 255);
  --white: oklch(0.995 0 0);
  --ink: oklch(0.19 0.025 253);
  --muted: oklch(0.43 0.035 253);
  --line: oklch(0.84 0.018 253);
  --gutter: clamp(1rem, 4vw, 3.5rem);
  --container: 88rem;
  --section: clamp(5rem, 8vw, 8rem);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --header-height: 6rem;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 1rem);
}

body {
  margin: 0;
  overflow-x: clip;
  color: var(--ink);
  background: var(--paper);
  font-family: "Onest", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 1rem;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

body.menu-open {
  overflow: hidden;
}

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

a {
  color: inherit;
}

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

h1,
h2,
h3,
p,
figure,
ol,
ul,
dl,
dd,
dt {
  margin: 0;
}

h1,
h2,
h3 {
  text-wrap: balance;
}

p,
li {
  text-wrap: pretty;
}

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

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

.skip-link {
  position: fixed;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 100;
  padding: 0.75rem 1rem;
  color: var(--white);
  background: var(--blue-deep);
  font-weight: 700;
  text-decoration: none;
  transform: translateY(-150%);
  transition: transform 180ms var(--ease-out);
}

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

:focus-visible {
  outline: 3px solid var(--blue-deep);
  outline-offset: 4px;
  box-shadow: 0 0 0 6px var(--white);
}

.topbar {
  position: fixed;
  inset: 0 0 auto;
  z-index: 40;
  color: var(--white);
  border-bottom: 1px solid transparent;
  transition:
    color 240ms ease,
    background-color 240ms ease,
    border-color 240ms ease;
}

.topbar.is-scrolled,
.topbar.is-open {
  color: var(--ink);
  background: color-mix(in oklch, var(--paper) 94%, transparent);
  border-color: var(--line);
  backdrop-filter: blur(14px);
}

.topbar.is-open {
  backdrop-filter: none;
}

.topbar__inner {
  min-height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: clamp(7rem, 8vw, 8.25rem);
  height: 4.65rem;
  padding: 0.38rem 0.55rem;
  overflow: hidden;
  border-radius: 0.35rem;
  background: var(--white);
  filter: brightness(0) invert(1);
  transition: filter 240ms ease;
}

.brand img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.brand--event {
  filter: none;
}

.topbar.is-scrolled .brand,
.topbar.is-open .brand,
.brand--footer {
  filter: none;
}

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

.desktop-nav a {
  padding: 0.8rem 0;
  font-size: 0.9rem;
  font-weight: 650;
  text-decoration: none;
  opacity: 0.78;
  transition: opacity 160ms ease;
}

.desktop-nav a:hover,
.desktop-nav a:focus-visible {
  opacity: 1;
}

.button {
  display: inline-flex;
  min-height: 3.1rem;
  align-items: center;
  justify-content: center;
  padding: 0.78rem 1.25rem;
  border: 1px solid transparent;
  border-radius: 0.45rem;
  font: inherit;
  font-size: 0.92rem;
  font-weight: 750;
  line-height: 1.1;
  text-align: center;
  text-decoration: none;
  transition:
    transform 200ms var(--ease-out),
    background-color 200ms ease,
    color 200ms ease,
    border-color 200ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button--light {
  color: var(--night);
  background: var(--white);
}

.topbar.is-scrolled .button--light,
.topbar.is-open .button--light {
  color: var(--white);
  background: var(--blue-deep);
}

.button--blue {
  color: var(--night-deep);
  background: var(--blue);
}

.button--blue:hover {
  color: var(--white);
  background: var(--blue-deep);
}

.button--white {
  color: var(--blue-deep);
  background: var(--white);
}

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

.hero {
  position: relative;
  min-height: max(46rem, 100svh);
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  color: var(--white);
  background: var(--night-deep);
}

.hero__image,
.hero__scrim {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero__image {
  object-fit: cover;
  object-position: 62% center;
  filter: saturate(0.78) contrast(1.08);
  animation: hero-settle 1.4s var(--ease-out) both;
}

.hero__scrim {
  background:
    linear-gradient(90deg, color-mix(in oklch, var(--night-deep) 94%, transparent) 0%, color-mix(in oklch, var(--night-deep) 73%, transparent) 44%, color-mix(in oklch, var(--night-deep) 20%, transparent) 78%),
    linear-gradient(0deg, color-mix(in oklch, var(--night-deep) 92%, transparent) 0%, transparent 44%, color-mix(in oklch, var(--night-deep) 46%, transparent) 100%);
}

.hero__identity {
  position: absolute;
  right: -3vw;
  top: 15%;
  width: min(45vw, 44rem);
  aspect-ratio: 1583 / 647;
  overflow: hidden;
  opacity: 0.24;
  transform: rotate(-4deg);
  mix-blend-mode: screen;
  animation: identity-enter 1.2s 180ms var(--ease-out) both;
}

.hero__identity img {
  width: 100%;
  max-width: none;
  height: auto;
  filter: grayscale(1) contrast(0.9) brightness(1.35);
}

.hero__content {
  position: relative;
  z-index: 2;
  display: grid;
  gap: clamp(1.8rem, 4vw, 3.5rem);
  padding-top: calc(var(--header-height) + 5rem);
  padding-bottom: clamp(3rem, 7vw, 6rem);
}

.hero__meta,
.label {
  color: var(--blue-deep);
  font-size: 0.76rem;
  font-weight: 780;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.hero__meta {
  color: var(--signal);
}

.hero h1 {
  max-width: 19ch;
  font-size: clamp(3rem, 5.8vw, 5.4rem);
  font-weight: 540;
  line-height: 0.94;
  letter-spacing: -0.04em;
  animation: title-enter 1s 100ms var(--ease-out) both;
}

.hero h1 span {
  color: var(--blue);
  white-space: nowrap;
}

.hero__footer {
  display: grid;
  grid-template-columns: minmax(0, 32rem) auto;
  align-items: end;
  justify-content: space-between;
  gap: 2rem;
}

.hero__footer > *,
.hero__actions {
  min-width: 0;
}

.hero__footer > p {
  max-width: 33rem;
  color: color-mix(in oklch, var(--white) 84%, transparent);
  font-size: clamp(1.05rem, 1.8vw, 1.3rem);
  line-height: 1.48;
}

.hero__actions {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.text-link {
  display: inline-flex;
  min-height: 2.75rem;
  align-items: center;
  gap: 0.55rem;
  color: var(--white);
  font-size: 0.9rem;
  font-weight: 700;
  text-underline-offset: 0.25em;
}

.text-link span {
  transition: transform 180ms var(--ease-out);
}

.text-link:hover span {
  transform: translateY(3px);
}

.text-link--dark {
  margin-top: 1.4rem;
  color: var(--blue-deep);
}

.text-link--dark:hover span {
  transform: translateX(3px);
}

.facts {
  color: var(--white);
  background: var(--blue-deep);
}

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

.facts__grid > div {
  min-height: 10rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.5rem clamp(1rem, 2.8vw, 2.75rem);
  border-left: 1px solid color-mix(in oklch, var(--white) 20%, transparent);
}

.facts__grid > div:last-child {
  border-right: 1px solid color-mix(in oklch, var(--white) 20%, transparent);
}

.facts strong {
  font-size: clamp(2rem, 4vw, 3.7rem);
  font-weight: 540;
  line-height: 1;
  letter-spacing: -0.035em;
}

.facts span {
  max-width: 12rem;
  color: color-mix(in oklch, var(--white) 76%, transparent);
  font-size: 0.9rem;
}

.section {
  padding-block: var(--section);
}

.about__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(0, 1.22fr);
  align-items: center;
  gap: clamp(3rem, 6vw, 6rem);
}

.about-scene {
  min-width: 0;
  aspect-ratio: 16 / 10;
  margin: 0;
  overflow: hidden;
  background: transparent;
}

.about-scene img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.section-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.35rem;
}

.section h2,
.pressure h2,
.awards h2,
.registration h2 {
  max-width: 18ch;
  font-size: clamp(2.45rem, 5.4vw, 5.2rem);
  font-weight: 530;
  line-height: 0.98;
  letter-spacing: -0.04em;
}

.section-copy .lead {
  max-width: 35rem;
  color: var(--ink);
  font-size: clamp(1.15rem, 2vw, 1.45rem);
  line-height: 1.4;
}

.section-copy > p:last-of-type,
.section-heading--split > p,
.pressure__heading > p,
.rules__intro > p,
.final__content > p,
.registration__content > div > p {
  max-width: 42rem;
  color: var(--muted);
  line-height: 1.68;
}

.photo-pair {
  display: grid;
  grid-template-columns: 1.35fr 0.75fr;
  align-items: end;
  gap: 1rem;
}

.photo-pair figure {
  overflow: hidden;
  background: var(--blue-soft);
}

.photo-pair__main {
  aspect-ratio: 4 / 5;
}

.photo-pair__detail {
  margin-bottom: -3rem;
}

.photo-pair img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.86);
}

.photo-pair__detail img {
  aspect-ratio: 3 / 4;
}

.photo-pair figcaption {
  padding: 0.8rem 0;
  color: var(--muted);
  background: var(--paper);
  font-size: 0.75rem;
  line-height: 1.4;
}

.pressure {
  color: var(--white);
  background: var(--night);
}

.pressure__heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(18rem, 0.65fr);
  align-items: end;
  gap: 2rem;
  margin-bottom: clamp(3rem, 7vw, 6rem);
}

.pressure__heading > p {
  color: color-mix(in oklch, var(--white) 67%, transparent);
}

.capabilities {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  padding: 0;
  border-top: 1px solid color-mix(in oklch, var(--white) 20%, transparent);
}

.capabilities li {
  position: relative;
  min-height: 24rem;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  padding: 1.5rem;
  overflow: hidden;
  border-right: 1px solid color-mix(in oklch, var(--white) 20%, transparent);
}

.capabilities li:first-child {
  border-left: 1px solid color-mix(in oklch, var(--white) 20%, transparent);
}

.capabilities h3 {
  position: absolute;
  top: 1.25rem;
  right: 9.75rem;
  left: 1.5rem;
  height: 7.75rem;
  display: flex;
  align-items: center;
  margin: 0;
  font-size: clamp(1.15rem, 1.5vw, 1.35rem);
  font-weight: 600;
  line-height: 1.08;
}

.capabilities p {
  color: color-mix(in oklch, var(--white) 67%, transparent);
  font-size: 0.9rem;
}

.capabilities__art {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  width: 7.75rem;
  height: 7.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  pointer-events: none;
}

.capabilities__art img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center bottom;
}

.section-heading--split {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(18rem, 0.55fr);
  align-items: end;
  gap: 2rem;
  margin-bottom: clamp(3rem, 7vw, 6rem);
}

.section-heading--split .label {
  margin-bottom: 1rem;
}

.stage-list {
  position: relative;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  padding: 0;
}

.stage-list::before {
  content: "";
  position: absolute;
  top: 2.4rem;
  left: 7%;
  right: 7%;
  height: 1px;
  background: var(--line);
}

.stage {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 2rem;
  padding: 0 1.25rem 2rem;
}

.stage__marker {
  width: 4.8rem;
  height: 4.8rem;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 1.15rem;
  color: var(--blue-deep);
  background: var(--paper);
}

.stage__marker span {
  font-size: 1.4rem;
  font-weight: 650;
  line-height: 1;
}

.stage__marker em {
  color: var(--muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.58rem;
  font-style: normal;
  line-height: 1;
  text-transform: uppercase;
}

.stage--accent .stage__marker {
  color: var(--white);
  background: var(--blue);
  border-color: var(--blue);
}

.stage:first-child .stage__marker {
  color: var(--night-deep);
  background: var(--blue);
  border-color: var(--blue);
}

.stage:first-child .stage__marker em {
  color: color-mix(in srgb, var(--night-deep) 74%, transparent);
}

.stage:nth-child(2) .stage__marker {
  color: var(--night-deep);
  background: var(--gold);
  border-color: var(--gold);
}

.stage:nth-child(2) .stage__marker em {
  color: color-mix(in srgb, var(--night-deep) 72%, transparent);
}

.stage:nth-child(3) .stage__marker {
  color: var(--white);
  background: var(--red);
  border-color: var(--red);
}

.stage:nth-child(3) .stage__marker em {
  color: color-mix(in srgb, var(--white) 76%, transparent);
}

.stage--accent .stage__marker em {
  color: color-mix(in oklch, var(--white) 75%, transparent);
}

.stage__body {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.stage__status {
  color: var(--blue-deep);
  font-size: 0.76rem;
  font-weight: 760;
  text-transform: uppercase;
}

.stage h3 {
  font-size: clamp(1.6rem, 2.8vw, 2.4rem);
  font-weight: 580;
  line-height: 1.05;
  letter-spacing: -0.025em;
}

.stage__body > p:last-child {
  color: var(--muted);
}

.final {
  position: relative;
  min-height: 65rem;
  display: flex;
  align-items: stretch;
  color: var(--white);
  background: var(--night-deep);
}

.final > img,
.final__overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.final > img {
  object-fit: cover;
  object-position: center;
  filter: saturate(0.65) contrast(1.06);
}

.final__overlay {
  background:
    linear-gradient(90deg, color-mix(in oklch, var(--night-deep) 96%, transparent) 0%, color-mix(in oklch, var(--night-deep) 78%, transparent) 55%, color-mix(in oklch, var(--night-deep) 30%, transparent) 100%),
    linear-gradient(0deg, color-mix(in oklch, var(--night-deep) 88%, transparent), transparent 50%);
}

.final__content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.5rem;
  padding-block: var(--section);
}

.label--light {
  color: var(--signal);
}

.final h2 {
  max-width: 14ch;
  font-size: clamp(2.75rem, 6.6vw, 5.8rem);
  font-weight: 520;
  line-height: 0.95;
  letter-spacing: -0.04em;
}

.final__content > p {
  color: color-mix(in oklch, var(--white) 75%, transparent);
}

.schedule {
  width: min(100%, 49rem);
  list-style: none;
  margin-top: 2rem;
  padding: 0;
  border-top: 1px solid color-mix(in oklch, var(--white) 22%, transparent);
}

.schedule li {
  display: grid;
  grid-template-columns: 6rem minmax(0, 1fr);
  gap: 1.5rem;
  padding: 1.35rem 0;
  border-bottom: 1px solid color-mix(in oklch, var(--white) 22%, transparent);
}

.schedule time {
  color: var(--signal);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.9rem;
}

.schedule h3 {
  font-size: 1.2rem;
  font-weight: 620;
}

.schedule p {
  margin-top: 0.25rem;
  color: color-mix(in oklch, var(--white) 62%, transparent);
  font-size: 0.85rem;
}

.schedule__main {
  margin-inline: -1rem;
  padding-inline: 1rem !important;
  color: var(--night-deep);
  background: var(--signal);
}

.schedule__main time,
.schedule__main p {
  color: var(--night-deep);
}

.rules__grid {
  display: grid;
  grid-template-columns: minmax(18rem, 0.72fr) minmax(0, 1.28fr);
  gap: clamp(3rem, 8vw, 8rem);
}

.rules__intro {
  position: sticky;
  top: calc(var(--header-height) + 2rem);
  align-self: start;
}

.rules__document-link {
  width: fit-content;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin-top: 1.5rem;
  color: var(--blue-deep);
  font-size: 0.9rem;
  font-weight: 720;
  line-height: 1.2;
  text-decoration: none;
}

.rules__document-link > span:first-child {
  border-bottom: 1px solid currentColor;
}

.rules__document-arrow {
  transition: transform 180ms ease;
}

.rules__document-link:hover .rules__document-arrow {
  transform: translate(0.16rem, -0.16rem);
}

.accordion {
  border-top: 1px solid var(--line);
}

.accordion details {
  border-bottom: 1px solid var(--line);
}

.accordion summary {
  list-style: none;
  min-height: 5.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  cursor: pointer;
  font-size: clamp(1.05rem, 1.8vw, 1.3rem);
  font-weight: 620;
}

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

.accordion summary b {
  color: var(--blue-deep);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.75rem;
  font-weight: 600;
}

.accordion details > div {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 300ms var(--ease-out);
}

.accordion details[open] > div {
  grid-template-rows: 1fr;
}

.accordion details > div > p {
  max-width: 47rem;
  margin-bottom: 1.75rem;
  overflow: hidden;
  color: var(--muted);
  line-height: 1.65;
}

.faq .accordion summary b {
  font-family: inherit;
  font-size: 1.4rem;
  transition: transform 220ms var(--ease-out);
}

.faq .accordion details[open] summary b {
  transform: rotate(45deg);
}

.awards {
  padding-block: var(--section);
  background: var(--blue-soft);
}

.awards__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(18rem, 0.92fr);
  align-items: center;
  gap: clamp(3rem, 8vw, 8rem);
}

.awards figure {
  aspect-ratio: 4 / 3;
  overflow: hidden;
}

.awards img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.82);
}

.awards__copy {
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
}

.awards__copy ul {
  list-style: none;
  padding: 0;
  border-top: 1px solid color-mix(in oklch, var(--blue-deep) 20%, transparent);
}

.awards__copy li {
  position: relative;
  padding: 1rem 0 1rem 2rem;
  border-bottom: 1px solid color-mix(in oklch, var(--blue-deep) 20%, transparent);
}

.awards__copy li::before {
  content: "↗";
  position: absolute;
  left: 0;
  color: var(--blue-deep);
  font-weight: 800;
}

.faq__grid {
  display: grid;
  grid-template-columns: minmax(15rem, 0.7fr) minmax(0, 1.3fr);
  gap: clamp(3rem, 8vw, 8rem);
}

.faq .label {
  margin-bottom: 1rem;
}

.organizers {
  color: var(--ink);
  background: var(--white);
}

.partner-grid {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.partner-grid--organizers {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.partner-grid--sponsors {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.partner-card {
  min-width: 0;
  display: flex;
  flex-direction: column;
  color: var(--ink);
  background: transparent;
  border: 0;
  border-right: 1px solid var(--line);
  text-decoration: none;
  transition: background-color 180ms ease;
}

.partner-card:last-child {
  border-right: 0;
}

.partner-card:is(a):hover {
  background: color-mix(in oklch, var(--blue-soft) 32%, transparent);
}

.partner-card__logo {
  height: clamp(9rem, 15vw, 12.5rem);
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(1.5rem, 3vw, 2.5rem);
  background: transparent;
}

.partner-card__logo img {
  width: 100%;
  max-width: 13rem;
  max-height: 6.5rem;
  object-fit: contain;
}

.partner-card__logo--algonova img {
  max-height: 3rem;
}

.partner-card__logo--stupeni img {
  max-width: 14rem;
}

.partner-card__logo--sfedu img {
  max-width: 7rem;
  max-height: 7rem;
}

.partner-card__copy {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.65rem;
  padding: clamp(1.35rem, 2.5vw, 2rem);
}

.partner-card__copy strong,
.partner-card__copy h3 {
  min-height: 2.3em;
  display: block;
  margin: 0;
  color: var(--ink);
  font-size: clamp(1.1rem, 1.6vw, 1.4rem);
  font-weight: 720;
  line-height: 1.15;
  letter-spacing: -0.025em;
}

.partner-card__copy span,
.partner-card__copy p {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.55;
}

.registration {
  position: relative;
  overflow: hidden;
  color: var(--night-deep);
  background: var(--blue);
}

.registration__line {
  position: absolute;
  top: 15%;
  left: -6%;
  width: 112%;
  padding: 0.65rem 0;
  color: var(--night-deep);
  background: var(--signal);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: clamp(0.8rem, 1.5vw, 1.1rem);
  font-weight: 800;
  letter-spacing: 0.12em;
  white-space: nowrap;
  transform: rotate(-3deg);
}

.registration__content {
  position: relative;
  z-index: 1;
  min-height: 43rem;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(18rem, 0.55fr);
  align-content: end;
  align-items: end;
  gap: 3rem;
  padding-block: 8rem 5rem;
}

.registration__content > p {
  position: absolute;
  top: 2.5rem;
  left: 0;
  font-size: 0.8rem;
  font-weight: 760;
  text-transform: uppercase;
}

.registration h2 {
  max-width: 11ch;
}

.registration__content > div {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.5rem;
}

.registration__content > div > p {
  color: color-mix(in srgb, var(--night-deep) 80%, transparent);
}

.registration .text-link {
  color: var(--night-deep);
}

.footer {
  padding-block: 4rem 2rem;
  color: var(--white);
  background: var(--night-deep);
}

.footer__grid {
  display: grid;
  grid-template-columns: minmax(9rem, 0.6fr) minmax(18rem, 1.3fr) minmax(9rem, 0.4fr);
  gap: 2rem;
  align-items: start;
}

.brand--footer {
  width: 9rem;
  height: 3.68rem;
  align-items: flex-start;
  padding: 0;
  overflow: hidden;
  border-radius: 0;
  background: transparent;
}

.brand--footer img {
  width: 100%;
  height: auto;
  max-width: none;
  object-fit: initial;
}

.footer__grid > p {
  max-width: 26rem;
  color: color-mix(in oklch, var(--white) 68%, transparent);
}

.footer__grid > div {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.footer a {
  text-underline-offset: 0.25em;
}

.footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  margin-top: 4rem;
  padding-top: 1.5rem;
  color: color-mix(in oklch, var(--white) 52%, transparent);
  border-top: 1px solid color-mix(in oklch, var(--white) 16%, transparent);
  font-size: 0.75rem;
}

.reveal {
  opacity: 1;
  transform: none;
  transition:
    opacity 700ms var(--ease-out),
    transform 700ms var(--ease-out);
}

@keyframes hero-settle {
  from { transform: scale(1.045); filter: saturate(0.55) contrast(1.08); }
  to { transform: scale(1); filter: saturate(0.78) contrast(1.08); }
}

@keyframes title-enter {
  from { transform: translateY(2rem); }
  to { transform: translateY(0); }
}

@keyframes identity-enter {
  from { opacity: 0; transform: translateX(7rem) rotate(-4deg); }
  to { opacity: 0.24; transform: translateX(0) rotate(-4deg); }
}

@media (max-width: 1100px) {
  .desktop-nav {
    display: none;
  }

  .topbar__cta {
    margin-left: auto;
  }

  .hero__identity {
    display: none;
  }

  .capabilities {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .capabilities li:nth-child(2) {
    border-right: 0;
  }

  .capabilities li:nth-child(n + 3) {
    border-top: 1px solid color-mix(in oklch, var(--white) 20%, transparent);
  }
}

@media (max-width: 760px) {
  :root {
    --header-height: 5.35rem;
    --section: clamp(4.5rem, 18vw, 7rem);
  }

  .brand {
    width: 6.6rem;
    height: 4.35rem;
    padding: 0.3rem 0.45rem;
  }

  .topbar__cta {
    min-height: 2.8rem;
    margin-left: auto;
    padding-inline: 0.75rem;
    font-size: 0.75rem;
  }

  .js .topbar__cta {
    display: none;
  }

  .js .menu-toggle {
    width: 2.8rem;
    height: 2.8rem;
    display: grid;
    place-content: center;
    gap: 0.42rem;
    padding: 0;
    color: currentColor;
    background: transparent;
    border: 1px solid currentColor;
    border-radius: 0.45rem;
  }

  .menu-toggle span:not(.visually-hidden) {
    width: 1.2rem;
    height: 1px;
    display: block;
    background: currentColor;
    transition: transform 200ms var(--ease-out);
  }

  .topbar.is-open .menu-toggle span:first-child {
    transform: translateY(0.235rem) rotate(45deg);
  }

  .topbar.is-open .menu-toggle span:nth-child(2) {
    transform: translateY(-0.235rem) rotate(-45deg);
  }

  .mobile-menu {
    position: fixed;
    inset: var(--header-height) 0 0;
    height: calc(100dvh - var(--header-height));
    display: block;
    padding: 1rem var(--gutter) 2rem;
    background: var(--paper);
    overflow-y: auto;
  }

  .mobile-menu[hidden] {
    display: none;
  }

  .mobile-menu nav {
    display: flex;
    flex-direction: column;
  }

  .mobile-menu nav > a:not(.button) {
    padding: 1rem 0;
    border-bottom: 1px solid var(--line);
    font-size: clamp(1.5rem, 7vw, 2.2rem);
    font-weight: 580;
    line-height: 1.1;
    letter-spacing: -0.025em;
    text-decoration: none;
  }

  .mobile-menu .button {
    margin-top: 1.5rem;
  }

  .hero {
    min-height: max(43rem, 100svh);
  }

  .hero__image {
    object-position: 61% center;
  }

  .hero__scrim {
    background:
      linear-gradient(0deg, color-mix(in oklch, var(--night-deep) 95%, transparent) 0%, color-mix(in oklch, var(--night-deep) 72%, transparent) 56%, color-mix(in oklch, var(--night-deep) 42%, transparent) 100%);
  }

  .hero__route {
    top: 17%;
    right: -11rem;
    width: 31rem;
    height: 6rem;
  }

  .hero__content {
    gap: 1.6rem;
    padding-top: 14rem;
    padding-bottom: 2.5rem;
  }

  .hero h1 {
    max-width: 100%;
    min-width: 0;
    font-size: clamp(2rem, 9.7vw, 3.7rem);
    letter-spacing: -0.035em;
  }

  .hero__footer {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .hero__actions {
    width: 100%;
    align-items: stretch;
  }

  .hero__actions .button {
    max-width: 100%;
  }

  .hero__meta,
  .label,
  .facts span,
  .photo-pair figcaption,
  .stage__status,
  .schedule p,
  .footer__bottom {
    font-size: 0.875rem;
  }

  .facts__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .facts__grid > div {
    min-height: 8.5rem;
    border-bottom: 1px solid color-mix(in oklch, var(--white) 20%, transparent);
  }

  .facts__grid > div:nth-child(2n) {
    border-right: 1px solid color-mix(in oklch, var(--white) 20%, transparent);
  }

  .about__grid,
  .pressure__heading,
  .section-heading--split,
  .rules__grid,
  .awards__grid,
  .faq__grid,
  .registration__content,
  .footer__grid {
    grid-template-columns: 1fr;
  }

  .section h2,
  .pressure h2,
  .awards h2,
  .registration h2 {
    font-size: clamp(2.35rem, 11vw, 4.2rem);
  }

  .about__grid {
    gap: 3.5rem;
  }

  .photo-pair {
    grid-template-columns: 1.25fr 0.8fr;
    gap: 0.65rem;
  }

  .photo-pair__detail {
    margin-bottom: -2rem;
  }

  .capabilities {
    grid-template-columns: 1fr;
  }

  .capabilities li,
  .capabilities li:nth-child(2) {
    min-height: 15rem;
    border-right: 1px solid color-mix(in oklch, var(--white) 20%, transparent);
    border-bottom: 1px solid color-mix(in oklch, var(--white) 20%, transparent);
  }

  .capabilities li:nth-child(n + 2) {
    border-top: 0;
  }

  .capabilities__art {
    width: 7.75rem;
    height: 7.75rem;
  }

  .stage-list {
    grid-template-columns: 1fr;
    gap: 2.4rem;
  }

  .stage-list::before {
    top: 1rem;
    bottom: 1rem;
    left: 2.4rem;
    right: auto;
    width: 1px;
    height: auto;
  }

  .stage {
    flex-direction: row;
    align-items: flex-start;
    padding: 0;
  }

  .stage__marker {
    flex: none;
  }

  .stage__body {
    padding-top: 0.2rem;
  }

  .final {
    min-height: 62rem;
  }

  .final__overlay {
    background: linear-gradient(0deg, color-mix(in oklch, var(--night-deep) 97%, transparent) 0%, color-mix(in oklch, var(--night-deep) 78%, transparent) 70%, color-mix(in oklch, var(--night-deep) 42%, transparent) 100%);
  }

  .final h2 {
    font-size: clamp(2.55rem, 12vw, 4.7rem);
  }

  .schedule li {
    grid-template-columns: 4.5rem minmax(0, 1fr);
    gap: 0.75rem;
  }

  .rules__intro {
    position: static;
  }

  .awards__grid {
    gap: 3rem;
  }

  .registration__content {
    min-height: 42rem;
    align-content: end;
    gap: 2rem;
  }

  .registration__line {
    top: 18%;
  }

  .footer__grid {
    gap: 2.5rem;
  }

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

@media (max-width: 430px) {
  .hero__actions,
  .hero__actions .button {
    width: 100%;
  }

  .hero__actions .text-link {
    width: auto;
  }

  .facts__grid > div {
    padding-inline: 0.85rem;
  }

  .facts strong {
    font-size: 2rem;
  }

  .facts span {
    font-size: 0.78rem;
  }

  .photo-pair {
    grid-template-columns: 1fr;
  }

  .photo-pair__detail {
    width: 64%;
    margin: -6rem 0 0 auto;
    border: 0.45rem solid var(--paper);
  }

  .photo-pair figcaption {
    padding-inline: 0.4rem;
  }

  .stage {
    gap: 1rem;
  }

  .stage__marker {
    width: 4.2rem;
    height: 4.2rem;
  }

  .stage-list::before {
    left: 2.1rem;
  }

  .schedule h3 {
    font-size: 1.05rem;
  }
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

}

/* Registered teams */
.topbar--solid {
  color: var(--ink);
  background: color-mix(in srgb, var(--paper) 96%, transparent);
  border-color: var(--line);
  backdrop-filter: blur(14px);
}

.topbar--solid .brand {
  filter: none;
}

.topbar--solid .button--blue {
  color: var(--night-deep);
}

.teams-hero {
  padding-block: calc(var(--header-height) + clamp(4rem, 9vw, 8rem)) clamp(4rem, 8vw, 7rem);
  overflow: hidden;
  background: var(--blue-soft);
}

.teams-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(20rem, 0.85fr);
  align-items: end;
  gap: clamp(3rem, 7vw, 7rem);
}

.teams-hero__grid > * {
  min-width: 0;
}

.teams-hero h1 {
  max-width: 13ch;
  margin-top: 1rem;
  font-size: clamp(3.1rem, 7vw, 6rem);
  font-weight: 530;
  line-height: 0.94;
  letter-spacing: -0.04em;
}

.teams-hero__grid > div:first-child > p:last-child {
  max-width: 44rem;
  margin-top: 2rem;
  color: var(--muted);
  font-size: clamp(1rem, 1.6vw, 1.2rem);
  line-height: 1.65;
}

.identity-panels {
  aspect-ratio: 1583 / 647;
  overflow: hidden;
  transform: rotate(-3deg);
}

.identity-panels img {
  width: 100%;
  max-width: none;
  height: auto;
}

.teams-summary {
  color: var(--white);
  background: var(--blue-deep);
}

.teams-summary__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.teams-summary__grid > div {
  min-height: 10rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.5rem clamp(1rem, 2.8vw, 2.75rem);
  border-left: 1px solid color-mix(in srgb, var(--white) 20%, transparent);
}

.teams-summary__grid > div:last-child {
  border-right: 1px solid color-mix(in srgb, var(--white) 20%, transparent);
}

.teams-summary strong {
  font-size: clamp(2rem, 4vw, 3.7rem);
  font-weight: 540;
  line-height: 1;
}

.teams-summary span {
  color: color-mix(in srgb, var(--white) 76%, transparent);
  font-size: 0.9rem;
}

.teams-directory__heading a {
  color: var(--blue-deep);
  font-weight: 650;
  text-underline-offset: 0.25em;
}

.teams-tools {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(15rem, 0.36fr);
  gap: 1rem;
  margin-bottom: 1rem;
}

.teams-tools label {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 680;
}

.teams-tools input,
.teams-tools select {
  width: 100%;
  min-height: 3.5rem;
  padding: 0.8rem 1rem;
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 0.45rem;
  font: inherit;
  font-size: 1rem;
}

.teams-result-count {
  min-height: 1.5rem;
  margin: 1.25rem 0;
  color: var(--muted);
  font-size: 0.85rem;
}

.teams-noscript {
  margin-block: 1.5rem;
  padding: 1rem;
  color: var(--white);
  background: var(--blue-deep);
}

.teams-noscript a {
  font-weight: 700;
  text-underline-offset: 0.25em;
}

.teams-table-wrap {
  overflow-x: auto;
  border-top: 3px solid var(--blue);
}

.teams-table {
  width: 100%;
  min-width: 60rem;
  border-collapse: collapse;
  background: var(--white);
}

.teams-table th,
.teams-table td {
  padding: 1.15rem 1rem;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.teams-table th {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 750;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.teams-table td:first-child,
.teams-table time {
  color: var(--muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.78rem;
}

.team-status {
  display: inline-block;
  padding: 0.42rem 0.58rem;
  border-radius: 0.35rem;
  color: var(--blue-deep);
  background: var(--blue-soft);
  font-size: 0.76rem;
  font-weight: 760;
}

.team-status--confirmed {
  color: var(--night-deep);
  background: var(--signal);
}

.team-status--clarification {
  color: var(--night-deep);
  background: var(--gold);
}

.team-status--withdrawn {
  color: var(--white);
  background: var(--red);
}

.teams-summary__grid > div:nth-child(2) {
  border-top: 4px solid var(--blue);
}

.teams-summary__grid > div:nth-child(3) {
  border-top: 4px solid var(--gold);
}

.teams-summary__grid > div:nth-child(4) {
  border-top: 4px solid var(--red);
}

.teams-empty {
  min-height: 22rem;
  display: grid;
  grid-template-columns: minmax(10rem, 0.55fr) minmax(18rem, 1fr);
  align-items: center;
  gap: clamp(2rem, 6vw, 6rem);
  padding: clamp(2rem, 5vw, 5rem);
  color: var(--white);
  background: var(--night);
  border-radius: 1.15rem;
}

.teams-empty > span {
  color: var(--blue);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: clamp(4rem, 10vw, 9rem);
  line-height: 1;
}

.teams-empty > div {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.25rem;
}

.teams-empty h3 {
  font-size: clamp(2rem, 4vw, 3.6rem);
  font-weight: 540;
  line-height: 1;
}

.teams-empty p {
  max-width: 36rem;
  color: color-mix(in srgb, var(--white) 68%, transparent);
}

@media (max-width: 760px) {
  .teams-hero__grid,
  .teams-tools,
  .teams-empty {
    grid-template-columns: 1fr;
  }

  .partner-grid--organizers,
  .partner-grid--sponsors {
    grid-template-columns: 1fr;
  }

  .partner-card {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .partner-card:last-child {
    border-bottom: 0;
  }

  .partner-card__copy strong,
  .partner-card__copy h3 {
    min-height: 0;
  }

  .teams-hero {
    padding-top: calc(var(--header-height) + 3rem);
  }

  .teams-hero h1 {
    max-width: 100%;
    font-size: clamp(1.8rem, 8.8vw, 3.1rem);
  }

  .identity-panels {
    width: 115%;
    margin-left: -7%;
  }

  .teams-summary__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .teams-summary__grid > div {
    min-height: 8.5rem;
    border-bottom: 1px solid color-mix(in srgb, var(--white) 20%, transparent);
  }

  .teams-summary__grid > div:nth-child(2n) {
    border-right: 1px solid color-mix(in srgb, var(--white) 20%, transparent);
  }

  .teams-table-wrap {
    overflow: visible;
    border-top: 0;
  }

  .teams-table,
  .teams-table tbody,
  .teams-table tr,
  .teams-table td {
    display: block;
    width: 100%;
    min-width: 0;
  }

  .teams-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
  }

  .teams-table tr {
    margin-bottom: 1rem;
    padding: 0.4rem 1rem;
    background: var(--white);
    border-top: 3px solid var(--blue);
  }

  .teams-table td {
    display: grid;
    grid-template-columns: minmax(7.5rem, 0.7fr) minmax(0, 1fr);
    gap: 1rem;
    padding: 0.8rem 0;
  }

  .teams-table td::before {
    content: attr(data-label);
    color: var(--muted);
    font-size: 0.72rem;
    font-weight: 750;
    letter-spacing: 0.05em;
    text-transform: uppercase;
  }

  .teams-empty {
    min-height: 28rem;
  }
}

/* The header uses the graphic part of the event logo without a backing plate. */
.topbar .brand--event {
  width: 7.5rem;
  height: 3.07rem;
  align-items: flex-start;
  padding: 0;
  overflow: hidden;
  border-radius: 0;
  background: transparent;
}

.topbar .brand--event img {
  width: 100%;
  height: auto;
  max-width: none;
  object-fit: initial;
}

@media (max-width: 760px) {
  .topbar .brand--event {
    width: 6.65rem;
    height: 2.72rem;
  }
}

/* Long-form championship content transferred from the previous landing. */
.hero__meta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.18rem;
}

.hero__footer {
  grid-template-columns: minmax(0, 1fr);
}

.section-heading {
  margin-bottom: clamp(3rem, 7vw, 6rem);
}

.schedule-date {
  color: var(--white) !important;
  font-size: clamp(1.15rem, 2vw, 1.45rem);
  font-weight: 620;
}

.rules-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line);
}

.rules-list li {
  display: grid;
  grid-template-columns: 4.8rem minmax(0, 1fr);
  gap: clamp(1.25rem, 3vw, 2.5rem);
  padding: clamp(1.5rem, 3.5vw, 2.7rem) 0;
  border-bottom: 1px solid var(--line);
}

.rules-list li > span {
  width: 3.4rem;
  height: 3.4rem;
  display: grid;
  place-items: center;
  border: 1px solid var(--blue);
  border-radius: 1rem;
  color: var(--blue-deep);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.9rem;
  font-weight: 700;
}

.rules-list li:nth-child(3n + 2) > span {
  border-color: var(--gold);
}

.rules-list li:nth-child(3n) > span {
  border-color: var(--red);
}

.rules-list p {
  color: var(--muted);
  font-size: clamp(0.98rem, 1.25vw, 1.08rem);
  line-height: 1.75;
}

.jury {
  background: var(--blue-soft);
}

.jury-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid color-mix(in srgb, var(--blue-deep) 20%, transparent);
}

.jury-card {
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  align-content: start;
  row-gap: clamp(1.35rem, 2.5vw, 2rem);
  column-gap: clamp(0.54rem, 1vw, 0.8rem);
  padding: 0 clamp(1.5rem, 4vw, 3rem) clamp(1.75rem, 4vw, 3rem) clamp(0.6rem, 1.6vw, 1.2rem);
  border-right: 1px solid color-mix(in srgb, var(--blue-deep) 20%, transparent);
  border-bottom: 1px solid color-mix(in srgb, var(--blue-deep) 20%, transparent);
}

.jury-card:nth-child(4n) {
  border-right: 0;
}

.jury-card__photo {
  position: relative;
  grid-column: 1 / -1;
  min-height: clamp(13rem, 26vw, 20rem);
  margin-inline: calc(clamp(1.5rem, 4vw, 3rem) * -1);
  margin-inline-start: calc(clamp(0.6rem, 1.6vw, 1.2rem) * -1);
  overflow: hidden;
  background-color: color-mix(in srgb, var(--white) 58%, var(--blue-soft));
}

.jury-card__photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 24%;
}

.jury-card > b {
  color: var(--blue-deep);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.85rem;
  font-weight: 700;
  padding-inline: 0.25rem;
}

.jury-card__copy {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.jury-card h3 {
  max-width: 17ch;
  font-size: clamp(1.55rem, 3vw, 2.5rem);
  font-weight: 560;
  line-height: 1.04;
  letter-spacing: -0.025em;
}

.jury-card p {
  color: var(--muted);
  line-height: 1.55;
}

.sponsors {
  background: var(--blue-soft);
}

.sponsors .partner-card {
  background: transparent;
}

.sponsor-mark {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--night-deep);
  font-size: clamp(1.15rem, 2vw, 1.8rem);
  font-weight: 720;
  letter-spacing: -0.03em;
  text-align: center;
}

.sponsor-mark--center {
  color: var(--blue-deep);
  font-size: clamp(0.95rem, 1.6vw, 1.3rem);
  letter-spacing: -0.01em;
}

.sponsor-mark--ga,
.sponsor-mark--dbi {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: clamp(2rem, 4vw, 4rem);
  font-weight: 800;
}

.sponsor-mark--dbi {
  flex-direction: column;
  gap: 0.25rem;
  font-style: italic;
}

.sponsor-mark--dbi small {
  max-width: 100%;
  font-family: inherit;
  font-size: 0.55rem;
  font-style: normal;
  font-weight: 650;
  letter-spacing: 0;
  overflow-wrap: anywhere;
}

.faq-dialogues summary > span {
  display: grid;
  gap: 0.35rem;
}

.faq-dialogues summary small {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 520;
}

.faq-dialogues details > div > p strong {
  display: block;
  margin-bottom: 0.4rem;
  color: var(--blue-deep);
  font-size: 0.76rem;
  font-weight: 700;
}

.source-link {
  display: inline-block;
  margin-top: 0.8rem;
  color: var(--red);
  font-weight: 650;
  text-decoration: underline;
  text-underline-offset: 0.25em;
}

@media (max-width: 1279px) {
  .jury-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .jury-card:nth-child(4n) {
    border-right: 1px solid color-mix(in srgb, var(--blue-deep) 20%, transparent);
  }

  .jury-card:nth-child(3n) {
    border-right: 0;
  }
}

@media (max-width: 980px) {
  .jury-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .jury-card:nth-child(3n) {
    border-right: 1px solid color-mix(in srgb, var(--blue-deep) 20%, transparent);
  }

  .jury-card:nth-child(2n) {
    border-right: 0;
  }
}

@media (max-width: 760px) {
  .final h2 {
    max-width: 100%;
    font-size: clamp(2.05rem, 9vw, 3.6rem);
  }

  .rules-list li {
    grid-template-columns: 3.2rem minmax(0, 1fr);
    gap: 0.9rem;
  }

  .rules-list li > span {
    width: 2.8rem;
    height: 2.8rem;
    border-radius: 0.8rem;
  }

  .jury-grid {
    grid-template-columns: 1fr;
  }

  .jury-card,
  .jury-card:nth-child(n) {
    grid-template-columns: max-content minmax(0, 1fr);
    row-gap: 0.9rem;
    column-gap: 0.36rem;
    padding-inline: 0;
    border-right: 0;
  }

  .jury-card__photo {
    min-height: 15rem;
    margin-inline: 0;
  }

}

/* Refinement based on the approved grid-led direction. */
.hero::before,
.stages::before,
.registration::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(color-mix(in srgb, var(--white) 8%, transparent) 1px, transparent 1px),
    linear-gradient(90deg, color-mix(in srgb, var(--white) 8%, transparent) 1px, transparent 1px);
  background-size: clamp(3.5rem, 6vw, 5.25rem) clamp(3.5rem, 6vw, 5.25rem);
  opacity: 0.7;
}

.hero::before {
  z-index: 1;
  animation: grid-enter 1.2s 120ms var(--ease-out) both;
}

.hero__content {
  grid-template-columns: minmax(0, 1.42fr) minmax(18rem, 0.72fr);
  align-items: end;
  gap: clamp(2.5rem, 6vw, 6rem);
}

.hero__intro {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: clamp(1.8rem, 4vw, 3.5rem);
}

.hero__meta {
  animation: copy-enter 700ms 120ms var(--ease-out) both;
}

.hero__meta span:first-child {
  display: inline-block;
  padding: 0.35rem 0.5rem;
  color: var(--night-deep);
  background: var(--blue);
}

.hero__footer {
  animation: copy-enter 700ms 420ms var(--ease-out) both;
}

.hero__format {
  min-width: 0;
  padding: clamp(1.35rem, 2.5vw, 2rem);
  border: 1px solid color-mix(in srgb, var(--white) 18%, transparent);
  background: color-mix(in srgb, var(--night-deep) 72%, transparent);
  backdrop-filter: blur(8px);
  animation: format-enter 850ms 520ms var(--ease-out) both;
}

.hero__format > p {
  color: color-mix(in srgb, var(--white) 55%, transparent);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.68rem;
  font-weight: 650;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero__format dl {
  margin-top: 1.2rem;
}

.hero__format dl > div {
  min-height: 4.2rem;
  display: flex;
  align-items: baseline;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid color-mix(in srgb, var(--white) 13%, transparent);
}

.hero__format dl > div:first-child {
  padding-top: 0;
}

.hero__format dl > div:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.hero__format dt {
  order: 2;
  min-width: 0;
  color: color-mix(in srgb, var(--white) 65%, transparent);
  font-size: 0.84rem;
}

.hero__format dd {
  order: 1;
  min-width: 2.5rem;
  color: var(--white);
  font-size: clamp(2rem, 3.5vw, 3.25rem);
  font-weight: 580;
  line-height: 1;
  letter-spacing: -0.04em;
}

.hero__format dd small {
  color: color-mix(in srgb, var(--white) 50%, transparent);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.stages {
  position: relative;
  overflow: hidden;
  color: var(--white);
  background: var(--night-deep);
}

.stages .container {
  position: relative;
  z-index: 1;
}

.stages h2 {
  color: var(--white);
}

.stage-list {
  gap: 1px;
  overflow: visible;
  background: color-mix(in srgb, var(--white) 16%, transparent);
}

.stage-list::before {
  content: none;
}

.stage {
  min-height: 29rem;
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
  padding: clamp(1.6rem, 3.2vw, 2.8rem);
  overflow: visible;
  background: var(--night);
}

.stage::before {
  content: "";
  width: 100%;
  height: 1px;
  margin-top: 0.35rem;
  background: color-mix(in srgb, var(--white) 22%, transparent);
  box-shadow: -0.15rem 0 0 0.15rem var(--blue);
}

.stage:nth-child(2)::before {
  box-shadow: -0.15rem 0 0 0.15rem var(--gold);
}

.stage:nth-child(3)::before {
  box-shadow: -0.15rem 0 0 0.15rem var(--red);
}

.stage__marker,
.stage:first-child .stage__marker,
.stage:nth-child(2) .stage__marker,
.stage:nth-child(3) .stage__marker,
.stage--accent .stage__marker {
  width: auto;
  height: auto;
  display: block;
  margin-top: -0.5rem;
  color: color-mix(in srgb, var(--white) 14%, transparent);
  background: transparent;
  border: 0;
  border-radius: 0;
}

.stage__marker span {
  font-size: clamp(4rem, 7vw, 6.75rem);
  font-weight: 560;
  letter-spacing: -0.06em;
}

.stage__body {
  flex: 1;
  justify-content: flex-end;
  align-items: flex-start;
  gap: 1rem;
}

.stage h3 {
  color: var(--white);
}

.stage__status {
  order: -1;
  width: fit-content;
  padding: 0.35rem 0.5rem;
  color: var(--night-deep);
  background: var(--blue);
}

.stage__body > p:last-child {
  color: color-mix(in srgb, var(--white) 62%, transparent);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.76rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.stage .text-link--dark {
  margin-top: 0.8rem;
  color: var(--white);
}

.registration::before {
  opacity: 0.36;
}

.registration__line {
  display: none;
}

.registration__content {
  min-height: 39rem;
  grid-template-columns: minmax(0, 1.25fr) minmax(22rem, 0.85fr);
  align-content: center;
  align-items: end;
  gap: clamp(3rem, 7vw, 7rem);
  padding-block: clamp(6rem, 10vw, 9rem);
}

.registration__copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.5rem;
}

.registration__eyebrow {
  color: color-mix(in srgb, var(--night-deep) 65%, transparent);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.72rem;
  font-weight: 720;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.registration h2 {
  max-width: 12ch;
  color: var(--white);
}

.registration__actions {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.75rem;
}

.registration__actions .button,
.registration__actions .text-link {
  width: 100%;
  min-height: 4.5rem;
  justify-content: space-between;
  padding: 1.25rem 1.5rem;
  border-radius: 0;
}

.registration__actions .button::after {
  content: "→";
  font-size: 1.25rem;
}

.registration__actions .text-link {
  border: 1px solid color-mix(in srgb, var(--night-deep) 28%, transparent);
  text-decoration: none;
}

.js .reveal {
  opacity: 0;
  transform: translateY(1.125rem);
}

.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}

@keyframes copy-enter {
  from { opacity: 0; transform: translateY(1.125rem); }
  to { opacity: 1; transform: none; }
}

@keyframes format-enter {
  from { opacity: 0; transform: translateY(1.125rem) scale(0.985); }
  to { opacity: 1; transform: none; }
}

@keyframes grid-enter {
  from { opacity: 0; background-size: clamp(4.2rem, 7vw, 6rem) clamp(4.2rem, 7vw, 6rem); }
  to { opacity: 0.7; background-size: clamp(3.5rem, 6vw, 5.25rem) clamp(3.5rem, 6vw, 5.25rem); }
}

@media (max-width: 980px) {
  .hero__content,
  .registration__content {
    grid-template-columns: 1fr;
  }

  .hero__format {
    width: min(100%, 42rem);
  }

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

  .stage {
    min-height: 23rem;
  }
}

@media (max-width: 760px) {
  .hero {
    min-height: auto;
  }

  .hero__content {
    gap: 2rem;
    padding-top: 10rem;
    padding-bottom: 2rem;
  }

  .hero__intro {
    gap: 1.6rem;
  }

  .hero__format {
    padding: 1.25rem;
  }

  .hero__format dl {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero__format dl > div,
  .hero__format dl > div:first-child,
  .hero__format dl > div:last-child {
    min-height: 5.5rem;
    padding: 0.8rem;
    border-right: 1px solid color-mix(in srgb, var(--white) 13%, transparent);
    border-bottom: 1px solid color-mix(in srgb, var(--white) 13%, transparent);
  }

  .hero__format dl > div:nth-child(2n) {
    border-right: 0;
  }

  .hero__format dl > div:nth-last-child(-n + 2) {
    border-bottom: 0;
  }

  .stage {
    min-height: 21rem;
  }

  .registration__content {
    min-height: 38rem;
    align-content: center;
  }
}

/* Whole-page alignment with the approved reference: calmer type and surface rhythm. */
.section h2,
.pressure h2,
.awards h2,
.registration h2 {
  font-size: clamp(2.25rem, 4.7vw, 3.75rem);
  line-height: 0.98;
}

.hero h1 {
  max-width: 17ch;
  font-size: clamp(2.5rem, 5.1vw, 4.6rem);
}

.section-kicker,
.registration__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--blue-deep);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.7rem;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.section-kicker::before,
.registration__eyebrow::before {
  content: "";
  width: 1.5rem;
  height: 1px;
  flex: none;
  background: var(--blue);
}

.section-kicker--light {
  color: color-mix(in srgb, var(--white) 65%, transparent);
}

.section-heading {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.25rem;
}

.section-copy .section-kicker,
.rules__intro .section-kicker {
  margin-bottom: 0.15rem;
}

.pressure {
  color: var(--ink);
  background: var(--white);
}

.pressure__heading > div {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.25rem;
}

.capabilities {
  border-color: var(--line);
}

.capabilities li,
.capabilities li:first-child {
  min-height: 15.75rem;
  padding-top: 10rem;
  border-color: var(--line);
}

.capabilities h3 {
  color: var(--ink);
}

.capabilities p {
  color: var(--muted);
}

.final {
  min-height: 0;
  color: var(--ink);
  background: var(--white);
}

.final > img,
.final__overlay {
  display: none;
}

.final__content {
  gap: 1.35rem;
}

.final h2 {
  max-width: 18ch;
  color: var(--ink);
  font-size: clamp(2.25rem, 4.7vw, 3.75rem);
  line-height: 0.98;
}

.final__content > p,
.schedule-date {
  color: var(--muted) !important;
}

.schedule {
  width: 100%;
  margin-top: 2.5rem;
  border-color: var(--line);
}

.schedule li {
  grid-template-columns: 8rem minmax(0, 1fr) 11rem;
  align-items: center;
  gap: clamp(1.5rem, 3vw, 3rem);
  min-height: 10rem;
  padding: 1.15rem 0;
  color: var(--ink);
  border-color: var(--line);
}

.schedule li > div {
  display: flex;
  min-width: 0;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.4rem;
}

.schedule time {
  color: var(--blue-deep);
}

.schedule p {
  margin-top: 0;
  max-width: 62ch;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.55;
}

.schedule .schedule__location {
  margin-top: 0.1rem;
  color: color-mix(in oklch, var(--muted) 76%, transparent);
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.schedule__main {
  margin-inline: -1.25rem;
  padding: 1.8rem 1.25rem !important;
  color: var(--ink);
  background: var(--blue-soft);
}

.schedule__main time {
  font-size: 1rem;
  font-weight: 700;
}

.schedule__main h3 {
  font-size: clamp(1.5rem, 2.4vw, 2rem);
}

.schedule__main time,
.schedule__main p,
.schedule__main .schedule__location {
  color: inherit;
}

.schedule__scene {
  position: relative;
  width: 100%;
  height: 7.75rem;
  display: grid;
  place-items: center;
  margin: 0;
}

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

.schedule li:not(:last-child) .schedule__scene::after {
  position: absolute;
  top: calc(100% + 0.7rem);
  left: 50%;
  width: 1px;
  height: 1.4rem;
  content: "";
  background: var(--line);
}

.schedule__main .schedule__scene {
  height: 9rem;
}

.jury {
  background: var(--blue-soft);
}

.jury-card h3 {
  font-size: clamp(1.4rem, 2.5vw, 2.1rem);
}

.sponsors {
  background: var(--blue-soft);
}

.faq {
  background: var(--blue-soft);
}

.faq__grid > div:first-child {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.25rem;
}

@media (max-width: 760px) {
  .section h2,
  .pressure h2,
  .awards h2,
  .registration h2,
  .final h2 {
    font-size: clamp(2.05rem, 9.5vw, 3rem);
  }

  .hero h1 {
    font-size: clamp(2.15rem, 9.1vw, 3.25rem);
  }

  .capabilities li,
  .capabilities li:nth-child(2) {
    min-height: 15.75rem;
    padding-top: 10rem;
    border-color: var(--line);
  }

  .capabilities h3 {
    right: 9.5rem;
    height: 7.75rem;
  }

  .schedule li {
    grid-template-columns: 5.25rem minmax(0, 1fr);
    gap: 1rem;
    min-height: 0;
  }

  .schedule li > div {
    gap: 0.35rem;
  }

  .schedule p {
    margin-top: 0;
  }

  .schedule__main {
    margin-inline: 0;
    padding: 1.65rem 0.75rem !important;
  }

  .schedule__main h3 {
    font-size: 1.25rem;
  }

  .schedule__scene,
  .schedule__main .schedule__scene {
    grid-column: 2;
    width: min(100%, 9rem);
    height: 5.75rem;
    justify-self: start;
    margin-top: 0.35rem;
  }

  .schedule li:not(:last-child) .schedule__scene::after {
    content: none;
  }
}

/* Stage cards mirror the approved reference hierarchy. */
.stage {
  min-height: 34rem;
}

.stage__top {
  width: 100%;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.stage__top .stage__marker {
  margin-top: 0;
}

.stage__status,
.stage__status--upcoming {
  order: 0;
  flex: none;
  width: fit-content;
  margin-top: 0.35rem;
  padding: 0.35rem 0.5rem;
  color: var(--night-deep);
  background: var(--blue);
  border: 1px solid var(--blue);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.66rem;
  font-weight: 720;
  line-height: 1.2;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.stage__status--upcoming {
  color: color-mix(in srgb, var(--white) 72%, transparent);
  background: transparent;
  border-color: color-mix(in srgb, var(--white) 28%, transparent);
}

.stage__body {
  flex: 1;
  justify-content: flex-start;
  align-items: stretch;
  gap: 1.15rem;
}

.stage__meta {
  display: grid;
  gap: 0.25rem;
  margin-top: -0.45rem;
}

.stage__date {
  color: var(--blue);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.72rem;
  font-weight: 650;
  letter-spacing: 0.08em;
  white-space: nowrap;
  text-transform: uppercase;
}

.stage:nth-child(2) .stage__date {
  color: var(--gold);
}

.stage:nth-child(3) .stage__date {
  color: color-mix(in srgb, var(--red) 65%, var(--white));
}

.stage__format {
  color: color-mix(in srgb, var(--white) 52%, transparent);
  font-size: 0.82rem;
}

.stage__description {
  color: color-mix(in srgb, var(--white) 66%, transparent);
  font-size: 0.9rem;
  line-height: 1.65;
}

.stage__actions {
  display: flex;
  flex-direction: column;
  margin-top: auto;
  border-top: 1px solid color-mix(in srgb, var(--white) 15%, transparent);
}

.stage__actions > a,
.stage__actions > span {
  min-height: 3rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.8rem 0;
  color: var(--white);
  border-bottom: 1px solid color-mix(in srgb, var(--white) 15%, transparent);
  font-size: 0.78rem;
  font-weight: 650;
  line-height: 1.35;
  text-decoration: none;
}

.stage__actions > a span,
.stage__actions > span span {
  flex: none;
  transition: transform 180ms var(--ease-out);
}

.stage__actions > a:hover span {
  transform: translateX(0.25rem);
}

.stage__actions .stage__link--disabled {
  color: color-mix(in srgb, var(--white) 34%, transparent);
  cursor: not-allowed;
}

.stage__peek {
  position: absolute;
  z-index: 2;
  top: -3.65rem;
  right: 1.35rem;
  width: 5.25rem;
  height: 5.25rem;
  margin: 0;
  opacity: 0.74;
  pointer-events: none;
  transition: transform 320ms cubic-bezier(0.22, 1, 0.36, 1), opacity 220ms ease;
}

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

.stage__peek--registration {
  top: auto;
  right: auto;
  bottom: 1.2rem;
  left: -3.7rem;
  width: 6.3rem;
  height: 6.3rem;
}

.stage__top,
.stage__body {
  position: relative;
  z-index: 1;
}

@media (hover: hover) {
  .stage:hover .stage__peek {
    opacity: 0.95;
    transform: translateY(-0.25rem);
  }
}

@media (max-width: 980px) {
  .stage {
    min-height: 30rem;
  }
}

@media (min-width: 981px) {
  .stage h3 {
    min-height: 2.1em;
  }
}

@media (min-width: 1400px) {
  .stage__peek--registration {
    left: -6rem;
  }
}

@media (max-width: 760px) {
  .stage {
    min-height: 32rem;
  }

  .stage__peek {
    display: none;
  }

}

/* History entry point and archive page. */
.partner-card__logo--algonova img {
  max-width: 11rem;
  max-height: 5.25rem;
}

.history-invite {
  position: relative;
  overflow: hidden;
  padding-block: var(--section);
  color: var(--white);
  background:
    linear-gradient(color-mix(in srgb, var(--white) 8%, transparent) 1px, transparent 1px),
    linear-gradient(90deg, color-mix(in srgb, var(--white) 8%, transparent) 1px, transparent 1px),
    var(--night);
  background-size: 4.5rem 4.5rem;
}

.history-invite__grid,
.history-return__grid {
  display: grid;
  grid-template-columns: minmax(18rem, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(3rem, 9vw, 9rem);
  align-items: end;
}

.history-invite .section-kicker,
.history-year--dark .section-kicker {
  color: var(--blue);
}

.history-invite h2,
.history-return h2 {
  max-width: 9ch;
  margin-top: 1rem;
  font-size: clamp(3rem, 4.8vw, 4.4rem);
  font-weight: 520;
  line-height: 0.92;
  letter-spacing: -0.045em;
}

.history-invite__copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2rem;
}

.history-invite__copy > p {
  max-width: 42rem;
  color: color-mix(in srgb, var(--white) 72%, transparent);
  font-size: clamp(1rem, 1.7vw, 1.25rem);
}

.history-invite__years {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-block: 1px solid color-mix(in srgb, var(--white) 20%, transparent);
}

.history-invite__years span {
  padding: 1rem;
  border-right: 1px solid color-mix(in srgb, var(--white) 20%, transparent);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-align: center;
}

.history-invite__years span:last-child {
  border-right: 0;
}

.history-hero {
  position: relative;
  overflow: hidden;
  padding-block: calc(var(--header-height) + clamp(5rem, 10vw, 9rem)) clamp(5rem, 9vw, 8rem);
  color: var(--white);
  background:
    linear-gradient(color-mix(in srgb, var(--white) 8%, transparent) 1px, transparent 1px),
    linear-gradient(90deg, color-mix(in srgb, var(--white) 8%, transparent) 1px, transparent 1px),
    var(--night);
  background-size: 5rem 5rem;
}

.history-hero::after {
  position: absolute;
  right: -7rem;
  bottom: -12rem;
  width: 34rem;
  aspect-ratio: 1;
  content: "";
  border: 1px solid color-mix(in srgb, var(--blue) 58%, transparent);
  border-radius: 50%;
  box-shadow:
    0 0 0 5rem color-mix(in srgb, var(--blue) 5%, transparent),
    0 0 0 10rem color-mix(in srgb, var(--blue) 3%, transparent);
  pointer-events: none;
}

.history-hero__grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(15rem, 0.5fr);
  gap: clamp(4rem, 10vw, 10rem);
  align-items: end;
}

.history-hero__kicker {
  color: var(--blue);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.history-hero h1 {
  max-width: 9ch;
  margin-top: 1.4rem;
  font-size: clamp(3.8rem, 8.5vw, 8rem);
  font-weight: 510;
  line-height: 0.88;
  letter-spacing: -0.055em;
}

.history-hero__lead {
  max-width: 50rem;
  margin-top: 2.25rem;
  color: color-mix(in srgb, var(--white) 70%, transparent);
  font-size: clamp(1rem, 1.7vw, 1.25rem);
}

.history-year-nav {
  border-top: 1px solid color-mix(in srgb, var(--white) 22%, transparent);
}

.history-year-nav a {
  min-height: 4.3rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-inline: 0.25rem;
  border-bottom: 1px solid color-mix(in srgb, var(--white) 22%, transparent);
  font-size: 1.25rem;
  font-weight: 650;
  text-decoration: none;
  transition: color 160ms ease, padding 220ms var(--ease-out);
}

.history-year-nav a:hover {
  padding-inline: 0.75rem;
  color: var(--signal);
}

.history-year-nav span {
  color: color-mix(in srgb, var(--white) 45%, transparent);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.68rem;
}

.history-year {
  padding-block: var(--section);
  background: var(--white);
  scroll-margin-top: var(--header-height);
}

.history-year--blue {
  background: var(--blue-soft);
}

.history-year--dark {
  color: var(--white);
  background: var(--night-deep);
}

.history-year__grid {
  display: grid;
  grid-template-columns: minmax(15rem, 0.42fr) minmax(0, 1.58fr);
  gap: clamp(3rem, 7vw, 7rem);
  align-items: start;
}

.history-year__header {
  position: sticky;
  top: calc(var(--header-height) + 2rem);
}

.history-year__header h2 {
  margin-top: 0.8rem;
  font-size: clamp(4.8rem, 10vw, 9rem);
  font-weight: 500;
  line-height: 0.82;
  letter-spacing: -0.065em;
}

.history-year__header > p:last-child {
  max-width: 27rem;
  margin-top: 2.4rem;
  color: var(--muted);
  line-height: 1.7;
}

.history-year--dark .history-year__header > p:last-child {
  color: color-mix(in srgb, var(--white) 66%, transparent);
}

.history-materials {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-block: 1px solid var(--line);
}

.history-material {
  min-height: 18rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1rem;
  padding: clamp(1.5rem, 3vw, 2.5rem);
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.history-material:nth-child(2n) {
  border-right: 0;
}

.history-material:nth-last-child(-n + 2) {
  border-bottom: 0;
}

.history-material > span,
.history-material > small {
  color: var(--blue-deep);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.7rem;
  font-weight: 750;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.history-material h3 {
  max-width: 18ch;
  font-size: clamp(1.3rem, 2.2vw, 1.8rem);
  font-weight: 620;
  line-height: 1.08;
  letter-spacing: -0.025em;
}

.history-material p {
  max-width: 33rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.history-material > a,
.history-material__links {
  margin-top: auto;
}

.history-material > a,
.history-material__links a {
  color: var(--blue-deep);
  font-size: 0.85rem;
  font-weight: 720;
  text-underline-offset: 0.28em;
}

.history-material__links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
}

.history-material > small {
  margin-top: auto;
  color: color-mix(in srgb, var(--muted) 70%, transparent);
}

.history-year--dark .history-materials,
.history-year--dark .history-material {
  border-color: color-mix(in srgb, var(--white) 18%, transparent);
}

.history-year--dark .history-material p {
  color: color-mix(in srgb, var(--white) 62%, transparent);
}

.history-year--dark .history-material > span,
.history-year--dark .history-material > a,
.history-year--dark .history-material__links a {
  color: var(--blue);
}

.history-year--dark .history-material > small {
  color: color-mix(in srgb, var(--white) 40%, transparent);
}

.history-return {
  padding-block: var(--section);
  color: var(--night-deep);
  background: var(--signal);
}

.history-return__grid > div:last-child {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2rem;
}

.history-return__grid > div:last-child p {
  max-width: 38rem;
  font-size: clamp(1rem, 1.6vw, 1.2rem);
}

@media (max-width: 980px) {
  .history-year__grid {
    grid-template-columns: 1fr;
  }

  .history-year__header {
    position: static;
  }
}

@media (max-width: 760px) {
  .history-invite__grid,
  .history-return__grid,
  .history-hero__grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .history-invite h2,
  .history-return h2 {
    font-size: clamp(2.55rem, 12vw, 4rem);
  }

  .history-hero {
    padding-top: calc(var(--header-height) + 4.5rem);
  }

  .history-hero::after {
    width: 20rem;
    right: -10rem;
    bottom: -8rem;
  }

  .history-hero h1 {
    max-width: 10ch;
    font-size: clamp(3rem, 15vw, 5rem);
  }

  .history-materials {
    grid-template-columns: 1fr;
  }

  .history-material,
  .history-material:nth-child(2n),
  .history-material:nth-last-child(-n + 2) {
    min-height: 15rem;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .history-material:last-child {
    border-bottom: 0;
  }

  .history-year--dark .history-material {
    border-color: color-mix(in srgb, var(--white) 18%, transparent);
  }
}
