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

:root {
  --cursor-default: url("images/ui/cursors/arrow.cur"), default;
  --cursor-open-advance: url("images/ui/cursors/help_win95.cur"), pointer;
  --cursor-clickable: url("images/ui/cursors/Cursor_15.cur"), pointer;
  --cursor-resize-ai-videos: url("images/ui/cursors/Cursor_6.cur"), nwse-resize;
  --cursor-text: url("images/ui/cursors/Beam.cur"), text;
}

html, body {
  height: 100%;
  margin: 0;
  cursor: var(--cursor-default);
}

body {
  background: #b7bcc4;
  color: #11161C;
  font-family: "Times New Roman", Times, serif;
}

a[href],
button:not(:disabled),
label[for],
summary,
[role="button"] {
  cursor: var(--cursor-clickable);
}

input,
textarea,
[contenteditable="true"] {
  cursor: var(--cursor-text);
}

.about-launch,
.my-pictures-launch,
.nav-sprite-link,
[data-music-toggle],
[data-music-prev]:not(:disabled),
[data-music-next]:not(:disabled),
.image-stage img,
.image-stage video {
  cursor: var(--cursor-open-advance);
}

.page {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100vh;
  width: 100%;
  position: relative;
  box-sizing: border-box;
  padding: 24px 28px 30px;
  gap: 18px;
}

.sidebar {
  position: fixed;
  top: auto;
  bottom: calc(38px + env(safe-area-inset-bottom));
  left: 50%;
  width: auto;
  max-width: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0;
  gap: 0;
  box-sizing: border-box;
  transform: translateX(-50%);
  z-index: 20;
  pointer-events: none;
}

.sidebar-top {
  display: flex;
  justify-content: center;
  margin: 0;
  pointer-events: auto;
}

.menu {
  display: grid;
  grid-template-columns: repeat(4, max-content);
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin: 0;
  position: relative;
}

.nav-swipe-hint {
  display: none;
  position: absolute;
  top: 45%;
  left: 50%;
  z-index: 25;
  width: 24px !important;
  height: 24px !important;
  max-width: none !important;
  max-height: none !important;
  object-fit: contain;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
  opacity: 0;
  pointer-events: none;
  filter: drop-shadow(1px 1px 0 rgba(0, 0, 0, 0.58));
  margin: -12px 0 0 -12px;
}

.nav-swipe-hint.is-playing {
  display: block;
  animation: navSwipeHint 4.2s steps(5, end) 0.45s 1 both;
}

.contact a {
  color: #3A4E8A;
  text-decoration: underline;
  font-size: 18px;
  line-height: 1.15;
}

.menu a,
.menu button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 93.5px;
  height: 32.6px;
  flex: 0 0 93.5px;
  padding: 0;
  border: 0;
  background: transparent;
  line-height: 0;
  text-decoration: none;
  color: transparent;
  gap: 0;
  transition: opacity 0.18s ease;
}

.menu a.about-launch {
  width: 93.5px;
  height: 32.6px;
  flex: 0 0 93.5px;
}

.menu a:hover,
.menu button:hover,
.contact a:hover {
  opacity: 0.72;
}

.menu .is-nav-blinking {
  animation: hardBlink 0.44s steps(1, end) 3;
}

@keyframes hardBlink {
  0% {
    opacity: 1;
  }
  50% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

@keyframes navSwipeHint {
  0% {
    transform: translateX(-30px) translateY(0);
    opacity: 0;
  }
  4% {
    transform: translateX(-30px) translateY(0);
    opacity: 0.84;
  }
  18% {
    transform: translateX(30px) translateY(0);
    opacity: 0.84;
  }
  24% {
    transform: translateX(30px) translateY(0);
    opacity: 0;
  }
  30% {
    transform: translateX(-30px) translateY(0);
    opacity: 0;
  }
  34% {
    transform: translateX(-30px) translateY(0);
    opacity: 0.84;
  }
  48% {
    transform: translateX(30px) translateY(0);
    opacity: 0.84;
  }
  54% {
    transform: translateX(30px) translateY(0);
    opacity: 0;
  }
  60% {
    transform: translateX(-30px) translateY(0);
    opacity: 0;
  }
  64% {
    transform: translateX(-30px) translateY(0);
    opacity: 0.84;
  }
  82% {
    transform: translateX(30px) translateY(0);
    opacity: 0.84;
  }
  90% {
    transform: translateX(30px) translateY(0);
    opacity: 0;
  }
  100% {
    transform: translateX(30px) translateY(0);
    opacity: 0;
  }
}

/* ABOUT BUTTON AS SPRITE */
.about-launch {
  display: inline-block;
  text-decoration: none;
  line-height: 0;
  position: static;
  animation: none !important;
}

.contact {
  position: fixed;
  top: 24px;
  left: 28px;
  right: auto;
  z-index: 20;
  text-align: left;
}

.my-pictures-launch {
  position: static;
  display: inline-block;
  padding: 0;
  border: 0;
  background: transparent;
  line-height: 0;
  text-decoration: none;
}

.my-pictures-launch:hover {
  opacity: 0.86;
}

.about-spin {
  --frame-width: 93.5px;
  --frame-height: 32.6px;
  --frames: 12;

  width: var(--frame-width);
  height: var(--frame-height);
  display: block;

  background-image: url("images/ui/about-button.png");
  background-repeat: no-repeat;
  background-position: 0 0;
  background-size: calc(var(--frame-width) * var(--frames)) var(--frame-height);

  image-rendering: pixelated;
  image-rendering: crisp-edges;

  animation: aboutAnim 1.15s steps(12, end) infinite;
}

.my-pictures-spin {
  --frame-width: 93.5px;
  --frame-height: 32.6px;
  --frames: 9;

  width: var(--frame-width);
  height: var(--frame-height);
  display: block;

  background-image: url("images/ui/my-pictures-can-breathe-button.png");
  background-repeat: no-repeat;
  background-position: 0 0;
  background-size: calc(var(--frame-width) * var(--frames)) var(--frame-height);

  image-rendering: pixelated;
  image-rendering: crisp-edges;

  animation: myPicturesAnim 0.95s steps(9, end) infinite;
}

.editorial-spin {
  --frame-width: 93.5px;
  --frame-height: 32.6px;
  --frames: 11;

  width: var(--frame-width);
  height: var(--frame-height);
  display: block;

  background-image: url("images/ui/editorial-button.png");
  background-repeat: no-repeat;
  background-position: 0 0;
  background-size: calc(var(--frame-width) * var(--frames)) var(--frame-height);

  image-rendering: pixelated;
  image-rendering: crisp-edges;

  animation: editorialAnim 0.8s steps(10, end) infinite;
}

.live-spin {
  --frame-width: 93.5px;
  --frame-height: 32.6px;
  --frames: 23;

  width: var(--frame-width);
  height: var(--frame-height);
  display: block;

  background-image: url("images/ui/live-button.png");
  background-repeat: no-repeat;
  background-position: 0 0;
  background-size: calc(var(--frame-width) * var(--frames)) var(--frame-height);

  image-rendering: pixelated;
  image-rendering: crisp-edges;

  animation: liveAnim 2.6s steps(22, end) infinite;
}

.desktop-home-launcher {
  --desktop-home-x: 28px;
  --desktop-home-y: 120px;
  position: fixed;
  left: 0;
  top: 0;
  width: 58px;
  height: 58px;
  z-index: 118;
  transform: translate3d(var(--desktop-home-x), var(--desktop-home-y), 0);
  pointer-events: none;
}

.desktop-home-button {
  position: absolute;
  left: 0;
  top: 0;
  width: 58px;
  height: 58px;
  padding: 0;
  border: 0;
  background: transparent;
  line-height: 0;
  pointer-events: auto;
  touch-action: none;
  user-select: none;
  -webkit-user-drag: none;
  cursor: grab;
}

.desktop-home-button:hover,
.desktop-home-button:focus-visible,
.mobile-home-launcher:hover,
.mobile-home-launcher:focus-visible {
  cursor: var(--cursor-open-advance);
}

.desktop-home-button:active {
  cursor: grabbing;
}

.desktop-home-button img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
  pointer-events: none;
}

.mobile-home-launcher {
  --mobile-home-x: 18px;
  --mobile-home-y: 118px;
  position: fixed;
  left: 0;
  top: 0;
  z-index: 128;
  width: 54px;
  height: 54px;
  padding: 0;
  border: 0;
  background: transparent;
  line-height: 0;
  transform: translate3d(var(--mobile-home-x), var(--mobile-home-y), 0);
  touch-action: none;
  user-select: none;
  -webkit-user-drag: none;
  cursor: var(--cursor-clickable);
  display: none;
}

.mobile-home-launcher img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
  pointer-events: none;
}

.mobile-home-launcher[data-visible="true"] {
  display: block;
}

@media (pointer: coarse) {
  .mobile-home-launcher {
    display: block;
  }

  html[data-webv2-route="menu"] .mobile-home-launcher {
    display: none;
  }
}

