:root {
  color-scheme: light dark;
  --paper: #edf3ff;
  --surface: rgba(249, 252, 255, 0.88);
  --surface-solid: #f9fcff;
  --surface-muted: rgba(220, 232, 255, 0.82);
  --ink: #111a3a;
  --muted: #435078;
  --line: rgba(38, 59, 111, 0.2);
  --cyan: #0a9db9;
  --violet: #5d4cdb;
  --pink: #d83e82;
  --brand: #98245c;
  --horizon: #25bad0;
  --mono:
    "Cascadia Mono", "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  --sans: "Bricolage Grotesque", "Trebuchet MS", "Segoe UI", Arial, sans-serif;
  --radius: 14px;
  --shadow: 0 12px 38px rgba(48, 74, 150, 0.14);
}

@font-face {
  font-family: "Bricolage Grotesque";
  src: url("/assets/fonts/bricolage.woff2") format("woff2");
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
}

* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  min-width: 280px;
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.45;
  overflow-x: hidden;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(
      circle at 8% 14%,
      rgba(77, 218, 232, 0.35),
      transparent 28rem
    ),
    radial-gradient(
      circle at 93% 38%,
      rgba(112, 91, 236, 0.24),
      transparent 30rem
    ),
    linear-gradient(160deg, #f5f9ff 0%, var(--paper) 46%, #e6eeff 100%);
}
.vaporwave-glow {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.55;
  background:
    radial-gradient(
      ellipse at 50% 115%,
      rgba(216, 62, 130, 0.2),
      transparent 45%
    ),
    repeating-linear-gradient(
      90deg,
      transparent 0 72px,
      rgba(58, 182, 218, 0.05) 73px 74px
    );
  mask-image: linear-gradient(
    to bottom,
    transparent 0%,
    #000 18%,
    #000 90%,
    transparent 100%
  );
}
a {
  color: inherit;
}
a:focus-visible {
  outline: 3px solid var(--pink);
  outline-offset: 3px;
  border-radius: 8px;
}
.page-shell {
  width: min(100% - 28px, 720px);
  margin: 0 auto;
}
.skip-link {
  position: absolute;
  top: -60px;
  left: 14px;
  z-index: 10;
  min-height: 44px;
  padding: 10px 14px;
  color: var(--surface-solid);
  background: var(--ink);
  font-family: var(--mono);
  font-size: 0.875rem;
  text-decoration: none;
}
.skip-link:focus {
  top: 14px;
}
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 56px;
  border-bottom: 1px solid var(--line);
}
.wordmark {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--ink);
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -0.06em;
  text-decoration: none;
}
.wordmark > span:first-of-type {
  color: var(--brand);
}
.cursor {
  color: var(--violet) !important;
  margin-left: 2px;
}
.header-link,
.back-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.875rem;
  text-decoration: none;
  text-underline-offset: 4px;
}
.header-link:hover,
.back-link:hover {
  color: var(--violet);
  text-decoration: underline;
}
.profile-card {
  margin-top: 18px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
}
.profile-cover {
  position: relative;
  height: 138px;
  overflow: hidden;
  background: #141235;
  isolation: isolate;
}
.profile-cover::before {
  content: "";
  position: absolute;
  right: 0;
  bottom: 20px;
  left: 0;
  z-index: 1;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    var(--horizon) 25%,
    var(--pink) 76%,
    transparent
  );
  box-shadow: 0 0 15px rgba(37, 186, 208, 0.85);
}
.profile-cover::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -38px;
  left: 0;
  z-index: 1;
  height: 60px;
  opacity: 0.5;
  background: repeating-linear-gradient(
    0deg,
    rgba(68, 215, 231, 0.24) 0 1px,
    transparent 1px 13px
  );
  transform: perspective(100px) rotateX(48deg);
  transform-origin: top;
}
.profile-cover img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 52%;
  opacity: 0.95;
}
.profile-copy {
  padding: 17px 18px 19px;
}
.eyebrow,
.row-meta {
  margin: 0;
  color: var(--violet);
  font-family: var(--mono);
  font-size: 0.8125rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.profile-copy .eyebrow {
  margin-bottom: 3px;
}
h1,
h2,
h3,
p {
  margin-top: 0;
}
h1,
h2 {
  letter-spacing: -0.045em;
  line-height: 1.02;
}
h1 {
  margin-bottom: 5px;
  font-size: clamp(2.35rem, 8vw, 3.5rem);
}
h2 {
  margin-bottom: 4px;
  font-size: clamp(1.65rem, 5vw, 2.25rem);
}
.profile-intro {
  margin: 0;
  color: var(--muted);
  font-size: 1rem;
}
.directory-section {
  padding: 27px 0 0;
  scroll-margin-top: 18px;
}
.section-head {
  margin-bottom: 12px;
}
.section-head .eyebrow {
  margin-bottom: 4px;
}
.section-head p:last-child {
  margin: 0;
  color: var(--muted);
  font-size: 0.9375rem;
}
.section-head-tight {
  margin-bottom: 12px;
}
.link-list {
  display: grid;
  gap: 9px;
}
.project-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: stretch;
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 7px 20px rgba(48, 74, 150, 0.08);
}
.project-row.release-row {
  border-top: 2px solid var(--cyan);
}
.project-main {
  display: flex;
  min-width: 0;
  min-height: 84px;
  align-items: center;
  gap: 13px;
  padding: 10px 13px;
  text-decoration: none;
}
.project-main:hover .project-copy strong,
.project-main:focus-visible .project-copy strong {
  color: var(--violet);
}
.project-main-static {
  cursor: default;
}
.project-icon {
  flex: 0 0 48px;
  width: 48px;
  height: 48px;
  border-radius: 11px;
  object-fit: cover;
  background: var(--surface-muted);
  box-shadow: 0 3px 10px rgba(31, 49, 101, 0.15);
}
.project-icon-private,
.project-icon-letter {
  display: grid;
  place-items: center;
  color: var(--violet);
  font-family: var(--mono);
  font-size: 1.25rem;
  font-weight: 500;
}
.project-icon-private {
  color: var(--pink);
  font-size: 1.6rem;
}
.project-copy {
  display: grid;
  min-width: 0;
  gap: 2px;
}
.project-copy strong {
  font-size: 1.06rem;
  font-weight: 700;
  line-height: 1.15;
  overflow-wrap: anywhere;
}
.project-copy > span:not(.row-meta) {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.32;
}
.row-meta {
  margin-top: 3px;
  font-size: 0.875rem;
}
.project-side {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 10px 13px;
  border-left: 1px solid var(--line);
  color: var(--violet);
  font-family: var(--mono);
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
}
.project-side:hover {
  color: var(--pink);
  background: var(--surface-muted);
}
.project-row-muted {
  background: var(--surface-muted);
  box-shadow: none;
}
.feature-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 68px;
  gap: 18px;
  padding: 13px 16px;
  border: 1px solid var(--line);
  border-top: 2px solid var(--violet);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--ink);
  text-decoration: none;
  box-shadow: 0 7px 20px rgba(48, 74, 150, 0.08);
}
.feature-link:hover {
  border-top-color: var(--pink);
}
.feature-copy {
  display: grid;
  gap: 3px;
}
.feature-copy strong {
  font-size: 1rem;
}
.feature-copy span {
  color: var(--muted);
  font-size: 1rem;
}
.feature-arrow {
  color: var(--violet);
  font-size: 1.35rem;
}
.evidence-list {
  display: grid;
  gap: 9px;
}
.evidence-row {
  display: flex;
  align-items: baseline;
  gap: 15px;
  min-height: 66px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-muted);
}
.evidence-row strong {
  color: var(--violet);
  font-size: 2.2rem;
  line-height: 1;
}
.evidence-row span {
  color: var(--muted);
  font-size: 0.9375rem;
}
.project-status,
.pending-note {
  margin: 13px 0 0;
  padding: 10px 12px;
  border-left: 3px solid var(--cyan);
  color: var(--muted);
  background: var(--surface-muted);
  font-size: 0.9375rem;
}
.back-link {
  margin-top: 9px;
}
.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 30px;
  padding: 17px 0 28px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.8125rem;
}
.site-footer > a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  color: var(--ink);
  text-decoration: none;
}
.wordmark-small {
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1rem;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #0b0d25;
    --surface: rgba(20, 23, 56, 0.9);
    --surface-solid: #121638;
    --surface-muted: rgba(29, 34, 78, 0.9);
    --ink: #f1f4ff;
    --muted: #bac6e8;
    --line: rgba(190, 205, 255, 0.2);
    --cyan: #50d8e7;
    --violet: #9d8eff;
    --pink: #ff70ad;
    --brand: #ff70ad;
    --horizon: #50d8e7;
    --shadow: 0 15px 40px rgba(0, 0, 0, 0.34);
  }
  body::before {
    background:
      radial-gradient(
        circle at 8% 12%,
        rgba(37, 186, 208, 0.19),
        transparent 25rem
      ),
      radial-gradient(
        circle at 94% 34%,
        rgba(105, 84, 226, 0.24),
        transparent 30rem
      ),
      linear-gradient(155deg, #111437 0%, var(--paper) 55%, #17143b 100%);
  }
  .vaporwave-glow {
    opacity: 0.7;
    background:
      radial-gradient(
        ellipse at 50% 115%,
        rgba(255, 77, 152, 0.2),
        transparent 45%
      ),
      repeating-linear-gradient(
        90deg,
        transparent 0 72px,
        rgba(80, 216, 231, 0.05) 73px 74px
      );
  }
  .profile-cover {
    background: #08091e;
  }
}

@media (max-width: 520px) {
  .page-shell {
    width: min(100% - 24px, 720px);
  }
  .site-header {
    min-height: 51px;
  }
  .profile-card {
    margin-top: 8px;
  }
  .profile-cover {
    height: 80px;
  }
  .profile-copy {
    padding: 10px 12px 11px;
  }
  h1 {
    font-size: clamp(2.1rem, 11vw, 3rem);
  }
  .directory-section {
    padding-top: 17px;
  }
  .section-head {
    margin-bottom: 9px;
  }
  .section-head p:last-child {
    font-size: 0.875rem;
    line-height: 1.35;
  }
  .project-row {
    grid-template-columns: 1fr;
  }
  .project-main {
    min-height: 78px;
  }
  .project-side {
    min-height: 46px;
    justify-content: flex-end;
    border-top: 1px solid var(--line);
    border-left: 0;
  }
  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
