:root {
  --bg: #090a0b;
  --ink: #d9dedb;
  --muted: #8d96a5;
  --line: #242a27;
  --main-start: #bdc3c7;
  --main-end: #2c3e50;
  --main-gradient: linear-gradient(135deg, var(--main-start), var(--main-end));
  --main-gradient-h: linear-gradient(90deg, var(--main-start), var(--main-end));
  --accent: #bdc3c7;
  --blue: #bdc3c7;
  --blue-soft: #a9b4cd;
  --blue-light: #e2e7fa;
  --blue-a66: #bdc3c766;
  --blue-a44: #bdc3c744;
  --blue-a88: #bdc3c788;
  --blue-border: #bdc3c755;
  --blue-ring: #2c3e50;
  --purple: #bdc3c7;
  --panel-1: #15171a;
  --panel-2: #0e1012;
  --panel-border: #363d50;
  --panel-border-soft: #2a3040;
  --green-status: #71c982;
  --amber: #ce9141;
  --cyan: var(--blue-soft);
  --pink: var(--blue);
  --lavender-rgb: 189, 195, 199;
  --cyan-rgb: 44, 62, 80;
  --pink-rgb: 189, 195, 199;
  --panel-1-rgb: 21, 23, 26;
  --panel-2-rgb: 14, 16, 18;
  --ease-reveal: var(--ease-ui);
  --ease-card: var(--ease-ui);
  --ease-travel: cubic-bezier(0.77, 0, 0.175, 1);
  --ease-ambient: ease-in-out;
  --t-press: 160ms;
  --t-ui: 200ms;
  --t-reveal: 300ms;
  --t-entry: 500ms;
  --avatar-size: 72px;
  --ease-ui: cubic-bezier(0.23, 1, 0.32, 1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

html,
body {
  scrollbar-width: none;
  -ms-overflow-style: none;
}

html::-webkit-scrollbar,
body::-webkit-scrollbar {
  display: none;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: 'IBM Plex Mono', monospace;
}

body:not(.is-page-open) .bento-nav {
  display: none !important;
}

body.is-page-open .bento-nav {
  display: flex;
}

.container {
  width: min(1180px, calc(100% - 64px));
  margin: auto;
}

.intro-screen {
  --footer-bottom: 36px;
  min-height: 100svh;
  padding: 72px 20px 156px;
  display: grid;
  place-items: center;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  perspective: 1200px;
}

.intro-screen::before {
  content: '';
  position: absolute;
  inset: -12%;
  z-index: -1;
  background-image: radial-gradient(ellipse at 50% 45%, rgba(var(--lavender-rgb), 0.12), transparent 48%);
  mask-image: radial-gradient(ellipse at center, #000 12%, transparent 72%);
  animation: ambient-shift 14s var(--ease-ambient) infinite alternate;
}

.hud-layer {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  color: var(--blue-soft);
  pointer-events: none;
  user-select: none;
}

.hud-layer > :not(.hud-scanline) {
  animation: hud-flicker 5s var(--ease-ambient) infinite;
}

.hud-coordinate,
.hud-readout {
  position: absolute;
  top: 34px;
  font-size: 8px;
  letter-spacing: 0.12em;
}

.hud-coordinate {
  left: 38px;
}

.hud-readout {
  right: 38px;
  color: var(--blue-light);
}

.hud-corner {
  width: 58px;
  height: 58px;
  position: absolute;
  border-color: var(--blue-a66);
  border-style: solid;
}

.hud-corner-tl {
  top: 28px;
  left: 28px;
  border-width: 1px 0 0 1px;
}

.hud-corner-tr {
  top: 28px;
  right: 28px;
  border-width: 1px 1px 0 0;
}

.hud-corner-bl {
  bottom: 28px;
  left: 28px;
  border-width: 0 0 1px 1px;
}

.hud-corner-br {
  right: 28px;
  bottom: 28px;
  border-width: 0 1px 1px 0;
}

.hud-scanline {
  width: 100%;
  height: 1px;
  position: absolute;
  top: 0;
  left: 0;
  animation: hud-scan 8s linear infinite;
}

.hud-scanline::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(var(--lavender-rgb), 0.4) 50%, transparent);
  box-shadow: 0 0 12px var(--blue-a88);
  animation: hud-flicker 5s var(--ease-ambient) infinite;
}

.profile-scene {
  position: relative;
  width: min(480px, calc(100vw - 40px));
  z-index: 1;
}

.profile-constellation {
  position: absolute;
  left: -84px;
  top: -60px;
  width: calc(100% + 168px);
  height: calc(100% + 120px);
  z-index: 0;
  pointer-events: none;
}

.constellation-connections {
  stroke: var(--blue);
  stroke-width: 1;
  stroke-opacity: .25;
  animation: constellation-reveal 900ms var(--ease-ui) 330ms backwards;
}

.constellation-nodes {
  opacity: .65;
  transition: opacity var(--t-ui) var(--ease-ui);
}

body.audio-playing .constellation-nodes {
  opacity: 1;
}

.constellation-node {
  fill: var(--blue);
  transform-box: fill-box;
  transform-origin: center;
  animation: constellation-twinkle 4s var(--ease-ambient) infinite alternate;
}

.constellation-node:nth-child(2n) { fill: var(--cyan); }
.constellation-node.constellation-star { fill: var(--pink); }
.constellation-node:nth-child(2) { animation-delay: -400ms; }
.constellation-node:nth-child(3) { animation-delay: -800ms; }
.constellation-node:nth-child(4) { animation-delay: -1200ms; }
.constellation-node:nth-child(5) { animation-delay: -1600ms; }
.constellation-node:nth-child(6) { animation-delay: -2000ms; }
.constellation-node:nth-child(7) { animation-delay: -2400ms; }
.constellation-node:nth-child(8) { animation-delay: -2800ms; }
.constellation-node:nth-child(9) { animation-delay: -3200ms; }
.constellation-node:nth-child(10) { animation-delay: -3600ms; }

.profile-card {
  width: 100%;
  min-height: 310px;
  padding: 30px 30px 24px;
  position: relative;
  background: linear-gradient(135deg, rgba(var(--panel-1-rgb), .76), rgba(var(--panel-2-rgb), .84));
  border: 1px solid var(--panel-border-soft);
  border-radius: 14px;
  box-shadow: 0 16px 44px #0008, inset 0 1px #fff1;
  overflow: hidden;
  z-index: 1;
  transform-style: preserve-3d;
  transform: perspective(1000px) rotateX(var(--card-rot-x, 0deg)) rotateY(var(--card-rot-y, 0deg)) translate3d(0, 0, 0);
  transition: border-color 220ms ease;
}

.profile-card > .card-spotlight {
  position: absolute;
  top: 0;
  left: 0;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  background: radial-gradient(
    circle 260px at center,
    rgba(255, 255, 255, 0.09) 0%,
    rgba(255, 255, 255, 0.025) 35%,
    transparent 75%
  );
  opacity: 0;
  transition: opacity 220ms ease;
  transform: translate3d(-20px, -80px, 0);
}

@media (hover: hover) and (pointer: fine) {
  .profile-card:hover > .card-spotlight {
    opacity: 1;
  }
}

@media (hover: hover) and (pointer: fine) {
  .profile-card:hover {
    border-color: rgba(var(--lavender-rgb), .4);
  }
}

.profile-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  z-index: 3;
  box-shadow: inset 0 0 0 1px rgba(var(--lavender-rgb), .1);
  opacity: 0;
  will-change: opacity;
  animation: card-border-glow 6s var(--ease-ambient) 1.2s infinite;
  transition: opacity 300ms ease;
}

