@font-face {
  font-family: "Geist Mono";
  src: url("assets/fonts/geist-mono-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

@font-face {
  font-family: "Barlow Condensed";
  src: url("assets/fonts/barlow-condensed-extrabold.ttf") format("truetype");
  font-style: normal;
  font-weight: 800;
  font-display: swap;
}

:root {
  color-scheme: light;
  --paper: #fff;
  --ink: #141412;
  --mono: "Geist Mono", "Courier New", monospace;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--mono);
  -webkit-font-smoothing: antialiased;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 10;
  pointer-events: none;
  background: url("assets/paper-grain.svg") repeat;
  opacity: 0.18;
  mix-blend-mode: multiply;
}

::selection {
  color: var(--paper);
  background: var(--ink);
}

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

a:focus-visible,
.content-panels:focus-visible,
.view-toggle:focus-visible + label {
  outline: 2px solid var(--ink);
  outline-offset: 6px;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 20;
  padding: 12px 16px;
  transform: translateY(calc(-100% - 24px));
  background: var(--paper);
  color: var(--ink);
  font-size: 1rem;
  text-decoration: underline;
}
.skip-link:focus {
  transform: none;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.homepage {
  position: relative;
  isolation: isolate;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.lab {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: min(29.375rem, calc(100% - 48px));
  min-width: 0;
  padding-top: clamp(48px, 9svh, 170px);
  padding-bottom: 240px;
  text-align: center;
}

.lab::before {
  content: "";
  position: absolute;
  inset: 0 -12px 228px;
  z-index: -1;
  background: var(--paper);
  pointer-events: none;
}

.site-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  min-width: 0;
}

.lab-message {
  margin: 0;
  max-width: 100%;
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.25;
  letter-spacing: -0.5px;
  text-transform: uppercase;
}

.identity {
  display: flex;
  flex-wrap: wrap;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: max-content;
  max-width: 100%;
  gap: 17px;
  margin: 40px 0 30px;
}

.brand-symbol {
  display: block;
  flex: 0 0 auto;
  width: 139px;
  height: 139px;
  background: linear-gradient(
    45deg,
    var(--ink) 0 13.5%,
    transparent 13.5% 18.5%,
    var(--ink) 18.5% 30%,
    transparent 30% 35%,
    var(--ink) 35% 46.5%,
    transparent 46.5% 51.5%,
    var(--ink) 51.5% 100%
  );
}

.wordmark {
  position: relative;
  margin: -5px 0 0;
  font-family: "Barlow Condensed", Impact, sans-serif;
  font-size: 55px;
  font-weight: 800;
  line-height: 0.86;
  letter-spacing: -1.2px;
  text-align: left;
  text-transform: uppercase;
  max-width: 100%;
  overflow-wrap: anywhere;
}

.wordmark > span {
  display: block;
}

.trademark {
  display: inline-block;
  vertical-align: bottom;
  margin-left: 5px;
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0;
}

.contact-links {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  max-width: 100%;
  gap: 16px;
  margin-top: 23px;
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.6px;
  text-transform: uppercase;
}

.view-links {
  display: none;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 16px;
  min-inline-size: 0;
  max-inline-size: 100%;
  margin: 0;
  padding: 0;
  border: 0;
}

.view-option {
  position: relative;
  display: flex;
  min-width: 44px;
}

.view-toggle {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  pointer-events: none;
}

.contact-links a,
.contact-links label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  min-width: 44px;
  position: relative;
}

.contact-secondary {
  cursor: pointer;
  text-underline-offset: 5px;
}

.view-toggle:checked + label,
.contact-secondary:hover {
  text-decoration: underline;
}

.contact-primary {
  padding: 9px;
  color: var(--paper);
}

.contact-primary::before {
  content: "";
  position: absolute;
  inset: 9px 0;
  z-index: -1;
  background: var(--ink);
}

.contact-primary:hover::before {
  inset: 6px -3px;
}

.registration {
  margin: 18px 0 0;
  color: #646460;
  font-size: 0.625rem;
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: 0.35px;
  text-transform: uppercase;
}

.registration > span:last-child {
  color: var(--ink);
}

.content-panels {
  width: 100%;
  min-width: 0;
  margin: 22px 0 0;
  scroll-margin-block: 24px;
  overflow-wrap: anywhere;
}

.explorations-panel {
  margin-top: 2rem;
}
/* Without selector support, both sections remain available to readers. */
@supports selector(:has(*)) {
  .view-links {
    display: flex;
  }
  .explorations-panel,
  .lab:has(#explorations-view:checked) .about-panel {
    display: none;
  }
  .explorations-panel {
    margin-top: 0;
  }
  .lab:has(#explorations-view:checked) .explorations-panel {
    display: block;
  }
}

.lab-about {
  margin: 0;
  color: #51514b;
  font-size: 0.75rem;
  font-weight: 400;
  line-height: 1.75;
  text-wrap: pretty;
}

.project {
  text-align: left;
}

.project-name {
  margin: 0;
}

.project-name img {
  display: block;
  width: 96px;
  height: auto;
}

.project-tagline {
  margin: 20px 0 12px;
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.35;
  letter-spacing: -0.5px;
}

.project-description {
  margin: 0;
  color: #51514b;
  font-size: 0.8125rem;
  line-height: 1.75;
  text-wrap: pretty;
}

.project-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin-top: 14px;
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 5px;
}

