:root {
  color-scheme: light;
  --page-bg: #ececec;
  --copy: #f6f2ef;
  --ink: #111111;
  --accent-red: #ff2d09;
  --accent-blue: #699eff;
  --hover-transition: 320ms cubic-bezier(0.22, 1, 0.36, 1);
  --puzzle-hover-transition: 540ms ease-in-out;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  background: var(--page-bg);
  color: var(--ink);
  font-family: Helvetica, Arial, sans-serif;
}

a {
  color: inherit;
}

.page-shell,
.puzzle-stage {
  width: 100%;
}

.page-container {
  width: min(1080px, calc(100% - 64px));
  margin: 0 auto;
}

.puzzle-section {
  padding: 0;
}

.site-hero {
  padding-top: 62px;
}

.page-container--hero {
  width: min(1080px, calc(100% - 64px));
}

.brand-bar {
  padding-bottom: 15px;
  border-bottom: 2.5px solid var(--ink);
}

.brand-logo {
  display: inline-block;
  color: #040404;
  text-decoration: none;
}

.brand-logo__svg {
  display: block;
  width: 102px;
  height: auto;
}

.brand-logo__svg text {
  font-weight: 700;
  letter-spacing: -0.04em;
}

.hero-copy {
  padding-top: 74px;
}

.hero-title {
  margin: 0;
  max-width: 800px;
  font-size: 80px;
  line-height: 0.955;
  font-weight: 700;
  letter-spacing: -0.058em;
}

.hero-title__highlight {
  color: var(--accent-red);
}

.hero-intro {
  margin: 40px 0 0;
  max-width: 710px;
  font-size: 20px;
  line-height: 1.38;
  letter-spacing: -0.01em;
}

.hero-intro--mobile {
  display: none;
}

.hero-intro__highlight {
  color: var(--accent-red);
  font-weight: 700;
}

.puzzle-stage {
  width: min(1080px, calc(100% - 64px));
  margin-top: 16px;
  margin-left: auto;
  margin-right: auto;
}

.puzzle-board {
  display: block;
  width: 100%;
  height: auto;
}

.piece-link {
  text-decoration: none;
}

.piece-flat--research {
  fill: var(--accent-red);
}

.piece-flat--method,
.piece-flat--principles {
  fill: #040404;
}

.piece-flat--team {
  fill: var(--accent-blue);
}

.piece-artwork {
  opacity: 0;
  transition: opacity var(--puzzle-hover-transition);
}

.piece-artwork use {
  transform-box: fill-box;
  transform-origin: center center;
}

.piece-flat {
  opacity: 1;
}

.piece-copy {
  pointer-events: none;
}

.piece-text {
  fill: #ffffff;
  font-family: Helvetica, Arial, sans-serif;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-anchor: middle;
  dominant-baseline: middle;
  text-rendering: geometricPrecision;
}

.piece-text--desktop {
  font-size: 32px;
}

.piece-text--desktop-principles {
  font-size: 32px;
}

.piece-text--mobile {
  font-size: 18px;
}

.piece-text--mobile-principles {
  font-size: 17px;
}

.piece-underline {
  stroke: var(--copy);
  stroke-linecap: square;
  vector-effect: non-scaling-stroke;
  transition: opacity 360ms ease-in-out;
}

.piece-underline--desktop {
  stroke-width: 3.4px;
}

.piece-underline--mobile {
  stroke-width: 2.6px;
}

.piece-link:is(:focus-visible, .touch-contact-active, .scroll-active)
  .piece-artwork {
  opacity: 1;
}

.piece-link:is(:focus-visible, .touch-contact-active, .scroll-active)
  .piece-underline {
  opacity: 0;
}

@media (hover: hover) and (pointer: fine) {
  .piece-link,
  .info-panel__cta,
  .footer-top,
  .footer-link {
    cursor: pointer;
  }

  .piece-link:hover .piece-artwork {
    opacity: 1;
  }

  .piece-link:hover .piece-underline {
    opacity: 0;
  }
}

.piece-link:focus {
  outline: none;
}