.profile-card > * {
  position: relative;
  z-index: 1;
}

.profile-card > .online-dot {
  position: absolute;
}

.profile-card > .card-sheen {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  border-radius: inherit;
  pointer-events: none;
}

.card-sheen::before {
  content: "";
  position: absolute;
  inset: -30% 0;
  background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, .1) 48%, rgba(255, 255, 255, .025) 52%, transparent 68%);
  opacity: 0;
  transform: translate3d(-100%, 0, 0);
  animation: surface-sheen 16s var(--ease-ui) 650ms infinite backwards;
}

.online-dot {
  width: 9px;
  height: 9px;
  position: absolute;
  top: 18px;
  right: 18px;
  border-radius: 50%;
  background: var(--green-status);
  box-shadow: 0 0 10px var(--green-status);
  animation: online-pulse 2.8s var(--ease-ambient) infinite;
  will-change: opacity;
  transform: translateZ(28px);
}
.online-dot::after {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: 50%;
  border: 1.5px solid var(--green-status);
  animation: sonar-ping 2.2s cubic-bezier(0, 0, 0.2, 1) infinite;
  pointer-events: none;
}

.profile-heading {
  display: flex;
  align-items: center;
  gap: 20px;
  transform: translateZ(24px);
  transform-style: preserve-3d;
}


.avatar {
  width: var(--avatar-size);
  height: var(--avatar-size);
  display: grid;
  place-items: center;
  border: 2px solid var(--blue-light);
  border-radius: 50%;
  overflow: hidden;
  color: var(--bg);
  background: radial-gradient(circle at 38% 30%, var(--blue-light), var(--blue-soft) 48%, var(--panel-1) 50%);
  object-fit: cover;
  font-size: 17px;
  font-weight: 600;
  box-shadow: 0 0 0 2px var(--blue-ring), 0 0 16px rgba(var(--lavender-rgb), 0.2), 0 8px 24px rgba(0, 0, 0, 0.45);
  transition: transform 220ms var(--ease-ui), box-shadow 220ms ease, border-color 220ms ease;
}

