:root {
  --bg: #070a0c;
  --panel-bg: #000;
  --stroke: #a5e2f6;
  --stroke-soft: rgba(165, 226, 246, 0.5);
  --text: #a5e2f6;
  --text-dim: rgba(165, 226, 246, 0.7);
  --glow: rgba(165, 226, 246, 0.18);
  --glow-blur-panel: 28px;
  --glow-blur-divider: 6px;
  --glow-blur-inset: 20px;
  --radius: 10px;
  --space: 20px;
  --content-width: 1075px;
  --font: "Kode Mono", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas,
    "Liberation Mono", "Courier New", monospace;
}

@import url("https://fonts.googleapis.com/css2?family=Kode+Mono:wght@400;600&display=swap");

* {
  box-sizing: border-box;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

*::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

@media (min-width: 768px) {
  .horizontalScrollTarget {
    cursor: grab;
  }

  .horizontalScrollTarget.is-dragging {
    cursor: grabbing;
    user-select: none;
  }

  .horizontalScrollTarget.is-dragging * {
    pointer-events: none;
  }
}

html,
body {
  height: 100%;
  overflow: hidden;
}

body {
  margin: 0;
  background: #000;
  background: radial-gradient(1200px 600px at 30% 15%, rgba(164, 225, 246, 0.06), transparent 60%),
    radial-gradient(1200px 700px at 80% 85%, rgba(164, 225, 246, 0.04), transparent 65%),
    var(--bg);
  color: var(--text);
  font-family: var(--font);
  letter-spacing: 0.06em;
}

.siteLayout {
  box-sizing: border-box;
  height: 100dvh;
  max-height: 100dvh;
  padding: var(--space);
  min-width: 0;
  overflow: hidden;
}

.app {
  height: 100%;
  min-height: 0;
  display: grid;
  grid-template-rows: 90px minmax(0, 1fr) 90px;
  gap: var(--space);
  min-width: 0;
  overflow: hidden;
}

.panel {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), transparent 70%),
    var(--panel-bg);
  border: 1px solid var(--stroke);
  border-radius: var(--radius);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.75) inset,
    0 0 var(--glow-blur-panel) var(--glow);
}

.header {
  height: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  min-width: 0;
  overflow: hidden;
}

.headerInner {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 0 1 auto;
  max-width: 100%;
  min-width: 0;
}

.logo {
  width: 181px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  appearance: none;
  border: none;
  padding: 0;
  background: transparent;
  cursor: pointer;
}

.logoImg {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.navMeta {
  flex: 0 0 auto;
  width: max-content;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 10px;
  padding: 0 5px;
  text-align: center;
}

.metaLine {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.2em;
  white-space: nowrap;
  line-height: normal;
  text-align: center;
}

.coordVal {
  display: inline-block;
  width: 4ch;
  text-align: right;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0;
}

.hLine {
  height: 1px;
  width: 100%;
  flex: 0 0 auto;
  background: linear-gradient(
    90deg,
    transparent 0%,
    var(--stroke) 12%,
    var(--stroke) 88%,
    transparent 100%
  );
  opacity: 0.55;
  box-shadow: 0 0 var(--glow-blur-divider) var(--glow);
}

.vLine {
  width: 1px;
  flex: 0 0 auto;
  background: linear-gradient(
    180deg,
    transparent 0%,
    var(--stroke) 12%,
    var(--stroke) 88%,
    transparent 100%
  );
  opacity: 0.55;
  box-shadow: 0 0 var(--glow-blur-divider) var(--glow);
}

.header .vLine {
  height: 50px;
}

.footer .vLine {
  height: 34px;
}

.nav {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex: 0 0 auto;
  flex-wrap: nowrap;
}

.navBtn {
  appearance: none;
  border: 1px solid var(--stroke);
  background: rgba(0, 0, 0, 0.25);
  color: var(--text);
  font-family: var(--font);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  height: 34px;
  padding: 0 12px;
  border-radius: 6px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 1 auto;
  min-width: 0;
  white-space: nowrap;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.75) inset;
  transition:
    transform 120ms ease,
    border-color 120ms ease,
    background 120ms ease,
    box-shadow 120ms ease;
}

.navBtn:hover:not(:disabled):not(:active):not(.is-selected) {
  transform: translateY(-1px);
  border-color: var(--stroke);
  background: rgba(10, 20, 26, 0.5);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.75) inset,
    0 0 var(--glow-blur-panel) var(--glow);
}