.desktop-home-panel {
  position: absolute;
  left: 30px;
  top: 58px;
  right: auto;
  bottom: auto;
  width: 136px;
  min-height: 344px;
  padding: 13px 12px 16px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 13px;
  background: #9fa8b1;
  border: 1px solid #151515;
  box-shadow:
    inset 2px 2px 0 rgba(255, 255, 255, 0.42),
    inset -2px -2px 0 rgba(20, 20, 20, 0.68);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.desktop-home-launcher[data-panel-x="left"] .desktop-home-panel {
  left: auto;
  right: 30px;
}

.desktop-home-launcher[data-panel-y="up"] .desktop-home-panel {
  top: auto;
  bottom: 58px;
}

.desktop-home-launcher[data-open="true"] {
  z-index: 131;
}

.desktop-home-launcher[data-open="true"] .desktop-home-panel {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.desktop-home-panel a,
.desktop-home-panel button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 112px;
  height: auto;
  min-height: 38px;
  flex: 0 0 auto;
  padding: 0;
  border: 0;
  background: transparent;
  line-height: 0;
  text-decoration: none;
  color: transparent;
  position: relative;
}

.desktop-home-panel > a:not(.desktop-home-contact-link)::after,
.desktop-home-panel > button.my-pictures-launch::after,
.desktop-home-panel > button.nishika-portraits-launch::after,
.desktop-home-panel > button.im-feeling-lucky-launch::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  box-shadow:
    inset 2px 2px 0 rgba(255, 255, 255, 0.48),
    inset -2px -2px 0 rgba(18, 18, 18, 0.72);
  pointer-events: none;
}

.desktop-home-panel .editorial-spin,
.desktop-home-panel .live-spin,
.desktop-home-panel .my-pictures-spin,
.desktop-home-panel .about-spin {
  --frame-width: 112px;
  --frame-height: 39px;
}

.im-feeling-lucky-launch img,
.nishika-portraits-launch img {
  width: 112px;
  height: 39px;
  display: block;
  object-fit: contain;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
  pointer-events: none;
}

.desktop-home-contact-link {
  width: auto !important;
  min-height: 0 !important;
  height: auto !important;
  margin-top: auto;
  margin-bottom: 0;
  padding: 0 !important;
  border: 0;
  color: #314f9b !important;
  font-family: "Times New Roman", Times, serif;
  font-size: 17px;
  line-height: 1.1 !important;
  text-decoration: underline !important;
  text-transform: lowercase;
  background: transparent;
  cursor: var(--cursor-clickable);
  transform: translateY(-6px);
}

.desktop-home-panel-tools {
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  justify-items: center;
  column-gap: 8px;
  margin-top: 0;
}

.desktop-home-panel-tools button {
  box-shadow: none;
}

.desktop-home-comment,
.desktop-home-music {
  width: 44px !important;
  height: 52px !important;
  min-height: 0 !important;
  padding: 0 !important;
  border: 0;
  background: transparent;
  line-height: 0;
}

.desktop-home-comment img,
.desktop-home-music img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  image-rendering: pixelated;
}

@media (min-width: 901px) {
  .sidebar,
  .contact,
  body > .who-are-you-button,
  .music-player > .music-toggle {
    display: none !important;
  }
}

.contact-window {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 123;
  width: min(390px, calc(100vw - 24px));
  aspect-ratio: 1436 / 799;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(8px) scale(0.98);
  transform-origin: center;
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0s linear 0.18s;
}

.contact-window[data-layer-active="true"] {
  z-index: 134;
}

.contact-window[data-open="true"] {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0) scale(1);
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0s;
}

.contact-window-frame {
  position: relative;
  width: 100%;
  height: 100%;
  background: url("images/ui/interfaz horizontal.jpg") center / 100% 100% no-repeat;
  image-rendering: auto;
}

.contact-window-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 4;
  box-shadow:
    inset 2px 2px 0 rgba(255, 255, 255, 0.34),
    inset -2px -2px 0 rgba(20, 20, 20, 0.54);
  pointer-events: none;
}

.contact-window-titlebar {
  position: absolute;
  left: 3.1%;
  top: 2.6%;
  width: 93.8%;
  height: 10.4%;
  z-index: 6;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-sizing: border-box;
  padding: 0 3.1%;
  color: #30343a;
  font-family: "Tahoma", "MS Sans Serif", sans-serif;
  font-size: 13px;
  line-height: 1;
  cursor: grab;
  user-select: none;
}

.contact-window[data-dragging="true"] .contact-window-titlebar {
  cursor: grabbing;
}

.contact-window-titlebar button {
  position: absolute;
  top: -17%;
  right: -3.2%;
  width: 5%;
  height: 72%;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: var(--cursor-clickable);
  z-index: 8;
}

.contact-window-form {
  position: absolute;
  left: 4.9%;
  top: 16.8%;
  z-index: 5;
  width: 90.2%;
  height: 76.4%;
  box-sizing: border-box;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 62px;
  grid-template-rows: 22px 22px minmax(0, 1fr) 21px;
  gap: 5px;
  margin: 0;
  font-family: "Tahoma", "MS Sans Serif", sans-serif;
}

.contact-window-form input,
.contact-window-form textarea {
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
  border: 1px solid #6d747c;
  border-radius: 0;
  background: #ffffff;
  color: #11161C;
  font-family: "Tahoma", "MS Sans Serif", sans-serif;
  font-size: 12px;
  line-height: 1.15;
  letter-spacing: 0;
  outline: none;
  caret-color: #11161C;
  cursor: text;
  box-shadow:
    inset 1px 1px 0 rgba(0, 0, 0, 0.32),
    inset -1px -1px 0 rgba(255, 255, 255, 0.78);
}

.contact-window-form input {
  grid-column: 1 / 4;
  height: 22px;
  padding: 3px 6px;
}

.contact-window-form textarea {
  grid-column: 1 / 4;
  grid-row: 3;
  height: 100%;
  padding: 5px 6px;
  resize: none;
}

.contact-window-form input::placeholder,
.contact-window-form textarea::placeholder {
  color: rgba(17, 22, 28, 0.38);
  opacity: 1;
}

.contact-window-send {
  grid-column: 3;
  grid-row: 4;
  width: 62px;
  height: 21px;
  padding: 0;
  border: 1px solid #7e858d;
  background: #e7e9eb;
  color: #3f444a;
  font-family: "Tahoma", "MS Sans Serif", sans-serif;
  font-size: 11px;
  line-height: 1;
  box-shadow:
    inset 1px 1px 0 rgba(255, 255, 255, 0.82),
    inset -1px -1px 0 rgba(0, 0, 0, 0.24);
  cursor: var(--cursor-clickable);
}

.contact-window-send:disabled {
  color: #82878c;
  cursor: default;
}

.contact-window-status {
  grid-column: 1 / 3;
  grid-row: 4;
  align-self: center;
  margin: 0;
  color: #3f444a;
  font-family: "Tahoma", "MS Sans Serif", sans-serif;
  font-size: 10px;
  line-height: 1;
}

.contact-page-stage {
  align-items: center;
}

.contact-page-panel {
  width: min(420px, calc(100vw - 40px));
}

.contact-page-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 72px;
  grid-template-rows: 28px 28px minmax(150px, 1fr) 24px;
  gap: 7px;
  margin: 0;
  font-family: "Tahoma", "MS Sans Serif", sans-serif;
}

.contact-page-form input,
.contact-page-form textarea {
  grid-column: 1 / 3;
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
  border: 1px solid #6d747c;
  border-radius: 0;
  background: #ffffff;
  color: #11161C;
  font-family: "Tahoma", "MS Sans Serif", sans-serif;
  font-size: 13px;
  line-height: 1.15;
  letter-spacing: 0;
  outline: none;
  caret-color: #11161C;
  cursor: text;
  box-shadow:
    inset 1px 1px 0 rgba(0, 0, 0, 0.32),
    inset -1px -1px 0 rgba(255, 255, 255, 0.78);
}

.contact-page-form input {
  height: 28px;
  padding: 4px 7px;
}

.contact-page-form textarea {
  grid-row: 3;
  height: 100%;
  padding: 7px;
  resize: none;
}

.contact-page-form input::placeholder,
.contact-page-form textarea::placeholder {
  color: rgba(17, 22, 28, 0.38);
  opacity: 1;
}

.contact-page-form button {
  grid-column: 2;
  grid-row: 4;
  width: 72px;
  height: 24px;
  padding: 0;
  border: 1px solid #7e858d;
  background: #e7e9eb;
  color: #3f444a;
  font-family: "Tahoma", "MS Sans Serif", sans-serif;
  font-size: 11px;
  line-height: 1;
  box-shadow:
    inset 1px 1px 0 rgba(255, 255, 255, 0.82),
    inset -1px -1px 0 rgba(0, 0, 0, 0.24);
  cursor: var(--cursor-clickable);
}