.avatar-frame {
  display: block;
  flex: 0 0 var(--avatar-size);
  width: var(--avatar-size);
  height: var(--avatar-size);
  position: relative;
}

.avatar-frame::after {
  content: "";
  position: absolute;
  inset: -7px;
  border: 1px solid var(--blue-a44);
  border-radius: 50%;
  pointer-events: none;
}

.social-links a {
  position: relative;
}

.social-links a::before {
  content: "";
  position: absolute;
  left: calc(50% - 18px);
  top: calc(50% - 18px);
  width: 36px;
  height: 36px;
  background: radial-gradient(circle 2px at 50% 2px, var(--blue-light) 99%, transparent);
  pointer-events: none;
  opacity: 0;
  transform-origin: center;
  animation: signal-orbit 1.6s linear infinite;
  animation-play-state: paused;
  transition: opacity var(--t-ui) var(--ease-ui);
}

.social-links a:focus-visible::before {
  opacity: 1;
  animation-play-state: running;
}

@media (hover: hover) and (pointer: fine) {
  .social-links a:hover::before {
    opacity: 1;
    animation-play-state: running;
  }
}

.social-links a::after {
  content: attr(aria-label);
  position: absolute;
  left: 50%;
  bottom: calc(100% + 6px);
  padding: 5px 7px;
  border-radius: 4px;
  background: var(--panel-2);
  color: var(--ink);
  font-size: 9px;
  font-weight: 400;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 4px) scale(.96);
  transform-origin: center bottom;
  transition: opacity 160ms ease, transform 180ms var(--ease-reveal);
}

.social-links a:focus-visible::after {
  opacity: 1;
  transform: translate(-50%, 0) scale(1);
}

@media (hover: hover) and (pointer: fine) {
  .social-links a:hover::after {
    opacity: 1;
    transform: translate(-50%, 0) scale(1);
  }
}

@media (hover: hover) and (pointer: fine) {
  .avatar:hover {
    transform: translateY(-2px) scale(1.05);
    border-color: var(--blue-light);
    box-shadow: 0 0 0 3px var(--accent), 0 0 24px rgba(var(--lavender-rgb), 0.45);
  }
}

.avatar:active {
  transform: translateY(0) scale(0.97) !important;
  transition-duration: 100ms;
}

.profile-card h1 {
  margin: 0;
  color: var(--ink);
  font-size: 32px;
  letter-spacing: -0.06em;
}

.pronouns {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.profile-data {
  margin-top: 30px;
  font-size: 13px;
  transform: translateZ(18px);
}

.profile-data p {
  margin: 0 0 11px;
}

.profile-data p > span:first-child {
  color: var(--muted);
}

.status-line span,
.status-line b {
  color: var(--green-status);
}

.status-line b {
  display: inline-block;
  vertical-align: bottom;
  white-space: nowrap;
}

.status-line {
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.status-value {
  display: inline-flex;
  align-items: baseline;
  min-height: 1.3em;
}

.status-cursor {
  display: inline-block;
  vertical-align: bottom;
  color: var(--green-status);
  animation: cursor-blink 850ms steps(1, end) infinite;
  margin-left: 1px;
}

.profile-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-top: 21px;
  padding-top: 16px;
  transform: translateZ(22px);
}

.card-endline {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 20px;
  padding-top: 11px;
  color: var(--muted);
  font-size: 8px;
  transform: translateZ(14px);
}

.activity-copy {
  display: flex;
  flex-direction: column;
  gap: 4px;
  letter-spacing: 0.08em;
}

.activity-copy span {
  color: var(--blue-soft);
}

.activity-copy small {
  color: var(--ink);
  font-size: 11px;
  letter-spacing: 0;
}

.equalizer {
  display: flex;
  align-items: center;
  gap: 3px;
  width: 20px;
  height: 16px;
}

.equalizer i {
  width: 4px;
  height: 14px;
  border-radius: 2px;
  background: linear-gradient(to top, var(--blue-ring), var(--cyan));
  transform-origin: bottom;
  transform: scaleY(0.25);
  transition: transform 240ms var(--ease-ui);
  animation: equalizer-bounce 1.1s var(--ease-ambient) infinite;
  animation-play-state: paused;
}

body.audio-playing .equalizer i {
  animation-play-state: running;
}

.equalizer i:nth-child(2) { animation-delay: 180ms; }

.equalizer i:nth-child(3) { animation-delay: 360ms; }

.social-links {
  display: flex;
  align-items: center;
  gap: 12px;
}

.social-links a,
.music-link {
  color: var(--blue);
  text-decoration: none;
  font-size: 11px;
  font-weight: 600;
  transition: color var(--t-press) ease, transform var(--t-press) var(--ease-ui);
}

.social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  background: transparent;
}