.navBtn:active:not(:disabled),
.navBtn.is-selected {
  transform: translateY(0);
  border-color: var(--stroke);
  background: rgba(10, 20, 26, 0.5);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.75) inset,
    inset 0 0 var(--glow-blur-inset) var(--glow);
}

.navBtn:disabled {
  opacity: 1;
  color: var(--stroke-soft);
  border-color: var(--stroke-soft);
  cursor: not-allowed;
}

.navBtn.small {
  height: 34px;
  padding: 0 12px;
}

.navBtn.link {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.menuBtn {
  display: none;
}

.mobileMenuPanel {
  display: none;
}

.mainGrid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  min-height: 0;
  height: 100%;
  min-width: 0;
  overflow: hidden;
}

.big {
  min-height: 0;
  height: 100%;
  overflow: hidden;
  min-width: 0;
  width: 100%;
}

#mainContent {
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.contentViews {
  position: relative;
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
}

.contentView {
  position: absolute;
  inset: 0;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
}

.contentView[hidden] {
  display: none !important;
}

.sectionPanel {
  width: 100%;
  height: 100%;
  min-height: 0;
  box-sizing: border-box;
}

.contentView--about {
  display: block;
}

.contentAsciiStage {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
}

.contentAscii {
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  border: none;
  box-shadow: none;
  background: transparent;
}

.side {
  min-height: 0;
  display: none;
}

.asciiRail__content {
  width: 100%;
  height: 100%;
}

.asciiWrap {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: var(--radius);
  overflow: hidden;
  background: #000;
}

.asciiWrap canvas {
  display: block;
  width: 100%;
  height: 100%;
}

.asciiOverlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 16px;
  color: var(--text-dim);
  font-size: 12px;
  text-align: center;
  background: rgba(0, 0, 0, 0.4);
}

.projectMediaPlaceholder.is-loading,
.collectionMediaPlaceholder.is-loading,
.aboutHero__profile.is-loading,
.aboutInfluences__movieCell.is-loading,
.aboutInfluences__gameCell.is-loading {
  position: relative;
}

@media (max-width: 767px) {
  .projectMediaPlaceholder.is-loading:not(:has(.mediaLoadingAscii)),
  .collectionMediaPlaceholder.is-loading:not(:has(.mediaLoadingAscii)) {
    background: rgba(165, 226, 246, 0.05);
    animation: mediaPlaceholderPulse 1.15s ease-in-out infinite;
  }
}

@keyframes mediaPlaceholderPulse {
  0%,
  100% {
    opacity: 0.55;
  }

  50% {
    opacity: 1;
  }
}

.is-typewriting::after {
  content: "▌";
  margin-left: 1px;
  animation: typewriterCursorBlink 0.9s step-end infinite;
}

@keyframes typewriterCursorBlink {
  0%,
  45% {
    opacity: 1;
  }

  50%,
  100% {
    opacity: 0;
  }
}

.mediaLoadingAscii {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  pointer-events: none;
}

.projectMediaPlaceholder.is-loading > img,
.collectionMediaPlaceholder.is-loading > img,
.aboutHero__profile.is-loading > img,
.aboutInfluences__movieCell.is-loading > img,
.aboutInfluences__gameCell.is-loading > img {
  position: relative;
  z-index: 2;
}

.wide-ascii-left,
.wide-ascii-right {
  display: none;
  min-width: 0;
  min-height: 0;
}

@media (min-width: 768px) and (max-width: 1439px) {
  .siteLayout {
    display: block;
    height: 100dvh;
    max-height: 100dvh;
    overflow: hidden;
  }

  .app {
    max-width: 1280px;
    margin: 0 auto;
    width: 100%;
  }

  .mainGrid {
    grid-template-columns: minmax(0, var(--content-width)) 145px;
    gap: 20px;
    justify-content: center;
  }

  .side {
    display: block;
  }

  .big {
    width: 100%;
    max-width: var(--content-width);
  }
}

@media (min-width: 1440px) {
  .siteLayout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, var(--content-width)) minmax(0, 1fr);
    column-gap: 20px;
    align-items: stretch;
    height: 100dvh;
    max-height: 100dvh;
    overflow: hidden;
  }

  .wide-ascii-left,
  .wide-ascii-right {
    display: block;
  }

  .app {
    width: 100%;
    max-width: var(--content-width);
    min-width: 0;
  }

  .mainGrid {
    grid-template-columns: minmax(0, 1fr);
  }

  .side {
    display: none;
  }
}

.footer {
  height: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  min-width: 0;
  overflow: hidden;
}