.contact-page-status {
  grid-column: 1;
  grid-row: 4;
  align-self: center;
  margin: 0;
  color: #3f444a;
  font-family: "Tahoma", "MS Sans Serif", sans-serif;
  font-size: 11px;
  line-height: 1;
}

@keyframes aboutAnim {
  from {
    background-position: 0 0;
  }
  to {
    background-position: calc(var(--frame-width) * -12) 0;
  }
}

@keyframes myPicturesAnim {
  from {
    background-position: 0 0;
  }
  to {
    background-position: calc(var(--frame-width) * -9) 0;
  }
}

@keyframes editorialAnim {
  from {
    background-position: 0 0;
  }
  to {
    background-position: calc(var(--frame-width) * -10) 0;
  }
}

@keyframes liveAnim {
  from {
    background-position: 0 0;
  }
  to {
    background-position: calc(var(--frame-width) * -22) 0;
  }
}

.stage.ai-videos-page-stage {
  align-items: center;
}

.ai-videos-stage {
  flex-direction: column;
  gap: 18px;
}

.ai-video-player {
  width: 100%;
  height: 100%;
  max-width: 100%;
  opacity: 0;
  transition: opacity 0.08s linear;
  max-height: 100%;
  display: block;
  object-fit: contain;
  object-position: center center;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  background: transparent;
}

.ai-videos-page-stage .ai-videos-stage {
  position: relative;
  padding-inline: 0;
  overflow: hidden;
}

.ai-videos-page-stage .ai-videos-stage[data-videos-empty="false"] {
  /* Safety net: if a video is ever revealed a beat before its frame is truly
     painted, this reads as a brief black flash instead of the page's light
     background showing through. */
  background: #000;
}

.ai-videos-page-stage .ai-video-player {
  position: absolute;
  inset: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: none;
}

.ai-video-freeze-canvas {
  position: absolute;
  inset: 0;
  z-index: 4;
  width: 100%;
  height: 100%;
  display: block;
  opacity: 0;
  pointer-events: none;
}

.ai-video-freeze-canvas[data-visible="true"] {
  opacity: 1;
}

.ai-video-empty {
  opacity: 1;
  font-size: 18px;
  line-height: 1.3;
}

.ai-videos-stage[data-videos-empty="true"] .ai-video-player {
  display: none;
}

.ai-videos-stage[data-videos-empty="false"] .ai-video-player.is-active[data-frame-ready="true"] {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.ai-videos-stage[data-videos-empty="false"] .ai-video-player:not(.is-active),
.ai-videos-stage[data-videos-empty="false"] .ai-video-player[data-frame-ready="false"] {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.ai-videos-stage[data-videos-empty="false"] .ai-video-empty {
  display: none;
}

.ai-video-popup {
  position: fixed;
  inset: 0;
  z-index: 120;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.18s ease, visibility 0s linear 0.18s;
}

.ai-video-popup[data-layer-active="true"] {
  z-index: 132;
}

.ai-video-popup[data-open="false"] {
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
}

.ai-video-popup[data-open="true"] {
  visibility: visible;
  opacity: 1;
  transition: opacity 0.18s ease, visibility 0s;
}

.ai-video-popup[data-preparing="true"] {
  pointer-events: none;
}

.ai-video-popup[data-open="true"] {
  pointer-events: none;
}

.ai-video-popup[data-open="false"] .ai-video-popup-screen,
.ai-video-popup[data-open="false"] .ai-video-popup-freeze-frame,
.ai-video-popup[data-open="false"] .ai-video-popup-video,
.ai-video-popup[data-open="false"] .ai-video-popup-empty {
  display: none;
}

.ai-video-popup[data-open="true"] .ai-video-popup-screen,
.ai-video-popup[data-open="true"] .ai-video-popup-freeze-frame,
.ai-video-popup[data-open="true"] .ai-video-popup-video,
.ai-video-popup[data-open="true"] .ai-video-popup-empty {
  display: block;
}

.ai-video-popup[data-open="true"] .ai-video-popup-empty {
  display: flex;
}

.ai-video-popup-window {
  width: 260px;
  max-height: calc(100vh - 80px);
  aspect-ratio: 975 / 1773;
  position: absolute;
  pointer-events: auto;
  touch-action: none;
  user-select: none;
  cursor: grab;
  box-shadow: 1px 2px 5px rgba(0, 0, 0, 0.16);
  will-change: transform;
  contain: layout style;
  backface-visibility: hidden;
  transform: translateZ(0);
  transform-origin: bottom right;
  opacity: 0;
  transition: opacity 0.18s ease;
}

.ai-video-popup[data-open="true"] .ai-video-popup-window {
  opacity: 1;
  transform: translateZ(0);
}

.home-under-popup-shadow {
  position: absolute;
  inset: 0;
  z-index: 32;
  display: none;
  opacity: 0;
  overflow: hidden;
  pointer-events: none;
  user-select: none;
  -webkit-user-drag: none;
  -webkit-mask: var(--home-shadow-mask) center / 100% 100% no-repeat;
  mask: var(--home-shadow-mask) center / 100% 100% no-repeat;
  transition: opacity 0.12s linear;
}

.home-under-popup-shadow[data-mask="music"] {
  --home-shadow-mask: url("images/ui/music/base%20reproductor.png");
  -webkit-mask-image: url("images/ui/music/base%20reproductor.png");
  mask-image: url("images/ui/music/base%20reproductor.png");
  -webkit-mask-position: center;
  mask-position: center;
  -webkit-mask-size: 100% 100%;
  mask-size: 100% 100%;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
}

.home-under-popup-shadow[data-mask="ai"] {
  --home-shadow-mask: url("images/ui/interfaz-ai-videos.png");
}

.home-under-popup-shadow[data-visible="true"] {
  display: block;
  opacity: 0.48;
}

.home-under-popup-shadow-logo {
  position: absolute;
  left: 50%;
  top: 50%;
  display: block;
  transform: translate(-50%, -50%) scale(1);
  object-fit: contain;
  filter: brightness(0) blur(2.1px) drop-shadow(0 0 1px rgba(255, 255, 255, 0.12));
  pointer-events: none;
  user-select: none;
  -webkit-user-drag: none;
  transition: transform 0.12s linear;
}

.home-under-popup-shadow[data-visible="false"] .home-under-popup-shadow-logo {
  transform: translate(-50%, -50%) scale(0.94);
}

.home-under-popup-shadow[data-visible="true"] .home-under-popup-shadow-logo {
  transform: translate(-50%, -50%) scale(1);
}

.home-under-popup-shadow-canvas {
  position: absolute;
  inset: 0;
  z-index: 32;
  display: none;
  width: 100%;
  height: 100%;
  opacity: 0;
  pointer-events: none;
  user-select: none;
  -webkit-user-drag: none;
  transition: opacity 0.12s linear;
}

.home-under-popup-shadow-canvas[data-visible="true"] {
  display: block;
  opacity: 1;
}

.ai-video-popup-window[data-dragging="true"] {
  cursor: grabbing;
}

.ai-video-popup-window[data-resizing="true"] {
  cursor: var(--cursor-resize-ai-videos);
}

.ai-video-popup-window[data-pinching="true"] {
  cursor: var(--cursor-resize-ai-videos);
}

.ai-video-popup-frame {
  position: relative;
  width: 100%;
  height: 100%;
  background: url("images/ui/interfaz-ai-videos.png") center center / 100% 100% no-repeat;
  transform: translateY(8px) scale(0.98);
  transform-origin: top right;
  transition: transform 0.18s ease;
}

.ai-video-popup[data-open="true"] .ai-video-popup-frame {
  transform: translateY(0) scale(1);
}

.ai-video-popup-window[data-dragging="true"] .ai-video-popup-frame,
.ai-video-popup-window[data-resizing="true"] .ai-video-popup-frame,
.ai-video-popup-window[data-pinching="true"] .ai-video-popup-frame {
  transition: none;
}

.ai-video-popup-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 3;
  box-shadow:
    inset 2px 2px 0 rgba(255, 255, 255, 0.42),
    inset -2px -2px 0 rgba(20, 20, 20, 0.68);
  pointer-events: none;
}

.ai-video-popup-resize {
  position: absolute;
  width: 24px;
  height: 24px;
  padding: 0;
  border: 0;
  background: transparent;
  z-index: 4;
  cursor: var(--cursor-resize-ai-videos) !important;
}

.ai-video-popup-resize-nw {
  top: -6px;
  left: -6px;
}

.ai-video-popup-resize-ne {
  top: -6px;
  right: -6px;
}

.ai-video-popup-resize-sw {
  bottom: -6px;
  left: -6px;
}

.ai-video-popup-resize-se {
  bottom: -6px;
  right: -6px;
}

.ai-video-popup-screen {
  position: absolute;
  left: 2.35%;
  top: 4.8%;
  width: 95.2%;
  height: 93.65%;
  overflow: hidden;
  background: #000000;
  cursor: var(--cursor-clickable);
}

.ai-video-popup-close {
  position: absolute;
  top: 0.45%;
  right: 0.15%;
  width: 6.35%;
  height: 2.8%;
  min-width: 28px;
  min-height: 20px;
  padding: 0;
  border: 0;
  background: transparent;
  z-index: 5;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  cursor: var(--cursor-clickable) !important;
}

.ai-video-popup-close:hover {
  background: rgba(255, 255, 255, 0.08);
}

.ai-video-popup-close:focus-visible {
  outline: 2px solid #163d8a;
  outline-offset: 2px;
}

.ai-video-popup-freeze-frame,
.ai-video-popup-video,
.ai-video-popup-empty {
  position: absolute;
  inset: 0;
}

.ai-video-popup-freeze-frame {
  width: 100%;
  height: 100%;
  display: block;
  opacity: 0;
  visibility: hidden;
  background: #000000;
  pointer-events: none;
  z-index: 3;
  transition: opacity 0.2s ease;
}

.ai-video-popup-freeze-frame[data-visible="true"] {
  opacity: 1;
  visibility: visible;
}

.ai-video-popup-video {
  width: 100%;
  height: 100%;
  display: block;
  opacity: 0;
  visibility: visible;
  object-fit: cover;
  object-position: center center;
  background: #000000;
  pointer-events: none;
  z-index: 1;
  transition: opacity 0.12s linear;
}

.ai-video-popup-video.is-frame-ready {
  visibility: visible;
}

.ai-video-popup-video.is-active.is-frame-ready {
  opacity: 1;
  z-index: 2;
}

.ai-video-popup-window[data-dragging="true"] .ai-video-popup-video {
  opacity: 0;
}

.ai-video-popup-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  box-sizing: border-box;
  color: #273547;
  text-align: center;
  font-family: "Tahoma", "MS Sans Serif", sans-serif;
  font-size: 14px;
  line-height: 1.35;
}

