@font-face {
  font-family: "STK Bureau";
  src: url("public/fonts/STKBureauSans-Regular.woff2") format("woff2"),
       url("public/fonts/STKBureauSans-Regular.woff") format("woff");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --background: #fcfcfc;
  --text: rgba(0, 0, 0, 0.85);
  --soft: rgba(0, 0, 0, 0.75);
  --muted: rgba(0, 0, 0, 0.4);
  --hover: rgba(0, 0, 0, 0.045);
  --lightbox-bg: rgba(252, 252, 252, 0.95);
  --font-size: 16px;
  --font-inter: "STK Bureau", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --background: #141414;
    --text: rgba(255, 255, 255, 0.85);
    --soft: rgba(255, 255, 255, 0.75);
    --muted: rgba(255, 255, 255, 0.4);
    --hover: rgba(255, 255, 255, 0.06);
    --lightbox-bg: rgba(20, 20, 20, 0.92);
  }
}

* {
  box-sizing: border-box;
  padding: 0;
  margin: 0;
}

html {
  color-scheme: light dark;
  scroll-behavior: smooth;
}

body {
  background-color: var(--background);
  color: var(--text);
  font-family: var(--font-inter);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-size: var(--font-size);
  font-style: normal;
  line-height: 1.5;
  font-weight: 400;
}

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

.page {
  position: relative;
  max-width: 640px;
  margin: 0 auto;
  padding: 96px 24px 120px;
  text-align: left;
}

.profile {
  width: 100%;
  margin: 0;
}

.about h1 {
  font-size: inherit;
  font-weight: inherit;
  color: var(--soft);
}

section {
  margin-top: 96px;
}

#about {
  margin-top: 0;
}

.about p,
.morePara {
  color: var(--soft);
}

.about h1 + p,
.about p + p {
  margin-top: 1em;
}

.profile a {
  border-bottom: 1px solid color-mix(in srgb, currentColor 20%, transparent);
  transition: border-bottom-color 0.15s ease;
}

.profile a:hover {
  border-bottom-color: color-mix(in srgb, currentColor 60%, transparent);
}

.page s,
.arrow {
  color: var(--muted);
}

h3 {
  font-size: inherit;
  font-weight: inherit;
  color: var(--muted);
  margin-bottom: 40px;
}

.experiences {
  display: flex;
  flex-direction: column;
  row-gap: 64px;
}

.experience {
  display: flex;
  flex-direction: row;
  column-gap: 36px;
}

.experienceContent {
  min-width: 0;
  flex: 1;
}

.title {
  margin-bottom: 4px;
}

.description {
  color: color-mix(in srgb, var(--text) 62%, transparent);
}

.year {
  display: none;
}

.attachments {
  margin-top: 16px;
  width: 100%;
  position: relative;
}

.scrollableArea {
  overflow-x: auto;
  overflow-y: hidden;
  cursor: grab;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.scrollableArea:active {
  cursor: grabbing;
}

.scrollableArea::-webkit-scrollbar {
  display: none;
}

.stripBar {
  position: relative;
  height: 4px;
  margin-top: 10px;
  border-radius: 4px;
  background: color-mix(in srgb, var(--text) 5%, transparent);
  cursor: pointer;
  touch-action: none;
}

.stripThumb {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 100%;
  border-radius: 4px;
  background-color: color-mix(in srgb, var(--text) 22%, transparent);
  transition: background-color 0.15s ease;
}

.stripBar:hover .stripThumb {
  background-color: var(--muted);
}

.images {
  display: flex;
  column-gap: 8px;
  position: relative;
  width: fit-content;
  min-width: 100%;
}

.media {
  background-color: color-mix(in srgb, var(--text) 6%, transparent);
  border-radius: 10px;
  overflow: hidden;
  position: relative;
  cursor: zoom-in;
  flex-shrink: 0;
  width: auto;
  height: 120px !important;
}

.media img,
.media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  user-select: none;
  -webkit-user-drag: none;
}

.media::after {
  position: absolute;
  inset: 0;
  content: '';
  border: 1px solid color-mix(in srgb, var(--text) 8%, transparent);
  border-radius: inherit;
  z-index: 10;
  pointer-events: none;
}

.media.locked {
  cursor: not-allowed !important;
}

.media.locked img,
.media.locked video {
  filter: blur(0px);
  transition: filter 0.3s ease;
}

