@import url("https://fonts.googleapis.com/css2?family=Sora:wght@300;400;500&family=Unbounded:wght@400;500&display=swap");

:root {
  color-scheme: dark;
  --aegean: #03192f;
  --marble: #f7f9fa;
  --marble-muted: rgba(247, 249, 250, 0.62);
  --focus: #8deaff;
}

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

html {
  min-height: 100%;
  background: var(--aegean);
}

body {
  min-height: 100svh;
  margin: 0;
  overflow: hidden;
  background: var(--aegean);
  color: var(--marble);
  font-family: "Sora", sans-serif;
}

::selection {
  background: var(--focus);
  color: #01111f;
}

.talks-stars {
  position: fixed;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  display: block;
  pointer-events: none;
}

.talks-return {
  position: fixed;
  top: clamp(22px, 4vw, 44px);
  left: clamp(22px, 4vw, 52px);
  z-index: 4;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--marble);
  font-family: "Unbounded", sans-serif;
  font-size: 0.66rem;
  font-weight: 500;
  letter-spacing: 0;
  text-decoration: none;
  text-transform: uppercase;
}

.talks-return svg,
.gateway-return svg {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-linecap: square;
  stroke-linejoin: miter;
  stroke-width: 1.4;
}

.talks-return span:last-child {
  border-bottom: 1px solid transparent;
  padding: 5px 0;
}

.talks-return:hover span:last-child,
.talks-return:focus-visible span:last-child {
  border-bottom-color: currentColor;
}

.talks-stage {
  position: relative;
  z-index: 1;
  min-height: 100svh;
  display: grid;
  place-items: center;
  overflow: clip;
  padding: clamp(86px, 11svh, 118px) clamp(20px, 5vw, 70px) clamp(74px, 9svh, 96px);
}

.bust-pair {
  width: min(880px, 88vw);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: end;
  justify-items: center;
  column-gap: clamp(54px, 9vw, 128px);
}

.bust-portal {
  width: min(100%, 340px);
  min-width: 0;
  display: grid;
  justify-items: center;
  color: var(--marble);
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}

.bust-viewport {
  position: relative;
  width: 100%;
  height: clamp(390px, 63svh, 520px);
  display: block;
  contain: layout paint;
}

.bust-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  opacity: 0;
  cursor: pointer;
  transition: opacity 900ms cubic-bezier(0.16, 1, 0.3, 1);
}

.bust-portal.is-loaded .bust-canvas {
  opacity: 1;
}

.bust-status {
  position: absolute;
  left: 50%;
  top: 50%;
  color: var(--marble-muted);
  font-family: "Unbounded", sans-serif;
  font-size: 0.58rem;
  letter-spacing: 0;
  text-transform: uppercase;
  transform: translate(-50%, -50%);
  transition: opacity 260ms ease;
  white-space: nowrap;
}

.bust-portal.is-loaded .bust-status {
  opacity: 0;
}

.bust-portal.has-error .bust-status {
  width: min(220px, 90%);
  color: var(--marble);
  line-height: 1.6;
  text-align: center;
  white-space: normal;
}

.bust-label {
  position: relative;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: "Unbounded", sans-serif;
  font-size: clamp(0.74rem, 1.05vw, 0.9rem);
  font-weight: 500;
  letter-spacing: 0;
  line-height: 1.25;
  text-align: center;
  text-transform: uppercase;
}

.bust-label::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 4px;
  left: 0;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 360ms cubic-bezier(0.16, 1, 0.3, 1);
}

.bust-portal.is-engaged .bust-label::after,
.bust-portal:hover .bust-label::after,
.bust-portal:focus-visible .bust-label::after {
  transform: scaleX(1);
}

.talks-return:focus-visible,
.bust-portal:focus-visible,
.model-credits a:focus-visible,
.gateway-return:focus-visible {
  outline: 2px solid var(--marble);
  outline-offset: 7px;
}

.model-credits {
  position: fixed;
  right: clamp(18px, 3vw, 34px);
  bottom: clamp(14px, 2.5vw, 24px);
  z-index: 3;
  margin: 0;
  color: var(--marble-muted);
  font-size: 0.58rem;
  font-weight: 300;
  line-height: 1.5;
  opacity: 0.82;
}

