@font-face {
  font-family: "orpheus-pro";
  src: url("./assets/fonts/a16z/orpheuspro.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "domaine-text";
  src: url("./assets/fonts/a16z/domaine-text-light.woff2") format("woff2");
  font-style: normal;
  font-weight: 300;
  font-display: swap;
}

@font-face {
  font-family: "domaine-text";
  src: url("./assets/fonts/a16z/domaine-text-regular.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "domaine-text";
  src: url("./assets/fonts/a16z/domaine-text-medium.woff2") format("woff2");
  font-style: normal;
  font-weight: 500;
  font-display: swap;
}

@font-face {
  font-family: "domaine-sans-text";
  src: url("./assets/fonts/a16z/domaine-sans-text-light.woff2") format("woff2");
  font-style: normal;
  font-weight: 300;
  font-display: swap;
}

@font-face {
  font-family: "domaine-sans-text";
  src: url("./assets/fonts/a16z/domaine-sans-text-regular.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "icomoon";
  src: url("./assets/fonts/a16z/vite-icomoon.woff") format("woff");
  font-style: normal;
  font-weight: 400;
  font-display: block;
}

:root {
  --sapphire: #092344;
  --white: #fff;
  --travertine: #e1d9c7;
  --grid-bg: rgba(255, 255, 255, 0.2);
  --grid-hover: #f0ece3;
  --portfolio-input-border: #8998ab;
  --portfolio-hover-color: #aca08d;
  --drop-color: #fff;
  --label-hover-color: #aca08d;
  --font-display: "orpheus-pro", "Songti SC", "STSong", "Noto Serif SC", "Source Han Serif SC", "Times New Roman", serif;
  --font-body: "domaine-text", "Songti SC", "STSong", "Noto Serif SC", "Source Han Serif SC", Georgia, serif;
  --font-sans: "domaine-sans-text", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", Arial, sans-serif;
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--sapphire);
}

body {
  min-height: 100%;
  margin: 0;
  overflow-x: hidden;
  background: var(--sapphire);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  text-rendering: geometricPrecision;
}

button,
input,
select {
  font: inherit;
}

button {
  color: inherit;
}

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

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 30;
  height: 56px;
  display: grid;
  grid-template-columns: 56px 1fr 56px;
  align-items: center;
  color: var(--white);
  pointer-events: none;
}

.brand,
.search-icon {
  pointer-events: auto;
}

.brand {
  justify-self: center;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 12px;
  line-height: 1;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  white-space: nowrap;
}

.search-icon,
.featured-card,
.company-card,
.view-button {
  appearance: none;
  border: 0;
  border-radius: 0;
  background: transparent;
  cursor: pointer;
}

.search-icon {
  justify-self: end;
  position: relative;
  width: 56px;
  height: 56px;
}

.search-icon::before {
  content: "";
  position: absolute;
  left: 20px;
  top: 20px;
  width: 11px;
  height: 11px;
  border: 1.5px solid currentColor;
  border-radius: 50%;
}

.search-icon::after {
  content: "";
  position: absolute;
  left: 31px;
  top: 32px;
  width: 8px;
  height: 1.5px;
  background: currentColor;
  transform: rotate(45deg);
  transform-origin: left center;
}

.portfolio-shell {
  position: relative;
  min-height: 100vh;
  isolation: isolate;
}

.portfolio-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-color: var(--sapphire);
}

.portfolio-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("./assets/images/portfolio/patterns/pattern-01.svg");
  background-position: center top;
  background-size: 216px 216px;
  opacity: 0.1;
}

.portfolio-hero {
  min-height: 509.984px;
  padding-top: 56px;
  color: var(--white);
}

.hero-inner,
.investments-inner {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1407px;
  margin: 0 auto;
  padding-right: 47px;
  padding-left: 32px;
}

.hero-inner {
  padding-top: 80px;
}

h1,
h2 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: 0;
}

h1 {
  font-size: clamp(32px, 2.95vw, 42px);
  line-height: 1.2;
  letter-spacing: 0.04em;
  color: var(--white);
}

.featured-ticker {
  position: relative;
  left: 50%;
  right: 50%;
  width: 100vw;
  margin-top: 48px;
  margin-right: -50vw;
  margin-left: -50vw;
}