.social-links a svg {
  display: block;
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  transition: transform var(--t-press) var(--ease-ui);
}

.social-links a:focus-visible {
  outline: none;
  color: var(--blue-light);
  transform: translate3d(0, -2px, 0);
}

.music-link {
  display: inline-block;
  color: var(--blue);
  font-weight: 400;
  padding: 12px 0;
  white-space: nowrap;
}

@media (hover: hover) and (pointer: fine) {
  .social-links a:hover {
    color: var(--blue-light);
    transform: translate3d(0, -2px, 0);
  }

  .music-link:hover {
    color: var(--cyan);
    transform: translate3d(2px, -2px, 0);
  }

  .scroll-cue:hover {
    color: var(--accent);
    transform: translateY(-2px);
    text-shadow: 0 0 10px rgba(var(--lavender-rgb), 0.6);
  }
}
.social-links a:active,
.music-link:active,
.scroll-cue:active {
  transform: translate3d(0, 0.5px, 0) scale(0.97);
  transition-duration: 100ms;
}

.scroll-cue {
  position: absolute;
  bottom: calc(var(--footer-bottom) + 17px);
  z-index: 3;
  display: inline-block;
  padding: 0 14px;
  background: transparent;
  color: var(--muted);
  text-decoration: none;
  font-size: 12px;
  line-height: 14px;
  transition: color 180ms ease, transform 180ms ease, text-shadow 180ms ease;
}

.scroll-cue span {
  margin-left: 8px;
  display: inline-block;
  transition: transform 180ms ease;
}

@media (hover: hover) and (pointer: fine) {
  .scroll-cue:hover span {
    transform: translateX(4px);
  }
}

.intro-rail {
  position: absolute;
  right: 38px;
  bottom: var(--footer-bottom);
  left: 38px;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  padding-top: 12px;
  background: transparent;
  color: var(--muted);
  font-size: 9px;
  line-height: 12px;
  letter-spacing: 0.08em;
}

.intro-rail::before,
.intro-rail::after {
  content: '';
  height: 1px;
  position: absolute;
  top: 0;
  background: var(--line);
}

.intro-rail::before {
  left: 0;
  width: calc(50% - 78px);
}

.intro-rail::after {
  right: 0;
  width: calc(50% - 78px);
}

@media (max-width: 640px) {
  .intro-screen {
    --footer-bottom: 84px;
  }

  .profile-constellation {
    left: -24px;
    top: -36px;
    width: calc(100% + 48px);
    height: calc(100% + 72px);
    opacity: .65;
  }

  .profile-card {
    min-height: 300px;
  }

  .intro-rail {
    right: 22px;
    left: 22px;
    font-size: 8px;
  }

  .intro-rail::before,
  .intro-rail::after {
    width: calc(50% - 68px);
  }

  .hud-coordinate,
  .hud-readout {
    top: 22px;
    font-size: 7px;
  }

  .hud-coordinate {
    left: 22px;
  }

  .hud-readout {
    right: 22px;
  }

  .hud-corner-tl,
  .hud-corner-tr {
    top: 17px;
  }

  .hud-corner-bl,
  .hud-corner-br {
    bottom: 17px;
  }

  .hud-corner-tl,
  .hud-corner-bl {
    left: 17px;
  }

  .hud-corner-tr,
  .hud-corner-br {
    right: 17px;
  }

  .intro-rail span:last-child {
    display: none;
  }
}

@media (max-width: 380px) {
  .status-line {
    flex-direction: column;
    gap: 5px;
  }

  .profile-card {
    padding-right: 22px;
    padding-left: 22px;
  }
}

@media (max-height: 600px) {
  .intro-screen {
    align-content: start;
    padding-top: 64px;
    padding-bottom: 132px;
  }
}

@media (max-height: 600px) and (min-width: 600px) {
  .profile-scene {
    width: min(560px, calc(100vw - 40px));
  }

  .profile-card {
    --avatar-size: 62px;
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0 24px;
    min-height: 0;
    padding: 20px;
  }

  .profile-data {
    margin-top: 0;
  }

  .profile-card h1 {
    font-size: 28px;
  }

  .profile-footer {
    grid-column: 1 / -1;
    margin-top: 16px;
    padding-top: 12px;
  }

  .card-endline {
    display: none;
  }
}

@media (max-height: 600px) and (min-width: 641px) and (max-width: 1000px) {
  .intro-screen {
    --footer-bottom: 108px;
    padding-bottom: 164px;
  }
}

@media (max-height: 400px) and (min-width: 641px) and (max-width: 1000px) {
  body {
    position: relative;
  }
}

.section-grid {
  display: grid;
  grid-template-columns: 27% 1fr;
  gap: 30px;
  border-top: 1px solid var(--line);
  padding: 100px 0;
}