.sections-wrap {
  width: min(1080px, calc(100% - 64px));
  margin: 100px auto 118px;
}

.info-panel {
  position: relative;
  padding: 88px 132px 92px;
  scroll-margin-top: 32px;
}

.info-panel--research {
  --panel-color: var(--accent-red);
  --bullet-color: var(--accent-red);
}

.info-panel--method {
  --panel-color: #111111;
  --bullet-color: #111111;
  z-index: 1;
}

.info-panel--principles {
  --panel-color: #111111;
  --bullet-color: #111111;
  z-index: 1;
}

.info-panel--team {
  --panel-color: var(--accent-blue);
  --bullet-color: var(--accent-blue);
  z-index: 2;
}

.info-panel--first {
  padding-top: 95px;
}

.info-panel + .info-panel {
  margin-top: 0;
}

.panel-border {
  position: absolute;
  inset: 0 0 auto 0;
  width: 100%;
  overflow: visible;
  pointer-events: none;
  z-index: 0;
}

.panel-border-path {
  fill: none;
  stroke: var(--panel-color);
  stroke-width: 2.5px;
  stroke-linejoin: miter;
  vector-effect: non-scaling-stroke;
}

.info-panel__content {
  position: relative;
  z-index: 2;
}

.info-panel__title {
  margin: 0 0 52px;
  color: var(--panel-color);
  font-size: 23px;
  line-height: 0.95;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.info-panel__item + .info-panel__item {
  margin-top: 58px;
}

.info-panel__bullet {
  display: block;
  width: 26px;
  height: 26px;
  margin-bottom: 32px;
  background: var(--bullet-color);
}

.info-panel__item p {
  margin: 0;
  max-width: 560px;
  font-size: 16px;
  line-height: 1.48;
  letter-spacing: -0.01em;
}

.info-panel__item p + p {
  margin-top: 1em;
}

.info-panel__cta-wrap {
  margin: 74px 0 18px;
  text-align: center;
}

.info-panel__cta {
  color: var(--accent-blue);
  font-size: 21px;
  font-weight: 700;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-decoration-color: currentColor;
  text-underline-offset: 4px;
  transition:
    color var(--hover-transition),
    text-decoration-color var(--hover-transition);
}

.info-panel__cta:is(:focus-visible, .touch-contact-active) {
  color: var(--accent-red);
  text-decoration-color: transparent;
}

.site-footer {
  margin-top: 0;
}

.site-footer__main {
  background: #ffffff;
}

.page-container--footer {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  position: relative;
  padding: 54px 0 52px;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 26px;
}

.footer-link {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  font-size: 19px;
  line-height: 1.2;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-decoration-color: currentColor;
  text-underline-offset: 5px;
  transition:
    color var(--hover-transition),
    text-decoration-color var(--hover-transition);
}

.footer-link__icon {
  display: inline-flex;
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
}

.footer-link__icon svg,
.footer-link__icon img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.footer-top {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: center;
  width: 96px;
  height: 72px;
  background: #040404;
  color: #ffffff;
  font-size: 18px;
  font-weight: 700;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-decoration-color: currentColor;
  text-underline-offset: 4px;
  transform: translate3d(0, var(--footer-top-shift, 0px), 0);
  opacity: 1;
  visibility: visible;
  will-change: opacity, transform;
  transition:
    color var(--hover-transition),
    text-decoration-color var(--hover-transition),
    opacity 900ms ease-in-out,
    transform 0s linear,
    visibility 0s linear 0s;
}

.footer-top--floating {
  position: fixed;
  right: max(32px, calc((100vw - 1080px) / 2));
  bottom: 52px;
  z-index: 30;
}

.footer-top--hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition:
    color var(--hover-transition),
    text-decoration-color var(--hover-transition),
    opacity 520ms ease-in-out,
    transform 0s linear,
    visibility 0s linear 520ms;
}

.footer-top:is(:focus-visible, .touch-contact-active) {
  color: var(--accent-red);
  text-decoration-color: transparent;
}