.featured-viewport {
  overflow: hidden;
  contain: layout paint;
}

.featured-track {
  display: flex;
  width: max-content;
  will-change: transform;
  backface-visibility: hidden;
  transform: translate3d(0, 0, 0);
  animation: featured-marquee 80s linear infinite;
  animation-delay: -35.7s;
}

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

.featured-group {
  display: flex;
  gap: 16px;
  padding-right: 16px;
}

.featured-card {
  position: relative;
  width: 260px;
  height: 260px;
  flex: 0 0 auto;
  overflow: hidden;
  padding: 0;
  background: #071a31;
  color: var(--white);
}

.featured-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  pointer-events: none;
  transition: transform 300ms ease;
}

.featured-card::after {
  content: "";
  position: absolute;
  inset: 45% 0 0;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.48));
  pointer-events: none;
}

.featured-card:hover .featured-image {
  transform: scale(1.045);
}

.featured-copy {
  position: absolute;
  inset: auto 0 0;
  z-index: 1;
  min-height: 100.55px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  padding: 16px;
  text-align: center;
}

.featured-logo {
  width: 117px;
  max-height: 45px;
  object-fit: contain;
  filter: brightness(0) invert(1) saturate(0);
}

.featured-status {
  margin-top: 10px;
  color: rgba(225, 217, 199, 0.86);
  font-size: 13px;
  font-weight: 300;
  line-height: 1.54;
}

.investments-section {
  min-height: 360px;
  padding: 48px 0 80px;
  color: var(--white);
}

.section-head {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: center;
}

h2 {
  font-size: 28px;
  line-height: 1.095;
}

.toolbar {
  margin-top: 32px;
  display: grid;
  grid-template-columns: 200px 200px 72px;
  gap: 16px;
  align-items: end;
}

.filter-control {
  position: relative;
  display: block;
  min-width: 0;
}

select,
input,
.filter-trigger {
  width: 100%;
  height: 36px;
  border: 0;
  border-bottom: 1px solid var(--portfolio-input-border);
  border-radius: 0;
  outline: none;
  background: transparent;
  color: var(--white);
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 300;
  line-height: 1.538;
  text-align: left;
  transition: color 180ms ease, border-color 180ms ease;
}

input {
  padding: 8px 28px 8px 0;
  text-overflow: ellipsis;
}

select {
  appearance: none;
  cursor: pointer;
}

.dropdown-control {
  z-index: 20;
}

.dropdown-control.is-open {
  z-index: 40;
}

.filter-trigger {
  position: relative;
  z-index: 41;
  display: flex;
  align-items: flex-end;
  padding: 8px 0;
  cursor: pointer;
}

.filter-trigger-inner {
  position: relative;
  z-index: 41;
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
}

.filter-chevron {
  flex: 0 0 auto;
  font-family: "icomoon";
  font-size: 8px;
  line-height: 1;
  transition: color 180ms ease, transform 180ms ease;
}

.filter-chevron::before {
  content: "\e91c";
}

.dropdown-control:not(.is-open):hover .filter-trigger,
.search-control:hover input {
  color: var(--portfolio-hover-color);
  border-bottom-color: var(--portfolio-hover-color);
}

.search-control:hover .search-mini {
  color: var(--portfolio-hover-color);
}

.dropdown-control.is-open .filter-trigger {
  color: var(--white);
  border-bottom-color: var(--portfolio-input-border);
}

.dropdown-control.is-open .filter-chevron {
  transform: rotate(180deg);
}

.filter-menu {
  position: absolute;
  top: -10px;
  left: -24px;
  right: -24px;
  z-index: 35;
  display: none;
  min-width: 248px;
  overflow: hidden;
  padding: 56px 0 24px;
  background: rgba(255, 255, 255, 0.2);
  box-shadow: 0 2px 2px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(10px);
  color: rgba(255, 255, 255, 0.92);
}

.dropdown-control.is-open .filter-menu {
  display: block;
}

.filter-menu-list {
  max-height: 227px;
  margin: 0;
  padding: 0 24px;
  overflow-y: auto;
  list-style: none;
}

