/* =========================================================
   Byte Capital
   Brand tokens live at the top. Change these to re-theme.
   ========================================================= */

@font-face {
  font-family: "Geist";
  src: url("/assets/fonts/geist-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Geist";
  src: url("/assets/fonts/geist-latin-ext.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Geist Mono";
  src: url("/assets/fonts/geist-mono-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  /* Brand */
  --accent: #d8ff3e;
  --accent-bright: #e6ff7a;
  --accent-ink: #0b0c08;
  --accent-soft: rgba(216, 255, 62, 0.07);
  --accent-line: rgba(216, 255, 62, 0.32);

  /* Surfaces */
  --ink: #08090b;
  --ink-soft: #0c0e11;
  --surface: #111418;
  --surface-2: #171b20;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.15);

  /* Type */
  --text: #eeefe9;
  --muted: #a2a8ae;
  --muted-dim: #7b8288;

  --radius: 12px;
  --radius-lg: 20px;
  --max: 1120px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* ---------- Base ---------- */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}

body {
  margin: 0;
  min-height: 100%;
  color: var(--text);
  background-color: var(--ink);
  background-image:
    radial-gradient(1000px 620px at 12% -8%, rgba(216, 255, 62, 0.075), transparent 65%),
    radial-gradient(820px 520px at 102% 10%, rgba(88, 120, 255, 0.055), transparent 62%),
    linear-gradient(to right, rgba(255, 255, 255, 0.026) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.026) 1px, transparent 1px);
  background-size: auto, auto, 72px 72px, 72px 72px;
  background-attachment: fixed;
  font-family: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, p, dl, dd, ol, ul, blockquote {
  margin: 0;
}

ol, ul {
  padding: 0;
  list-style: none;
}

img, svg {
  display: block;
  max-width: 100%;
}

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

button, input, textarea, select {
  font: inherit;
}

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

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 3px;
}

[hidden] {
  display: none !important;
}

.container {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: 28px;
}

.icon {
  width: 15px;
  height: 15px;
  flex: none;
}

.skip-link {
  position: fixed;
  top: -100px;
  left: 16px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 8px;
  background: var(--accent);
  color: var(--accent-ink);
  font-size: 13px;
  font-weight: 600;
  transition: top 0.2s var(--ease);
}

.skip-link:focus {
  top: 16px;
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid transparent;
  transition: background-color 0.3s var(--ease), border-color 0.3s var(--ease);
}

.site-header.is-scrolled {
  background: rgba(8, 9, 11, 0.76);
  border-bottom-color: var(--line);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 78px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  flex: none;
}

.brand-mark {
  width: 30px;
  height: 30px;
  border-radius: 9px;
}

.brand-name {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.brand-name-alt {
  color: var(--muted);
  font-weight: 400;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 30px;
  margin-left: auto;
  margin-right: 8px;
}

.nav-links a,
.footer-links a {
  position: relative;
  color: var(--muted);
  font-size: 13.5px;
  letter-spacing: -0.005em;
  transition: color 0.2s var(--ease);
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: -6px;
  height: 1px;
  background: var(--accent);
  transition: right 0.25s var(--ease);
}

.nav-links a:hover,
.footer-links a:hover {
  color: var(--text);
}

.nav-links a:hover::after {
  right: 0;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 18px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-size: 13.5px;
  font-weight: 500;
  letter-spacing: -0.01em;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.2s var(--ease), border-color 0.2s var(--ease),
    color 0.2s var(--ease), transform 0.2s var(--ease);
}

.btn-primary {
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 600;
}

.btn-primary:hover {
  background: var(--accent-bright);
  transform: translateY(-1px);
}

.btn-ghost {
  border-color: var(--line-strong);
  color: var(--text);
  background: rgba(255, 255, 255, 0.015);
}

.btn-ghost:hover {
  border-color: var(--accent-line);
  background: var(--accent-soft);
  color: var(--accent);
}

.nav-cta {
  padding: 9px 15px;
  font-size: 13px;
}

/* ---------- Hero ---------- */

.hero {
  padding: clamp(3.5rem, 7vw, 6rem) 0 clamp(4rem, 6.5vw, 5.5rem);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 10.5px;
  font-weight: 400;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

.dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(216, 255, 62, 0.12);
}

.hero h1 {
  max-width: 1000px;
  margin-top: 26px;
  font-size: clamp(2.7rem, 6.2vw, 4.9rem);
  font-weight: 500;
  line-height: 1.02;
  letter-spacing: -0.048em;
  text-wrap: balance;
}

.hero h1 em {
  font-style: normal;
  color: var(--accent);
}

.lede {
  max-width: 620px;
  margin-top: 28px;
  color: var(--muted);
  font-size: clamp(15px, 1.15vw, 16.5px);
  line-height: 1.72;
  letter-spacing: -0.008em;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 34px;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 28px 56px;
  margin-top: 52px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.hero-meta dt {
  font-family: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted-dim);
}

.hero-meta dd {
  margin-top: 7px;
  font-size: 13.5px;
  color: var(--text);
}

/* ---------- Sections ---------- */

.section {
  padding: clamp(3.5rem, 5.5vw, 5rem) 0;
}

.section + .section {
  border-top: 1px solid var(--line);
}

.label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 10.5px;
  letter-spacing: 0.17em;
  text-transform: uppercase;
  color: var(--accent);
}

.label::before {
  content: "";
  width: 20px;
  height: 1px;
  background: var(--accent-line);
}

.section h2 {
  margin-top: 18px;
  font-size: clamp(2rem, 3.5vw, 2.85rem);
  font-weight: 500;
  line-height: 1.06;
  letter-spacing: -0.035em;
}

.section-head {
  max-width: 760px;
  margin-bottom: clamp(2.5rem, 4vw, 3.5rem);
}

.section-sub {
  max-width: 480px;
  margin-top: 20px;
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.7;
}

.section-head-split {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 48px;
  max-width: none;
}

.section-head-split .section-sub {
  max-width: 330px;
  margin-top: 0;
  padding-bottom: 4px;
}

/* ---------- Focus ---------- */

.focus-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  counter-reset: focus;
}

.focus-card {
  position: relative;
  min-height: 196px;
  padding: 24px 24px 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.022), transparent 60%),
    var(--surface);
  transition: border-color 0.25s var(--ease), background-color 0.25s var(--ease),
    transform 0.25s var(--ease);
}