.footer-link:is(:focus-visible, .touch-contact-active) {
  color: var(--accent-red);
  text-decoration-color: transparent;
}

@media (hover: hover) and (pointer: fine) {
  .info-panel__cta:hover {
    color: var(--accent-red);
    text-decoration-color: transparent;
  }

  .footer-top:hover {
    color: var(--accent-red);
    text-decoration-color: transparent;
  }

  .footer-link:hover {
    color: var(--accent-red);
    text-decoration-color: transparent;
  }
}

.site-footer__pattern {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 122px;
  overflow: hidden;
  background-color: #040404;
}

.site-footer__pattern-art {
  display: block;
  width: 100%;
  height: 100%;
  max-width: 2048px;
  margin: 0 auto;
  object-fit: cover;
  object-position: center center;
}

@media (min-width: 641px) {
  .site-footer__pattern {
    justify-content: center;
  }

  .site-footer__pattern-art {
    width: min(100%, 2048px);
    margin-left: auto;
    margin-right: auto;
    object-position: center center;
  }
}

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

.puzzle-board--mobile {
  display: none;
}

@media (max-width: 640px) {
  .page-container {
    width: calc(100% - 70px);
  }

  .site-hero {
    padding-top: 66px;
  }

  .page-container--hero {
    width: calc(100% - 70px);
  }

  .brand-bar {
    padding-bottom: 12px;
    border-bottom-width: 2px;
  }

  .brand-logo__svg {
    width: 82px;
  }

  .hero-copy {
    padding-top: 54px;
  }

  .hero-title {
    max-width: none;
    font-size: 44px;
    line-height: 1.03;
    letter-spacing: -0.055em;
  }

  .hero-intro {
    margin-top: 34px;
    max-width: none;
    font-size: 16px;
    line-height: 1.58;
  }

  .hero-intro--desktop {
    display: none;
  }

  .hero-intro--mobile {
    display: block;
  }

  .puzzle-stage {
    width: 100%;
    margin-top: 62px;
    margin-left: 0;
    margin-right: 0;
  }

  .puzzle-board--desktop {
    display: none;
  }

  .puzzle-board--mobile {
    display: block;
  }

  .sections-wrap {
    width: 100%;
    margin: 28px 0 144px;
  }

  .info-panel {
    padding: 78px 35px 78px;
  }

  .info-panel::before,
  .info-panel::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    width: 6px;
    background: var(--bg);
    z-index: 1;
    pointer-events: none;
  }

  .info-panel::before {
    left: 0;
  }

  .info-panel::after {
    right: 0;
  }

  .info-panel--first {
    padding-top: 82px;
  }

  .panel-border-path {
    stroke-width: 2.5px;
  }

  .info-panel__title {
    margin-bottom: 42px;
    font-size: 23px;
  }

  .info-panel__item + .info-panel__item {
    margin-top: 54px;
  }

  .info-panel__bullet {
    width: 26px;
    height: 26px;
    margin-bottom: 32px;
  }

  .info-panel__item p {
    max-width: none;
    font-size: 16px;
    line-height: 1.76;
  }

  .info-panel__cta-wrap {
    margin: 66px 0 20px;
  }

  .info-panel__cta {
    font-size: 16px;
  }

  .page-container--footer {
    display: block;
    width: calc(100% - 70px);
    padding: 42px 0 38px;
  }

  .footer-links {
    gap: 22px;
  }

  .footer-link {
    gap: 16px;
    font-size: 16px;
  }

  .footer-link__icon {
    width: 34px;
    height: 34px;
  }

  .footer-top {
    display: inline-flex;
    width: 74px;
    height: 56px;
    font-size: 14px;
    text-decoration-thickness: 1.5px;
    text-underline-offset: 3px;
  }

  .footer-top--floating {
    right: 35px;
    bottom: 38px;
  }

  .site-footer__pattern {
    justify-content: flex-start;
    height: 112px;
  }

  .site-footer__pattern-art {
    margin-left: 0;
    margin-right: auto;
    object-position: left center;
    transform: scale(1.22);
    transform-origin: left center;
  }
}