.filter-menu-list::-webkit-scrollbar {
  width: 4px;
}

.filter-menu-list::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.08);
}

.filter-menu-list::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.34);
}

.filter-menu-item {
  padding: 6px 0;
}

.filter-option {
  appearance: none;
  position: relative;
  display: block;
  width: 100%;
  min-height: 16px;
  padding: 0 0 0 18px;
  border: 0;
  background: transparent;
  color: inherit;
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 300;
  line-height: 1.454;
  text-align: left;
  cursor: pointer;
  transition: color 180ms ease;
}

.filter-check {
  position: absolute;
  left: 0;
  top: 2px;
  width: 10px;
  height: 10px;
  border: 1px solid rgba(255, 255, 255, 0.78);
  transition: border-color 180ms ease, color 180ms ease;
}

.filter-option-radio .filter-check {
  border-radius: 50%;
}

.filter-option-check .filter-check {
  border-radius: 1px;
}

.filter-radio-dot {
  position: absolute;
  left: 3px;
  top: 5px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--drop-color);
  opacity: 0;
  visibility: hidden;
  transition: opacity 180ms ease, visibility 180ms ease, background-color 180ms ease;
}

.filter-check-icon {
  position: absolute;
  left: 1px;
  top: -1px;
  color: var(--drop-color);
  font-family: "icomoon";
  font-size: 11px;
  line-height: 1;
  opacity: 0;
  visibility: hidden;
  transition: opacity 180ms ease, visibility 180ms ease, color 180ms ease;
}

.filter-check-icon::before {
  content: "\e913";
}

.filter-option:hover {
  color: var(--label-hover-color);
}

.filter-option:hover .filter-check {
  border-color: var(--label-hover-color);
}

.filter-option:hover .filter-radio-dot {
  background: var(--label-hover-color);
}

.filter-option:hover .filter-check-icon {
  color: var(--label-hover-color);
}

.filter-option.is-selected .filter-radio-dot,
.filter-option.is-selected .filter-check-icon {
  opacity: 1;
  visibility: visible;
}

.filter-option.is-selected .filter-option-label {
  font-weight: 500;
}

.search-control::after {
  display: none;
}

.search-mini {
  position: absolute;
  right: 3px;
  top: 6px;
  width: 13px;
  height: 13px;
  pointer-events: none;
}

.search-mini::before {
  content: "";
  position: absolute;
  left: 1px;
  top: 1px;
  width: 7px;
  height: 7px;
  border: 1px solid currentColor;
  border-radius: 50%;
}

.search-mini::after {
  content: "";
  position: absolute;
  left: 9px;
  top: 10px;
  width: 5px;
  height: 1px;
  background: currentColor;
  transform: rotate(45deg);
  transform-origin: left center;
}

input::placeholder {
  color: var(--white);
  opacity: 1;
}

option {
  background: var(--sapphire);
}

.view-toggle {
  height: 26px;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 14px;
}

.view-button {
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  padding: 0;
  color: rgba(255, 255, 255, 0.85);
  transition: color 180ms ease;
}

.view-button.is-active {
  color: var(--portfolio-hover-color);
}

.grid-mark {
  width: 14px;
  height: 14px;
  display: grid;
  grid-template-columns: repeat(2, 4px);
  grid-template-rows: repeat(2, 4px);
  gap: 3px;
}

.grid-mark::before,
.grid-mark::after,
.list-mark::before,
.list-mark::after {
  content: "";
}

.grid-mark::before,
.grid-mark::after {
  width: 4px;
  height: 4px;
  background: currentColor;
  box-shadow: 7px 0 0 currentColor, 0 7px 0 currentColor, 7px 7px 0 currentColor;
}

.list-mark {
  width: 15px;
  height: 12px;
  display: grid;
  gap: 5px;
}

.list-mark::before,
.list-mark::after {
  height: 1px;
  background: currentColor;
}

