/* Match the masthead of the original concept in both languages. */
.release-header > .brand { flex: none; }
.release-header .header-wordmark { height: 1.971rem; aspect-ratio: 2928 / 563; }
html:lang(en) .release-header .header-wordmark { aspect-ratio: 3668 / 563; }
.release-header nav a { display: inline-flex; min-height: 44px; align-items: center; }

@media (min-width: 801px) {
  html { scroll-padding-top: calc(5.25rem + .75rem); }
  .release-header {
    position: sticky;
    top: 0;
    display: grid;
    grid-template-columns: minmax(max-content, 1fr) auto minmax(max-content, 1fr);
    column-gap: clamp(12px, 1.5vw, 30px);
  }
  .release-header > .brand { justify-self: start; }
  .release-header nav { align-items: center; gap: clamp(12px, 1.7vw, 34px); white-space: nowrap; }
  .release-header .header-blog {
    justify-self: end; display: inline-flex; align-items: center;
    min-height: 44px; font-size: .875rem;
  }
}
@media (min-width: 801px) and (max-width: 1023px) {
  .release-header { padding-inline: 2.5%; }
  .release-header nav { gap: 12px; font-size: .8125rem; }
}
@media (hover: hover) {
  .release-header :is(nav a, .header-blog):hover { color: var(--green); }
}
@media (max-width: 800px) {
  .release-header .desktop-only { display: none; }
  .release-header {
    display: grid;
    grid-template-columns: minmax(0, 1fr) max-content;
    column-gap: 12px;
  }
  .release-header > .brand { min-width: 0; }
  .release-header .header-wordmark { width: min(100%, 8.25rem); height: auto; }
  html:lang(en) .release-header .header-wordmark { width: min(100%, 10.335rem); }
}
@media (max-width: 455px) {
  .release-header { padding-inline: clamp(6px, calc(17vw - 52px), 6%); }
  .release-header nav { gap: clamp(7px, calc(14vw - 43px), 20px); }
}
@media (max-width: 360px) {
  .release-header { column-gap: 10px; }
  .release-header nav { font-size: .75rem; }
}
.logo-slot { display: block; position: relative; }
.logo-slot img { display: none; position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
html:lang(ru) [data-logo-lang="ru"] { display: block; filter: invert(1); }
html:lang(en) [data-logo-lang="en"] { display: block; }
.logo-horizontal { height: 1.97rem; aspect-ratio: 2928 / 563; }
html:lang(en) .logo-horizontal { aspect-ratio: 3668 / 563; }
.logo-stacked { width: clamp(20rem, 34vw, 30rem); aspect-ratio: 1897 / 866; }
.logo-stacked img { object-position: left bottom; }
.logo-stacked [data-logo-lang="en"] { width: min(115.08%, 87vw); }

/* Segmented model selector for the benchmark comparisons. */
main .model-switch {
  display: inline-flex; align-items: stretch; justify-content: flex-start; flex-wrap: nowrap;
  flex: none; width: fit-content; max-width: 100%; overflow: visible; gap: .18rem;
  padding: .18rem; margin: 0; border: 1px solid #486353; background: #0a160f;
}
main .model-switch button {
  display: inline-flex; align-items: center; justify-content: center; gap: .28em;
  flex: 0 1 auto; min-height: max(44px, 2.6rem); padding: .45rem .9rem; margin: 0;
  font: 500 .9rem/1.2 Arial, Helvetica, sans-serif; letter-spacing: normal; white-space: nowrap;
  border: 0; border-radius: 0; background: transparent; color: #b7cabc;
}
main .model-switch button span { display: inline; font: inherit; margin: 0; }
main .model-switch button[aria-selected="true"] { color: #0b2113; background: #cbe7d4; }
@media (hover:hover) { main .model-switch button:not([aria-selected="true"]):hover { background: #1a2c20; } }
main .model-switch button:focus-visible { outline: 2px solid #effcf1; outline-offset: -2px; }
.release-metrics #bench-title { font-size: clamp(1.85rem, 2.8vw, 2.95rem); max-width: 22em; }
.release-metrics .bench-top { align-items: center; padding-bottom: clamp(1.1rem, 1.9vw, 1.7rem); }
.hero-opening{font-weight:inherit}
/* Release materials pair the model collection with its code and publications. */
.release-links {
  border-block: 1px solid var(--line);
  background: #060f0b;
  padding-block: clamp(2.75rem, 5.5vw, 5rem);
}
.release-links-inner { width: min(100%, 78rem); margin-inline: auto; }
.release-links h2 {
  font-size: clamp(2rem, 3.6vw, 3.45rem);
  line-height: 1.05;
  letter-spacing: -.052em;
  margin: 0 0 clamp(1.35rem, 2.4vw, 2.25rem);
}
.resource-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: clamp(1.4rem, 3vw, 3.5rem);
}
.resource-collection {
  display: flex;
  align-items: end;
  isolation: isolate;
  position: relative;
  min-height: 15rem;
  overflow: hidden;
  padding: clamp(1.25rem, 2.4vw, 2.4rem);
  border: 1px solid #345444;
  background: #10271a;
  color: #eff6eb;
}
.resource-collection::before {
  content: ''; position: absolute; z-index: -1; inset: 0;
  background: linear-gradient(0deg, #03100be8, #07170c05 77%),
              linear-gradient(90deg, #06160ee3 0%, #07190f44 55%, transparent 83%),
              url('./assets/landscape.jpeg') center 57% / cover;
}
.collection-copy h3 {
  margin: 0 0 1rem; font-weight: 400; font-size: clamp(1.6rem, 2.25vw, 2.6rem);
  line-height: 1.05; letter-spacing: -.04em; max-width: 12em;
}
.collection-provider { font: .79rem/1.4 var(--mono); color: #d7f1df; }
.release-links i { font: normal 1.15rem/1 var(--mono); color: #b9dec3; }
.collection-provider i { margin-inline-start: .35rem; }
.release-links ul { display: grid; list-style: none; padding: 0; margin: 0; }
.release-links li { border-top: 1px solid #304538; }
.release-links li:last-child { border-bottom: 1px solid #304538; }
.release-links li a {
  min-height: 3.85rem; display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; padding: .65rem .25rem .65rem 0;
}
.release-links li strong { display: block; font-size: 1.12rem; line-height: 1.25; font-weight: 500; }
.release-links li small { display: block; margin-top: .2rem; font: .72rem/1.4 var(--mono); color: #a3b8aa; }
@media (hover: hover) {
  .resource-collection:hover { border-color: #99c4a8; }
  .resource-collection:hover .collection-provider { text-decoration: underline; text-underline-offset: .22em; }
  .release-links li a:hover strong { color: var(--green); }
}
@media (max-width: 700px) {
  .resource-layout { grid-template-columns: 1fr; gap: 1.2rem; }
  .resource-collection { min-height: clamp(10.5rem, 43vw, 16rem); }
  .release-links ul { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 1.15rem; }
  .release-links li { min-width: 0; }
  .release-links li:nth-last-child(-n+2) { border-bottom: 1px solid #304538; }
  .release-links li a { min-height: 4.5rem; height: 100%; gap: .4rem; }
  .release-links li strong { font-size: 1rem; overflow-wrap: anywhere; }
  .release-links li small { font-size: .68rem; }
}
.origin-manifesto .join-team{cursor:pointer;opacity:1}
@keyframes release-enter{from{opacity:.52;transform:translateY(.55rem)}to{opacity:1;transform:none}}
@media(prefers-reduced-motion:no-preference){.release-entered{animation:release-enter .48s ease-out both}}
@media(max-width:800px){
  .logo-stacked { width:min(17.8125rem,80vw); }
  .release-links h2 { font-size:clamp(1.85rem,7.5vw,2.6rem); }
}
@media(max-width:670px){
  .release-metrics .bench-top { align-items:flex-start; }
  main .model-switch button { font-size:.85rem; }
}
@media(max-width:360px){.hero-links{column-gap:.5rem}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}}

/* Give the copy its own quiet area as the artwork moves behind it. */
.hero-copy { isolation: isolate; }
.hero-copy::before {
  content: ""; position: absolute; z-index: -1; pointer-events: none;
  inset: 16% -18% -16% -18%;
  background: radial-gradient(ellipse at 42% 58%, #030b08ed 12%, #030b08ad 46%, transparent 73%);
}
@media (max-width: 800px) and (max-height: 800px) and (orientation: portrait) {
  .hero { min-height: 0; height: calc(100svh - 4.375rem); }
  .hero-copy { bottom: clamp(1.25rem, 4.2svh, 2.5rem); }
}
@media (max-width: 700px) {
  .release-links li:last-child:nth-child(odd) { grid-column: 1 / -1; }
}