.footerInner {
  display: flex;
  align-items: center;
  gap: 20px;
  flex: 0 0 auto;
  max-width: 100%;
}

.footerContacts {
  position: relative;
  flex: 0 0 auto;
}

.contactButtons {
  display: none;
  align-items: center;
  gap: 20px;
}

.footerContacts.is-open #footerContactsToggle {
  display: none;
}

.footerContacts.is-open .contactButtons {
  display: flex;
}

.contactBtn {
  width: 56px;
  height: 40px;
  border-radius: 6px;
  border: 1px solid var(--stroke);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  background: rgba(0, 0, 0, 0.25);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.75) inset;
  transition:
    transform 120ms ease,
    background 120ms ease,
    box-shadow 120ms ease;
  flex-shrink: 0;
  padding: 0;
  color: var(--text);
  font-family: var(--font);
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
}

.contactBtn:hover:not(:active) {
  transform: translateY(-1px);
  background: rgba(10, 20, 26, 0.5);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.75) inset,
    0 0 var(--glow-blur-panel) var(--glow);
}

.contactBtn:active {
  transform: translateY(0);
  background: rgba(10, 20, 26, 0.5);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.75) inset,
    inset 0 0 var(--glow-blur-inset) var(--glow);
}

.contactBtn__icon {
  display: block;
  pointer-events: none;
  flex-shrink: 0;
  background-color: var(--stroke);
  mask-repeat: no-repeat;
  mask-position: center;
  mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-position: center;
  -webkit-mask-size: contain;
}

.contactBtn__icon--mail {
  width: 26px;
  height: 26px;
  mask-image: url("./assets/icons/mail.svg");
  -webkit-mask-image: url("./assets/icons/mail.svg");
}

.contactBtn__icon--whatsapp {
  width: 29.804px;
  height: 29.804px;
  mask-image: url("./assets/icons/whatsapp.png");
  -webkit-mask-image: url("./assets/icons/whatsapp.png");
}

.contactBtn__icon--telegram {
  width: 28.815px;
  height: 28.815px;
  mask-image: url("./assets/icons/telegram.png");
  -webkit-mask-image: url("./assets/icons/telegram.png");
}

.contactBtn__icon--instagram {
  width: 25.992px;
  height: 26.004px;
  mask-image: url("./assets/icons/instagram.svg");
  -webkit-mask-image: url("./assets/icons/instagram.svg");
}

.footerText {
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.2em;
  white-space: nowrap;
}

.footerStatus {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.2em;
  white-space: nowrap;
  flex: 0 0 auto;
}

@media (max-width: 1023px) {
  .header {
    height: 90px;
    justify-content: center;
  }

  .headerInner {
    width: 100%;
    justify-content: space-between;
  }

  .navMeta,
  .header .hLine,
  .header .vLine {
    display: none;
  }

  .nav {
    width: auto;
    justify-content: flex-end;
    flex-wrap: nowrap;
    align-items: center;
    margin-left: auto;
    flex: 1 1 auto;
    min-width: 0;
    /* Room for hover translateY(-1px) without clipping button borders */
    padding-block: 1px;
  }

  .mainGrid {
    grid-template-columns: minmax(0, var(--content-width)) 120px;
    gap: 20px;
    justify-content: center;
  }

  .side {
    display: block;
    min-height: 0;
    overflow: hidden;
  }

  .big {
    overflow: hidden;
  }

  .navBtn {
    padding: 0 10px;
    font-size: 10px;
  }
}

