@font-face {
  font-family: "Space Grotesk";
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url("/fonts/space-grotesk-300.ttf") format("truetype");
}

@font-face {
  font-family: "Eva Ming SC";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/eva-ming-sc-v0.1.otf") format("opentype");
}

@font-face {
  font-family: "FOT Matisse Pro";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/FOT-MatissePro-L.otf") format("opentype");
}

@font-face {
  font-family: "FOT Matisse Pro";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/fonts/FOT-MatissePro-M.otf") format("opentype");
}

@font-face {
  font-family: "Space Grotesk";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/space-grotesk-400.ttf") format("truetype");
}

@font-face {
  font-family: "Space Grotesk";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/fonts/space-grotesk-500.ttf") format("truetype");
}

@font-face {
  font-family: "Space Grotesk";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/fonts/space-grotesk-700.ttf") format("truetype");
}

@font-face {
  font-family: "Space Mono";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/space-mono-400.ttf") format("truetype");
}

@font-face {
  font-family: "Space Mono";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/fonts/space-mono-700.ttf") format("truetype");
}

:root {
  --tbb-accent: #f40064;
  --accent: 336 100% 48% !important;
  --font-sans: "Space Grotesk", "FOT Matisse Pro", "Eva Ming SC", "PingFang SC", sans-serif !important;
  --font-mono: "Space Mono", "FOT Matisse Pro", "Eva Ming SC", "PingFang SC", monospace !important;
}

.dark {
  --accent: 336 100% 48% !important;
}

.replica-page {
  min-height: 100vh;
}

.tbb-media-placeholder,
.tbb-frame-placeholder {
  background: transparent !important;
  color: transparent !important;
}

.tbb-frame-placeholder {
  border: 0;
}

.replica-page [style*="opacity: 0"] {
  opacity: 1 !important;
}

.tbb-scroll-progress {
  height: 5px;
  left: 0;
  pointer-events: none;
  position: fixed;
  right: 0;
  top: 0;
  z-index: 100;
}

.tbb-scroll-progress-fill {
  background: hsl(var(--accent));
  height: 100%;
  transform: scaleX(0);
  transform-origin: left center;
  width: 100%;
  will-change: transform;
}

.replica-design nav .container,
.replica-design nav div[class*="md:flex"] {
  align-items: center !important;
}

.replica-design nav a,
.replica-design nav .tbb-lang-toggle {
  align-items: center;
  display: inline-flex;
  justify-content: center;
  line-height: 1 !important;
}

.replica-design nav a {
  min-height: 2.65rem;
}

.tbb-lang-toggle {
  border: 2px solid hsl(var(--border));
  background: transparent;
  color: inherit;
  cursor: pointer;
  font-family: var(--font-mono);
  font-size: 0.875rem;
  height: 2.45rem;
  line-height: 1 !important;
  padding: 0 0.7rem;
  text-transform: uppercase;
  transition: background-color 160ms ease, color 160ms ease;
}

.tbb-lang-toggle:hover,
.tbb-lang-toggle:focus-visible {
  background: hsl(var(--foreground));
  color: hsl(var(--background));
  outline: none;
}

.tbb-mobile-menu {
  border-top: 2px solid hsl(var(--border));
  display: none;
  overflow: hidden;
}

.tbb-mobile-menu-inner {
  background: hsl(var(--background));
  display: grid;
  font-family: var(--font-mono);
  font-size: clamp(1.35rem, 8vw, 2.8rem);
  font-weight: 700;
  line-height: 0.95;
  text-transform: uppercase;
}

.tbb-mobile-menu a,
.tbb-mobile-lang-toggle {
  border-bottom: 2px solid hsl(var(--border));
  display: flex;
  min-height: 4.75rem;
  padding: 1.1rem 1rem;
  text-align: left;
}

.tbb-mobile-menu a {
  align-items: center;
}

.tbb-mobile-lang-toggle {
  align-items: center;
  background: hsl(var(--accent));
  color: hsl(var(--accent-foreground));
  font: inherit;
  justify-content: center;
  width: 100%;
}

.tbb-mobile-menu a:active,
.tbb-mobile-menu a:focus-visible,
.tbb-mobile-lang-toggle:active,
.tbb-mobile-lang-toggle:focus-visible {
  background: hsl(var(--foreground));
  color: hsl(var(--background));
  outline: none;
}