.result-meta {
  width: 1px;
  height: 1px;
  position: absolute;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

.portfolio-grid {
  margin-top: 47px;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  grid-auto-flow: dense;
  gap: 8px;
}

.company-card {
  position: relative;
  aspect-ratio: 1;
  width: 100%;
  overflow: hidden;
  padding: 0;
  background: var(--grid-bg);
  color: var(--white);
  backdrop-filter: blur(2px);
  transition: background 300ms ease, color 300ms ease;
}

.company-logo-frame {
  display: flex;
  width: 100%;
  height: 100%;
  align-items: center;
  justify-content: center;
}

.company-logo-stack {
  position: relative;
  display: block;
  width: 70%;
  max-width: 164px;
  height: 64px;
  transform: scale(var(--logo-scale, 1));
  transform-origin: center;
}

.company-logo {
  display: block;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: none;
  transform: translateZ(0);
  transition: opacity 260ms ease, transform 300ms ease;
}

.company-logo-mono {
  opacity: 1;
}

.company-logo-color {
  opacity: 0;
}

.company-status {
  position: absolute;
  right: 16px;
  bottom: 13px;
  left: 16px;
  color: currentColor;
  font-size: 13px;
  font-weight: 300;
  line-height: 1.538;
  text-align: center;
}

.company-name {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

.company-card:hover {
  background: var(--grid-hover);
  color: var(--sapphire);
}

.company-card:hover .company-logo-mono {
  opacity: 0;
}

.company-card:hover .company-logo-color {
  opacity: 1;
}

.company-card:hover .company-logo {
  transform: scale(1.025);
}

.portfolio-grid.is-list {
  grid-template-columns: 1fr;
  gap: 0;
}

.portfolio-grid.is-list .company-card {
  aspect-ratio: auto;
  min-height: 72px;
  display: grid;
  grid-template-columns: 220px 1fr;
  border-top: 1px solid rgba(255, 255, 255, 0.32);
  background: transparent;
}

.portfolio-grid.is-list .company-logo-frame {
  justify-content: flex-start;
  padding-left: 24px;
}

.portfolio-grid.is-list .company-logo {
  width: 100%;
}

.portfolio-grid.is-list .company-logo-stack {
  width: 132px;
  height: 52px;
}

.portfolio-grid.is-list .company-status {
  position: static;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-right: 24px;
  text-align: right;
}

.empty-state {
  grid-column: 1 / -1;
  padding: 56px 24px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: rgba(255, 255, 255, 0.72);
  font-size: 13px;
  text-align: center;
}

.drawer-open {
  overflow: hidden;
}

.company-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  justify-content: flex-end;
  pointer-events: none;
  opacity: 0;
  transition: opacity 300ms linear;
}

.company-modal.is-open {
  pointer-events: auto;
  opacity: 1;
}

.company-modal-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(0, 0, 0, 0.2);
  cursor: default;
}

.company-drawer {
  position: relative;
  width: min(720px, 100vw);
  height: 100%;
  margin-left: auto;
  overflow: hidden;
  background: #f6f4ee;
  color: #000;
  transform: translateX(100%);
  transition: transform 300ms linear;
}

.company-modal.is-open .company-drawer {
  transform: translateX(0);
}

.drawer-close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  width: 20px;
  height: 20px;
  appearance: none;
  border: 0;
  background: transparent;
  color: #000;
  cursor: pointer;
}

.drawer-close::before,
.drawer-close::after {
  content: "";
  position: absolute;
  left: 3px;
  right: 3px;
  top: 9px;
  height: 1px;
  background: currentColor;
}

.drawer-close::before {
  transform: rotate(45deg);
}

.drawer-close::after {
  transform: rotate(-45deg);
}

.drawer-inner {
  height: 100%;
  overflow-x: hidden;
  overflow-y: auto;
  padding: 56px;
  color: #000;
}

.drawer-topline {
  min-height: 72px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 40px;
}

.drawer-topline p {
  margin: 0;
  color: #727069;
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 300;
  line-height: 1.538;
}

.drawer-topline p::after {
  content: ",";
}

.drawer-social {
  display: flex;
  gap: 8px;
  padding-top: 31.984px;
}

.drawer-social span {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #f0ece3;
  color: #000;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 16px;
  font-weight: 700;
  line-height: 1;
}

.drawer-social span:first-child {
  font-size: 18px;
  font-weight: 400;
}

.drawer-social span:nth-child(2) {
  font-size: 15px;
}