@media (max-width: 767px) {
  :root {
    --phone-space: 20px;
    --phone-header-height: 90px;
    --phone-footer-height: 90px;
    --phone-logo-width: 141px;
    --phone-logo-height: 40.5px;
    --phone-home-ascii-max-width: 292px;
    --phone-home-ascii-aspect: 292 / 239;
    --glow-blur-panel: 14px;
    --glow-blur-divider: 3px;
    --glow-blur-inset: 10px;
  }

  .siteLayout {
    display: block;
    height: 100dvh;
    max-height: 100dvh;
    min-height: 0;
    overflow: hidden;
    padding-top: max(var(--phone-space), env(safe-area-inset-top));
    padding-right: max(var(--phone-space), env(safe-area-inset-right));
    padding-bottom: max(var(--phone-space), env(safe-area-inset-bottom));
    padding-left: max(var(--phone-space), env(safe-area-inset-left));
  }

  .app {
    height: 100%;
    width: 100%;
    min-width: 0;
    max-width: none;
    margin: 0;
    grid-template-rows: var(--phone-header-height) minmax(0, 1fr) var(--phone-footer-height);
    gap: var(--phone-space);
  }

  .header {
    height: var(--phone-header-height);
    justify-content: stretch;
    padding: var(--phone-space);
    overflow: hidden;
  }

  .headerInner {
    width: 100%;
    gap: var(--phone-space);
    justify-content: space-between;
  }

  .navMeta,
  .header .hLine,
  .header .vLine,
  .nav {
    display: none;
  }

  .logo {
    width: var(--phone-logo-width);
    height: var(--phone-logo-height);
    flex: 0 0 auto;
  }

  .menuBtn {
    display: inline-flex;
    flex: 1 1 auto;
    min-width: 0;
    align-self: stretch;
    height: auto;
    min-height: 34px;
    padding: 10px;
    font-size: 12px;
    letter-spacing: 0.1em;
  }

  .menuBtn.is-active {
    font-size: 20px;
    letter-spacing: 0;
    background: rgba(10, 20, 26, 0.5);
    box-shadow:
      0 0 0 1px rgba(0, 0, 0, 0.75) inset,
      inset 0 0 var(--glow-blur-inset) var(--glow);
  }

  .big,
  #mainContent {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    justify-self: stretch;
    overflow: hidden;
  }

  #mainContent {
    position: relative;
  }

  .mobileMenuPanel {
    display: none;
    position: absolute;
    inset: 0;
    z-index: 20;
    margin: 0;
    padding: 20px 10px 10px;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: var(--panel-bg);
    border: none;
    box-shadow: none;
    border-radius: var(--radius);
  }

  #mainContent.isMobileMenuOpen .mobileMenuPanel {
    display: flex;
    z-index: 20;
  }

  #mainContent.isMobileMenuOpen .contentViews {
    display: none;
  }

  .mobileMenuNav {
    display: flex;
    flex-direction: column;
    gap: 24px;
    width: 100%;
    min-width: 0;
  }

  .mobileMenuBtn {
    width: 100%;
    height: 67px;
    padding: 10px 28px;
    font-size: 16px;
    letter-spacing: 0.1em;
    border-radius: 12px;
    flex: 0 0 auto;
  }

  .mobileMenuBtn.disabled,
  .mobileMenuBtn:disabled {
    color: var(--stroke-soft);
    border-color: var(--stroke-soft);
  }

  .mainGrid {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
    align-items: stretch;
    justify-content: stretch;
    width: 100%;
    min-width: 0;
    overflow-x: hidden;
  }

  .asciiRail {
    display: none;
  }

  .big,
  #mainContent {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    justify-self: stretch;
    overflow: hidden;
  }

  .contentView--home .contentAsciiStage {
    padding: 20px 10px 10px;
  }

  .contentView--home .contentAscii {
    width: 100%;
    max-width: var(--phone-home-ascii-max-width);
    height: auto;
    max-height: 100%;
    aspect-ratio: var(--phone-home-ascii-aspect);
    flex: 0 1 auto;
  }

  .footer {
    height: var(--phone-footer-height);
    justify-content: stretch;
    align-items: center;
    padding: var(--phone-space);
  }

  .footerInner {
    width: 100%;
    gap: var(--phone-space);
    justify-content: center;
  }

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

  .footerContacts #footerContactsToggle {
    width: 100%;
  }

  .footerText,
  .footerStatus {
    display: none;
  }

  .footer .vLine {
    display: none;
  }

  .footer .footerDivider {
    display: block;
    height: 34px;
    flex: 0 0 auto;
  }

  .footerInner > .navBtn.small.link {
    flex: 1 1 0;
    min-width: 0;
    width: auto;
  }

  .navBtn.small {
    width: 100%;
    flex: 1 1 0;
    min-width: 0;
    height: 34px;
    font-size: 12px;
    padding: 0 12px;
  }

  .footer.is-mobile-contacts-open .footerInner {
    justify-content: center;
  }

  .footer.is-mobile-contacts-open .footerContacts {
    flex: 1 1 100%;
    width: 100%;
    max-width: 100%;
  }

  .footer.is-mobile-contacts-open #footerContactsToggle {
    display: none;
  }

  .footer.is-mobile-contacts-open .contactButtons {
    display: flex;
    width: 100%;
    justify-content: center;
    gap: var(--phone-space);
  }

  .footer.is-mobile-contacts-open .footerDivider,
  .footer.is-mobile-contacts-open .footerInner > .navBtn.small.link {
    display: none;
  }
}

