@font-face {
  font-family: "Cash Sans";
  src: url("/sites/berd/assets/fonts/CashSans/CashSans-Regular.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}

:root {
  --paper: #e4e4e0;
  --ink: #050505;
  --muted: rgba(5, 5, 5, 0.5);
  --dot: #c9cac4;
  --orange: #ff6500;
}

* { box-sizing: border-box; }
html {
  max-width: 100%;
  overflow-x: clip;
  scroll-behavior: smooth;
}
body {
  max-width: 100%;
  margin: 0;
  overflow-x: clip;
  color: var(--ink);
  background: radial-gradient(circle, var(--dot) 1px, transparent 1px) 0 0 / 32px 32px, var(--paper);
  font-family: "Cash Sans", Arial, sans-serif;
}
a { color: inherit; }

.custom-cursor {
  position: fixed;
  z-index: 9999;
  top: 0;
  left: 0;
  width: 16px;
  height: 16px;
  border-radius: 3px;
  background: #fff;
  mix-blend-mode: difference;
  opacity: 0;
  pointer-events: none;
  transform: translate3d(-100px, -100px, 0) translate(-50%, -50%);
  transition: width 140ms ease, height 140ms ease, opacity 120ms ease;
  will-change: width, height, transform;
}
@media (pointer: fine) {
  html.has-custom-cursor,
  html.has-custom-cursor * { cursor: none !important; }
}

.site-chrome {
  position: fixed;
  z-index: 20;
  inset: 23px 22px auto 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  pointer-events: none;
}
.site-chrome a { pointer-events: auto; }
.bird-logo { display: grid; place-items: center; width: 22px; height: 22px; overflow: hidden; }
.bird-logo img { display: block; width: 22px; height: 22px; }
.chrome-button {
  display: inline-flex;
  min-width: 86px;
  height: 26px;
  padding: 0 10px;
  border-radius: 4px;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: #000;
  font-size: 10.5px;
  font-weight: 500;
  line-height: 1;
  text-decoration: none;
}
.chrome-button:hover, .chrome-button:focus-visible { color: #000; background: #fff; }
.built-by {
  position: fixed;
  z-index: 20;
  bottom: 21px;
  left: 24px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 13px;
  line-height: 1;
  text-decoration: none;
}
.built-by img { display: block; width: 10px; height: 10px; }

.nba-hero {
  position: relative;
  display: grid;
  min-height: 100vh;
  min-height: 100svh;
  padding: 72px 24px;
  align-items: center;
  grid-template-columns: minmax(180px, 1fr) minmax(360px, 620px) minmax(180px, 1fr);
  gap: clamp(20px, 3vw, 64px);
  overflow: visible;
}
/* Give model-viewer's WebGL canvas generous vertical overscan. The model keeps
   the same visual scale, but can rotate without its head or shoes touching the
   canvas boundary and being clipped. */
.nba-model-wrap {
  width: 128%;
  height: min(94vh, 940px);
  min-height: 600px;
  margin-inline: -14%;
}
.nba-model {
  display: block;
  width: 100%;
  height: 100%;
  background: transparent;
  --poster-color: transparent;
  --progress-bar-height: 0px;
  --progress-bar-color: transparent;
}
.nba-copy {
  z-index: 2;
  margin: 0;
  font-size: clamp(32px, 3vw, 56px);
  font-weight: 400;
  line-height: 0.92;
  letter-spacing: -0.055em;
}
.nba-copy span { display: block; }
.nba-copy--left { justify-self: start; }
.nba-copy--right { justify-self: end; text-align: right; }
.nba-scroll {
  position: absolute;
  z-index: 10;
  bottom: max(34px, env(safe-area-inset-bottom));
  left: 50%;
  display: grid;
  width: 26px;
  height: 26px;
  place-items: center;
  color: #000;
  transform: translateX(-50%);
}
.nba-scroll svg { width: 26px; height: 26px; animation: nba-arrow 1.6s ease-in-out infinite; }
@keyframes nba-arrow { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(7px); } }

.nba-files { min-height: 100vh; padding: clamp(90px, 12vh, 150px) clamp(20px, 5vw, 90px) 110px; }
.nba-files-head {
  max-width: 1500px;
  margin: 0 auto 54px;
}
.nba-files h2 { margin: 0; font-size: clamp(32px, 3vw, 56px); font-weight: 400; line-height: 0.92; letter-spacing: -0.055em; }
.nba-folder-grid {
  display: grid;
  max-width: 1500px;
  margin: 0 auto;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.nba-gloopie-card {
  min-width: 0;
  aspect-ratio: 4 / 5;
  perspective: 1400px;
}
.nba-gloopie-card__inner {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transition: transform 650ms cubic-bezier(0.22, 1, 0.36, 1);
}
.nba-gloopie-card.is-flipped .nba-gloopie-card__inner { transform: rotateY(180deg); }
@media (hover: hover) and (pointer: fine) {
  .nba-gloopie-card:hover .nba-gloopie-card__inner { transform: rotateY(180deg); }
}
.nba-gloopie-card__face {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border: 0;
  border-radius: 4px;
  color: var(--ink);
  background: #fff;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}
.nba-gloopie-card__front {
  display: block;
  width: 100%;
  padding: 0;
  text-align: left;
  cursor: pointer;
}
.nba-gloopie-card__front img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 11%;
  transition: transform 450ms cubic-bezier(0.22, 1, 0.36, 1);
}
.nba-gloopie-card__front:hover img { transform: scale(1.035); }
.nba-gloopie-card__label {
  position: absolute;
  top: 14px;
  left: 14px;
  color: var(--muted);
  font-size: 9px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.nba-gloopie-card__front h3 {
  position: absolute;
  right: 14px;
  bottom: 12px;
  left: 14px;
  margin: 0;
  font-size: clamp(24px, 2vw, 36px);
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.045em;
}
.nba-gloopie-card__back {
  display: flex;
  flex-direction: column;
  transform: rotateY(180deg);
}
.nba-gloopie-card__back > header {
  display: flex;
  padding: 16px 16px 10px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.nba-gloopie-card__back h3 { margin: 0; font-size: 20px; font-weight: 400; letter-spacing: -0.04em; }
.nba-gloopie-card__close {
  display: inline-flex;
  align-items: center;
  border: 0;
  padding: 6px 8px;
  margin: -6px -8px -6px 0;
  background: transparent;
  color: var(--muted);
  font-family: "Cash Sans", Arial, sans-serif;
  font-size: 11px;
  letter-spacing: 0.02em;
}
.nba-gloopie-card__back .nba-folder-body { overflow: auto; }
.nba-subfolder > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  cursor: pointer;
  list-style: none;
}
.nba-subfolder > summary::-webkit-details-marker { display: none; }
.nba-subfolder > summary::after {
  content: "+";
  width: 12px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1;
  text-align: center;
}
.nba-subfolder[open] > summary::after { content: "−"; color: var(--ink); }
.nba-subfolder > summary:hover::after { color: var(--ink); }
.nba-folder-body { padding: 4px 10px 10px; }
.nba-root-file,
.nba-subfolder { border-bottom: 1px solid rgba(5, 5, 5, 0.1); }
.nba-root-file:last-child, .nba-subfolder:last-child { border-bottom: 0; }
.nba-subfolder > summary { padding: 12px 6px; font-size: 12px; letter-spacing: -0.01em; }
.nba-folder-index {
  flex: 0 0 auto;
  width: 22px;
  color: var(--muted);
  font-size: 11px;
  font-variant-numeric: tabular-nums;
}
.nba-folder-name { margin-right: auto; }
/* Indent file names to sit flush under the folder name (6px summary padding
   + 22px index column + 12px flex gap) and end rows at the summary's right
   padding so file sizes align with the +/- column. */
.nba-file-list { margin: 0; padding: 0 6px 9px 40px; list-style: none; }
.nba-file-list li + li { margin-top: 3px; }
.nba-file { padding: 7px 0; }
.nba-root-file { padding: 7px 6px; }
.nba-file,
.nba-root-file {
  display: grid;
  align-items: center;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  font-size: 11px;
  line-height: 1.2;
  text-decoration: none;
}
.nba-file-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nba-file-meta {
  color: var(--muted);
  font-size: 9px;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.nba-file:hover .nba-file-name,
.nba-root-file:hover .nba-file-name { color: var(--orange); text-decoration: underline; }
.site-footer {
  position: relative;
  min-height: 100px;
}
.footer-legal,
.footer-open-source {
  position: absolute;
  bottom: 21px;
  color: var(--ink);
  font-size: 13px;
  line-height: 1;
}
.footer-legal {
  left: 50%;
  display: flex;
  align-items: center;
  transform: translateX(-50%);
  white-space: nowrap;
}
.footer-legal > span:first-of-type { margin: 0 10px; }
.footer-legal a,
.footer-open-source { color: inherit; text-decoration: none; }
.footer-open-source {
  right: 24px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.footer-open-source svg { display: block; flex: 0 0 auto; }

@media (min-width: 901px) {
  .nba-hero {
    height: 100vh;
    height: 100svh;
    padding-top: 0;
    padding-bottom: 0;
  }
  .nba-model-wrap {
    align-self: start;
    height: 100vh;
    height: 100svh;
    min-height: 0;
  }
  .nba-copy { align-self: center; }
  .nba-scroll { bottom: max(15px, env(safe-area-inset-bottom)); }
}

@media (max-width: 900px) {
  main,
  .nba-hero,
  .nba-files,
  .site-footer { width: 100%; max-width: 100%; overflow-x: clip; }
  .site-chrome {
    top: 18px;
    right: 16px;
    bottom: auto;
    left: 16px;
    width: calc(100% - 32px);
  }
  .nba-hero { grid-template-columns: 1fr 1fr; grid-template-rows: 1fr auto; padding: 68px 20px 80px; }
  .nba-model-wrap { grid-column: 1 / -1; grid-row: 1; height: 62vh; min-height: 390px; }
  .nba-copy { grid-row: 2; font-size: clamp(27px, 7vw, 44px); }
  .nba-folder-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .built-by { left: 16px; }
  .nba-model-wrap { min-height: 340px; }
  .nba-folder-grid { grid-template-columns: 1fr; }
  .site-footer { min-height: 112px; }
  .footer-legal {
    right: 16px;
    bottom: 54px;
    left: auto;
    display: grid;
    width: auto;
    justify-items: end;
    gap: 7px;
    line-height: 1;
    text-align: right;
    transform: none;
    white-space: nowrap;
  }
  .footer-legal > span:first-of-type { display: none; margin: 0; }
  .footer-legal > span { margin: 0; }
  .footer-open-source {
    right: 16px;
    bottom: 20px;
    min-height: 13px;
    justify-content: flex-end;
    width: auto;
    text-align: right;
  }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .nba-scroll span:last-child { animation: none; }
}
