@import "tailwindcss";

@font-face {
  font-family: "Apparat";
  src: url("/assets/apparat-light.woff2") format("woff2");
  font-style: normal;
  font-weight: 300;
  font-display: swap;
}

@font-face {
  font-family: "Apparat";
  src: url("/assets/apparat-regular.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "InterLocal";
  src: url("/assets/inter.ttf") format("truetype");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

@font-face {
  font-family: "Fragment";
  src: url("/assets/fragment-mono.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

:root {
  --paper: #ececec;
  --card: #fafafa;
  --ink: #090909;
  --muted: #909090;
  --acid: #bcff00;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--paper);
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "InterLocal", Arial, Helvetica, sans-serif;
  overflow-x: hidden;
}

button,
a {
  color: inherit;
}

.black-cap {
  position: relative;
  height: 64px;
  background: #131313;
}

.language-switch {
  position: absolute;
  z-index: 2;
  top: 0;
  right: 21px;
  display: flex;
  height: 34px;
  align-items: center;
  gap: 18px;
}

.language-option {
  border: 0;
  border-bottom: 1px solid transparent;
  background: transparent;
  padding: 1px 0 2px;
  color: #777;
  font-family: "Apparat", Arial, sans-serif;
  font-size: 13px;
  font-weight: 400;
  line-height: 1;
  cursor: pointer;
  transition: border-color 180ms ease, color 180ms ease;
}

.language-option:hover,
.language-option:focus-visible {
  color: #fff;
}

.language-option:focus-visible {
  outline: 1px solid #fff;
  outline-offset: 4px;
}

.language-option.is-active {
  border-bottom-color: var(--acid);
  color: #fff;
}

.pixel-band {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 30px;
  background-image: url("/assets/pattern-black-white.png");
  background-position: bottom center;
  background-repeat: repeat-x;
  background-size: auto 30px;
}

.why-section {
  padding: 0 21px;
}

.why-copy {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 460px);
  column-gap: clamp(52px, 5vw, 96px);
  min-height: 535px;
  padding-top: 142px;
}

.why-text {
  min-width: 0;
}

.why-brand {
  display: grid;
  width: 100%;
  align-self: center;
  place-items: center;
  justify-self: center;
  margin-top: 0;
  transform: translateY(-32px);
}

.why-brand img {
  display: block;
  width: min(100%, 440px);
  height: auto;
}

.display-title {
  margin: 0;
  max-width: 1320px;
  font-family: "Apparat", Arial, sans-serif;
  font-size: clamp(48px, 2.65vw, 52px);
  font-weight: 300;
  letter-spacing: -0.042em;
  line-height: 0.98;
}

.display-title span {
  display: block;
  color: var(--ink);
}

.display-title em {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-style: normal;
}

.why-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(280px, 390px));
  gap: clamp(32px, 3vw, 54px);
  width: min(100%, 840px);
  margin-top: 66px;
  border-top: 1px solid #cfcfcf;
  padding-top: 24px;
}

.why-columns p {
  margin: 0;
  font-size: 16px;
  letter-spacing: -0.015em;
  line-height: 1.52;
}

.cards {
  display: flex;
  align-items: stretch;
  gap: 20px;
  height: 912px;
  padding-top: 90px;
  padding-bottom: 38px;
}

.blind-card {
  position: relative;
  flex: 0.72 1 0;
  min-width: 0;
  overflow: hidden;
  border: 0;
  border-radius: 0;
  background: var(--card);
  padding: 0;
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: flex-grow 700ms cubic-bezier(0.7, 0, 0.2, 1);
}

.blind-card.is-active {
  flex-grow: 2.43;
}

.card-select-button {
  position: absolute;
  z-index: 2;
  inset: 0;
  width: 100%;
  border: 0;
  background: transparent;
  padding: 0;
  cursor: pointer;
}

.card-select-button:focus-visible {
  outline: 1px solid var(--ink);
  outline-offset: -5px;
}

.card-number {
  position: absolute;
  z-index: 1;
  top: 42px;
  right: 17px;
  color: var(--ink);
  font-family: "Apparat", Arial, sans-serif;
  font-size: 58px;
  font-weight: 300;
  letter-spacing: -0.07em;
  line-height: 0.82;
  transition: font-size 700ms cubic-bezier(0.7, 0, 0.2, 1);
}

.blind-card.is-active .card-number {
  font-size: 202px;
}

.card-case-organizations {
  position: absolute;
  z-index: 1;
  top: 50px;
  left: 18px;
  display: flex;
  width: min(330px, calc(100% - 260px));
  flex-direction: column;
  gap: 10px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity 160ms linear, transform 160ms linear;
}

.card-case-logos {
  display: flex;
  min-height: 52px;
  align-items: center;
  gap: 20px;
}

.card-case-logos img {
  display: block;
  width: auto;
  max-width: 106px;
  height: 48px;
  object-fit: contain;
  filter: grayscale(1) contrast(0.92);
  mix-blend-mode: multiply;
}

.blind-card.is-active .card-case-organizations {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 430ms;
}

.card-case-organizations-label {
  color: #747474;
  font-family: "Apparat", Arial, sans-serif;
  font-size: 13px;
  letter-spacing: -0.015em;
  line-height: 1;
}

.card-case-organizations-list {
  font-size: 13px;
  letter-spacing: -0.012em;
  line-height: 1.45;
}

.card-content {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: block;
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity 160ms linear, transform 160ms linear;
}

.blind-card.is-active .card-content {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 430ms;
}

.card-title {
  position: absolute;
  top: 252px;
  right: 17px;
  left: 17px;
  overflow: hidden;
  font-family: "Apparat", Arial, sans-serif;
  font-size: 33px;
  font-weight: 300;
  letter-spacing: -0.04em;
  line-height: 1;
  white-space: nowrap;
}

.card-block {
  position: absolute;
  left: 18px;
  display: flex;
  width: min(390px, calc(100% - 36px));
  flex-direction: column;
  gap: 16px;
}

.card-block:nth-of-type(2) {
  top: 356px;
}

.card-block:nth-of-type(3) {
  top: 542px;
}

.card-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: max-content;
  color: #747474;
  font-family: "Apparat", Arial, sans-serif;
  font-size: 15px;
  font-weight: 400;
  letter-spacing: -0.018em;
  line-height: 1;
}