.tbb-hero-title {
  font-size: var(--tbb-hero-size) !important;
  line-height: 0.85 !important;
  max-width: none;
  white-space: nowrap;
  flex: 0 1 auto;
}

.tbb-hero-row {
  --tbb-hero-size: clamp(3.25rem, 7.1vw, 8.5rem);
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2.2vw, 2.5rem);
  flex-wrap: nowrap;
}

.tbb-hero-logo {
  width: calc(var(--tbb-hero-size) * 0.86);
  height: calc(var(--tbb-hero-size) * 0.86);
  flex: 0 0 auto;
  overflow: hidden;
}

.tbb-hero-logo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.tbb-title-part {
  display: inline;
}

.tbb-title-part + .tbb-title-part::before {
  content: " ";
}

.tbb-marquee-track {
  flex: 0 0 auto;
  animation: tbb-marquee-scroll 32s linear infinite;
  will-change: transform;
}

.tbb-marquee-track > span {
  align-items: center;
  display: inline-flex;
  line-height: 0.92;
}

.tbb-marquee-dot {
  background: currentColor;
  border-radius: 999px;
  display: inline-block;
  flex: 0 0 auto;
  height: 0.28em;
  margin: 0 0.34em;
  transform: translateY(0.01em);
  width: 0.28em;
}

.tbb-marquee:hover .tbb-marquee-track {
  animation-play-state: paused;
}

.tbb-member-photo {
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.035) 1px, transparent 1px) 0 0 / 28px 28px,
    linear-gradient(0deg, rgba(0, 0, 0, 0.035) 1px, transparent 1px) 0 0 / 28px 28px;
}

.tbb-team-photo {
  filter: grayscale(100%);
  transition: filter 450ms ease, transform 650ms ease;
}

.tbb-team-card:hover .tbb-team-photo,
.tbb-team-card:focus-within .tbb-team-photo,
.tbb-team-card:active .tbb-team-photo {
  filter: grayscale(0%);
  transform: scale(1.03);
}

.tbb-about-title {
  font-size: clamp(2.35rem, 4.2vw, 4rem) !important;
  line-height: 0.92 !important;
}

.tbb-about-line {
  white-space: nowrap;
}

html[lang="zh-Hant"] .replica-design .tbb-intro-copy p,
html[lang="zh-Hant"] .replica-design #projects p,
html[lang="zh-Hant"] .replica-design #vibe p,
html[lang="zh-Hant"] .replica-design #speaking p,
html[lang="zh-Hant"] .replica-design #about p,
html[lang="zh-Hant"] .replica-design #contact p {
  font-family: "FOT Matisse Pro", "PingFang SC", sans-serif !important;
  font-weight: 400;
  line-height: 1.7;
}

html[lang="zh-Hant"] .replica-design .tbb-intro-copy .bg-accent {
  font-family: "FOT Matisse Pro", "PingFang SC", sans-serif !important;
  font-weight: 700;
  line-height: 1.2;
  padding: 0.26em 0.34em 0.24em !important;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

@keyframes tbb-marquee-scroll {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-100%);
  }
}

@media (max-width: 767px) {
  .tbb-mobile-menu[data-open="true"] {
    display: block;
  }

  .tbb-hero-row {
    --tbb-hero-size: clamp(1.9rem, 8.4vw, 3rem);
    align-items: center;
    flex-direction: row;
    gap: 0.75rem;
  }

  .tbb-hero-logo {
    width: calc(var(--tbb-hero-size) * 0.86);
    height: calc(var(--tbb-hero-size) * 0.86);
  }

  .tbb-intro-copy p {
    font-size: 16px !important;
  }

  .tbb-signal-row {
    align-items: flex-start;
    justify-content: flex-start;
  }

  .replica-experiments [data-testid="link-creative-tools"],
  .replica-experiments [data-testid="link-design-notes"],
  .replica-experiments [data-testid="link-random-thoughts"] {
    display: none !important;
  }

  .replica-experiments [data-testid="nav-main"] [data-testid="link-home"] {
    max-width: 11rem;
    line-height: 1.35;
  }

  .replica-experiments [data-testid="nav-main"] [data-testid="link-experiments"] {
    margin-left: 1rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .tbb-marquee-track {
    animation: none;
  }
}
