@font-face {
  font-family: "Otoiwo LM";
  src: url("./assets/fonts/otoiwo-grotesk-compressed-black.otf") format("opentype");
  font-display: swap;
  font-style: normal;
  font-weight: 900;
}

@font-face {
  font-family: "Stolzl LM";
  src: url("./assets/fonts/stolzl-light.ttf") format("truetype");
  font-display: swap;
  font-style: normal;
  font-weight: 400;
}

:root {
  --yellow: #ffd300;
  --purple: #8550ff;
  --blue: #0732ff;
  --ink: #000000;
  --text: #1e1e1e;
  --paper: #ffffff;
  --canvas: #1f1f1f;
  --page-width: 1440px;
  --content-width: 1136px;
  --copy-lead-width: 1009px;
  --copy-mode-width: 1033px;
  --line-size: 5px;
  --line: var(--line-size) solid var(--ink);
  --mode: var(--yellow);
  --button-shadow: 0 5px 0 var(--ink);
  color: var(--ink);
  font-family: "Stolzl LM", Arial, Helvetica, sans-serif;
  font-synthesis: none;
  text-rendering: geometricPrecision;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--canvas);
}

body[data-mode="lion"] {
  --mode: var(--yellow);
}

body[data-mode="msqt"] {
  --mode: var(--purple);
}

a {
  color: inherit;
  text-decoration: none;
}

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

.site-shell {
  width: 100%;
  margin: 0 auto;
  overflow: hidden;
  background: var(--paper);
}

.hero {
  position: relative;
  height: 844px;
  overflow: hidden;
  border: var(--line);
  background: var(--yellow);
}

.brand-logo,
.corner-mark {
  position: absolute;
  z-index: 4;
  display: block;
  pointer-events: none;
}

.brand-logo-desktop {
  top: 19px;
  left: 50%;
  width: 205px;
  height: 86px;
  transform: translateX(-50%);
}

.brand-logo-mobile,
.corner-mark-mobile {
  display: none;
}

.corner-mark-desktop {
  top: 28px;
  right: 152px;
  width: 89px;
  height: 65px;
}

.hero-title {
  position: absolute;
  top: 373px;
  left: 50%;
  z-index: 2;
  width: min(calc(100% - 144px), var(--content-width));
  margin: 0;
  color: var(--ink);
  font-family: "Otoiwo LM", Impact, "Arial Black", sans-serif;
  font-size: 128px;
  font-weight: 900;
  line-height: 0.85;
  letter-spacing: 0;
  transform: translateX(-50%);
}

