:root {
  color-scheme: dark;
  --page-bg: radial-gradient(circle at 10% 20%, rgba(79, 242, 160, 0.16), transparent 55%),
              radial-gradient(circle at 80% 10%, rgba(159, 210, 255, 0.18), transparent 50%),
              #06080d;
  --surface: rgba(16, 21, 29, 0.72);
  --surface-solid: rgba(12, 16, 23, 0.96);
  --text: #f5f7fa;
  --muted: rgba(245, 247, 250, 0.7);
  --outline: rgba(159, 210, 255, 0.15);
  --accent: #4bf2a0;
  --accent-soft: rgba(75, 242, 160, 0.12);
  --primary: #9fd2ff;
  --radius-lg: 1.75rem;
  --radius-md: 1.25rem;
  --shadow-lg: 0 1.625rem 3rem rgba(2, 6, 14, 0.55);
  --shadow-sm: 0 1rem 1.75rem rgba(2, 6, 14, 0.35);
}

html {
  font-size: 75%;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--page-bg);
  color: var(--text);
  line-height: 1.7;
}

.site-nav {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
}

.site-nav__label {
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.85rem;
  color: var(--primary);
  opacity: 0.75;
}

.site-nav__links {
  display: inline-flex;
  list-style: none;
  gap: 0.65rem;
  margin: 0;
  padding: 0;
}

.site-nav__link {
  color: var(--muted);
  font-weight: 500;
  padding-bottom: 0.1rem;
  border-bottom: 0.1rem solid transparent;
  transition: border-color 160ms ease, color 160ms ease;
}

.site-nav__link:hover,
.site-nav__link:focus-visible {
  color: var(--text);
  border-bottom-color: rgba(159, 210, 255, 0.6);
  outline: none;
}

.site-nav__link--current {
  color: var(--text);
  border-bottom-color: rgba(75, 242, 160, 0.6);
}

@media (max-width: 640px) {
  .site-nav {
    justify-content: center;
  }

  .site-nav__links {
    gap: 0.5rem;
  }
}

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

.page {
  max-width: 67.5rem;
  margin: 0 auto;
  padding: 2.5rem 1.75rem 4.75rem;
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.identity {
  display: inline-flex;
  align-items: center;
  gap: clamp(0.65rem, 1.8vw, 1rem);
  border-radius: 999rem;
  background: rgba(9, 13, 20, 0.78);
  border: 0.0625rem solid var(--outline);
  padding-right: 1rem;
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(14px);
  overflow: hidden;
  isolation: isolate;
}

.identity h1 {
  margin: 0 0 0 1rem;
  font-size: 2rem;
  letter-spacing: -0.03em;
  font-weight: 500;
  text-align: left;
  white-space: nowrap;
}

.identity-photo {
  position: relative;
  width: 6rem;
  aspect-ratio: 1;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--accent-soft);
  overflow: hidden;
  box-shadow: inset 0 0 0 0.0625rem rgba(159, 210, 255, 0.25);
}

.identity-photo::after {
  content: "";
  position: absolute;
  inset: -12%;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, rgba(75, 242, 160, 0.36), transparent 62%),
              radial-gradient(circle at 70% 70%, rgba(159, 210, 255, 0.24), transparent 65%);
  z-index: 0;
}

.identity-photo img {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  filter: saturate(1.05) contrast(1.02);
  z-index: 1;
}

.identity--minimal {
  background: transparent;
  border: none;
  box-shadow: none;
}

.identity--glow {
  background: linear-gradient(135deg, rgba(9, 13, 20, 0.72), rgba(12, 18, 26, 0.64));
  border: 0.0625rem solid rgba(75, 242, 160, 0.16);
  box-shadow: 0 0.85rem 1.6rem rgba(4, 10, 18, 0.4);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.2rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 600;
  padding: 0.375rem 0.75rem;
  border-radius: 999rem;
  background: rgba(159, 210, 255, 0.1);
  color: var(--primary);
}