.section-label,
.project-number {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.08em;
}

.section-label {
  padding-top: 8px;
}

.section-grid h2,
.section-heading h2,
.contact h2 {
  max-width: 670px;
  margin: 0 0 24px;
  font-size: clamp(28px, 3.7vw, 46px);
  line-height: 1.2;
  font-weight: 500;
  letter-spacing: -0.07em;
}

.body-copy {
  max-width: 520px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.8;
}

.skills,
.project-tags,
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.skills {
  margin-top: 34px;
}

.skills span,
.project-tags span,
.filter {
  padding: 8px 10px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  font: 11px 'IBM Plex Mono', monospace;
}

.projects,
.contact {
  border-top: 1px solid var(--line);
  padding: 98px 0;
}

.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 43px;
}

.section-heading .section-label {
  padding: 0;
  margin-bottom: 19px;
}

.filter {
  cursor: pointer;
}

.filter.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #09100c;
}

@media (hover: hover) and (pointer: fine) {
  .filter:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: #09100c;
  }
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 45px 21px;
}

.project-card.featured { grid-column: span 2; }

.project-card.hidden { display: none; }

.project-visual {
  height: 315px;
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
}

.featured .project-visual {
  height: 440px;
}

.visual-mori {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  background: #102118;
}

.visual-mark {
  font-size: clamp(145px, 24vw, 290px);
  font-weight: 600;
  opacity: 0.25;
}

.code-line {
  position: absolute;
  top: 29px;
  left: 34px;
  color: #6fbf80;
  font-size: 12px;
}

.visual-text {
  position: absolute;
  bottom: 30px;
  left: 34px;
  color: #c7e7cb;
  font-size: 12px;
  line-height: 1.65;
}

.visual-note {
  display: grid;
  place-items: center;
  background: #111914;
}

.visual-note > span {
  position: absolute;
  top: 22px;
  right: 23px;
  color: var(--accent);
  font-size: 12px;
}

.note-card {
  width: 155px;
  height: 196px;
  padding: 18px;
  transform: rotate(-8deg);
  background: #c5ffad;
  color: #0b1710;
  box-shadow: 8px 12px #0005;
}

.note-card small {
  font-size: 9px;
}

.note-card strong {
  display: block;
  margin-top: 35px;
  font-size: 18px;
}

.note-card div {
  width: 28px;
  height: 4px;
  margin-top: 16px;
  background: #287948;
}

.visual-kin {
  padding: 27px;
  display: flex;
  align-items: end;
  background: #131b17;
}

.kin-circle {
  position: absolute;
  width: 250px;
  height: 250px;
  right: 12%;
  top: -46px;
  border-radius: 50%;
  background: #a3ff7d;
  opacity: 0.25;
}

.visual-kin div {
  position: relative;
}

.visual-kin b {
  font-size: 52px;
  color: var(--accent);
}

.visual-kin small {
  display: block;
  font-size: 10px;
}

.project-info {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 17px 0 13px;
}

.project-number {
  margin-bottom: 11px;
}

.project-info h3 {
  margin: 0 0 7px;
  font-size: 18px;
  font-weight: 500;
}

.project-info p:not(.project-number) {
  max-width: 470px;
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.7;
}

.project-info a {
  width: 31px;
  height: 31px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  color: var(--accent);
  text-decoration: none;
}

@media (hover: hover) and (pointer: fine) {
  .project-info a:hover {
    background: var(--accent);
    color: #09100c;
  }
}

.contact {
  padding-bottom: 112px;
}

.email-link {
  color: var(--accent);
  font-size: clamp(22px, 3.6vw, 44px);
  text-decoration: none;
  border-bottom: 2px solid currentColor;
}

footer {
  color: var(--muted);
  font-size: 11px;
}

@media (max-width: 700px) {
  .container {
    width: calc(100% - 38px);
  }

  .section-grid {
    grid-template-columns: 1fr;
    padding: 72px 0;
  }

  .section-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 20px;
  }

  .projects,
  .contact {
    padding: 72px 0;
  }

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

  .project-card.featured { grid-column: auto; }

  .project-visual,
  .featured .project-visual {
    height: 260px;
  }

  footer {
    flex-direction: column;
    gap: 15px;
  }
}

.entry-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background:
    radial-gradient(ellipse at 30% 35%, rgba(var(--lavender-rgb), .12), transparent 60%),
    radial-gradient(ellipse at 75% 65%, rgba(var(--cyan-rgb), .08), transparent 55%),
    var(--bg);
  color: var(--ink);
  font-family: "IBM Plex Mono", monospace;
  opacity: 1;
  visibility: visible;
  transition: opacity 320ms var(--ease-ui), visibility 320ms var(--ease-ui);
  --click-x: 50%;
  --click-y: 50%;
}