.card-kicker::before {
  width: 6px;
  height: 6px;
  background: #aaa;
  content: "";
}

.card-kicker.is-advantage {
  color: #202020;
}

.card-kicker.is-advantage::before {
  background: var(--acid);
}

.card-body {
  font-size: 16px;
  letter-spacing: -0.018em;
  line-height: 1.48;
}

.mono-link {
  position: absolute;
  z-index: 4;
  bottom: 30px;
  left: 18px;
  right: 18px;
  display: flex;
  width: auto;
  align-items: center;
  justify-content: space-between;
  border: 0;
  border-top: 1px solid #d6d6d6;
  background: transparent;
  padding: 14px 0 0;
  font-family: "Apparat", Arial, sans-serif;
  font-size: 15px;
  font-weight: 400;
  letter-spacing: -0.018em;
  line-height: 1.1;
  text-decoration: none;
  text-align: left;
  pointer-events: auto;
  cursor: pointer;
}

.mono-link > span {
  font-family: "InterLocal", Arial, sans-serif;
  font-size: 14px;
  line-height: 0.7;
  transition: transform 180ms ease;
}

.blind-card:hover .mono-link > span,
.process-link:hover > span {
  transform: translate(2px, -2px);
}

.closed-title {
  position: absolute;
  z-index: 2;
  right: 16px;
  bottom: 16px;
  left: 16px;
  overflow: hidden;
  font-family: "Apparat", Arial, sans-serif;
  font-size: 18px;
  font-weight: 300;
  letter-spacing: -0.025em;
  line-height: 1;
  opacity: 1;
  white-space: nowrap;
  transition: opacity 150ms linear 280ms;
}

.blind-card.is-active .closed-title {
  opacity: 0;
  transition-delay: 0ms;
}

.challenge-shell {
  position: fixed;
  z-index: 100;
  inset: 0;
}

.challenge-backdrop {
  position: absolute;
  inset: 0;
  width: 100%;
  border: 0;
  background: rgb(0 0 0 / 42%);
  padding: 0;
  cursor: default;
  animation: challenge-fade-in 240ms ease both;
}

.challenge-panel {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(760px, 100vw);
  overflow-y: auto;
  background: var(--paper);
  box-shadow: -1px 0 0 rgb(0 0 0 / 18%);
  animation: challenge-slide-in 520ms cubic-bezier(0.7, 0, 0.2, 1) both;
}