.model-credits a {
  color: inherit;
  text-underline-offset: 0.2em;
}

.gateway-stage {
  position: relative;
  z-index: 1;
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: 96px 24px 72px;
}

.gateway-title {
  margin: 0;
  color: var(--marble);
  font-family: "Unbounded", sans-serif;
  font-size: clamp(2rem, 5vw, 4.6rem);
  font-weight: 500;
  letter-spacing: 0;
  line-height: 1.05;
  text-align: center;
  text-transform: uppercase;
}

.gateway-return {
  position: fixed;
  top: clamp(22px, 4vw, 44px);
  left: clamp(22px, 4vw, 52px);
  z-index: 3;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--marble);
  font-family: "Unbounded", sans-serif;
  font-size: 0.66rem;
  font-weight: 500;
  letter-spacing: 0;
  text-decoration: none;
  text-transform: uppercase;
}

.gateway-return span:last-child {
  border-bottom: 1px solid transparent;
  padding: 5px 0;
}

.gateway-return:hover span:last-child,
.gateway-return:focus-visible span:last-child {
  border-bottom-color: currentColor;
}

.archive-page {
  overflow-x: hidden;
  overflow-y: auto;
  scrollbar-color: rgba(247, 249, 250, 0.34) var(--aegean);
  scrollbar-width: thin;
}

.archive-page::-webkit-scrollbar {
  width: 9px;
}

.archive-page::-webkit-scrollbar-track {
  background: var(--aegean);
}

.archive-page::-webkit-scrollbar-thumb {
  border: 2px solid var(--aegean);
  background: rgba(247, 249, 250, 0.34);
}

.archive-stage {
  position: relative;
  z-index: 1;
  width: min(940px, calc(100% - 40px));
  min-height: 100svh;
  margin: 0 auto;
  padding: clamp(124px, 16svh, 172px) 0 clamp(76px, 10svh, 112px);
}

.archive-header {
  margin-bottom: clamp(62px, 9vw, 104px);
  text-align: center;
}

.archive-title {
  margin: 0;
  color: var(--marble);
  font-family: "Unbounded", sans-serif;
  font-size: clamp(2.2rem, 6vw, 4.9rem);
  font-weight: 500;
  letter-spacing: -0.035em;
  line-height: 1.04;
  text-transform: uppercase;
}

.archive-list {
  width: min(820px, 100%);
  margin: 0 auto;
  border-bottom: 1px solid rgba(247, 249, 250, 0.2);
}

.archive-entry {
  position: relative;
  padding: clamp(36px, 6vw, 58px) clamp(4px, 3vw, 26px);
  border-top: 1px solid rgba(247, 249, 250, 0.2);
  text-align: center;
}

.archive-entry::before {
  content: "";
  position: absolute;
  top: -4px;
  left: 50%;
  width: 7px;
  height: 7px;
  border: 1px solid rgba(247, 249, 250, 0.68);
  background: var(--aegean);
  transform: translateX(-50%) rotate(45deg);
}

.archive-entry h2 {
  max-width: 760px;
  margin: 0 auto clamp(17px, 2.6vw, 25px);
  color: var(--marble);
  font-family: "Unbounded", sans-serif;
  font-size: clamp(1.06rem, 2.1vw, 1.55rem);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.42;
  text-wrap: balance;
}

.archive-entry h2 a {
  min-height: 46px;
  max-width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding-block: 6px;
  color: inherit;
  text-decoration-color: rgba(247, 249, 250, 0.34);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.28em;
  transition: color 180ms ease, text-decoration-color 180ms ease;
}

.archive-entry p {
  max-width: 70ch;
  margin: 0.55rem auto 0;
  color: rgba(247, 249, 250, 0.76);
  font-size: clamp(0.92rem, 1.4vw, 1.02rem);
  font-weight: 300;
  line-height: 1.74;
}

.archive-entry p a {
  min-height: 46px;
  max-width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  vertical-align: middle;
  color: var(--marble);
  text-decoration-color: rgba(247, 249, 250, 0.42);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.22em;
  transition: color 180ms ease, text-decoration-color 180ms ease;
}

.archive-entry strong {
  color: var(--marble);
  font-weight: 500;
}