.entry-overlay.is-breaching {
  pointer-events: none;
  will-change: clip-path, opacity;
  animation: irisCollapse 320ms var(--ease-ui) forwards;
}

.entry-overlay.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.entry-overlay.is-hidden * {
  animation: none !important;
}

.entry-center {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-align: center;
  width: min(280px, calc(100vw - 40px));
}

.avatar-frame::before {
  content: "";
  position: absolute;
  inset: -10px;
  border-radius: 50%;
  pointer-events: none;
  background: conic-gradient(transparent 72%, var(--blue) 90%, var(--cyan) 99%, transparent);
  mask-image: radial-gradient(farthest-side, transparent calc(100% - 1px), #000 calc(100% - .5px));
  -webkit-mask-image: radial-gradient(farthest-side, transparent calc(100% - 1px), #000 calc(100% - .5px));
}

.profile-footer::before,
.card-endline::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, var(--blue-a44), var(--panel-border-soft) 70%);
  transform-origin: left;
  pointer-events: none;
}

.entry-logo {
  display: flex;
  align-items: center;
  color: var(--ink);
  font-family: inherit;
  font-size: 18px;
  font-weight: 400;
  letter-spacing: .08em;
}

.entry-logo span {
  display: inline-block;
  will-change: transform, opacity;
  transition: transform 180ms var(--ease-ui), color 180ms ease;
}

.entry-logo span.is-resolving {
  animation: none !important;
  color: var(--blue-light);
}

.entry-logo span:nth-child(1) { --i: 0; }
.entry-logo span:nth-child(2) { --i: 1; }
.entry-logo span:nth-child(3) { --i: 2; }
.entry-logo span:nth-child(4) { --i: 3; }
.entry-logo span:nth-child(5) { --i: 4; }
.entry-logo span:nth-child(6) { --i: 5; }
.entry-logo span:nth-child(7) { --i: 6; }
.entry-logo span:nth-child(8) { --i: 7; }
.entry-logo span:nth-child(9) { --i: 8; }
.entry-logo span:nth-child(10) { --i: 9; }
.entry-logo span:nth-child(11) { --i: 10; }
.entry-logo span:nth-child(12) { --i: 11; }

.entry-overlay.is-breaching .entry-logo span {
  will-change: transform, opacity;
  animation: none !important;
}

.entry-overlay.is-breaching .entry-logo span:nth-child(odd) {
  transform: translate3d(-12px, -14px, 0) scale(1.08) rotateZ(-3deg);
  opacity: 0;
  transition: transform var(--t-ui) var(--ease-ui), opacity var(--t-ui) var(--ease-ui);
  transition-delay: calc(var(--i, 0) * 6ms);
}

.entry-overlay.is-breaching .entry-logo span:nth-child(even) {
  transform: translate3d(12px, 14px, 0) scale(1.08) rotateZ(3deg);
  opacity: 0;
  transition: transform var(--t-ui) var(--ease-ui), opacity var(--t-ui) var(--ease-ui);
  transition-delay: calc(var(--i, 0) * 6ms);
}

.entry-overlay.is-breaching .entry-button {
  transform: scale(0.97);
  opacity: 0;
  transition: transform var(--t-press) var(--ease-ui), opacity var(--t-press) var(--ease-ui);
}

.entry-button {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-family: inherit;
  font-size: 12px;
  letter-spacing: .04em;
  cursor: pointer;
  min-height: 44px;
  padding: 12px 16px;
  opacity: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: none;
  transition: opacity 180ms ease, transform 180ms var(--ease-reveal);
}

.btn-text {
  display: inline-block;
  transition: transform var(--t-press) var(--ease-ui), color var(--t-press) ease;
}

@media (hover: hover) and (pointer: fine) {
  .entry-button:hover .btn-text {
    transform: translateY(-1px);
    color: var(--blue-light);
  }
}

.entry-button:active {
  transform: scale(0.97);
  transition-duration: 100ms;
}

body:not(.is-entered) .intro-screen::before,
body:not(.is-entered) .ambient-depth *,
body:not(.is-entered) .ambient-depth::before,
body:not(.is-entered) .ambient-depth::after,
body:not(.is-entered) .ambient-dust::before,
body:not(.is-entered) .ambient-dust::after,
body:not(.is-entered) .ambient-stars *,
body:not(.is-entered) .ambient-stars::before,
body:not(.is-entered) .ambient-stars::after,
body:not(.is-entered) .hud-layer *,
body:not(.is-entered) .hud-layer *::before,
body:not(.is-entered) .hud-scanline,
body:not(.is-entered) .site-grid,
body:not(.is-entered) .site-bg::after,
body:not(.is-entered) .profile-card,
body:not(.is-entered) .profile-card::after,
body:not(.is-entered) .constellation-connections,
body:not(.is-entered) .constellation-node,
body:not(.is-entered) .social-links a::before,
body:not(.is-entered) .card-sheen::before,
body:not(.is-entered) .online-dot,
body:not(.is-entered) .online-dot::after,
body:not(.is-entered) .avatar,
body:not(.is-entered) .avatar-frame,
body:not(.is-entered) .avatar-frame::before,
body:not(.is-entered) .avatar-frame::after,
body:not(.is-entered) .profile-footer::before,
body:not(.is-entered) .card-endline::before,
body:not(.is-entered) .profile-card h1,
body:not(.is-entered) .pronouns,
body:not(.is-entered) .profile-data p,
body:not(.is-entered) .status-line b,
body:not(.is-entered) .status-cursor,
body:not(.is-entered) .profile-footer,
body:not(.is-entered) .card-endline,
body:not(.is-entered) .scroll-cue,
body:not(.is-entered) .intro-rail,
body:not(.is-entered) .social-links a,
body:not(.is-entered) .music-link {
  animation-play-state: paused;
}

