@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 400;
  font-display: block;
  src: url(../fonts/ibm-plex-mono-400.woff2) format('woff2');
}

@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 500;
  font-display: block;
  src: url(../fonts/ibm-plex-mono-500.woff2) format('woff2');
}

@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 600;
  font-display: block;
  src: url(../fonts/ibm-plex-mono-600.woff2) format('woff2');
}

@font-face {
  font-family: 'IBM Plex Mono';
  font-style: italic;
  font-weight: 400;
  font-display: block;
  src: url(../fonts/ibm-plex-mono-400-italic.woff2) format('woff2');
}

:root {
  --bg: #090a0b;
  --ink: #d9dedb;
  --muted: #8d9c9b;
  --line: #242a27;
  --main-start: #bbd2c5;
  --main-mid: #536976;
  --main-end: #292e49;
  --main-gradient: linear-gradient(135deg, var(--main-start), var(--main-mid) 55%, var(--main-end));
  --main-gradient-h: linear-gradient(90deg, var(--main-start), var(--main-mid) 55%, var(--main-end));
  --main-gradient-rise: linear-gradient(to top, var(--main-end), var(--main-mid) 45%, var(--main-start));
  --accent: #bbd2c5;
  --blue: #bbd2c5;
  --blue-soft: #91a8a5;
  --blue-light: #e4efe9;
  --blue-a66: #bbd2c566;
  --blue-a44: #bbd2c544;
  --blue-a88: #bbd2c588;
  --blue-border: #bbd2c555;
  --blue-ring: #536976;
  --purple: #bbd2c5;
  --panel-1: #15171a;
  --panel-2: #0e1012;
  --panel-border: #33404a;
  --panel-border-soft: #252d38;
  --green-status: #71c982;
  --red-status: #d46a6a;
  --amber: #ce9141;
  --cyan: var(--blue-soft);
  --pink: var(--blue);
  --lavender-rgb: 187, 210, 197;
  --cyan-rgb: 83, 105, 118;
  --indigo-rgb: 41, 46, 73;
  --pink-rgb: 187, 210, 197;
  --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;
}

.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;
}

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

.profile-card {
  width: 100%;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.profile-heading {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}


.avatar {
  width: var(--avatar-size);
  height: var(--avatar-size);
  display: block;
  border-radius: 50%;
  object-fit: cover;
  transition: transform 220ms var(--ease-ui);
}

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

.social-links a {
  position: relative;
}

.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: scale(1.04);
  }
}

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

.profile-card h1 {
  margin: 0;
  color: var(--ink);
  font-size: 36px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.04em;
}

.profile-data {
  margin-top: 12px;
  font-size: 13px;
}

.profile-data p {
  margin: 0;
}

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

.status-line span,
.status-line b {
  color: var(--ink);
  font-weight: 400;
}

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

.status-line .meta-sep {
  color: var(--muted);
}

.status-line {
  display: flex;
  justify-content: center;
  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(--muted);
  animation: cursor-blink 850ms steps(1, end) infinite;
  margin-left: 1px;
}

.presence {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  width: 100%;
  height: 38px;
  margin-top: 14px;
  color: var(--muted);
  font-size: 11px;
}

.presence p {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  max-width: 100%;
  min-width: 0;
  margin: 0;
  white-space: nowrap;
  opacity: 0;
  transition: opacity 360ms var(--ease-ui);
}

.presence.is-ready p {
  opacity: 1;
}

.presence.is-ready .presence-rpc.is-empty {
  opacity: 0;
}

.presence-head {
  height: 14px;
}

.presence-status {
  color: var(--ink);
}

.presence-status[data-status="online"] {
  color: var(--green-status);
}

.presence-status[data-status="idle"] {
  color: var(--amber);
}

.presence-status[data-status="dnd"] {
  color: var(--red-status);
}

.presence-rpc {
  height: 18px;
  font-style: italic;
}

.presence-art {
  flex: 0 0 18px;
  width: 18px;
  height: 18px;
  margin-right: 2px;
  border-radius: 3px;
  background: var(--panel-2);
}

.presence-image {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  object-fit: cover;
  opacity: 0;
  transition: opacity 220ms ease;
}

.presence-image.is-loaded {
  opacity: 1;
}

.presence-verb {
  flex: none;
}

.presence-clip {
  display: flex;
  min-width: 0;
  padding-left: 6px;
  overflow: hidden;
}