.ai-video-popup[data-empty="true"] .ai-video-popup-video {
  display: none;
}

.ai-video-popup[data-empty="false"] .ai-video-popup-empty {
  display: none;
}

.stage {
  order: 1;
  width: 100%;
  flex: 1 1 auto;
  min-width: 0;
  min-height: 0;
  display: flex;
  justify-content: center;
  align-items: center;
}

.image-stage {
  width: min(100%, 1200px);
  height: 100%;
  max-height: calc(100vh - 180px);
  padding: 12px 16px;
  box-sizing: border-box;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  isolation: isolate;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  user-select: none;
}

@media (max-width: 640px) {
  .ai-video-popup-window {
    width: min(82vw, 380px);
    max-height: calc(100vh - 20px);
  }
}

.image-stage img,
.image-stage video {
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  display: block;
  object-fit: contain;
  object-position: center center;
  user-select: none;
  -webkit-user-drag: none;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  transition: transform 140ms ease, filter 140ms ease;
  will-change: transform;
}

.image-stage img[hidden],
.image-stage video[hidden] {
  display: none !important;
}

.home-preview-video {
  background: transparent;
}

.home-preview-video.is-portrait {
  width: auto;
  height: 100%;
}

.home-preview-video.is-landscape {
  width: 100%;
  height: auto;
}

.image-stage img.is-touch-sweep-active {
  filter: brightness(1.06) contrast(1.03);
}

.image-stage img.is-category-transitioning {
  opacity: 0;
  visibility: visible;
}

.image-stage img.is-category-transitioning.is-category-fade-in {
  opacity: 1;
  transition: opacity 2700ms cubic-bezier(0.22, 0.72, 0.18, 1), filter 2700ms cubic-bezier(0.22, 0.72, 0.18, 1);
}

.image-stage img.is-category-fade-out {
  opacity: 0;
  filter: brightness(0.98);
  transition: opacity 1440ms cubic-bezier(0.33, 0, 0.67, 1), filter 1440ms cubic-bezier(0.33, 0, 0.67, 1);
}

/* HOME PAGE */
.home-stage {
  max-height: calc(100vh - 72px);
  min-height: 0;
  display: grid;
  grid-template-rows: minmax(0, 1fr);
  grid-template-columns: minmax(0, 1fr);
  justify-items: center;
  align-items: center;
  row-gap: 0;
}

.home-stage img,
.home-stage video {
  grid-row: 1;
  grid-column: 1;
}

.home-image-caption {
  position: fixed;
  right: 18px;
  bottom: 16px;
  z-index: 18;
  width: min(720px, calc(100% - 64px));
  margin: 0;
  transform: none;
  color: #505050;
  font-family: "DM Mono", "Courier New", monospace;
  font-size: 11pt;
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0;
  text-align: right;
  white-space: nowrap;
  pointer-events: none;
  user-select: none;
}

/* ABOUT PAGE */
.about-stage {
  justify-content: center;
  align-items: center;
}

.about-text {
  max-width: 520px;
  padding: 16px 8px;
  font-size: 18px;
  line-height: 1.3;
  color: #5f5f5f;
  text-align: center;
}

.about-poem,
.about-body,
.about-signature {
  margin: 0;
  color: #5f5f5f;
}

.about-poem {
  margin-bottom: 48px;
}

.about-body {
  margin-bottom: 48px;
}

.music-player {
  position: fixed;
  /* Keep symmetric placement with the who-are-you button */
  right: calc(35px + env(safe-area-inset-right));
  bottom: calc(18px + env(safe-area-inset-bottom));
  z-index: 120;
  display: block;
}

.music-player[data-layer-active="true"] {
  z-index: 132;
}

.who-are-you-button {
  position: fixed;
  /* Respect device safe-area so the art never gets clipped on the left edge */
  left: calc(35px + env(safe-area-inset-left));
  right: auto;
  bottom: calc(18px + env(safe-area-inset-bottom));
  z-index: 119;
  /* Match the music button hit-area for visual symmetry */
  width: 72px;
  height: 72px;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  cursor: var(--cursor-clickable);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: visible;
}

/* Ensure JS `button.hidden = true` actually removes it from layout.
   We set `display:flex` above, which would otherwise override the UA `[hidden]{display:none}` rule. */
.who-are-you-button[hidden] {
  display: none !important;
}

html:not([data-who-are-you-entry]) .who-are-you-button {
  visibility: hidden;
}

.who-are-you-button:hover {
  opacity: 0.78;
}

.who-are-you-button img {
  width: 68%;
  height: 68%;
  display: block;
  object-fit: contain;
  image-rendering: pixelated;
  margin: auto;
}

.who-are-you-tooltip {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 2147483647;
  display: none;
  pointer-events: none;
  color: #3A4E8A;
  font-family: "Lucida Console", "Andale Mono", "Courier New", monospace;
  font-size: 18px;
  line-height: 1.15;
  text-decoration: none;
  white-space: nowrap;
  transform: translate(24px, 4px);
}

.who-are-you-tooltip[data-visible="true"] {
  display: block;
}

.image-stage img[src^="data:image/gif"] {
  opacity: 0 !important;
  visibility: hidden !important;
}

.who-are-you-window {
  position: fixed;
  left: 96px;
  top: auto;
  right: auto;
  bottom: 42px;
  z-index: 122;
  width: 260px;
  aspect-ratio: 975 / 1773;
  min-width: 260px;
  max-width: min(430px, calc(100vw - 24px), calc((100vh - 24px) * 975 / 1773));
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px) scale(0.98);
  transform-origin: bottom left;
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0s linear 0.18s;
}

.who-are-you-window[data-layer-active="true"] {
  z-index: 133;
}

.who-are-you-window[data-open="true"] {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0) scale(1);
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0s;
}

.who-are-you-window-frame {
  position: relative;
  width: 100%;
  height: 100%;
  box-sizing: border-box;
  background: url("images/ui/interfaz-ai-videos.png") center / 100% 100% no-repeat;
}

.who-are-you-window-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 4;
  box-shadow:
    inset 2px 2px 0 rgba(255, 255, 255, 0.42),
    inset -2px -2px 0 rgba(20, 20, 20, 0.68);
  pointer-events: none;
}

.who-are-you-window-titlebar {
  position: absolute;
  left: 5.4%;
  top: 1.35%;
  width: 89.1%;
  height: 4.1%;
  z-index: 6;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-sizing: border-box;
  padding: 0 2.6%;
  color: #30343a;
  font-family: "Tahoma", "MS Sans Serif", sans-serif;
  font-size: 13px;
  line-height: 1;
  cursor: grab;
  user-select: none;
}

.who-are-you-window[data-dragging="true"] .who-are-you-window-titlebar {
  cursor: grabbing;
}

.who-are-you-window[data-resizing="true"],
.who-are-you-window[data-resizing="true"] * {
  cursor: var(--cursor-resize-ai-videos) !important;
}