.challenge-cap {
  position: sticky;
  z-index: 8;
  top: 0;
  height: 64px;
  background: #131313;
}

.challenge-close {
  position: absolute;
  z-index: 2;
  top: 0;
  right: 24px;
  display: flex;
  height: 34px;
  align-items: center;
  gap: 10px;
  border: 0;
  background: transparent;
  padding: 0;
  color: #fff;
  font-family: "Apparat", Arial, sans-serif;
  font-size: 13px;
  font-weight: 400;
  cursor: pointer;
}

.challenge-close span {
  color: var(--acid);
  font-family: "InterLocal", Arial, sans-serif;
  font-size: 17px;
  line-height: 1;
}

.challenge-close:focus-visible {
  outline: 1px solid #fff;
  outline-offset: 4px;
}

.challenge-pixel-band {
  bottom: 0;
}

.challenge-content {
  padding: 76px 34px 56px;
}

.challenge-heading {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: start;
  gap: 20px;
}

.challenge-category,
.challenge-file,
.question-label,
.challenge-section > h3 {
  font-family: "Apparat", Arial, sans-serif;
  font-size: 14px;
  font-weight: 400;
  letter-spacing: -0.015em;
  line-height: 1;
}

.challenge-category {
  color: #767676;
}

.challenge-file {
  display: inline-flex;
  align-items: center;
  gap: 9px;
}

.challenge-file::before {
  width: 6px;
  height: 6px;
  background: var(--acid);
  content: "";
}

.challenge-heading h2 {
  grid-column: 1 / -1;
  margin: 46px 0 0;
  max-width: 620px;
  font-family: "Apparat", Arial, sans-serif;
  font-size: clamp(44px, 5vw, 68px);
  font-weight: 300;
  letter-spacing: -0.05em;
  line-height: 0.95;
}

.challenge-status-row {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-top: 52px;
  color: #707070;
  font-family: "Apparat", Arial, sans-serif;
  font-size: 13px;
  line-height: 1.2;
}

.challenge-progress {
  height: 2px;
  margin-top: 12px;
  background: #cacaca;
}

.challenge-progress span {
  display: block;
  height: 100%;
  background: var(--acid);
  transition: width 420ms cubic-bezier(0.7, 0, 0.2, 1);
}

.challenge-section {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 28px;
  border-top: 1px solid #cfcfcf;
  margin-top: 52px;
  padding-top: 22px;
}

.challenge-section > h3 {
  margin: 0;
  color: #767676;
}

.challenge-section > p {
  margin: -3px 0 0;
  font-size: 16px;
  letter-spacing: -0.015em;
  line-height: 1.52;
}

.challenge-organizations {
  margin-top: 28px;
}

.challenge-organization-content {
  min-width: 0;
}

.challenge-organization-logos {
  display: flex;
  min-height: 60px;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px 28px;
  margin-bottom: 22px;
}

.challenge-organization-logos img {
  display: block;
  width: auto;
  max-width: 132px;
  height: 54px;
  object-fit: contain;
  filter: grayscale(1) contrast(0.92);
  mix-blend-mode: multiply;
}

.challenge-organization-content p {
  margin: 0;
  font-size: 16px;
  letter-spacing: -0.015em;
  line-height: 1.52;
}

.challenge-questions {
  margin-top: 66px;
}

.challenge-question {
  border-top: 1px solid #bdbdbd;
  padding: 24px 0 34px;
}

.question-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #747474;
}

.question-label::before {
  width: 6px;
  height: 6px;
  background: #aaa;
  content: "";
}

.challenge-question.is-correct .question-label::before {
  background: var(--acid);
}

.challenge-question.is-incorrect .question-label::before {
  background: #111;
}

.challenge-question h3 {
  margin: 26px 0 18px;
  max-width: 580px;
  font-family: "Apparat", Arial, sans-serif;
  font-size: 27px;
  font-weight: 300;
  letter-spacing: -0.035em;
  line-height: 1.08;
}

.answer-row {
  display: grid;
  grid-template-columns: 1fr auto;
}