.presence-clip.is-overflow {
  mask-image: linear-gradient(90deg, transparent, #000 6px, #000 calc(100% - 16px), transparent);
}

.presence-name {
  flex: none;
  padding-right: 2px;
  color: var(--ink);
}

.presence-name.is-scrolling {
  animation: presence-loop var(--loop-time) linear 1.8s infinite, presence-ease 1.2s cubic-bezier(.333, .667, .667, 1) 1.8s both;
}

.presence-name.is-scrolling::after {
  content: attr(data-loop);
  padding-left: 30px;
}

.presence-clip.is-overflow .presence-name {
  will-change: transform;
}

.presence-verb:empty {
  display: none;
}

.profile-footer {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 18px;
  margin-top: 20px;
}

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

.social-links a,
.music-link {
  color: var(--muted);
  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(--muted);
  font-weight: 400;
  padding: 12px 0;
  white-space: nowrap;
}

@media (hover: hover) and (pointer: fine) {
  .social-links a:hover,
  .music-link:hover,
  .scroll-cue:hover {
    color: var(--ink);
  }
}
.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;
}

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

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

  .status-line .meta-sep {
    display: none;
  }
}

@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 {
    --avatar-size: 64px;
  }

  .profile-heading {
    gap: 16px;
  }

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

@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;
  }
}

.entry-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--bg);
  color: var(--ink);
  font-family: "IBM Plex Mono", monospace;
  will-change: opacity;
}

.entry-overlay.is-breaching {
  pointer-events: none;
  animation: entry-fade 520ms var(--ease-ui) 160ms forwards;
}

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

.entry-overlay:not(.is-breaching) {
  cursor: pointer;
}

.entry-center {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: min(420px, calc(100vw - 40px));
  font-size: 13px;
  line-height: 1.6;
  text-align: left;
}

.entry-log p {
  margin: 0;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  animation: entry-line 420ms var(--ease-ui) backwards;
  animation-delay: calc(var(--i, 0) * 240ms + 200ms);
}

.entry-log p:nth-child(1) { --i: 0; }
.entry-log p:nth-child(2) { --i: 1; }
.entry-log p:nth-child(3) { --i: 2; }
.entry-log p:nth-child(4) { --i: 4; }
.entry-log p:nth-child(5) { --i: 5; }
.entry-log p:nth-child(6) { --i: 6; }
.entry-log p:nth-child(7) { --i: 7; }
.entry-log p:nth-child(8) { --i: 8; }
.entry-log p:nth-child(9) { --i: 9; }

.entry-log .entry-title {
  margin-bottom: 14px;
  color: var(--muted);
  font-size: 11px;
  opacity: .7;
}

.entry-log b {
  font-weight: 400;
  color: var(--green-status);
}

.entry-log .dim {
  color: var(--muted);
}

.entry-log .ok {
  color: var(--green-status);
}

.entry-log .hi {
  font-weight: 600;
}

.entry-overlay.is-breaching .entry-log,
.entry-overlay.is-breaching .entry-button {
  opacity: 0;
  transform: translate3d(0, -8px, 0);
  transition: transform 420ms var(--ease-ui), opacity 300ms ease;
}

.entry-overlay.is-breaching .entry-button {
  transition-delay: 40ms;
}

.entry-button {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-family: inherit;
  font-size: 13px;
  cursor: pointer;
  min-height: 44px;
  margin-top: 6px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  box-shadow: none;
  animation: entry-line 420ms var(--ease-ui) 2640ms backwards;
  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;
}

.entry-caret {
  display: inline-block;
  width: .6em;
  height: 1.15em;
  margin-left: 2px;
  background: var(--ink);
  animation: cursor-blink 1s steps(1) infinite;
}

@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) .avatar,
body:not(.is-entered) .profile-card h1,
body:not(.is-entered) .profile-data p,
body:not(.is-entered) .status-line b,
body:not(.is-entered) .status-cursor,
body:not(.is-entered) .presence,
body:not(.is-entered) .profile-footer,
body:not(.is-entered) .scroll-cue,
body:not(.is-entered) .social-links a,
body:not(.is-entered) .music-link {
  animation-play-state: paused;
}

.site-bg {
  position: fixed;
  inset: 0;
  z-index: -3;
  opacity: 0;
  transition: opacity 420ms ease;
  pointer-events: none;
  background: var(--bg);
}

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

.site-wave {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 84px;
  opacity: .35;
}

.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);
}

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

.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);
}