.media.locked:hover img,
.media.locked:hover video {
  filter: blur(8px) !important;
}

.lock-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s ease;
  z-index: 5;
  border-radius: inherit;
  pointer-events: none;
}

.lock-overlay svg {
  opacity: 0;
  transition: opacity 0.3s ease;
}

.media.locked:hover .lock-overlay {
  background: rgba(0, 0, 0, 0.5);
}

.media.locked:hover .lock-overlay svg {
  opacity: 1;
}

.lightbox.is-zooming .lightbox-content {
  opacity: 1;
  visibility: hidden;
}

.lightbox-zoom-clone {
  position: fixed;
  margin: 0;
  object-fit: cover;
  z-index: 1001;
  pointer-events: none;
  transform-origin: top left;
  background-color: color-mix(in srgb, var(--text) 6%, transparent);
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  pointer-events: none;
}

.lightbox::before {
  content: "";
  position: absolute;
  inset: 0;
  background-color: var(--lightbox-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  opacity: 0;
}

.lightbox.show {
  pointer-events: auto;
}

.lightbox.show::before {
  animation: lightboxEnter 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.lightbox.closing::before {
  animation: lightboxExit 0.25s ease forwards;
}

@keyframes lightboxEnter {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes lightboxExit {
  from { opacity: 1; }
  to { opacity: 0; }
}

.lightbox-content {
  position: relative;
  width: 90%;
  max-height: 85%;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
}

.lightbox.show .lightbox-content {
  animation: lightboxContent 0.4s cubic-bezier(0.16, 1, 0.3, 1) 0.05s forwards;
}

.lightbox.closing .lightbox-content {
  animation: lightboxExit 0.2s ease forwards;
}

@keyframes lightboxContent {
  from {
    opacity: 0;
    transform: scale(0.97);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.lightbox-content img,
.lightbox-content video {
  display: block;
  width: 100%;
  max-width: 1400px;
  height: 80vh;
  object-fit: contain;
  margin: auto;
  border-radius: 8px;
}

.lightbox-content video::-webkit-media-controls,
.lightbox-content video::-webkit-media-controls-start-playback-button {
  display: none !important;
  -webkit-appearance: none;
}

.lightbox-content .lightbox-incoming {
  position: absolute;
  inset: 0;
  will-change: transform;
}

.lightbox.dismissing::before {
  animation: none;
  opacity: var(--dismiss-fade, 1);
}

.lightbox.dismissing .close-btn,
.lightbox.dismissing .lightbox-dots {
  opacity: var(--dismiss-fade, 1);
  transition: none;
}

.lightbox.dismissing.settling::before,
.lightbox.dismissing.settling .close-btn,
.lightbox.dismissing.settling .lightbox-dots {
  transition: opacity 0.3s ease;
}

.lightbox-content img,
.lightbox-content video {
  will-change: transform;
}

.lightbox-nav {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 50%;
  z-index: 1002;
}

.lightbox-nav.prev {
  left: 0;
  cursor: w-resize;
}

.lightbox-nav.next {
  right: 0;
  cursor: e-resize;
}

.close-btn {
  position: absolute;
  top: 24px;
  right: 24px;
  z-index: 1003;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text);
  background: var(--hover);
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.25s ease 0.15s;
}

.lightbox.show .close-btn,
.lightbox.show .lightbox-dots {
  opacity: 1;
}

.lightbox.closing .close-btn,
.lightbox.closing .lightbox-dots {
  opacity: 0;
  transition: opacity 0.15s ease;
}

.lightbox-caption {
  position: absolute;
  bottom: 48px;
  left: 0;
  right: 0;
  z-index: 1003;
  display: flex;
  justify-content: center;
  align-items: baseline;
  gap: 6px;
  color: var(--soft);
}

.lightbox-caption a {
  color: var(--soft);
}

.lightbox-caption a:hover {
  color: var(--text);
}

.lightbox-dots {
  position: absolute;
  bottom: 24px;
  left: 0;
  right: 0;
  z-index: 1003;
  display: flex;
  justify-content: center;
  gap: 8px;
  opacity: 0;
  transition: opacity 0.25s ease 0.15s;
}

.lightbox-dots .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: var(--muted);
  cursor: pointer;
}

.lightbox-dots .dot.active {
  background-color: var(--text);
}

.thumbs img,
.thumbs video {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9 !important;
  object-fit: cover;
  border-radius: 20px;
  background-color: rgba(127, 127, 127, 0.08);
}

.chip {
  display: inline;
  white-space: nowrap;
}

.chip .fav.round {
  height: 0.84em;
  vertical-align: -0.055em;
  margin-right: 0.25em;
}

.chip .fav {
  height: 0.81em;
  width: auto;
  display: inline-block;
  vertical-align: -0.09em;
  margin-right: 0.31em;
  object-fit: none;
  object-position: -999px -999px;
  background-color: var(--soft);
  -webkit-mask-size: contain;
  mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
  transition: background-color 0.25s ease;
}

.chip .fav[src*="scale.svg"] { -webkit-mask-image: url("public/content/icons/scale.svg?v=2"); mask-image: url("public/content/icons/scale.svg?v=2"); }
.chip .fav[src*="coinbase.svg"] { -webkit-mask-image: url("public/content/icons/coinbase.svg?v=2"); mask-image: url("public/content/icons/coinbase.svg?v=2"); }
.chip .fav[src*="atari.svg"] { -webkit-mask-image: url("public/content/icons/atari.svg?v=2"); mask-image: url("public/content/icons/atari.svg?v=2"); }
.chip .fav[src*="microsoft.svg"] { -webkit-mask-image: url("public/content/icons/microsoft.svg?v=2"); mask-image: url("public/content/icons/microsoft.svg?v=2"); }
.chip .fav[src*="meta.svg"] { -webkit-mask-image: url("public/content/icons/meta.svg?v=2"); mask-image: url("public/content/icons/meta.svg?v=2"); }
.chip .fav[src*="character-ai.svg"] { -webkit-mask-image: url("public/content/icons/character-ai.svg?v=2"); mask-image: url("public/content/icons/character-ai.svg?v=2"); }
.chip .fav[src*="deckgallery.svg"] { -webkit-mask-image: url("public/content/icons/deckgallery.svg?v=2"); mask-image: url("public/content/icons/deckgallery.svg?v=2"); }

.chip .fav[src*="favicons"] {
  border-radius: 3px;
  filter: grayscale(1) invert(1);
}

.chip .fav.wide {
  width: auto;
  max-width: 44px;
  border-radius: 0;
}

.opensLightbox {
  cursor: pointer;
}

.chip {
  transition: color 0.25s ease;
}

.chip:hover .fav[src*="scale.svg"] { background-color: #6e3aff; }
.chip:hover:has(.fav[src*="scale.svg"]) { color: #6e3aff; }

.chip:hover .fav[src*="coinbase.svg"] { background-color: #0052FF; }
.chip:hover:has(.fav[src*="coinbase.svg"]) { color: #0052FF; }

.chip:hover .fav[src*="atari.svg"] { background-color: #E4002B; }
.chip:hover:has(.fav[src*="atari.svg"]) { color: #E4002B; }

.chip:hover .fav[src*="microsoft.svg"] { background-color: #737373; }
.chip:hover:has(.fav[src*="microsoft.svg"]) { color: #737373; }

.chip:hover .fav[src*="meta.svg"] { background-color: #0081FB; }
.chip:hover:has(.fav[src*="meta.svg"]) { color: #0081FB; }

.chip:hover .fav[src*="character-ai.svg"] { background-color: #138eff; }
.chip:hover:has(.fav[src*="character-ai.svg"]) { color: #138eff; }

.chip:hover .fav[src*="deckgallery.svg"] { background-color: #0137FF; }
.chip:hover:has(.fav[src*="deckgallery.svg"]) { color: #0137FF; }

.moreLine {
  color: var(--muted);
}

.moreLine a {
  color: var(--soft);
}

.moreLine a:hover {
  color: var(--text);
}


.moreLine {
  color: var(--muted);
}

.moreLine a {
  color: var(--soft);
}

.moreLine a:hover {
  color: var(--text);
}

@media only screen and (max-width: 480px) {
  .page {
    padding-top: 24px;
  }

  .experience {
    flex-direction: column;
  }

  .scrollableArea {
    margin-left: -24px;
    margin-right: -24px;
    padding-left: 24px;
    padding-right: 24px;
    scrollbar-width: none;
  }

  .scrollableArea::-webkit-scrollbar {
    display: none;
  }
}