.answer-row input {
  min-width: 0;
  height: 50px;
  border: 1px solid #bdbdbd;
  border-right: 0;
  border-radius: 0;
  background: #f7f7f7;
  padding: 0 15px;
  color: var(--ink);
  font: 15px/1 "InterLocal", Arial, sans-serif;
  outline: none;
}

.answer-row input::placeholder {
  color: #979797;
}

.answer-row input:focus {
  border-color: var(--ink);
  box-shadow: inset 0 -2px 0 var(--acid);
}

.answer-row > button {
  min-width: 145px;
  border: 1px solid #111;
  border-radius: 0;
  background: #111;
  padding: 0 18px;
  color: #fff;
  font-family: "Apparat", Arial, sans-serif;
  font-size: 14px;
  cursor: pointer;
  transition: background 180ms ease, color 180ms ease;
}

.answer-row > button:hover,
.answer-row > button:focus-visible {
  background: var(--acid);
  color: #111;
}

.answer-row > button:focus-visible {
  outline: 1px solid #111;
  outline-offset: 3px;
}

.question-assistance {
  margin-top: 13px;
}

.question-assistance > button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 0;
  background: transparent;
  padding: 0;
  color: #696969;
  font-family: "Apparat", Arial, sans-serif;
  font-size: 13px;
  cursor: pointer;
}

.question-assistance > button span {
  color: var(--ink);
  font-family: "InterLocal", Arial, sans-serif;
}

.question-hint,
.answer-feedback {
  margin: 13px 0 0;
  font-size: 13px;
  line-height: 1.45;
}

.question-hint {
  color: #686868;
}

.answer-feedback {
  border-left: 2px solid #111;
  padding-left: 11px;
}

.challenge-question.is-correct .answer-feedback {
  border-left-color: var(--acid);
}

.challenge-complete {
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 16px;
  border-top: 1px solid #111;
  border-bottom: 1px solid #111;
  margin-top: 34px;
  padding: 24px 0;
}

.challenge-complete > span {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  background: var(--acid);
  font-size: 17px;
}

.challenge-complete h3,
.challenge-complete p {
  margin: 0;
}

.challenge-complete h3 {
  font-family: "Apparat", Arial, sans-serif;
  font-size: 24px;
  font-weight: 300;
  letter-spacing: -0.03em;
}

.challenge-complete p {
  margin-top: 7px;
  color: #676767;
  font-size: 14px;
  line-height: 1.45;
}

@keyframes challenge-slide-in {
  from {
    transform: translateX(100%);
  }
  to {
    transform: translateX(0);
  }
}

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

.marquee-section {
  overflow: hidden;
  padding: 84px 0 72px;
}

.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee 22s linear infinite;
  will-change: transform;
}

.marquee-copy {
  display: flex;
  align-items: center;
  padding-right: 66px;
  font-family: "Apparat", Arial, sans-serif;
  font-size: clamp(104px, 7.2vw, 142px);
  font-weight: 300;
  letter-spacing: -0.055em;
  line-height: 0.82;
  white-space: nowrap;
}

.marquee-item {
  display: inline-flex;
  align-items: center;
}

.marquee-copy b {
  color: #b8b8b8;
  padding: 0 54px;
  font-weight: 300;
}

@keyframes marquee {
  to {
    transform: translateX(-50%);
  }
}

.operation-sources {
  border-top: 1px solid #cfcfcf;
  background: var(--paper);
  padding: 36px 21px 54px;
}

.contact-organizations {
  border-top: 1px solid #cfcfcf;
  background: var(--paper);
  padding: 36px 21px 54px;
}

.operation-sources-head {
  display: grid;
  grid-template-columns: minmax(180px, 0.7fr) minmax(0, 1.3fr);
  gap: 40px;
  align-items: start;
  padding-bottom: 28px;
}

.operation-sources-head h2,
.operation-sources-head p {
  margin: 0;
}

.operation-sources-head h2 {
  font-family: "Apparat", Arial, sans-serif;
  font-size: 14px;
  font-weight: 400;
  letter-spacing: -0.01em;
}

.operation-sources-head p {
  max-width: 650px;
  justify-self: end;
  color: #6f6f6f;
  font-size: 13px;
  line-height: 1.45;
}

.operation-source-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  border-top: 1px solid #cfcfcf;
  border-left: 1px solid #cfcfcf;
}

.contact-organization-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  border-top: 1px solid #cfcfcf;
  border-left: 1px solid #cfcfcf;
}