.focus-card:hover {
  border-color: var(--accent-line);
  background-color: var(--ink-soft);
  transform: translateY(-2px);
}

.focus-index {
  font-family: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 10.5px;
  letter-spacing: 0.12em;
  color: var(--muted-dim);
  transition: color 0.25s var(--ease);
}

.focus-card:hover .focus-index {
  color: var(--accent);
}

.focus-card h3 {
  margin-top: 44px;
  font-size: 16.5px;
  font-weight: 500;
  letter-spacing: -0.02em;
}

.focus-card p {
  margin-top: 8px;
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.65;
}

/* ---------- Portfolio ---------- */

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.portfolio-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  transition: border-color 0.25s var(--ease), background-color 0.25s var(--ease),
    transform 0.25s var(--ease);
}

.portfolio-card:hover {
  border-color: var(--accent-line);
  background: var(--surface-2);
  transform: translateY(-2px);
}

.portfolio-logo {
  position: relative;
  display: grid;
  place-items: center;
  flex: none;
  width: 52px;
  height: 52px;
  overflow: hidden;
  border-radius: 10px;
  background: var(--surface-2);
}

.portfolio-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.portfolio-monogram {
  display: none;
  font-family: "Geist Mono", ui-monospace, monospace;
  font-size: 18px;
  color: var(--accent);
  background: linear-gradient(140deg, #1b2110, #10130c);
  width: 100%;
  height: 100%;
  place-items: center;
}

.portfolio-logo.is-fallback .portfolio-monogram {
  display: grid;
}

.portfolio-logo.is-fallback img {
  display: none;
}

.portfolio-body {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.portfolio-name {
  font-size: 15.5px;
  font-weight: 500;
  letter-spacing: -0.015em;
}

.portfolio-meta {
  overflow: hidden;
  color: var(--muted);
  font-size: 12px;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.portfolio-arrow {
  width: 15px;
  height: 15px;
  margin-left: auto;
  flex: none;
  color: var(--muted-dim);
  transition: color 0.25s var(--ease), transform 0.25s var(--ease);
}

.portfolio-card:hover .portfolio-arrow {
  color: var(--accent);
  transform: translate(1px, -1px);
}

/* Empty portfolio */

.empty-state {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: clamp(3rem, 6vw, 4.5rem) 28px;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(540px 220px at 50% 0%, rgba(216, 255, 62, 0.06), transparent 70%),
    rgba(255, 255, 255, 0.012);
  text-align: center;
}

.empty-glyph {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border: 1px solid var(--accent-line);
  border-radius: 16px;
  background: var(--accent-soft);
}

.empty-glyph img {
  width: 40px;
  height: 40px;
  border-radius: 12px;
}

.empty-state h3 {
  margin-top: 22px;
  font-size: 21px;
  font-weight: 500;
  letter-spacing: -0.025em;
}

.empty-state p {
  max-width: 480px;
  margin-top: 10px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 24px;
  padding-bottom: 3px;
  border-bottom: 1px solid var(--accent-line);
  color: var(--accent);
  font-size: 13.5px;
  font-weight: 500;
  transition: border-color 0.2s var(--ease), gap 0.2s var(--ease);
}

.text-link:hover {
  border-color: var(--accent);
  gap: 11px;
}

/* ---------- Fund / about ---------- */

.fund-card {
  display: grid;
  grid-template-columns: 340px minmax(0, 1fr);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
}

.fund-visual {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  gap: 48px;
  min-height: 400px;
  padding: 34px;
  border-right: 1px solid var(--line);
  background:
    radial-gradient(120% 90% at 15% 0%, rgba(216, 255, 62, 0.16), transparent 62%),
    #0b0d0f;
  overflow: hidden;
}

.fund-mark {
  position: relative;
  z-index: 1;
  width: 88px;
  height: 88px;
  border-radius: 24px;
  box-shadow: 0 24px 60px -20px rgba(216, 255, 62, 0.35);
}

.fund-caption {
  position: relative;
  z-index: 1;
  font-family: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 9.5px;
  line-height: 1.9;
  letter-spacing: 0.22em;
  color: var(--muted-dim);
}

.fund-grid {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.16) 1px, transparent 1px);
  background-size: 20px 20px;
  -webkit-mask-image: radial-gradient(80% 70% at 70% 60%, #000, transparent 75%);
  mask-image: radial-gradient(80% 70% at 70% 60%, #000, transparent 75%);
  opacity: 0.5;
}

.fund-body {
  padding: clamp(28px, 4vw, 48px);
}

.fund-body h2 {
  margin-top: 16px;
  font-size: clamp(1.85rem, 3vw, 2.5rem);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.035em;
}

.fund-copy {
  max-width: 520px;
  margin-top: 18px;
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.72;
}

.check-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 24px;
  font-size: 13.5px;
  color: var(--text);
}

.check-list li {
  display: flex;
  align-items: center;
  gap: 11px;
}

.check-list li::before {
  content: "";
  width: 5px;
  height: 5px;
  flex: none;
  border-radius: 50%;
  background: var(--accent);
}

.socials {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 32px;
}

.social {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 13px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  font-size: 12.5px;
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease),
    background-color 0.2s var(--ease);
}

.social svg {
  width: 15px;
  height: 15px;
}

.social:hover {
  border-color: var(--accent-line);
  background: var(--accent-soft);
  color: var(--accent);
}

/* ---------- Quote ---------- */

.quote-section {
  padding: clamp(4.5rem, 8vw, 6.5rem) 0;
}

.quote {
  max-width: 900px;
  margin-inline: auto;
  text-align: center;
}

.quote p {
  font-size: clamp(1.6rem, 3.2vw, 2.45rem);
  font-weight: 400;
  line-height: 1.34;
  letter-spacing: -0.032em;
  text-wrap: balance;
}

.quote-pill {
  display: inline-block;
  padding: 0 0.28em;
  border: 1px solid var(--accent-line);
  border-radius: 8px;
  background: var(--accent-soft);
  color: var(--accent);
  white-space: nowrap;
}

/* ---------- Footer ---------- */

.site-footer {
  border-top: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.18);
  padding: 52px 0 26px;
}