.who-are-you-window-titlebar button {
  position: absolute;
  top: -24%;
  right: -2.55%;
  width: 7%;
  height: 68%;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: var(--cursor-clickable);
  z-index: 7;
}

.who-are-you-window-resize {
  position: absolute;
  width: 24px;
  height: 24px;
  padding: 0;
  border: 0;
  background: transparent;
  z-index: 8;
  cursor: var(--cursor-resize-ai-videos) !important;
}

.who-are-you-window-resize-nw {
  top: -6px;
  left: -6px;
}

.who-are-you-window-resize-sw {
  bottom: -6px;
  left: -6px;
}

.who-are-you-window-resize-se {
  bottom: -6px;
  right: -6px;
}

.who-are-you-window-content {
  position: absolute;
  left: 3.2%;
  top: 4.9%;
  width: 93.6%;
  height: 91.7%;
  z-index: 5;
  box-sizing: border-box;
  padding: 6px;
  overflow: hidden;
  background: transparent;
  border: 0;
  font-family: "Tahoma", "MS Sans Serif", sans-serif;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

@keyframes whoAreYouVanish {
  0% {
    opacity: 1;
  }
  100% {
    opacity: 0;
  }
}

.who-are-you-box {
  position: static;
  margin: 0;
  padding: 0;
  color: #11161C;
  font-family: "Tahoma", "MS Sans Serif", sans-serif;
  font-size: 14px;
  line-height: 1.15;
  flex: 0 0 auto;
  align-items: stretch;
  gap: 0;
  cursor: default;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 62px;
  grid-template-rows: 24px 56px;
  background: transparent;
}

.who-are-you-box[hidden] {
  display: none;
}

.who-are-you-box.is-vanishing {
  pointer-events: none;
  animation: whoAreYouVanish 3.2s ease-out 1 forwards;
}

.contact-window-form input.is-vanishing,
.contact-window-form textarea.is-vanishing,
.contact-page-form input.is-vanishing,
.contact-page-form textarea.is-vanishing {
  pointer-events: none;
  animation: whoAreYouVanish 3.2s ease-out 1 forwards;
}

.who-are-you-box input,
.who-are-you-box textarea {
  width: 100%;
  padding: 4px 8px;
  box-sizing: border-box;
  border: 0;
  border-radius: 0;
  background: #ffffff;
  box-shadow: none;
  color: #11161C;
  font-family: "Tahoma", "MS Sans Serif", sans-serif;
  font-size: 14px;
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0;
  color: #11161C;
  -webkit-font-smoothing: auto;
  text-rendering: auto;
  outline: none;
  caret-color: #505050;
  cursor: text;
  backface-visibility: visible;
  transform: none;
  will-change: auto;
}

.who-are-you-box textarea {
  grid-column: 1;
  grid-row: 2;
  height: 56px;
  padding: 6px 8px;
  line-height: 1.15;
  resize: none;
}

.who-are-you-box input {
  grid-column: 1 / 3;
  grid-row: 1;
  height: 24px;
  border-bottom: 1px solid #b7bcc4;
}

.who-are-you-send {
  grid-column: 2;
  grid-row: 2;
  align-self: stretch;
  justify-self: stretch;
  margin: 5px 5px 5px 4px;
  padding: 0;
  border: 1px solid #7e858d;
  background: #e7e9eb;
  color: #3f444a;
  font-family: "Tahoma", "MS Sans Serif", sans-serif;
  font-size: 11px;
  line-height: 1;
  box-shadow:
    inset 1px 1px 0 rgba(255, 255, 255, 0.82),
    inset -1px -1px 0 rgba(0, 0, 0, 0.24);
  cursor: var(--cursor-clickable);
}

.who-are-you-box input::placeholder,
.who-are-you-box textarea::placeholder {
  color: rgba(17, 22, 28, 0.36);
  opacity: 1;
}

.who-are-you-comment {
  position: static;
  display: block;
  flex: 1 1 auto;
  width: 100%;
  max-height: 100%;
  box-sizing: border-box;
  overflow-x: hidden;
  overflow-y: auto;
  color: #11161C;
  font-family: "Tahoma", "MS Sans Serif", sans-serif;
  pointer-events: auto;
  scrollbar-width: thin;
  scrollbar-color: #8f969e #d3d7dc;
  padding: 4px 6px 10px;
  background: #ffffff;
  border: 2px solid #505050;
  -webkit-mask-image: none;
  mask-image: none;
}

.who-are-you-comment::-webkit-scrollbar {
  display: block;
  width: 14px;
}

.who-are-you-comment::-webkit-scrollbar-track {
  background: #d3d7dc;
  border-left: 1px solid #8f969e;
}

.who-are-you-comment::-webkit-scrollbar-thumb {
  background: #aeb5bd;
  border: 1px solid #8f969e;
  box-shadow:
    inset 1px 1px 0 rgba(255, 255, 255, 0.72),
    inset -1px -1px 0 rgba(42, 45, 50, 0.42);
}

.who-are-you-comment[hidden] {
  display: none;
}

.who-are-you-comment-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.who-are-you-comment-item {
  display: block;
  min-width: 0;
}

.who-are-you-comment-name {
  margin: 0;
  font-size: 14px;
  line-height: 1.12;
  color: #505050;
  display: flex;
  align-items: center;
  gap: 5px;
}

.who-are-you-chat-avatar {
  width: 17px;
  height: 17px;
  flex: 0 0 17px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.who-are-you-chat-avatar img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  image-rendering: pixelated;
}

.who-are-you-comment-name strong {
  font-weight: 400;
}

.who-are-you-comment-name em {
  font-style: italic;
  font-weight: 400;
}

.who-are-you-comment-text {
  margin: 0 0 0 22px;
  font-size: 14px;
  line-height: 1.15;
  color: #11161C;
  overflow-wrap: anywhere;
}

.who-are-you-comment-item:nth-child(even) .who-are-you-comment-name,
.who-are-you-comment-item:nth-child(even) .who-are-you-comment-text {
  color: #505050;
}

.music-toggle {
  width: 72px;
  height: 72px;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  position: relative;
  z-index: 35;
  /* Keep a comfortable hit-area, but allow the art to be visually smaller. */
  display: flex;
  align-items: center;
  justify-content: center;
}

.music-toggle:hover,
.music-hit:hover {
  opacity: 0.78;
}

.music-player[data-player-open="false"] .music-toggle:hover {
  cursor: url('images/ui/cursors/Cursor_17.cur'), auto;
}

.music-toggle img {
  /* Visual size (art) smaller than the button hit-area */
  width: 84%;
  height: 84%;
  display: block;
  object-fit: contain;
  image-rendering: pixelated;
}

.music-float {
  --player-width: 475px;
  --player-height: calc(var(--player-width) * 451 / 723);
  --music-player-width: var(--player-width);
  --music-player-height: var(--player-height);
  position: fixed;
  right: 105px;
  bottom: 43px;
  width: var(--player-width);
  height: var(--player-height);
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px) scale(0.98);
  transform-origin: bottom right;
  transition: opacity 0.18s ease, transform 0.18s ease;
  user-select: none;
  touch-action: none;
}

.music-player[data-player-open="true"] .music-float {
  opacity: 1;
  pointer-events: none;
  transform: translateY(0) scale(1);
}

.music-float::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 8;
  background: url("images/ui/music/muesca-resize.png") center / 100% 100% no-repeat;
  pointer-events: none;
}

.music-player-base,
.music-player-nodding,
.music-screen-image,
.music-player-shadow,
.music-control-art img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  user-select: none;
  -webkit-user-drag: none;
  pointer-events: none;
}

.music-player-base {
  z-index: 1;
}

.music-player-base[data-visible="false"] {
  opacity: 0;
}

.music-player-nodding {
  z-index: 1;
  opacity: 0;
}

.music-player-nodding[data-visible="true"] {
  opacity: 1;
}

.music-screen-image {
  z-index: 4;
}

.music-display {
  position: absolute;
  left: 36.8%;
  top: 36.15%;
  width: 24.9%;
  height: 9.25%;
  z-index: 5;
  color: #f3f3f3;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: stretch;
  gap: 0;
  font-family: "Orbitron", "Courier New", monospace;
  letter-spacing: 0.05em;
  pointer-events: none;
}

.music-volume {
  position: absolute;
  left: 36.65%;
  top: 46.35%;
  width: 24.2%;
  height: 2.35%;
  z-index: 7;
  pointer-events: auto;
}

.music-volume-track {
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: stretch;
  gap: 1.4%;
  cursor: ew-resize;
}