.project-link:hover {
  text-decoration-thickness: 2px;
}

.sticker-collage {
  position: fixed;
  inset: 0;
  z-index: 1;
  overflow: hidden;
  pointer-events: none;
}

.sticker {
  position: absolute;
  display: block;
  height: auto;
  max-width: none;
  user-select: none;
  -webkit-user-select: none;
}

.sticker-wahala {
  width: 240px;
  left: -35px;
  bottom: 55px;
  transform: rotate(-17deg);
  z-index: 4;
}

.sticker-receipt {
  width: 310px;
  left: 14%;
  bottom: -140px;
  transform: rotate(18deg);
  z-index: 2;
}

.sticker-danfo {
  width: 460px;
  left: -45px;
  bottom: -105px;
  transform: rotate(9deg);
  z-index: 5;
}

.sticker-suya {
  width: 245px;
  left: 30%;
  bottom: -100px;
  transform: rotate(-14deg);
  z-index: 3;
}

.sticker-brt {
  width: 365px;
  left: 43%;
  bottom: -95px;
  transform: rotate(7deg);
  z-index: 4;
}

.sticker-lastma {
  width: 355px;
  left: 61%;
  bottom: -60px;
  transform: rotate(-7deg);
  z-index: 5;
  clip-path: polygon(
    0 58%,
    12% 37%,
    13% 25%,
    15% 18%,
    23% 17%,
    25% 12%,
    30% 10%,
    33% 3%,
    39% 1%,
    44% 5%,
    47% 8%,
    49% 12%,
    52% 10%,
    60% 10%,
    65% 16%,
    67% 20%,
    70% 21%,
    77% 19%,
    81% 22%,
    84% 25%,
    87% 31%,
    92% 38%,
    98% 53%,
    100% 70%,
    99% 89%,
    96% 95%,
    88% 98%,
    35% 100%,
    16% 98%,
    10% 94%,
    6% 82%,
    1% 74%,
    2% 68%,
    0 66%
  );
}

.sticker-bridge {
  width: 505px;
  right: 10%;
  bottom: -165px;
  transform: rotate(-10deg);
  z-index: 2;
}

.sticker-yaba {
  width: 300px;
  right: -30px;
  bottom: 55px;
  transform: rotate(9deg);
  z-index: 3;
}

.sticker-redbull {
  width: 290px;
  right: 5px;
  bottom: -105px;
  transform: rotate(-20deg);
  z-index: 5;
}

@media (min-width: 1800px) {
  .sticker-wahala {
    width: 300px;
    left: -40px;
    bottom: 70px;
  }

  .sticker-danfo {
    width: 570px;
    left: -60px;
    bottom: -130px;
  }

  .sticker-receipt {
    width: 380px;
    bottom: -170px;
  }

  .sticker-suya {
    width: 310px;
    bottom: -125px;
  }

  .sticker-brt {
    width: 450px;
    bottom: -120px;
  }

  .sticker-lastma {
    width: 440px;
    bottom: -75px;
  }

  .sticker-bridge {
    width: 630px;
    bottom: -205px;
  }

  .sticker-yaba {
    width: 365px;
    right: -35px;
    bottom: 70px;
  }

  .sticker-redbull {
    width: 360px;
    bottom: -130px;
  }
}