.contact-organization[href*="intelligenceonchain"] img {
  width: 88px;
  height: 88px;
  border-radius: 50%;
}

.operation-source {
  display: grid;
  min-width: 0;
  min-height: 154px;
  grid-template-rows: 1fr auto;
  place-items: center;
  gap: 18px;
  border-right: 1px solid #cfcfcf;
  border-bottom: 1px solid #cfcfcf;
  background: #f5f5f5;
  padding: 22px 16px 14px;
  text-decoration: none;
}

.operation-source:focus-visible {
  outline: 1px solid var(--ink);
  outline-offset: -5px;
}

.operation-source img {
  display: block;
  width: auto;
  max-width: min(100%, 184px);
  height: auto;
  max-height: 84px;
  object-fit: contain;
}

.operation-source span {
  color: #686868;
  font-family: "Fragment", monospace;
  font-size: 10px;
  line-height: 1.2;
  text-align: center;
}

.contact-organization img {
  max-width: min(100%, 196px);
  max-height: 88px;
}

.contact-organization.has-no-label {
  grid-template-rows: 1fr;
  gap: 0;
  padding-bottom: 22px;
}

.contact-organization.has-no-label img {
  align-self: center;
}

@media (max-width: 900px) {
  .language-switch {
    right: 12px;
  }

  .why-section {
    padding-right: 12px;
    padding-left: 12px;
  }

  .why-copy {
    display: block;
    min-height: auto;
    padding: 82px 0 70px;
  }

  .why-brand {
    justify-content: center;
    margin-top: 48px;
    transform: none;
  }

  .why-brand img {
    width: min(88vw, 430px);
  }

  .display-title {
    font-size: clamp(42px, 12vw, 70px);
    line-height: 0.98;
  }

  .why-columns {
    grid-template-columns: 1fr;
    gap: 24px;
    margin-top: 50px;
  }

  .cards {
    height: auto;
    flex-direction: column;
    gap: 10px;
    padding: 0 0 54px;
  }

  .blind-card,
  .blind-card.is-active {
    flex: none;
    width: 100%;
    height: 128px;
    transition: height 600ms cubic-bezier(0.7, 0, 0.2, 1);
  }

  .blind-card.is-active {
    height: 720px;
  }

  .card-number {
    top: 20px;
  }

  .blind-card.is-active .card-number {
    font-size: 144px;
  }

  .card-case-organizations {
    top: 20px;
    width: calc(100% - 180px);
    gap: 8px;
  }

  .card-case-logos {
    min-height: 38px;
    gap: 12px;
  }

  .card-case-logos img {
    max-width: 76px;
    height: 34px;
  }

  .card-case-organizations-label,
  .card-case-organizations-list {
    font-size: 12px;
  }

  .card-title {
    top: 190px;
  }

  .card-block:nth-of-type(2) {
    top: 280px;
  }

  .card-block:nth-of-type(3) {
    top: 470px;
  }

  .card-body {
    font-size: 15px;
  }

  .marquee-section {
    padding: 58px 0;
  }

  .marquee-copy {
    font-size: 76px;
  }

  .marquee-copy b {
    padding: 0 30px;
  }

  .operation-sources,
  .contact-organizations {
    padding: 30px 12px 42px;
  }

  .operation-sources-head {
    grid-template-columns: 1fr;
    gap: 12px;
    padding-bottom: 22px;
  }

  .operation-sources-head p {
    justify-self: start;
  }

  .operation-source-grid,
  .contact-organization-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .operation-source {
    min-height: 142px;
  }

  .challenge-content {
    padding: 56px 18px 42px;
  }

  .challenge-close {
    right: 14px;
  }

  .challenge-heading h2 {
    margin-top: 36px;
    font-size: clamp(40px, 12vw, 58px);
  }

  .challenge-section {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .answer-row {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .answer-row input {
    border-right: 1px solid #bdbdbd;
  }

  .answer-row > button {
    min-height: 48px;
  }

}

@media (min-width: 901px) and (max-width: 1320px) {
  .why-copy {
    grid-template-columns: minmax(0, 1fr) minmax(260px, 350px);
    column-gap: 38px;
  }

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

  .why-brand {
    text-align: center;
  }

  .why-brand img {
    width: min(100%, 340px);
  }

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

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

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