header.hero {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  padding: 2.25rem;
  border-radius: var(--radius-lg);
  border: 0.0625rem solid var(--outline);
  background: var(--surface);
  box-shadow: var(--shadow-lg);
}

.intro {
  display: flex;
  flex-direction: column;
  gap: 1.125rem;
}

.tagline {
  margin: 0;
  font-size: clamp(1.05rem, 2.6vw, 1.35rem);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(159, 210, 255, 0.82);
}

.intro p {
  margin: 0;
  color: var(--muted);
  font-size: 1.05rem;
  padding-left: 0.85rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.875rem;
}

.link-button {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.875rem 1.25rem;
  border-radius: 1rem;
  font-weight: 500;
  border: 0.0625rem solid rgba(159, 210, 255, 0.22);
  background: rgba(12, 16, 23, 0.68);
  color: var(--text);
  transition: border-color 180ms ease, transform 180ms ease, background 180ms ease;
}

.link-button span {
  font-size: 0.96rem;
}

.link-button svg {
  width: 1rem;
  height: 1rem;
  color: var(--primary);
  transition: transform 180ms ease;
}

.link-button.primary {
  background: var(--accent);
  color: #050910;
  border-color: transparent;
  font-weight: 600;
}

.link-button.primary svg {
  color: currentColor;
}

.link-button:hover {
  border-color: rgba(159, 210, 255, 0.45);
  transform: translateY(-0.125rem);
  background: rgba(17, 23, 33, 0.86);
}

.link-button.primary:hover {
  background: #64f7b3;
  border-color: transparent;
}

.link-button:hover svg {
  transform: translateX(0.25rem);
}