.footer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  flex-wrap: wrap;
}

.footer-links {
  display: flex;
  gap: 26px;
  margin-left: auto;
}

.socials.is-footer {
  margin-top: 0;
}

.socials.is-footer .social {
  padding: 8px 12px;
  font-size: 12px;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 44px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  color: var(--muted-dim);
  font-size: 11.5px;
}

.footer-deck {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--muted);
  transition: color 0.2s var(--ease);
}

.footer-deck:hover {
  color: var(--accent);
}

/* ---------- Reveal on scroll ---------- */

@media (prefers-reduced-motion: no-preference) {
  .js .reveal {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
    transition-delay: var(--reveal-delay, 0s);
  }

  .js .reveal.is-visible {
    opacity: 1;
    transform: none;
  }

  .focus-card:nth-child(2),
  .focus-card:nth-child(5) {
    --reveal-delay: 0.06s;
  }

  .focus-card:nth-child(3),
  .focus-card:nth-child(6) {
    --reveal-delay: 0.12s;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
}

/* ---------- Responsive ---------- */

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

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

  .fund-card {
    grid-template-columns: 1fr;
  }

  .fund-visual {
    min-height: 220px;
    flex-direction: row;
    align-items: center;
    gap: 24px;
    padding: 28px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .fund-mark {
    width: 64px;
    height: 64px;
    border-radius: 18px;
  }
}

@media (max-width: 760px) {
  body {
    background-attachment: scroll;
  }

  .container {
    padding-inline: 22px;
  }

  .nav {
    height: 70px;
  }

  .nav-links {
    display: none;
  }

  .nav-cta {
    margin-left: auto;
  }

  .hero {
    padding-top: 3.5rem;
  }

  .hero-meta {
    gap: 20px 32px;
    margin-top: 44px;
  }

  .section-head-split {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
  }

  .section-head-split .section-sub {
    max-width: 480px;
  }

  .portfolio-grid {
    grid-template-columns: 1fr;
  }

  .footer-top {
    flex-direction: column;
    align-items: flex-start;
    gap: 22px;
  }

  .footer-links {
    margin-left: 0;
  }
}

@media (max-width: 560px) {
  .hide-sm {
    display: none;
  }

  .brand-name {
    font-size: 15px;
  }

  .hero h1 {
    font-size: clamp(2.5rem, 10.5vw, 3.1rem);
  }

  .focus-grid {
    grid-template-columns: 1fr;
  }

  .focus-card {
    min-height: 0;
    padding: 22px;
  }

  .focus-card h3 {
    margin-top: 28px;
  }

  .fund-visual {
    min-height: 180px;
  }

  .empty-state {
    padding-inline: 20px;
  }

  .quote-section {
    padding-inline: 0;
  }
}

/* ---------- 404 ---------- */

.not-found {
  display: grid;
  place-items: center;
  min-height: 100svh;
  padding: 48px 24px;
}

.not-found-inner {
  max-width: 520px;
  text-align: center;
}

.not-found .brand-mark {
  width: 44px;
  height: 44px;
  margin: 0 auto 28px;
  border-radius: 13px;
}

.not-found .label {
  justify-content: center;
}

.not-found h1 {
  margin-top: 16px;
  font-size: clamp(2rem, 5vw, 2.9rem);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.035em;
}

.not-found .section-sub {
  max-width: none;
  margin: 16px auto 0;
}

.not-found .btn {
  margin-top: 30px;
}