@media (min-width: 701px) and (max-width: 1050px) {
  .sticker-wahala {
    width: 200px;
    left: -45px;
    bottom: 35px;
  }

  .sticker-danfo {
    width: 370px;
    left: -90px;
    bottom: -90px;
  }

  .sticker-receipt {
    width: 230px;
    left: 13%;
    bottom: -105px;
  }

  .sticker-suya {
    width: 190px;
    left: 27%;
    bottom: -80px;
  }

  .sticker-brt {
    width: 285px;
    left: 39%;
    bottom: -80px;
  }

  .sticker-lastma {
    width: 280px;
    left: 59%;
    bottom: -45px;
  }

  .sticker-bridge {
    width: 340px;
    right: 11%;
    bottom: -135px;
  }

  .sticker-yaba {
    width: 240px;
    right: -60px;
    bottom: 45px;
  }

  .sticker-redbull {
    width: 240px;
    right: -35px;
    bottom: -100px;
  }
}

@media (max-width: 700px) {
  .lab {
    padding-top: clamp(40px, 6svh, 90px);
  }

  .identity {
    gap: 13px;
    margin: 32px 0 24px;
  }

  .brand-symbol {
    width: 112px;
    height: 112px;
  }

  .wordmark {
    font-size: 44px;
    letter-spacing: -0.8px;
  }

  .trademark {
    font-size: 10px;
    margin-left: 3px;
  }

  .lab-message {
    font-size: 0.75rem;
  }
  .contact-links {
    gap: 14px;
    margin-top: 20px;
    font-size: 0.8125rem;
  }

  .view-links {
    gap: 14px;
  }

  .project-tagline {
    font-size: 0.9375rem;
  }

  .sticker-wahala {
    width: 215px;
    left: -88px;
    bottom: 26px;
  }

  .sticker-suya {
    width: 190px;
    left: 27%;
    bottom: -75px;
  }

  .sticker-brt {
    width: 290px;
    left: -85px;
    bottom: -65px;
    transform: rotate(7deg);
  }

  .sticker-lastma {
    width: 285px;
    left: 53%;
    bottom: -40px;
    z-index: 6;
  }

  .sticker-yaba {
    width: 245px;
    right: -105px;
    bottom: 42px;
  }

  .sticker-redbull {
    width: 210px;
    right: -98px;
    bottom: -100px;
  }

  .sticker-danfo,
  .sticker-receipt,
  .sticker-bridge {
    display: none;
  }
}

@media (max-width: 360px) {
  .brand-symbol {
    width: 96px;
    height: 96px;
  }

  .wordmark {
    font-size: 38px;
  }

  .contact-links {
    gap: 10px;
    font-size: 0.75rem;
  }

  .view-links {
    gap: 10px;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .contact-primary::before {
    transition: inset 180ms ease;
  }
}

@media (forced-colors: active) {
  :root {
    --paper: Canvas;
    --ink: CanvasText;
  }
  body::after,
  .sticker-collage {
    display: none;
  }
  .brand-symbol {
    forced-color-adjust: none;
  }
  .contact-primary {
    color: LinkText;
  }
  .contact-primary::before {
    border: 1px solid LinkText;
    background: Canvas;
  }
  a:focus-visible,
  .content-panels:focus-visible,
  .view-toggle:focus-visible + label {
    outline-color: Highlight;
  }
}

@media print {
  body::after,
  .sticker-collage,
  .skip-link,
  .view-links,
  .lab::before {
    display: none;
  }
  .homepage {
    min-height: 0;
  }
  .lab {
    width: 100%;
    padding: 0;
  }
  .content-panels {
    max-width: 40rem;
  }
  .lab .about-panel,
  .lab .explorations-panel {
    display: block !important;
  }
  .explorations-panel {
    margin-top: 2rem;
  }
  .contact-primary {
    color: var(--ink);
  }
  .contact-primary::before {
    display: none;
  }
  .project {
    break-inside: avoid;
  }
  .project-link::after {
    content: " (" attr(href) ")";
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    transition: none !important;
  }
}