main {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.section {
  padding: 2.125rem;
  border-radius: var(--radius-lg);
  border: 0.0625rem solid var(--outline);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.section-header {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1.375rem;
}

.section-title {
  margin: 0;
  font-size: 1.7rem;
  letter-spacing: -0.015em;
  font-weight: 600;
}

.section-header p {
  margin: 0;
  color: var(--muted);
}

.portfolio-section .section-header p,
.portfolio-section .section-body {
  padding-left: 0.85rem;
}

.thesis-text {
  margin: 0;
  color: var(--muted);
  font-size: 1.02rem;
}

.section-subtitle {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.portfolio-section .section-body {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}

.portfolio-thesis {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.portfolio-investments {
  display: flex;
  flex-direction: column;
  gap: 1.125rem;
}

.portfolio-contact {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1.5rem;
  border-radius: 1.25rem;
  border: 0.0625rem solid rgba(159, 210, 255, 0.16);
  background: rgba(9, 13, 20, 0.78);
  box-shadow: inset 0 0 0 0.0625rem rgba(75, 242, 160, 0.08);
}

.portfolio-contact p {
  margin: 0;
  color: var(--muted);
  font-size: 1.02rem;
}

.contact-form {
  position: relative;
  display: flex;
  align-items: center;
  padding: 0.75rem 0.9rem;
  border-radius: 0.95rem;
  border: 0.0625rem solid rgba(159, 210, 255, 0.22);
  background: rgba(6, 9, 15, 0.78);
  box-shadow: 0 1.1rem 2rem rgba(2, 6, 14, 0.35);
  gap: 0.75rem;
  transition: border-color 200ms ease, background 200ms ease, box-shadow 200ms ease;
}

.contact-form:focus-within {
  border-color: rgba(75, 242, 160, 0.55);
  background: rgba(12, 18, 27, 0.92);
  box-shadow: 0 1.5rem 2.75rem rgba(4, 12, 20, 0.45);
}

.contact-form input {
  flex: 1;
  background: transparent;
  border: none;
  color: var(--text);
  font-size: 1rem;
  font-family: inherit;
  padding: 0.35rem 0.25rem;
  outline: none;
}

.contact-form input::placeholder {
  color: rgba(245, 247, 250, 0.5);
}

.contact-form button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.75rem;
  border: none;
  background: var(--accent);
  color: #050910;
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.contact-form button:hover {
  background: #64f7b3;
  transform: translateX(0.1rem) translateY(-0.1rem);
  box-shadow: 0 0.75rem 1.5rem rgba(75, 242, 160, 0.35);
}

.contact-form button svg {
  width: 1.1rem;
  height: 1.1rem;
}

#form-status {
  color: #4CAF50;
  display: none;
  line-height: 2.5rem;
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  gap: 1.375rem;
}

.investment-card {
  padding: 1.5rem;
  border-radius: 1.125rem;
  border: 0.0625rem solid rgba(159, 210, 255, 0.18);
  background: rgba(12, 17, 24, 0.88);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  position: relative;
  overflow: hidden;
}

@media (max-width: 56.25rem) {
  .portfolio-section .section-body {
    gap: 1.5rem;
  }
}

.investment-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(140deg, transparent 0%, rgba(159, 210, 255, 0.12) 45%, transparent 100%);
  opacity: 0;
  transition: opacity 200ms ease;
}

.investment-card:hover::after {
  opacity: 1;
}

.investment-card h3 {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.investment-tagline {
  color: var(--primary);
  font-size: 0.92rem;
  font-weight: 500;
}

.investment-tags {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.investment-tag {
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-weight: 600;
  padding: 0.375rem 0.625rem;
  border-radius: 999rem;
  background: var(--accent-soft);
  color: var(--accent);
}

.investment-tag--exited {
  color: #d4af37;
}

.investment-description {
  margin: 0;
  color: var(--muted);
  font-size: 0.98rem;
}

footer {
  text-align: center;
  color: rgba(245, 247, 250, 0.5);
  font-size: 0.85rem;
  padding-bottom: 1rem;
}

@media (max-width: 45rem) {
  .page {
    padding: 3rem 1.25rem 4.5rem;
    gap: 2.25rem;
  }

  header.hero {
    padding: 1.75rem;
    gap: 1.75rem;
  }

  .hero-actions {
    flex-direction: column;
    align-items: flex-start;
  }

  .section {
    padding: 1.75rem;
  }

  .portfolio-grid {
    grid-template-columns: repeat(auto-fit, minmax(12.5rem, 1fr));
  }
}

.hero--minimal {
  gap: 1.5rem;
  padding: 2rem;
}

.hero-intro {
  margin: 0;
  font-size: 1.25rem;
  color: var(--muted);
}

.explorations {
  display: flex;
  justify-content: center;
  padding-bottom: 2rem;
}

.exploration-article {
  position: relative;
  display: grid;
  gap: 2.25rem;
  padding: 3rem clamp(1.75rem, 3vw, 3rem);
  border-radius: var(--radius-lg);
  border: 0.0625rem solid var(--outline);
  background: linear-gradient(160deg, rgba(16, 21, 29, 0.82), rgba(9, 13, 20, 0.72));
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(18px);
}

.exploration-article::before {
  content: "";
  position: absolute;
  inset: 1.25rem;
  border-radius: calc(var(--radius-lg) - 1.25rem);
  border: 0.0625rem solid rgba(159, 210, 255, 0.08);
  pointer-events: none;
}

.exploration-article__header {
  display: grid;
  gap: 0.85rem;
  text-align: left;
}

.exploration-article__title {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.exploration-article__title h2 {
  flex: 1;
}

.exploration-article__header h2 {
  margin: 0;
  font-size: clamp(1.9rem, 2.4vw, 2.4rem);
  letter-spacing: -0.02em;
}

.exploration-article__self-link {
  color: inherit;
  text-decoration: none;
}

.exploration-article__self-link:hover,
.exploration-article__self-link:focus {
  text-decoration: none;
}

.permalink-button {
  appearance: none;
  border: 0.0625rem solid rgba(159, 210, 255, 0.28);
  background: rgba(12, 16, 23, 0.7);
  color: var(--muted);
  font: inherit;
  line-height: 1;
  border-radius: 0.75rem;
  width: 2.4rem;
  height: 2.4rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 160ms ease, border-color 160ms ease, color 160ms ease;
}

.permalink-button svg {
  width: 1.1rem;
  height: 1.1rem;
  transition: transform 160ms ease;
}

.permalink-button:hover,
.permalink-button:focus-visible {
  background: rgba(159, 210, 255, 0.16);
  border-color: rgba(159, 210, 255, 0.48);
  color: var(--primary);
  outline: none;
}

.permalink-button:focus-visible {
  outline: 0.125rem solid rgba(159, 210, 255, 0.35);
  outline-offset: 0.1rem;
}

.permalink-button:hover svg,
.permalink-button:focus-visible svg {
  transform: translateX(0.1rem);
}

.permalink-button--copied {
  background: var(--accent);
  border-color: var(--accent);
  color: #07160d;
}

.permalink-button--copied svg {
  transform: none;
}

.permalink-button--error {
  background: rgba(255, 99, 132, 0.18);
  border-color: rgba(255, 99, 132, 0.45);
  color: #ffb3c1;
}

.exploration-article__meta {
  margin: 0;
  font-size: 0.95rem;
  color: var(--muted);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding-top: 0.5rem;
  border-top: 0.0625rem solid rgba(159, 210, 255, 0.16);
}

.exploration-article__body {
  position: relative;
  display: grid;
  gap: 1.75rem;
  font-size: 1.08rem;
  color: #ccd1d5;
}

.exploration-article__body p {
  margin: 0;
}

.exploration-article__body p + p {
  margin-top: 0.25rem;
}

.exploration-article__body ul {
  margin: 0;
  padding: 1rem 0 0 1.25rem;
  display: grid;
  gap: 1.1rem;
  list-style: none;
}

.exploration-article__body ul li {
  position: relative;
  padding-left: 1.5rem;
  line-height: 1.7;
}

.exploration-article__body ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.40rem;
  width: 0.65rem;
  height: 0.65rem;
  border-radius: 0.25rem;
  background: var(--accent);
  box-shadow: 0 0 0 0.15rem rgba(75, 242, 160, 0.2);
}

.exploration-article__list-label {
  display: block;
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 0.35rem;
  font-weight: 600;
}

.exploration-article__body ol {
  margin: 0;
  padding: 1rem 0 0;
  display: grid;
  gap: 1.35rem;
  list-style: none;
  counter-reset: exploration-step;
}

.exploration-article__body ol li {
  position: relative;
  padding-left: 3.25rem;
  line-height: 1.7;
  counter-increment: exploration-step;
}

.exploration-article__body ol li::before {
  content: counter(exploration-step);
  position: absolute;
  left: 0;
  top: 0.4rem;
  width: 1.8rem;
  height: 1.8rem;
  display: grid;
  place-items: center;
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--accent);
  background: rgba(75, 242, 160, 0.14);
  border: 0.0625rem solid rgba(75, 242, 160, 0.28);
  box-shadow: 0 0.45rem 1.35rem rgba(4, 10, 18, 0.35);
}

.exploration-article__body h3 {
    margin: 0;
}

@media (max-width: 640px) {
  .hero--minimal {
    padding: 1.75rem;
  }

  .explorations {
    padding-bottom: 1.5rem;
  }

  .exploration-article {
    gap: 2rem;
    padding: 2.5rem 1.75rem 2.75rem;
  }

  .exploration-article::before {
    inset: 1rem;
  }

  .exploration-article__body {
    font-size: 1.02rem;
    gap: 1.5rem;
  }

  .exploration-article__body ul {
    padding-left: 0.75rem;
  }

  .exploration-article__body ol {
    gap: 1.2rem;
  }

  .exploration-article__body ol li {
    padding-left: 3rem;
  }

  .exploration-article__body ol li::before {
    width: 2.1rem;
    height: 2.1rem;
    font-size: 1rem;
  }
}