.archive-entry em {
  color: rgba(247, 249, 250, 0.88);
}

.archive-entry h2 a:hover,
.archive-entry h2 a:focus-visible,
.archive-entry p a:hover,
.archive-entry p a:focus-visible {
  color: var(--focus);
  text-decoration-color: currentColor;
}

.archive-file-link {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  margin-top: 18px;
  border-bottom: 1px solid rgba(247, 249, 250, 0.5);
  color: var(--marble);
  font-family: "Unbounded", sans-serif;
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-decoration: none;
  text-transform: uppercase;
  transition: border-color 180ms ease, color 180ms ease;
}

.archive-file-link:hover,
.archive-file-link:focus-visible {
  border-bottom-color: var(--focus);
  color: var(--focus);
}

.archive-entry h2 a:focus-visible,
.archive-entry p a:focus-visible,
.archive-file-link:focus-visible {
  outline: 2px solid var(--marble);
  outline-offset: 6px;
}

.document-page {
  overflow-y: auto;
}

.document-stage {
  position: relative;
  z-index: 1;
  width: min(1240px, calc(100% - 40px));
  min-height: 100svh;
  margin: 0 auto;
  padding: clamp(112px, 13svh, 144px) 0 36px;
}

.document-header {
  max-width: 940px;
  margin: 0 auto clamp(30px, 4vw, 46px);
  text-align: center;
}

.document-title {
  margin: 0;
  color: var(--marble);
  font-family: "Unbounded", sans-serif;
  font-size: clamp(1.55rem, 3.4vw, 3rem);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.2;
  text-wrap: balance;
}

.document-kind {
  margin: 18px 0 0;
  color: var(--marble);
  font-family: "Unbounded", sans-serif;
  font-size: 0.63rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.document-summary {
  max-width: 68ch;
  margin: 12px auto 0;
  color: rgba(247, 249, 250, 0.72);
  font-size: 0.96rem;
  font-weight: 300;
  line-height: 1.65;
}

.document-shell {
  height: clamp(520px, calc(100svh - 290px), 860px);
  overflow: hidden;
  border-top: 1px solid rgba(247, 249, 250, 0.34);
  border-bottom: 1px solid rgba(247, 249, 250, 0.34);
  background: rgba(247, 249, 250, 0.08);
}

.document-viewer {
  width: 100%;
  height: 100%;
  display: block;
  border: 0;
  background: #f7f9fa;
}

.document-viewer p {
  margin: 2rem;
  color: #03192f;
  line-height: 1.6;
}

.document-viewer a {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  color: #03192f;
}

@media (max-width: 700px) {
  .talks-stage {
    padding: 82px 8px 68px;
  }

  .bust-pair {
    width: 100%;
    column-gap: 0;
  }

  .bust-portal {
    width: 100%;
  }

  .bust-viewport {
    height: min(56svh, 450px);
  }

  .bust-label {
    max-width: 46vw;
    padding-inline: 5px;
    font-size: clamp(0.59rem, 2.6vw, 0.72rem);
  }

  .model-credits {
    right: 14px;
    bottom: 10px;
    max-width: calc(100vw - 28px);
    font-size: 0.5rem;
    text-align: right;
  }

  .archive-stage {
    width: min(100% - 30px, 940px);
    padding-top: 112px;
  }

  .archive-header {
    margin-bottom: 54px;
  }

  .archive-title {
    font-size: clamp(1.75rem, 9vw, 2.8rem);
  }

  .archive-entry {
    padding-block: 38px;
  }

  .archive-entry h2 {
    font-size: clamp(0.96rem, 4.3vw, 1.2rem);
    line-height: 1.48;
  }

  .document-stage {
    width: min(100% - 24px, 1240px);
    padding-top: 106px;
  }

  .document-shell {
    height: max(460px, 68svh);
  }
}

@media (max-height: 650px) and (min-width: 701px) {
  .talks-stage {
    padding-block: 70px 54px;
  }

  .bust-viewport {
    height: min(66svh, 405px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .bust-canvas,
  .bust-status,
  .bust-label::after {
    transition: none;
  }

  .archive-entry h2 a,
  .archive-entry p a,
  .archive-file-link {
    transition: none;
  }
}