.page-view {
  width: 100%;
  display: none;
  margin: 0;
  padding: 0;
  overflow: visible;
}

.page-view.is-active {
  display: block;
}

#pageFrame {
  display: block;
  width: 100%;
  min-width: 100%;
  height: 1000px;
  margin: 0;
  padding: 0;
  border: 0;
  outline: 0;
  background: transparent;
  overflow: hidden;
  transition: opacity 260ms var(--ease-ui);
}

.intro-screen.is-page-open {
  display: none;
}

.site-bg {
  position: fixed;
  inset: 0;
  z-index: -3;
  opacity: 0;
  contain: strict;
  will-change: opacity;
  transition: opacity 420ms ease;
  pointer-events: none;
  background:
    radial-gradient(circle 540px at 50% 50%, rgba(var(--lavender-rgb), 0.12) 0%, rgba(var(--panel-1-rgb), 0.2) 40%, transparent 75%),
    radial-gradient(ellipse 750px 520px at 50% 48%, rgba(var(--panel-1-rgb), 0.45) 0%, rgba(var(--lavender-rgb), 0.09) 35%, transparent 70%),
    radial-gradient(circle at 85% 15%, rgba(var(--cyan-rgb), 0.12) 0%, rgba(var(--panel-2-rgb), 0.28) 35%, transparent 60%),
    radial-gradient(circle at 12% 85%, rgba(var(--pink-rgb), 0.08) 0%, rgba(var(--panel-1-rgb), 0.25) 40%, transparent 65%),
    radial-gradient(circle 900px at 30% 60%, rgba(var(--panel-1-rgb), 0.18) 0%, transparent 70%),
    linear-gradient(135deg, var(--bg), var(--panel-2) 50%, var(--bg));
}