.hero-art {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

.hero-art::before {
  position: absolute;
  top: 44px;
  left: calc(50% - 249px);
  width: 589px;
  height: 589px;
  content: "";
  background-color: var(--yellow);
  background-image: url("./assets/figma-site/hero-media-lion.png");
  background-position: center;
  background-repeat: no-repeat;
  background-size: 100% 100%;
  background-blend-mode: multiply;
  transition:
    background-image 260ms ease,
    transform 420ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

body[data-mode="msqt"] .hero-art::before {
  background-image: url("./assets/figma-site/hero-media-msqt.png");
}

.hero-media {
  display: none;
}

.intro-section {
  text-align: center;
}

.intro-lead,
.mode-copy {
  margin-right: auto;
  margin-left: auto;
  color: var(--text);
  font-size: 28px;
  font-weight: 400;
  line-height: 32.2px;
}

.intro-lead {
  width: min(calc(100% - 144px), var(--copy-lead-width));
  margin-top: 78px;
  margin-bottom: 0;
}

.switch-stage {
  display: grid;
  place-items: center;
  height: 167px;
  margin-top: 60px;
}

.mode-switch {
  position: relative;
  width: 353px;
  height: 167px;
  transform-style: preserve-3d;
  transition: transform 420ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.switch-render {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 0;
  transition:
    opacity 220ms ease,
    transform 420ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

body[data-mode="lion"] .switch-render-lion,
body[data-mode="msqt"] .switch-render-msqt {
  opacity: 1;
}

body[data-mode="msqt"] .mode-switch {
  transform: translateX(1px);
}

.switch-shadow {
  display: none;
}

.switch-face {
  position: absolute;
  top: 35%;
  z-index: 3;
  display: block;
  height: 43%;
  border: 0;
  border-radius: 0;
  color: transparent;
  background: transparent;
  cursor: pointer;
}

.switch-lion {
  left: 0;
  width: 49%;
}

.switch-msqt {
  right: 0;
  width: 49%;
}

.switch-face:focus-visible,
.case-action:focus-visible,
.pill-button:focus-visible,
.footer a:focus-visible {
  outline: 4px solid var(--blue);
  outline-offset: 5px;
}

.mode-copy {
  width: min(calc(100% - 144px), var(--copy-mode-width));
  margin-top: 84px;
  min-height: 128px;
}

body[data-mode="msqt"] .mode-copy {
  width: min(calc(100% - 144px), 748px);
  margin-top: 78px;
  min-height: 96px;
}

.mode-copy p {
  margin: 0;
  transition:
    opacity 180ms ease,
    transform 180ms ease;
}

.service-section {
  display: grid;
  gap: 32px;
  width: min(calc(100% - 144px), var(--content-width));
  margin: 78px auto 0;
}

.service-card {
  display: grid;
  grid-template-columns: 560px 1fr;
  height: 186px;
  overflow: hidden;
  border: var(--line);
  background: var(--mode);
  transition:
    background-color 260ms ease,
    opacity 180ms ease,
    transform 180ms ease;
}

.service-card h2,
.service-card p {
  margin: 0;
}

.service-card h2 {
  display: flex;
  align-items: center;
  min-width: 0;
  padding: 0 47px;
  border-right: var(--line);
  color: var(--ink);
  font-family: "Otoiwo LM", Impact, "Arial Black", sans-serif;
  font-size: 52px;
  font-weight: 900;
  line-height: 44.2px;
  letter-spacing: 0;
}

.service-card p {
  align-self: center;
  padding: 0 37px 0 46px;
  color: var(--text);
  font-size: 20px;
  font-weight: 400;
  line-height: 23px;
}

.is-switching .mode-copy p,
.is-switching .service-card,
.is-switching .media-case img,
.is-switching .case-badge {
  opacity: 0;
  transform: translateY(8px);
}

.cases-section {
  display: grid;
  grid-template-columns: repeat(2, 552px);
  gap: 32px;
  width: min(calc(100% - 144px), var(--content-width));
  margin: 32px auto 0;
}

.case-card {
  position: relative;
  width: 100%;
  aspect-ratio: 552 / 736;
  overflow: hidden;
  border: var(--line);
  background: var(--paper);
}

.media-case img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition:
    opacity 180ms ease,
    transform 180ms ease;
}

.case-badge {
  position: absolute;
  left: var(--line-size);
  bottom: var(--line-size);
  z-index: 2;
  display: flex;
  align-items: center;
  width: 181px;
  height: 35px;
  padding-left: 10px;
  color: var(--ink);
  background: var(--mode);
  font-size: 16px;
  font-weight: 400;
  line-height: 19.2px;
  transition:
    background-color 260ms ease,
    opacity 180ms ease,
    transform 180ms ease;
}

.cta-case {
  display: block;
  background: var(--mode);
  transition: background-color 260ms ease;
}

.cta-case::before,
.cta-case::after {
  position: absolute;
  z-index: 1;
  content: "";
  background: var(--ink);
}

.cta-case::before {
  top: 70px;
  left: 274px;
  width: var(--line-size);
  height: 386px;
}

.cta-case::after {
  top: 263px;
  left: 83px;
  width: 386px;
  height: var(--line-size);
}

.cta-case p {
  position: absolute;
  top: 503px;
  left: 37px;
  z-index: 2;
  width: 478px;
  margin: 0;
  color: var(--text);
  font-size: 20px;
  font-weight: 400;
  line-height: 23px;
  text-align: center;
}

.case-action,
.pill-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: var(--line);
  border-radius: 9999px;
  background: var(--paper);
  color: var(--ink);
  font-weight: 400;
  box-shadow: var(--button-shadow);
  transition:
    transform 180ms ease,
    box-shadow 180ms ease;
}

.case-action:hover,
.pill-button:hover {
  transform: translateY(2px);
  box-shadow: 0 3px 0 var(--ink);
}

.case-action:active,
.pill-button:active {
  transform: translateY(5px);
  box-shadow: 0 0 0 var(--ink);
}

.case-action {
  position: absolute;
  top: 607px;
  left: 157px;
  z-index: 2;
  width: 238px;
  height: 65px;
  font-size: 20px;
  line-height: 24px;
}

.feature-case {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(calc(100% - 144px), var(--content-width));
  height: 185px;
  margin: 32px auto 0;
  padding: 0 52px;
  border: var(--line);
  background: var(--blue);
  color: var(--paper);
}

.feature-case h2 {
  width: 720px;
  margin: 0;
  color: var(--paper);
  font-size: 28px;
  font-weight: 400;
  line-height: 32.2px;
}

.pill-button {
  width: 238px;
  height: 65px;
  font-size: 20px;
  line-height: 24px;
}

.footer {
  display: grid;
  grid-template-columns: 1fr 428px 1fr;
  align-items: start;
  width: min(calc(100% - 144px), var(--content-width));
  height: 90px;
  margin: 26px auto 0;
  color: var(--ink);
}

.footer a {
  font-family: "Otoiwo LM", Impact, "Arial Black", sans-serif;
  font-size: 24px;
  font-weight: 900;
  line-height: 33.12px;
  letter-spacing: 0;
}

.footer div {
  text-align: center;
}

.footer a:last-child {
  justify-self: end;
}

.footer p {
  width: 428px;
  margin: 11px auto 0;
  font-size: 16px;
  font-weight: 400;
  line-height: 19.2px;
}

@media (max-width: 700px) {
  :root {
    --content-width: 353px;
    --copy-lead-width: 300px;
    --copy-mode-width: 300px;
    --line-size: 3px;
    --button-shadow: 0 3px 0 var(--ink);
  }

  .site-shell {
    width: 100%;
  }

  .hero {
    height: 629px;
  }

  .brand-logo-desktop,
  .corner-mark-desktop {
    display: none;
  }

  .brand-logo-mobile,
  .corner-mark-mobile {
    display: block;
  }

  .brand-logo-mobile {
    top: 19px;
    left: 50%;
    width: 126px;
    height: 53px;
    transform: translateX(-50%);
  }

  .corner-mark-mobile {
    top: 24px;
    right: 26px;
    width: 54px;
    height: 44px;
  }

  .hero-art::before {
    top: 46px;
    left: 50%;
    width: 401px;
    height: 401px;
    transform: translateX(-50%);
  }

  .hero-title {
    top: 426px;
    width: min(calc(100% - 44px), 349px);
    font-size: 64px;
    line-height: 54.4px;
  }

  .intro-lead,
  .mode-copy {
    width: min(calc(100% - 93px), 300px);
    font-size: 15px;
    line-height: 17.25px;
  }

  .intro-lead {
    margin-top: 49px;
  }

  .switch-stage {
    height: 86px;
    margin-top: 43px;
  }

  .mode-switch {
    width: 181px;
    height: 86px;
  }

  .switch-render-lion {
    content: url("./assets/figma-site/switch-lion-mobile.png");
  }

  .switch-render-msqt {
    content: url("./assets/figma-site/switch-msqt-mobile.png");
  }

  .mode-copy {
    margin-top: 51px;
    min-height: 119px;
  }

  body[data-mode="msqt"] .mode-copy {
    width: min(calc(100% - 93px), 300px);
    margin-top: 51px;
    min-height: 68px;
  }

  .service-section {
    gap: 20px;
    width: min(calc(100% - 40px), var(--content-width));
    margin-top: 49px;
  }

  .service-card {
    grid-template-columns: 1fr;
    grid-template-rows: 86px 1fr;
    height: 178px;
  }

  .service-card h2 {
    padding: 0 18px;
    border-right: 0;
    border-bottom: var(--line);
    font-size: 27px;
    line-height: 22.95px;
  }

  .service-card p {
    align-self: start;
    padding: 13px 18px 0;
    font-size: 13px;
    line-height: 14.95px;
  }

  .cases-section {
    grid-template-columns: 1fr;
    gap: 20px;
    width: min(calc(100% - 40px), var(--content-width));
    margin-top: 20px;
  }

  .case-card {
    aspect-ratio: 353 / 470;
  }

  .case-badge {
    width: 122px;
    height: 22px;
    padding-left: 10px;
    font-size: 10px;
    line-height: 12px;
  }

  .cta-case::before {
    top: 44px;
    left: 175px;
    height: 247px;
  }

  .cta-case::after {
    top: 168px;
    left: 53px;
    width: 247px;
  }

  .cta-case p {
    top: 322px;
    left: 24px;
    width: 306px;
    font-size: 13px;
    line-height: 14.95px;
  }

  .case-action {
    top: 383px;
    left: 100px;
    width: 152px;
    height: 46px;
    font-size: 13px;
    line-height: 15.6px;
  }

  .feature-case {
    display: block;
    width: min(calc(100% - 40px), var(--content-width));
    height: 144px;
    margin-top: 20px;
    padding: 0;
  }

  .feature-case h2 {
    position: absolute;
    top: 19px;
    left: 40px;
    width: 274px;
    font-size: 15px;
    line-height: 17.25px;
  }

  .pill-button {
    position: absolute;
    top: 73px;
    left: 100px;
    width: 152px;
    height: 46px;
    margin: 0;
    font-size: 13px;
    line-height: 15.6px;
  }

  .footer {
    grid-template-columns: 1fr 1fr 1fr;
    width: min(calc(100% - 40px), var(--content-width));
    height: 104px;
    margin-top: 25px;
  }

  .footer a {
    font-size: 24px;
    line-height: 33.12px;
  }

  .footer div {
    text-align: center;
  }

  .footer p {
    width: 231px;
    margin-top: 16px;
    margin-left: -61px;
    font-size: 12px;
    line-height: 14.4px;
  }
}

@media (min-width: 701px) and (max-width: 1280px) {
  .hero-title,
  .intro-lead,
  .mode-copy,
  .service-section,
  .cases-section,
  .feature-case,
  .footer {
    width: calc(100% - 144px);
  }

  .service-card {
    grid-template-columns: minmax(430px, 49.7%) 1fr;
  }

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

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