.globe-mark {
  position: relative;
}

.globe-mark::before {
  content: "";
  width: 15px;
  height: 15px;
  border: 1.5px solid currentColor;
  border-radius: 50%;
}

.globe-mark::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  top: 19px;
  height: 1.5px;
  background: currentColor;
  box-shadow: 0 -5px 0 currentColor, 0 5px 0 currentColor;
}

.drawer-logo-wrap,
.drawer-profile h3,
.drawer-facts {
  display: none;
}

.drawer-section {
  padding-top: 20px;
  margin-bottom: 32px;
  border-top: 1px solid #e1d9c7;
}

.drawer-kicker {
  margin: 0 0 8px;
  color: #000;
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 300;
  line-height: 1.454;
}

#drawerDescription {
  max-width: 608px;
  margin: 0 0 28px;
  color: #000;
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 300;
  line-height: 1.75;
}

.drawer-read-more {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  color: #336d5d;
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 300;
  line-height: 14px;
  transition: color 180ms ease;
}

.drawer-read-more::after {
  content: "";
  width: 48px;
  height: 1px;
  background: currentColor;
}

.drawer-read-more:hover {
  color: #134f47;
}

@keyframes featured-marquee {
  from {
    transform: translate3d(0, 0, 0);
  }

  to {
    transform: translate3d(-50%, 0, 0);
  }
}

@media (max-width: 1279px) {
  .portfolio-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}

@media (max-width: 1023px) {
  .toolbar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .view-toggle {
    justify-content: flex-start;
  }

  .portfolio-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 767px) {
  .brand {
    font-size: 11px;
  }

  .portfolio-hero {
    min-height: 693.094px;
  }

  .hero-inner,
  .investments-inner {
    max-width: none;
    padding-right: 32px;
    padding-left: 32px;
  }

  .hero-inner {
    padding-top: 40px;
  }

  h1 {
    font-size: 32px;
    line-height: 1.095;
  }

  .featured-ticker {
    margin-top: 48px;
  }

  .featured-track {
    animation-duration: 92s;
    animation-delay: -43.6s;
  }

  .featured-group {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: 200px;
    grid-template-rows: repeat(2, 200px);
    gap: 8px;
    padding-right: 8px;
  }

  .featured-card {
    width: 200px;
    height: 200px;
  }

  .featured-copy {
    min-height: 78px;
    padding: 12px;
  }

  .featured-logo {
    width: 70.2px;
    max-height: 27px;
  }

  .featured-status {
    margin-top: 8px;
    font-size: 12px;
    line-height: 1.4;
  }

  .investments-section {
    padding-top: 48px;
    padding-bottom: 72px;
  }

  .section-head {
    display: block;
  }

  h2 {
    font-size: 24px;
    line-height: 1.095;
  }

  .toolbar {
    margin-top: 30px;
    grid-template-columns: 1fr;
    gap: 18px;
  }

  select,
  input,
  .filter-trigger {
    height: 34px;
    padding-bottom: 9px;
  }

  .filter-menu {
    top: -10px;
    max-height: 324px;
  }

  .view-toggle {
    height: 30px;
  }

  .portfolio-grid {
    margin-right: -24px;
    margin-left: -24px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .company-logo-stack {
    max-width: 132px;
    height: 56px;
  }

  .portfolio-grid.is-list {
    margin-right: 0;
    margin-left: 0;
  }

  .portfolio-grid.is-list .company-card {
    grid-template-columns: 1fr auto;
  }

  .company-drawer {
    width: 100vw;
  }

  .drawer-inner {
    padding: 32px;
  }

  .drawer-topline {
    min-height: 84px;
    margin-bottom: 32px;
    display: block;
  }

  .drawer-social {
    padding-top: 24px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .featured-track {
    animation-duration: 1ms;
    animation-iteration-count: 1;
  }

  .featured-image,
  .company-logo,
  .company-card,
  .company-modal,
  .company-drawer {
    transition: none;
  }
}

body.admin-bar.yushi-portfolio-page .site-header {
  top: 32px;
}

@media (max-width: 782px) {
  body.admin-bar.yushi-portfolio-page .site-header {
    top: 46px;
  }
}