.music-volume-step {
  display: block;
  flex: 1 1 0;
  height: 100%;
  border-radius: 0;
  background: linear-gradient(180deg, #d8d4d2 0%, #bdb6b1 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35), inset 0 -1px 0 rgba(90, 90, 90, 0.18);
  transition: background 0.12s ease, box-shadow 0.12s ease, opacity 0.12s ease;
  opacity: 0.95;
}

.music-volume-step.is-active {
  background: linear-gradient(180deg, #4a4a4a 0%, #2f2f2f 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), inset 0 -1px 0 rgba(0, 0, 0, 0.35);
  opacity: calc(0.78 + (var(--volume-step-intensity, 1) * 0.22));
}

.music-time-row,
.music-track-title,
.music-track-meta {
  margin: 0;
}

.music-time-row {
  display: flex;
  justify-content: flex-start;
  align-items: flex-end;
  gap: 6px;
  transform: translateX(-3.2%);
}

.music-current-time,
.music-duration {
  font-variant-numeric: tabular-nums;
}

.music-current-time {
  font-size: clamp(8px, calc(var(--music-player-width) * 0.0253), 18px);
  line-height: 0.88;
  font-weight: 700;
}

.music-duration {
  display: none;
}

.music-track-title {
  width: 100%;
  overflow: hidden;
  text-align: center;
  font-size: clamp(7px, calc(var(--music-player-width) * 0.017), 12px);
  line-height: 1.05;
  font-weight: 700;
  transform: translate(-3.2%, 2px);
  position: relative;
  box-sizing: border-box;
  padding: 1px 0;
  scrollbar-width: none;
}

.music-track-title::-webkit-scrollbar {
  display: none;
}

.music-track-title-text {
  display: inline-block;
  white-space: nowrap;
  max-width: 100%;
}

.music-track-title[data-title-overflow="true"] {
  text-align: left;
  padding-left: 6%;
  transform: translateY(2px);
}

.music-track-title[data-title-overflow="true"] .music-track-title-text {
  padding-right: 10px;
  animation: musicTitleScroll var(--title-scroll-duration, 8s) linear infinite alternate;
}

@keyframes musicTitleScroll {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(calc(var(--title-scroll-shift, 0px) * -1));
  }
}

.music-track-meta {
  width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: clamp(4px, calc(var(--music-player-width) * 0.0095), 7px);
  line-height: 1;
  font-weight: 700;
  opacity: 0.88;
  text-align: left;
  transform: translateY(0);
}

.music-control-art {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}

.music-control-art img {
  transition: filter 0.16s ease, opacity 0.16s ease;
}

.music-player[data-active-control="prev"] .music-control-art-prev img,
.music-player[data-active-control="play"] .music-control-art-play img,
.music-player[data-active-control="pause"] .music-control-art-pause img,
.music-player[data-active-control="stop"] .music-control-art-stop img,
.music-player[data-active-control="next"] .music-control-art-next img {
  filter:
    brightness(1.18)
    contrast(1.06)
    drop-shadow(0 0 3px rgba(242, 247, 255, 0.78))
    drop-shadow(0 0 7px rgba(84, 121, 178, 0.42));
}

.music-player-shadow {
  z-index: 3;
}

.music-hit-area {
  position: absolute;
  inset: 0;
  z-index: 6;
  pointer-events: none;
}

.music-drag-layer {
  display: none;
  pointer-events: none;
}

button.music-resize-handle:not(:disabled) {
  position: absolute;
  left: 70.26%;
  top: 94.12%;
  width: clamp(18px, 3.6%, 26px);
  height: clamp(18px, 4.8%, 26px);
  transform: translate(-50%, -50%);
  z-index: 9;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: var(--cursor-resize-ai-videos);
  pointer-events: auto;
}

button.music-resize-handle:not(:disabled):hover,
button.music-resize-handle:not(:disabled):focus-visible,
button.music-resize-handle:not(:disabled):active {
  cursor: var(--cursor-resize-ai-videos);
}

.music-resize-handle:hover {
  opacity: 0.9;
}

.music-player[data-resizing="true"] .music-resize-handle {
  cursor: var(--cursor-resize-ai-videos);
}

.music-hit {
  position: absolute;
  width: 7.4%;
  aspect-ratio: 1;
  border: 0;
  background: transparent;
  border-radius: 50%;
  padding: 0;
  transform: translate(-50%, -50%);
  pointer-events: auto;
}

.music-hit:disabled {
  cursor: default;
  opacity: 0.35;
}

.music-hit-prev {
  left: 36.169%;
  top: 56.098%;
  width: 7.1%;
}

.music-hit-play {
  left: 42.739%;
  top: 57.539%;
  width: 7.5%;
}

.music-hit-pause {
  left: 49.101%;
  top: 60.421%;
  width: 7.3%;
}

.music-hit-stop {
  left: 55.74%;
  top: 57.317%;
  width: 7.6%;
}

.music-hit-next {
  left: 62.725%;
  top: 56.098%;
  width: 7.2%;
}

.music-player[data-dragging="true"] .music-float {
  cursor: grabbing;
}

@media (max-width: 900px) {
  :root {
    --cursor-default: auto;
    --cursor-open-advance: pointer;
    --cursor-clickable: pointer;
    --cursor-resize-ai-videos: nwse-resize;
    --cursor-text: text;
  }

  html,
  body {
    height: 100%;
    min-height: 100%;
    overflow: hidden;
    overscroll-behavior: none;
    cursor: auto;
  }

  body {
    margin: 0;
    position: fixed;
    inset: 0;
    width: 100%;
    touch-action: none;
  }

  .music-player,
  .music-player > .music-toggle,
  .ai-video-popup,
  .nav-swipe-hint {
    display: none !important;
  }

  .mobile-home-launcher {
    display: block;
  }

  .mobile-home-launcher-glow {
    position: absolute;
    inset: 0;
    z-index: -1;
    /* Solidify the logo's silhouette to white, then blur it: the blur radius
       stays constant so only opacity animates (reliable across GPUs/browsers,
       unlike animating the filter's blur radius itself). */
    filter: brightness(0) invert(1) blur(5px);
    opacity: 0;
    animation: mobile-home-launcher-glow-pulse 4.6s ease-in-out infinite;
    pointer-events: none;
  }

  @keyframes mobile-home-launcher-glow-pulse {
    0%,
    100% {
      opacity: 0;
    }
    50% {
      opacity: 0.85;
    }
  }

  html[data-webv2-route="menu"] .mobile-home-launcher {
    display: none;
  }

  .page {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    height: 100svh;
    min-height: 100svh;
    padding: 0;
    gap: 0;
    overflow: hidden;
    overscroll-behavior: none;
  }

  .music-player {
    right: calc(20px + env(safe-area-inset-right));
    bottom: calc(11px + env(safe-area-inset-bottom));
  }

  .who-are-you-button {
    left: calc(20px + env(safe-area-inset-left));
    right: auto;
    bottom: calc(11px + env(safe-area-inset-bottom));
    width: 50px;
    height: 50px;
  }

  .who-are-you-tooltip {
    font-size: 16px;
  }

  .who-are-you-box {
    left: 20px;
    bottom: calc(50px + env(safe-area-inset-bottom));
    font-size: 16px;
    gap: 9px;
  }

  .who-are-you-box input {
    width: min(260px, calc(100vw - 40px));
    height: 21px;
    font-size: 16px;
  }

  .who-are-you-box textarea {
    width: min(260px, calc(100vw - 40px));
    height: 78px;
    font-size: 16px;
  }

  .who-are-you-comment {
    left: 20px;
    bottom: calc(50px + env(safe-area-inset-bottom));
    width: min(195px, calc(100vw - 40px));
    max-height: 188px;
    padding-block: 15px;
    -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 15px, #000 calc(100% - 15px), transparent 100%);
    mask-image: linear-gradient(to bottom, transparent 0, #000 15px, #000 calc(100% - 15px), transparent 100%);
  }

  .who-are-you-comment-list {
    gap: 12px;
  }

  .who-are-you-comment-item {
    grid-template-columns: 22px minmax(0, 1fr);
    column-gap: 7px;
  }

  .who-are-you-avatar {
    width: 22px;
    height: 22px;
  }

  .who-are-you-comment-name,
  .who-are-you-comment-text {
    font-size: 12px;
  }

  .who-are-you-comment-date {
    font-size: 8px;
  }

  .music-toggle {
    width: 50px;
    height: 50px;
  }

  .music-float {
    --player-width: min(64vw, 275px);
    right: 72px;
    bottom: calc(22px + env(safe-area-inset-bottom));
  }

  html[data-webv2-route="music"] .stage.music-page-stage {
    align-items: center;
    justify-content: center;
  }

  .music-player[data-music-page="true"],
  html.music-page-document .music-player,
  html[data-webv2-route="music"] .music-player {
    position: fixed;
    inset: 0;
    z-index: 18;
    display: block !important;
    pointer-events: auto;
  }

  .music-player[data-music-page="true"][hidden],
  html.music-page-document .music-player[hidden],
  html[data-webv2-route="music"] .music-player[hidden] {
    display: block !important;
  }

  .music-player[data-music-page="true"] .music-toggle,
  html.music-page-document .music-toggle,
  html[data-webv2-route="music"] .music-toggle {
    display: none;
  }

  .music-player[data-music-page="true"] .music-float,
  .music-player[data-music-page="true"][data-player-open="true"] .music-float,
  html.music-page-document .music-float,
  html.music-page-document .music-player[data-player-open="true"] .music-float,
  html[data-webv2-route="music"] .music-float,
  html[data-webv2-route="music"] .music-player[data-player-open="true"] .music-float {
    --player-width: min(129.6vw, 581px);
    --player-height: calc(var(--player-width) * 451 / 723);
    --music-player-width: var(--player-width);
    --music-player-height: var(--player-height);
    position: fixed;
    left: 50% !important;
    top: 46% !important;
    right: auto !important;
    bottom: auto !important;
    width: var(--player-width) !important;
    height: var(--player-height) !important;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    pointer-events: auto !important;
    transform: translate(-50%, -50%) !important;
    transform-origin: center center;
    transition: none;
    touch-action: manipulation;
  }

  .music-player[data-music-page="true"] .music-hit-area,
  html.music-page-document .music-hit-area,
  html[data-webv2-route="music"] .music-hit-area {
    pointer-events: auto;
  }

  /* Mobile: remove the custom volume modifier (use hardware buttons). */
  .music-volume {
    display: none;
  }

  /* Mobile: re-center the display now that the volume bar is gone. */
  .music-display {
    top: 38.5%;
    height: 11.25%;
  }

  /* On mobile the desktop clamp formula was always hitting the minimum value,
     so resizing the player didn't change the title font-size. */
  .music-track-title {
    font-size: clamp(6px, calc(var(--music-player-width) * 0.024), 14px);
    text-align: left;
    transform: none;
    padding: 1px 0;
  }

  .music-track-title-text {
    max-width: none;
  }

  .music-time-row {
    justify-content: center;
    gap: 4px;
    transform: none;
    margin-bottom: 2px;
  }

  .music-current-time,
  .music-duration {
    font-size: clamp(9px, calc(var(--music-player-width) * 0.03), 18px);
    line-height: 0.95;
  }

  .music-duration {
    display: inline;
  }

  .music-duration::before {
    content: "/ ";
  }

  .music-float[data-player-compact="true"] .music-track-title {
    transform: none;
  }

  .music-float[data-player-compact="true"] .music-track-title[data-title-overflow="true"] {
    transform: none;
  }

  .music-float[data-player-compact="true"] .music-volume {
    display: none;
  }

  .music-resize-handle {
    display: none;
  }

  .music-float::after {
    display: none;
  }

  .music-player[data-music-page="true"] .music-resize-handle,
  html.music-page-document .music-resize-handle,
  html[data-webv2-route="music"] .music-resize-handle {
    display: none;
    pointer-events: none;
  }

  .music-player[data-music-page="true"] .music-float::after,
  html.music-page-document .music-float::after,
  html[data-webv2-route="music"] .music-float::after {
    display: none;
  }

  .about-launch {
    position: static;
  }

  .contact {
    position: fixed;
    top: calc(18px + env(safe-area-inset-top));
    left: 50%;
    right: auto;
    transform: translateX(-50%);
    text-align: center;
  }

  .stage {
    order: 1;
    width: 100%;
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    overflow: hidden;
    touch-action: manipulation;
  }

  .stage.ai-videos-page-stage {
    align-items: flex-start;
  }

  .image-stage {
    width: 100vw;
    height: 100%;
    max-height: none;
    padding: 28px 20px 0;
    box-sizing: border-box;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    touch-action: manipulation;
  }

  html[data-webv2-route="index"] .image-stage {
    padding: calc(4px + env(safe-area-inset-top)) 20px calc(18px + env(safe-area-inset-bottom));
    align-items: center;
  }

  /* Mobile image pages: reduce top padding and reserve some bottom space for the fixed menu/home icon. */
  html[data-webv2-route]:not([data-webv2-route="index"]) .image-stage {
    padding-top: calc(12px + env(safe-area-inset-top));
    padding-bottom: calc(12px + env(safe-area-inset-bottom) + 60px);
  }

  html[data-webv2-route="ai-videos"] .image-stage {
    height: 100svh;
    padding: 0 0 calc(60px + env(safe-area-inset-bottom));
    align-items: stretch;
  }

  .image-stage img,
  .image-stage video {
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    object-position: center center;
    display: block;
  }

  .image-stage img[src^="data:image/gif"] {
    display: none !important;
  }

  .image-stage img.is-portrait {
  object-fit: contain;
}

  .image-stage img.is-landscape {
    object-fit: contain;
  }

  .sidebar {
    position: fixed;
    top: auto;
    bottom: calc(26px + env(safe-area-inset-bottom));
    /* Center within the *safe-area* (important for iOS landscape where left/right insets can differ). */
    left: calc(50% + (env(safe-area-inset-left) - env(safe-area-inset-right)) * 0.5);
    width: auto;
    max-width: none;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 0;
    padding: 0;
    box-sizing: border-box;
    transform: translateX(-50%);
    z-index: 20;
    pointer-events: none;
  }

  /* Mobile menu page: center the vertical navigation. */
  html[data-webv2-route="menu"] .sidebar {
    top: 50%;
    bottom: auto;
    transform: translate(-50%, -50%);
  }

  html[data-webv2-route="index"] .sidebar {
    display: none;
  }

  /* Mobile non-index: keep only a small Home icon so it doesn't collide with content. */
  html[data-webv2-route]:not([data-webv2-route="index"]):not([data-webv2-route="menu"]) .menu > :not(.mobile-home-link) {
    display: none !important;
  }

  /* Mobile non-index: single icon should not reserve extra grid tracks. */
  html[data-webv2-route]:not([data-webv2-route="index"]):not([data-webv2-route="menu"]) .menu {
    grid-template-columns: max-content;
  }

  .menu a.mobile-home-link {
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    padding: 0;
    border: 0;
    background: transparent;
    text-decoration: none;
    color: transparent;
  }

  .menu a.mobile-home-link img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
    image-rendering: pixelated;
    image-rendering: crisp-edges;
  }

  @media (orientation: landscape) {
    html[data-webv2-route]:not([data-webv2-route="index"]):not([data-webv2-route="menu"]) .sidebar {
      left: calc(12px + env(safe-area-inset-left));
      right: auto;
      bottom: calc(12px + env(safe-area-inset-bottom));
      transform: none;
      align-items: flex-start;
    }
  }

  .sidebar-top {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 0;
    pointer-events: auto;
  }

  .menu {
    display: grid;
    grid-template-columns: repeat(4, max-content);
    align-items: center;
    justify-content: center;
    gap: 14px;
    margin: 0;
  }

  /* Mobile menu page: show a centered vertical menu. */
  html[data-webv2-route="menu"] .menu {
    grid-template-columns: max-content;
    gap: 12px;
  }

  /* Mobile menu page: make the menu buttons ~15% bigger. */
  html[data-webv2-route="menu"] {
    --mobile-index-menu-scale: 1.15;
  }

  html[data-webv2-route="menu"] .menu a,
  html[data-webv2-route="menu"] .menu button {
    width: calc(93.5px * var(--mobile-index-menu-scale));
    height: calc(32.6px * var(--mobile-index-menu-scale));
    flex: 0 0 calc(93.5px * var(--mobile-index-menu-scale));
  }

  html[data-webv2-route="menu"] .menu a.about-launch {
    width: calc(93.5px * var(--mobile-index-menu-scale));
    height: calc(32.6px * var(--mobile-index-menu-scale));
    flex: 0 0 calc(93.5px * var(--mobile-index-menu-scale));
    justify-self: center;
  }

  html[data-webv2-route="menu"] .menu a.mobile-contact-launch {
    width: auto;
    height: auto;
    min-height: 0;
    flex: 0 0 auto;
    justify-self: center;
    margin-top: 2px;
    color: #314f9b;
    font-family: "Times New Roman", Times, serif;
    font-size: 17px;
    line-height: 1.1;
    text-decoration: underline;
    text-transform: lowercase;
    background: transparent;
  }

  .mobile-menu-tools {
    display: none;
  }

  html[data-webv2-route="menu"] .mobile-menu-tools {
    width: calc(93.5px * var(--mobile-index-menu-scale));
    display: grid;
    grid-template-columns: repeat(2, 34px);
    align-items: center;
    justify-items: center;
    justify-content: center;
    column-gap: 12px;
    margin: 0;
  }

  .mobile-menu-who,
  .mobile-menu-music {
    width: 34px;
    height: 38px;
    min-height: 0;
    padding: 0;
    border: 0;
    background: transparent;
    line-height: 0;
  }

  .mobile-menu-who img,
  .mobile-menu-music img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
    image-rendering: pixelated;
    image-rendering: crisp-edges;
    pointer-events: none;
  }

  html[data-webv2-route="menu"] .editorial-spin,
  html[data-webv2-route="menu"] .live-spin,
  html[data-webv2-route="menu"] .my-pictures-spin {
    --frame-width: calc(93.5px * var(--mobile-index-menu-scale));
    --frame-height: calc(32.6px * var(--mobile-index-menu-scale));
  }

  html[data-webv2-route="menu"] .about-spin {
    --frame-width: calc(93.5px * var(--mobile-index-menu-scale));
    --frame-height: calc(32.6px * var(--mobile-index-menu-scale));
  }

  .contact a {
    font-size: 16px;
    line-height: 1.12;
  }

  .menu a,
  .menu button {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 93.5px;
    height: 32.6px;
    flex: 0 0 93.5px;
    text-align: center;
    gap: 0;
  }

  html[data-webv2-route="menu"] .editorial-spin,
  html[data-webv2-route="menu"] .live-spin,
  html[data-webv2-route="menu"] .my-pictures-spin,
  html[data-webv2-route="menu"] .about-spin {
    position: relative;
  }

  html[data-webv2-route="menu"] .editorial-spin::after,
  html[data-webv2-route="menu"] .live-spin::after,
  html[data-webv2-route="menu"] .my-pictures-spin::after,
  html[data-webv2-route="menu"] .about-spin::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 2;
    box-shadow:
      inset 2px 2px 0 rgba(255, 255, 255, 0.48),
      inset -2px -2px 0 rgba(18, 18, 18, 0.72);
    pointer-events: none;
  }

  .menu a.about-launch {
    width: 93.5px;
    height: 32.6px;
    flex: 0 0 93.5px;
  }

  html[data-webv2-route="menu"] .menu .mobile-menu-who,
  html[data-webv2-route="menu"] .menu .mobile-menu-music {
    width: 34px;
    height: 38px;
    flex: 0 0 34px;
    min-width: 0;
    min-height: 0;
    overflow: hidden;
    justify-self: center;
  }

  html[data-webv2-route="menu"] .menu .mobile-menu-who img,
  html[data-webv2-route="menu"] .menu .mobile-menu-music img {
    width: 100%;
    height: 100%;
    object-fit: contain;
  }

  .about-spin {
    background-image: url("images/ui/about-button.png");
  }

  .my-pictures-spin {
    background-image: url("images/ui/my-pictures-can-breathe-button.png");
  }

  .about-launch {
    line-height: 0;
    margin: 0;
  }

  .contact {
    margin: 0;
    top: calc(18px + env(safe-area-inset-top));
    left: 50%;
    right: auto;
    transform: translateX(-50%);
    text-align: center;
  }

  .my-pictures-launch {
    position: static !important;
    margin: 0;
  }

  .contact-page-stage {
    align-items: center;
    justify-content: center;
  }

  html[data-webv2-route="who-are-you"] .stage.who-page-stage {
    align-items: center;
    justify-content: center;
  }

  html[data-webv2-route="who-are-you"] .sidebar {
    z-index: 140;
  }

  html[data-webv2-route="who-are-you"] .who-are-you-window {
    position: fixed;
    left: 50% !important;
    top: calc(50% - 14px) !important;
    right: auto !important;
    bottom: auto !important;
    width: min(348px, calc(100vw - 28px)) !important;
    height: min(76svh, 620px) !important;
    min-width: 0;
    max-width: calc(100vw - 28px);
    aspect-ratio: auto;
    transform: translate(-50%, -50%);
    opacity: 1;
    pointer-events: auto;
  }

  html[data-webv2-route="who-are-you"] .who-are-you-window[data-open="false"] {
    opacity: 1;
    pointer-events: auto;
  }

  html[data-webv2-route="who-are-you"] .who-are-you-window-frame {
    width: 100%;
    height: 100%;
    background: transparent;
  }

  html[data-webv2-route="who-are-you"] .who-are-you-window-frame::after {
    content: none;
  }

  html[data-webv2-route="who-are-you"] .who-are-you-window-titlebar {
    display: none;
  }

  html[data-webv2-route="who-are-you"] .who-are-you-window-titlebar button,
  html[data-webv2-route="who-are-you"] .who-are-you-window-resize {
    display: none;
  }

  html[data-webv2-route="who-are-you"] .who-are-you-window-content {
    position: static;
    width: 100%;
    height: 100%;
    padding: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: 8px;
    background: transparent;
  }

  html[data-webv2-route="who-are-you"] .who-are-you-comment {
    position: static;
    flex: 1 1 auto;
    width: 100%;
    min-height: 0;
    max-height: none;
    padding: 9px 10px 12px;
    background: #ffffff;
    border: 1px solid #7e858d;
    box-shadow: none;
    -webkit-mask-image: none;
    mask-image: none;
  }

  html[data-webv2-route="who-are-you"] .who-are-you-comment-list {
    gap: 8px;
  }

  html[data-webv2-route="who-are-you"] .who-are-you-comment-name,
  html[data-webv2-route="who-are-you"] .who-are-you-comment-text {
    font-size: 13px;
    line-height: 1.18;
  }

  html[data-webv2-route="who-are-you"] .who-are-you-box {
    position: static;
    display: grid;
    flex: 0 0 auto;
    width: 100%;
    grid-template-columns: minmax(0, 1fr) 68px;
    grid-template-rows: 34px 78px;
    gap: 6px;
  }

  html[data-webv2-route="who-are-you"] .who-are-you-box[hidden] {
    display: none;
  }

  html[data-webv2-route="who-are-you"] .who-are-you-box input,
  html[data-webv2-route="who-are-you"] .who-are-you-box textarea {
    width: 100%;
    height: 100%;
    padding: 7px 9px;
    border: 1px solid #7e858d;
    background: #ffffff;
    color: #11161C;
    font-size: 16px;
    line-height: 1.15;
    caret-color: #11161C;
  }

  html[data-webv2-route="who-are-you"] .who-are-you-box input {
    grid-column: 1 / 3;
    grid-row: 1;
  }

  html[data-webv2-route="who-are-you"] .who-are-you-box textarea {
    grid-column: 1;
    grid-row: 2;
    resize: none;
  }

  html[data-webv2-route="who-are-you"] .who-are-you-send {
    grid-column: 2;
    grid-row: 2;
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    align-self: stretch;
    justify-self: stretch;
    font-size: 13px;
  }

  .contact-page-panel {
    width: min(310px, calc(100vw - 38px));
    padding-bottom: calc(48px + env(safe-area-inset-bottom));
  }

  .contact-page-form {
    grid-template-columns: minmax(0, 1fr) 62px;
    grid-template-rows: 24px 24px minmax(180px, 42vh) 22px;
    gap: 6px;
  }

  .contact-page-form input {
    height: 24px;
    padding: 3px 6px;
    font-size: 16px;
  }

  .contact-page-form textarea {
    padding: 6px;
    font-size: 16px;
  }

  .contact-page-form button {
    width: 62px;
    height: 22px;
  }

  .ai-video-empty {
    font-size: 16px;
  }

  .ai-video-window {
    --popup-video-width: min(62vw, 336px);
    top: calc(50% - 12px);
    width: calc(var(--popup-video-width) + 34px);
  }

  .ai-video-window-body {
    padding: 10px 10px 9px;
  }

  .ai-video-window-panel {
    padding: 8px;
  }

  .ai-video-window-titlebar {
    min-height: 26px;
    font-size: 12px;
  }


  /* HOME PAGE */
  .home-stage {
    width: 100%;
    height: 100%;
    padding: 28px 20px 0;
    justify-content: center;
    align-items: center;
  }

  .home-image-caption {
    display: block;
    right: calc(10px + env(safe-area-inset-right));
    bottom: calc(9px + env(safe-area-inset-bottom));
    width: min(72vw, 260px);
    color: rgba(80, 80, 80, 0.72);
    font-size: 9px;
    line-height: 1.1;
    text-align: right;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  /* ABOUT PAGE */
  .about-stage {
    width: 100%;
    height: auto;
    min-height: 100%;
    padding: calc(86px + env(safe-area-inset-top)) 20px calc(86px + env(safe-area-inset-bottom));
    justify-content: center;
    align-items: center;
    overflow: hidden;
    -webkit-overflow-scrolling: auto;
  }

  html[data-webv2-route="about"] .stage {
    align-items: center;
  }

  .about-text {
    max-width: 100%;
    width: 100%;
    padding: 0;
    font-size: 16px;
    line-height: 1.35;
    text-align: center;
  }

  .about-poem {
    margin-bottom: 40px;
  }

  .about-body {
    margin-bottom: 40px;
  }

  /* Ocultar funcionalidad de comentarios en móviles */
}

@media (max-width: 900px) and (pointer: coarse) {
  /* Hide comments only on real touch/mobile layouts, not on narrow desktop windows. */
  html:not([data-webv2-route="who-are-you"]) .who-are-you-button,
  html:not([data-webv2-route="who-are-you"]) .who-are-you-box,
  html:not([data-webv2-route="who-are-you"]) .who-are-you-comment {
    display: none !important;
  }
}