.site-grid {
  position: absolute;
  inset: -40px;
  opacity: 0.25;
  background-image:
    linear-gradient(rgba(var(--lavender-rgb), 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(var(--lavender-rgb), 0.04) 1px, transparent 1px);
  background-size: 48px 48px, 48px 48px;
  mask-image: radial-gradient(ellipse 85% 75% at 50% 50%, #000 30%, transparent 85%);
  -webkit-mask-image: radial-gradient(ellipse 85% 75% at 50% 50%, #000 30%, transparent 85%);
  transform: translate3d(0, 0, 0);
  will-change: transform;
  animation: bg-grid-drift 12s var(--ease-ambient) infinite alternate;
}

.site-bg::after {
  content: "";
  position: absolute;
  left: -20%;
  right: -20%;
  bottom: -10%;
  height: 50vh;
  background: radial-gradient(ellipse 65% 55% at 50% 100%, rgba(var(--panel-1-rgb), 0.5) 0%, rgba(var(--lavender-rgb), 0.12) 30%, transparent 70%);
  animation: bg-glow-breathe 8s var(--ease-ambient) infinite;
}

body.is-entered .site-bg {
  opacity: 1;
}

.social-links a {
  opacity: 1;
}

.music-link {
  opacity: 1;
}

button,
a,
[role="slider"] {
  touch-action: manipulation;
}

.music-link:focus-visible,
.scroll-cue:focus-visible,
.audio-widget button:focus-visible,
.audio-progress:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

.entry-button:focus-visible {
  outline: none;
}

.entry-button:focus-visible .btn-text {
  color: var(--blue-light);
  text-decoration: underline;
  text-underline-offset: 6px;
  text-decoration-thickness: 1px;
}

body.is-inactive *,
body.is-inactive *::before,
body.is-inactive *::after {
  animation-play-state: paused !important;
}

.ambient-stars {
  position: fixed;
  inset: 0;
  z-index: -2;
  overflow: hidden;
  pointer-events: none;
  opacity: 0;
  transition: opacity 700ms ease;
}

body.is-entered .ambient-stars {
  opacity: 1;
}

.ambient-stars i {
  position: absolute;
  width: 2px;
  height: 2px;
  border-radius: 50%;
  background: var(--blue-light);
  box-shadow: 0 0 8px var(--blue-a66);
  animation: star-drift 7s var(--ease-ambient) infinite alternate;
}

.ambient-stars i:nth-child(1) { left: 12%; top: 18%; }
.ambient-stars i:nth-child(2) { left: 24%; top: 74%; animation-delay: -2s; }
.ambient-stars i:nth-child(3) { left: 38%; top: 28%; animation-delay: -4s; }
.ambient-stars i:nth-child(4) { left: 62%; top: 68%; animation-delay: -1s; }
.ambient-stars i:nth-child(5) { left: 76%; top: 20%; animation-delay: -5s; }
.ambient-stars i:nth-child(6) { left: 88%; top: 58%; animation-delay: -3s; }
.ambient-stars i:nth-child(7) { left: 52%; top: 12%; animation-delay: -6s; }
.ambient-stars i:nth-child(8) { left: 8%; top: 52%; animation-delay: -2.5s; }

.ambient-depth,
.ambient-dust {
  position: fixed;
  inset: 0;
  z-index: -2;
  overflow: hidden;
  pointer-events: none;
  opacity: 0;
  transition: opacity 700ms ease;
}

body.is-entered .ambient-depth,
body.is-entered .ambient-dust {
  opacity: 1;
}

.ambient-depth::before,
.ambient-depth::after {
  content: "";
  position: absolute;
  width: min(120vw, 1400px);
  height: min(52vh, 480px);
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(var(--lavender-rgb), .20), rgba(var(--cyan-rgb), .12) 38%, transparent 70%);
  animation: aurora-drift 18s var(--ease-ambient) infinite alternate;
}

.ambient-depth::before { left: -12%; top: 10%; }
.ambient-depth::after {
  right: -14%;
  bottom: 8%;
  background: radial-gradient(ellipse, rgba(var(--pink-rgb), .12), rgba(var(--lavender-rgb), .14) 38%, transparent 70%);
  animation-duration: 24s;
  animation-delay: -12s;
}

.depth-orbit {
  position: absolute;
  left: 50%;
  top: 48%;
  width: min(74vmin, 720px);
  height: min(74vmin, 720px);
  border: 1px solid rgba(var(--lavender-rgb), .1);
  border-radius: 50%;
  animation: depth-orbit 40s linear infinite;
}

.depth-orbit::after {
  content: "";
  position: absolute;
  right: -3px;
  top: 50%;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 14px rgba(var(--cyan-rgb), .5);
}

.depth-orbit::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  background: conic-gradient(from 90deg, transparent 76%, rgba(var(--lavender-rgb), .4));
  mask-image: radial-gradient(farthest-side, transparent calc(100% - 1px), #000 100%);
}

.depth-orbit-secondary {
  width: min(96vmin, 940px);
  height: min(96vmin, 940px);
  border-color: rgba(var(--lavender-rgb), .06);
  animation-duration: 55s;
  animation-delay: -14s;
  animation-direction: reverse;
}

.ambient-dust::before,
.ambient-dust::after {
  content: "";
  position: absolute;
  inset: -40px -38px -54px -46px;
  background-image: radial-gradient(circle, rgba(var(--cyan-rgb), .5) 1px, transparent 1.5px), radial-gradient(circle, rgba(var(--lavender-rgb), .35) .8px, transparent 1.3px);
  background-size: 164px 184px, 286px 242px;
  background-position: -27px -45px, 26px 50px;
  animation: dust-drift 12s var(--ease-ambient) infinite alternate;
}

.ambient-dust::after {
  background-size: 238px 270px, 332px 310px;
  background-position: 56px 5px, -14px 80px;
  animation-duration: 20s;
  animation-delay: -10s;
  animation-direction: alternate-reverse;
}

.ambient-stars::before,
.ambient-stars::after {
  content: "";
  position: absolute;
  width: 80px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--cyan));
  opacity: 0;
  animation: shooting-star 14s linear 2s infinite;
}

.ambient-stars::before { left: 35%; top: 12%; }
.ambient-stars::after { left: 5%; top: 42%; animation-delay: 8s; animation-duration: 19s; }

.interaction-fx {
  position: fixed;
  inset: 0;
  z-index: 10002;
  pointer-events: none;
  overflow: hidden;
}

.pointer-spark {
  position: absolute;
  width: 2px;
  height: 8px;
  border-radius: 2px;
  background: linear-gradient(transparent, var(--blue-light));
}

.pointer-pulse {
  position: absolute;
  width: 32px;
  height: 32px;
  margin: -16px 0 0 -16px;
  border: 1px solid var(--blue-a66);
  border-radius: 50%;
  box-shadow: 0 0 12px var(--blue-a44), inset 0 0 8px var(--blue-a44);
}
