body {
 background: black;
 overflow: hidden;
}

html, body {
  margin: 0;
  padding: 0;
}

#main {
  width: 100vw;
  height: 100vh;
  width: 100dvw;
  height: 100dvh;

  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;

  display: flex;          /* Use flexbox for centering */
  justify-content: center;/* Horizontal center */
  align-items: center;    /* Vertical center */

}

#main.images-ready {
  opacity: 1;
  pointer-events: auto;
}


#main-img-container,
#blur-img-container {
  position: absolute;
  width: 100vw;
  height: 100vh;
  width: 100dvw;
  height: 100dvh;

  display: flex;
  align-items: center;
  justify-content: center;

  background-size: cover;
  background-position: top;
  background-repeat: no-repeat;

  opacity: 1;

  -webkit-transition: opacity 0.5s ease, -webkit-transform 2s ease-out;
  transition: opacity 0.5s ease, transform 2s ease-out;
}

@media (min-width: 1024px) {
	#main-img-container, #blur-img-container { 
    width: 50vw; 
    width: 50dvw; 
    transform-origin: center 75%;
    -webkit-transform-origin: center 75%;
  }
}	

#main-img-container {
  z-index: 1;
  background-image: url('/images/amy_main_no_bkgd.png');

  cursor: pointer;

}

#main-img-container::before {
  content: '';

  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;

   background-size: cover;
  background-position: top;
  background-repeat: no-repeat;
  background-image: url('/images/amy_main_blk_no_bkgd.png');
  opacity: 0;

  transform-origin: center 75%;
  -webkit-transform-origin: center 75%;

  -webkit-transition: opacity 0.5s ease, -webkit-transform 1s ease-in-out;
  transition: opacity 0.5s ease, transform 1s ease-in-out;
}

#main-img-container.clicked::before {
  opacity: 1;
  -webkit-transform: scale(15);
  transform: scale(15);
}

#blur-img-container {
  background-image: url('/images/amy_main.jpeg');
  filter: blur(0.20vh);
  filter: blur(0.20dvh);
  -webkit-filter: blur(0.20dvh);
}

#main-header-container {
  position: absolute;
  top: 5vh;
  top: 5dvh;


  z-index: 11;

  font-family: 'Courier New', Courier, monospace;
  font-size: 4vh;
  font-size: 4dvh;
  text-align: center;
  text-shadow: 0 0 1vh #fff;
  text-shadow: 0 0 1dvh #fff;
  color: black;
  padding-left: 0.5vw;
  padding-right: 0.5vw;
  border-radius: 5%;

  backdrop-filter: hue-rotate(15deg) blur(5px);
  -webkit-backdrop-filter: hue-rotate(15deg) blur(4px); /* Safari support */

  box-shadow: -0.4vh 0.8vh rgba(0,0,0,0.6);
  box-shadow: -0.4dvh 0.8dvh rgba(0,0,0,0.6);

  -webkit-transition: -webkit-transform 1s ease, text-shadow 1s ease, color 1s ease, opacity 1s ease;
  transition: transform 1s ease, text-shadow 1s ease, color 1s ease, opacity 1s ease;
}


@media (min-width: 1024px) {
  #main-header-container {
    left: 38vw;
    top: 10vh;
    left: 38dvw;
    top: 10dvh;

    font-size: 5vh;
    font-size: 5dvh;

    -webkit-backdrop-filter: hue-rotate(15deg) blur(10px);
    backdrop-filter: hue-rotate(15deg) blur(10px);
  }
}

#p-logo {
  width: 1em;
  height: 1em;

  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  background-image: url('/images/p_logo_no_bkgd_small.png');
  vertical-align:  top;
  display: inline-block;
  
  margin-left: -0.3em;

  overflow: hidden;
}

#click-to-enter {
  z-index: 2;
  position:absolute;
  top: 33vh;
  top: 33dvh;

  display: flex;
  align-items: center;
  justify-content: center;

  height: 5vh;
  height: 5dvh;

  text-align: center;
  font-family: Georgia, 'Times New Roman', Times, serif;
  font-size: 2vh;
  font-size: 2dvh;
  font-weight: bold;
  animation: text-glow 0.5s ease-in-out infinite alternate;
  
  cursor: pointer;

   backdrop-filter: hue-rotate(15deg) blur(1px);
  -webkit-backdrop-filter: hue-rotate(15deg) blur(1px); /* Safari support */

  -webkit-transition: opacity 0.5s linear;
  transition: visibility 0s, opacity 0.5s linear;
}

@media (min-width: 1024px) {
  #click-to-enter {
    top: 48vh;
    left: 44vw;
    top: 48dvh;
    left: 44dvw;
  }
}

#serious-mode {
  z-index: 11;
  position:absolute;

  width: 7em;
  height: 3em;
  
  border-radius: 15%;

  background: rgb(36, 35, 35);

  color: #f5f5f5;

  border: 1px solid rgba(255,255,255,0.3);

  backdrop-filter: blur(1dvh);
  -webkit-backdrop-filter: blur(1dvh);

  box-shadow: 0 0 1dvh rgba(255, 255, 255, 0.4);
  
  text-align: center;
  font-family: Georgia, 'Times New Roman', Times, serif;

  opacity: 0;
  visibility: hidden;

  cursor: pointer;

  -webkit-transition: visibility 0s, opacity 1s ease;
  transition: visibility 0s, opacity 1s ease;
}

#serious-mode.fun-mode {
  color: #fff;
  background: linear-gradient(
    135deg,
    #ff3d6e,
    #ff9f1c,
    #ffe347,
    #20d6a1,
    #25b9f5,
    #9a68ff,
    #ff3d6e
  );
  border-color: rgba(255, 255, 255, 0.8);
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.75);
  box-shadow: 0 0 1.2dvh rgba(255, 255, 255, 0.8), 0 0 2.5dvh rgba(255, 61, 110, 0.65);
}

#serious-mode.fun-mode:hover {
  animation: fun-mode-colors 2.4s linear infinite;
}

#serious-mode.fun-mode:disabled {
  filter: none;
}

@keyframes fun-mode-colors {
  from {
    filter: hue-rotate(0deg) brightness(1.2);
  }
  to {
    filter: hue-rotate(360deg) brightness(1.2);
  }
}

#serious-mode-effects {
  position: fixed;
  inset: 0;
  z-index: 10;
  overflow: hidden;
  pointer-events: none;
}

#serious-mode-panel {
  position: fixed;
  top: 14dvh;
  left: 51%;
  z-index: 8;
  display: flex;
  width: 70dvw;
  height: 80dvh;
  flex-direction: column;
  box-sizing: border-box;
  overflow: hidden;
  padding: 1.2dvh 1.2dvw;
  border: 1px solid rgba(255, 255, 255, 0.38);
  border-radius: 1dvh;
  background: rgba(8, 12, 14, 0.88);
  color: #f3f3f0;
  box-shadow: 0 1dvh 4dvh rgba(0, 0, 0, 0.48);
  backdrop-filter: blur(1.2dvh);
  -webkit-backdrop-filter: blur(1.2dvh);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 1.2dvh) scale(0.98);
  transition: opacity 0.35s ease, transform 0.35s ease;
}

#serious-mode-panel[hidden] {
  display: none;
}

#serious-mode-panel.active {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, 0) scale(1);
}

.serious-mode-tabs {
  display: flex;
  flex: 0 0 auto;
  gap: 0.8dvw;
  border-bottom: 1px solid rgba(255, 255, 255, 0.24);
}

.serious-mode-tab {
  position: relative;
  padding: 1dvh 1.1dvw;
  border: 0;
  background: transparent;
  color: #c5cbd0;
  font: 600 1.8dvh/1.3 Georgia, 'Times New Roman', serif;
  cursor: pointer;
}

.serious-mode-tab::after {
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 0.25dvh;
  background: transparent;
  content: '';
}

.serious-mode-tab.active {
  color: #fff;
}

.serious-mode-tab.active::after {
  background: #ff9f1c;
}

.serious-mode-tab:focus-visible {
  outline: 2px solid #ffe347;
  outline-offset: -2px;
}

.serious-mode-tab-panel {
  min-height: 0;
  flex: 1;
  overflow: auto;
  padding-top: 1dvh;
  scrollbar-color: rgba(220, 225, 229, 0.48) transparent;
  scrollbar-width: medium;
}

.serious-mode-tab-panel::-webkit-scrollbar {
  width: 1.6dvh;
}

.serious-mode-tab-panel::-webkit-scrollbar-track {
  background: transparent;
}

.serious-mode-tab-panel::-webkit-scrollbar-thumb {
  border: 0.2dvh solid transparent;
  border-radius: 1dvh;
  background: rgba(220, 225, 229, 0.42);
  background-clip: padding-box;
}

.serious-mode-tab-panel::-webkit-scrollbar-thumb:hover {
  background: rgba(240, 243, 245, 0.7);
  background-clip: padding-box;
}

.serious-mode-tab-panel[hidden] {
  display: none;
}

#serious-mode-short-films-list,
#serious-mode-screenplays-list {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0.8dvh 1dvw;
  margin: 0;
  padding: 0;
  list-style: none;
}

.serious-mode-project {
  display: grid;
  grid-template-columns: minmax(12dvh, 18dvw) minmax(0, 1fr);
  align-items: center;
  gap: 1dvw;
  min-height: 38dvh;
  padding: 1dvh 1dvw;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 0.6dvh;
  background: rgba(255, 255, 255, 0.06);
}

.serious-mode-project-text-only {
  grid-template-columns: minmax(0, 1fr);
  min-height: 0;
}

.serious-mode-project-art {
  position: relative;
  display: grid;
  width: 100%;
  min-height: 30dvh;
  place-items: center;
  overflow: hidden;
  border-radius: 0.4dvh;
  background: rgba(255, 255, 255, 0.04);
}

.serious-mode-project-coming-soon {
  position: absolute;
  top: 2.5dvh;
  left: 50%;
  width: max-content;
  z-index: 1;
  padding: 0.6dvh 1dvw;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.45);
  color: #ffe347;
  font: bold 2.4dvh/1.3 Georgia, 'Times New Roman', serif;
  text-align: center;
}

.serious-mode-project-art img {
  display: block;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.serious-mode-project-copy {
  min-width: 0;
  padding-top: 0.5dvh;
}

.serious-mode-project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6dvh 0.5dvw;
  margin: 1dvh 0 0;
  padding: 0;
  list-style: none;
}

.serious-mode-project-tags li {
  display: flex;
  align-items: center;
  padding: 0.45dvh 0.7dvw 0.25dvh 0.7dvw;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 0.5dvh;
  background: rgba(255, 255, 255, 0.08);
  color: #d8dcdf;
  font: 1.35dvh/1.25 'Courier New', Courier, monospace;
}

.serious-mode-project-video {
  display: block;
  width: min(100%, 560px);
  aspect-ratio: 16 / 9;
  margin-top: 1.2dvh;
  border: 0;
  border-radius: 0.5dvh;
  background: rgba(0, 0, 0, 0.35);
}

.serious-mode-project-concept-art {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 150px), 1fr));
  gap: 0.8dvh 0.6dvw;
  margin-top: 1.2dvh;
}

.serious-mode-project-concept-art img {
  display: block;
  width: 100%;
  max-height: 18dvh;
  aspect-ratio: 4 / 3;
  border-radius: 0.4dvh;
  background: rgba(255, 255, 255, 0.04);
  object-fit: contain;
}

.serious-mode-project h3 {
  margin: 0 0 0.5dvh;
  color: #fff;
  font: bold 2.4dvh/1.3 Georgia, 'Times New Roman', serif;
}

.serious-mode-project p {
  margin: 0;
  color: #e2e5e7;
  font: 1.8dvh/1.4 Georgia, 'Times New Roman', serif;
}

#serious-mode-media-list {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-content: start;
  gap: 1dvh 1dvw;
  margin: 0;
  padding: 0;
  list-style: none;
}

.serious-mode-media-link {
  display: grid;
  min-height: 12dvh;
  grid-template-columns: minmax(8dvh, 30%) minmax(0, 1fr);
  align-items: center;
  gap: 0.8dvw;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 0.6dvh;
  background: rgba(255, 255, 255, 0.06);
  color: #f3f3f0;
  text-decoration: none;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.serious-mode-media-link:hover,
.serious-mode-media-link:focus-visible {
  border-color: rgba(255, 255, 255, 0.8);
  background: rgba(255, 255, 255, 0.14);
}

.serious-mode-media-link img {
  display: block;
  width: 100%;
  height: 12dvh;
  object-fit: contain;
  background: rgba(255, 255, 255, 0.04);
}

.serious-mode-media-link-copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 0.5dvh;
  padding: 0.7dvh 0.7dvw 0.7dvh 0;
}

.serious-mode-media-source {
  color: #c5cbd0;
  font: bold 1.35dvh/1.25 Arial, sans-serif;
}

.serious-mode-media-name {
  font: 1.5dvh/1.3 Georgia, 'Times New Roman', serif;
}

@media (max-width: 700px) {
  #serious-mode-panel {
    top: 17dvh;
    width: 94dvw;
    height: 62dvh;
    padding: 1dvh 2dvw;
  }

  .serious-mode-tab {
    padding: 1dvh 2dvw;
    font-size: 1.7dvh;
  }

  #serious-mode-short-films-list,
  #serious-mode-screenplays-list,
  #serious-mode-media-list {
    grid-template-columns: 1fr;
  }

  .serious-mode-project {
    grid-template-columns: minmax(10dvh, 28dvw) minmax(0, 1fr);
    min-height: 27dvh;
  }

  .serious-mode-project-text-only {
    grid-template-columns: minmax(0, 1fr);
    min-height: 0;
  }

  .serious-mode-project-art {
    height: 25dvh;
    min-height: 25dvh;
  }

  .serious-mode-project h3 {
    font-size: 1.8dvh;
  }

  .serious-mode-project p,
  .serious-mode-media-name {
    font-size: 1.55dvh;
  }

  .serious-mode-project-tags li {
    font-size: 1.25dvh;
  }

  .serious-mode-project-concept-art {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 110px), 1fr));
  }

  .serious-mode-project-concept-art img {
    max-height: 14dvh;
  }
}

.serious-mode-confetti,
.serious-mode-balloon {
  position: absolute;
  display: block;
  pointer-events: none;
  will-change: transform, opacity;
}

.serious-mode-confetti {
  width: var(--piece-size);
  height: var(--piece-height);
  background: var(--piece-color);
  opacity: 0;
  animation: serious-mode-confetti-burst var(--duration) cubic-bezier(0.12, 0.72, 0.2, 1) var(--delay) forwards;
}

@keyframes serious-mode-confetti-burst {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.3);
  }
  12% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translate(calc(-50% + var(--travel-x)), calc(-50% + var(--travel-y))) rotate(var(--spin)) scale(0.7);
  }
}

.serious-mode-balloon {
  width: 2.7dvh;
  height: 3.5dvh;
  border-radius: 50% 50% 46% 46%;
  background: var(--balloon-color);
  box-shadow: inset -0.5dvh -0.4dvh 0 rgba(0, 0, 0, 0.12), inset 0.4dvh 0.3dvh 0 rgba(255, 255, 255, 0.25);
  opacity: 0;
  animation: serious-mode-balloon-rise var(--duration) ease-out var(--delay) forwards;
}

.serious-mode-balloon::before {
  position: absolute;
  bottom: -0.55dvh;
  left: 50%;
  width: 0.7dvh;
  height: 0.7dvh;
  background: var(--balloon-color);
  content: '';
  transform: translateX(-50%) rotate(45deg);
}

.serious-mode-balloon::after {
  position: absolute;
  top: calc(100% + 0.3dvh);
  left: 50%;
  width: 1px;
  height: 4dvh;
  background: rgba(255, 255, 255, 0.75);
  content: '';
  transform: rotate(-8deg);
  transform-origin: top;
}

@keyframes serious-mode-balloon-rise {
  0% {
    opacity: 0;
    transform: translate(-50%, 0) rotate(0);
  }
  12% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translate(calc(-50% + var(--balloon-drift)), var(--balloon-rise)) rotate(var(--balloon-tilt));
  }
}

#serious-mode:active {
  transform: scale(0.95);
  box-shadow: 0 0 0 1px rgba(255,255,255,0.4), inset 0 2px 5px rgba(0,0,0,0.4);
}

#serious-mode:disabled {
  cursor: not-allowed;
  filter: grayscale(0.7);
}

#serious-mode:disabled:hover:not(.fun-mode) {
  background: rgba(15, 15, 15, 0.85);
  color: #f5f5f5;
  box-shadow: 0 0 1dvh rgba(255, 255, 255, 0.4);
}

#serious-mode:disabled:active {
  transform: none;
}


@media (min-width: 1024px) {
  #serious-mode {
    display: grid;
    place-items: center;
    box-sizing: border-box;
    top: 88vh;
    left: 88vw;
    top: 88dvh;
    left: 88dvw;
    font-size: 3vh;
    font-size: 3dvh;
    padding: 0 1.5vw;
    padding: 0 1.5dvw;
    border-radius: 10%;
  }
}

#brain {
  z-index: 2;
  /*background-color: wheat;*/

  position: absolute;
  top: 44dvh;
  left: 48vw;

  width: 9dvh;
  height: 9dvh;

  /*background-image: url('/images/brain_outline_narrow.png');
  background-size: contain;
  background-position: top;
  background-repeat: no-repeat;*/

  cursor: pointer;
}


#main-footer {
  position: absolute;
  top: 88%;
  text-align: center;
  z-index: 11;

  transition: transform 1s ease;
  -webkit-transition: transform 1s ease;
}

@media (min-width: 1024px) {
  #main-footer {
    top: 87%;
  }
}

.fa {
  padding: 2vh;
  padding: 2dvh;

  font-size: 4vh;
  font-size: 4dvh;

  width: 4vh;
  width: 4dvh;

  text-align: center;
  text-decoration: none;
  margin: 2.5vh 1vh;
  margin: 2.5dvh 1dvh;
  border-radius: 50%;
}

@media (min-width: 1024px) {
  .fa {
    margin: 2.5dvh 0.5dvh;
  }
}

.fa:hover,
#serious-mode:hover {
  box-shadow: 0 0 0 0.4dvh rgba(255, 255, 255, 0.8), 0 0 2dvh rgba(255, 255, 255, 0.6);
  filter: brightness(1.5);
}
.fa-linkedin {
  background: #007bb5;
  color: white;
}

#sheet-focus-close:hover {
  box-shadow: 0 0 0 0.4dvh rgba(255, 255, 255, 0.8), 0 0 2dvh rgba(255, 255, 255, 0.6);
}

.fa-youtube {
  background: #bb0000;
  color: white;
}

.fa-instagram {
  background: #125688;
  color: white;
}

.fa-envelope-o {
  background: #02467e;
  color: white;
}

@keyframes text-glow {
  from {
  text-shadow: 0 0 0vh #fff, 0 0 1vh #fff, 0 0 2vh #fff;
  text-shadow: 0 0 0dvh #fff, 0 0 1dvh #fff, 0 0 2dvh #fff;
  }
  to {
  text-shadow: 0 0 2vh #fff, 0 0 3vh #fff, 0 0 3vh #fff;
  text-shadow: 0 0 2dvh #fff, 0 0 3dvh #fff, 0 0 3dvh #fff;
  }
}

@media (min-width: 1024px) {
  #sheet-focus-ui {
    position: fixed;
    inset: 0;
    z-index: 5;
    pointer-events: none;
  }

  #sheet-focus-ui[hidden] {
    display: none;
  }

  #sheet-focus-close {
    position: absolute;
    top: 3dvh;
    right: 3dvw;
    z-index: 1;
    display: grid;
    place-items: center;
    width: 6dvh;
    height: 6dvh;
    padding: 0;
    border: 0.15dvh solid rgba(255, 255, 255, 0.72);
    border-radius: 50%;
    background: rgba(10, 14, 16, 0.82);
    color: white;
    font-size: 0;
    cursor: pointer;
    pointer-events: auto;
  }

  #sheet-focus-close::before,
  #sheet-focus-close::after {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 2.5dvh;
    height: 0.25dvh;
    background: currentColor;
    content: '';
  }

  #sheet-focus-close::before {
    transform: translate(-50%, -50%) rotate(45deg);
  }

  #sheet-focus-close::after {
    transform: translate(-50%, -50%) rotate(-45deg);
  }

  #sheet-focus-burger-panel {
    position: absolute;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: max-content;
    box-sizing: border-box;
    overflow: hidden;
    padding: 2dvh 1.5dvw;
    border: 0.15dvh solid rgba(255, 255, 255, 0.36);
    border-radius: 0.5dvh;
    background: rgba(8, 12, 14, 0.82);
    backdrop-filter: blur(1dvh);
    -webkit-backdrop-filter: blur(1dvh);
  }

  #sheet-focus-burger-panel[hidden] {
    display: none;
  }

  #sheet-focus-cross-panel {
    position: absolute;
    display: flex;
    width: max-content;
    max-width: 46dvw;
    flex-direction: column;
    align-items: center;
    box-sizing: border-box;
    overflow: hidden;
    padding: 3dvh 2dvw;
    border: 0.15dvh solid rgba(255, 255, 255, 0.36);
    border-radius: 0.5dvh;
    background: rgba(8, 12, 14, 0.88);
    color: #f3f3f0;
    text-align: center;
    backdrop-filter: blur(1dvh);
    -webkit-backdrop-filter: blur(1dvh);
  }

  #sheet-focus-cross-panel[hidden] {
    display: none;
  }

  #sheet-focus-cross-verse {
    margin: 0;
    font: 2.8dvh/1.5 Georgia, 'Times New Roman', serif;
  }

  #sheet-focus-cross-reference {
    margin: 2dvh 0 0;
    color: #c5cbd0;
    font: bold 1.8dvh/1.3 Arial, sans-serif;
  }

  #sheet-focus-burger-quote {
    margin: 0;
    color: #f3f3f0;
    font: 3dvh/1.4 'Segoe Print', 'Comic Sans MS', cursive;
    text-align: center;
  }

  #sheet-focus-details-panel {
    position: absolute;
    display: flex;
    flex-direction: column;
    width: auto;
    height: auto;
    box-sizing: border-box;
    overflow: auto;
    padding: 3dvh 2dvw;
    border: 0.15dvh solid rgba(255, 255, 255, 0.36);
    border-radius: 0.5dvh;
    background: rgba(8, 12, 14, 0.82);
    backdrop-filter: blur(1dvh);
    -webkit-backdrop-filter: blur(1dvh);
  }

  #sheet-focus-details-panel[hidden] {
    display: none;
  }

  #sheet-focus-logline {
    margin: 0;
    color: #f3f3f0;
    font: 2.1dvh/1.55 Georgia, 'Times New Roman', serif;
    text-align: left;
  }

  #sheet-focus-tags {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.8dvh 0.6dvw;
    margin: 2dvh 0 0;
    padding: 0;
    list-style: none;
  }

  #sheet-focus-tags li {
    padding: 0.6dvh 0.8dvw;
    border: 0.12dvh solid rgba(255, 255, 255, 0.3);
    border-radius: 0.5dvh;
    background: rgba(255, 255, 255, 0.08);
    color: #d8dcdf;
    font: 1.6dvh/1.3 'Courier New', Courier, monospace;
  }

  #sheet-focus-concept-art {
    margin-top: auto;
    padding-top: 3dvh;
    color: #f3f3f0;
    text-align: center;
  }

  #sheet-focus-concept-art[hidden] {
    display: none;
  }

  #sheet-focus-concept-art-title {
    margin: 0 0 1.5dvh;
    font: bold 2.2dvh/1.3 Georgia, 'Times New Roman', serif;
  }

  #sheet-focus-production-photos {
    margin-top: auto;
    padding-top: 3dvh;
    color: #f3f3f0;
    text-align: center;
  }

  #sheet-focus-production-photos[hidden] {
    display: none;
  }

  #sheet-focus-production-photos-title {
    margin: 0 0 1.5dvh;
    font: bold 2.2dvh/1.3 Georgia, 'Times New Roman', serif;
  }

  #sheet-focus-production-photos-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 16dvw), 1fr));
    justify-items: center;
    gap: 1.5dvh 1dvw;
    max-height: 36dvh;
    overflow-y: auto;
  }

  #sheet-focus-production-photos-gallery img {
    display: block;
    width: 100%;
    max-height: 34dvh;
    object-fit: contain;
  }

  .sheet-focus-concept-art-viewer {
    display: grid;
    grid-template-columns: 4dvh minmax(0, 1fr) 4dvh;
    align-items: center;
    gap: 1dvw;
  }

  .sheet-focus-concept-art-viewer img {
    display: block;
    width: 100%;
    height: 40dvh;
    min-width: 0;
    object-fit: contain;
  }

  .sheet-focus-concept-art-viewer button {
    position: relative;
    display: grid;
    box-sizing: border-box;
    width: 4dvh;
    height: 4dvh;
    place-items: center;
    border: 0.12dvh solid rgba(255, 255, 255, 0.38);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    color: #f3f3f0;
    font-size: 0;
    cursor: pointer;
    pointer-events: auto;
  }

  .sheet-focus-concept-art-viewer button::before {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0.9dvh;
    height: 0.9dvh;
    border-top: 0.22dvh solid currentColor;
    border-right: 0.22dvh solid currentColor;
    content: '';
  }

  .sheet-focus-concept-art-previous::before {
    transform: translate(-35%, -50%) rotate(-135deg);
  }

  .sheet-focus-concept-art-next::before {
    transform: translate(-65%, -50%) rotate(45deg);
  }

  .sheet-focus-concept-art-viewer button:hover,
  .sheet-focus-concept-art-viewer button:focus-visible {
    border-color: rgba(255, 255, 255, 0.82);
    background: rgba(255, 255, 255, 0.18);
  }

  #sheet-focus-concept-art-count {
    width: 100%;
    margin: 1dvh 0 0;
    color: #c5cbd0;
    font: 1.4dvh/1.3 Arial, sans-serif;
    text-align: center;
  }

  #sheet-focus-video {
    margin-top: auto;
    padding-top: 3dvh;
    color: #f3f3f0;
    text-align: center;
  }

  #sheet-focus-video[hidden] {
    display: none;
  }

  #sheet-focus-video-title {
    margin: 0 0 1.5dvh;
    font: bold 2.2dvh/1.3 Georgia, 'Times New Roman', serif;
  }

  #sheet-focus-video-frame {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    border: 0;
    pointer-events: auto;
  }

  #sheet-focus-media-panel {
    position: absolute;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    box-sizing: border-box;
    overflow: hidden;
    padding: 2dvh 2dvw;
    border: 0.15dvh solid rgba(255, 255, 255, 0.36);
    border-radius: 0.5dvh;
    background: rgba(8, 12, 14, 0.82);
    backdrop-filter: blur(1dvh);
    -webkit-backdrop-filter: blur(1dvh);
  }

  #sheet-focus-media-links {
    min-height: 0;
    flex: 1;
    overflow-y: auto;
    pointer-events: auto;
    scrollbar-color: rgba(220, 225, 229, 0.48) transparent;
    scrollbar-width: medium;
  }

  #sheet-focus-media-links::-webkit-scrollbar {
    width: 1.6dvh;
  }

  #sheet-focus-media-links::-webkit-scrollbar-track {
    background: transparent;
  }

  #sheet-focus-media-links::-webkit-scrollbar-thumb {
    border: 0.2dvh solid transparent;
    border-radius: 1dvh;
    background: rgba(220, 225, 229, 0.42);
    background-clip: padding-box;
  }

  #sheet-focus-media-links::-webkit-scrollbar-thumb:hover {
    background: rgba(240, 243, 245, 0.7);
    background-clip: padding-box;
  }

  #sheet-focus-media-panel[hidden] {
    display: none;
  }

  #sheet-focus-title {
    flex: 0 0 auto;
    margin: 0;
    padding-bottom: 1.5dvh;
    color: #f3f3f0;
    font: bold 3dvh/1.3 Georgia, 'Times New Roman', serif;
    text-align: center;
  }

  #sheet-focus-media-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 18dvw), 1fr));
    align-content: start;
    gap: 1.5dvh 1dvw;
    margin: 0;
    padding: 0;
    list-style: none;
  }

  .sheet-focus-media-link {
    display: flex;
    height: 100%;
    flex-direction: column;
    overflow: hidden;
    border: 0.12dvh solid rgba(255, 255, 255, 0.28);
    border-radius: 0.5dvh;
    background: rgba(0, 0, 0, 0.32);
    color: #f3f3f0;
    text-decoration: none;
    transition: background-color 0.2s ease, border-color 0.2s ease;
    pointer-events: auto;
  }

  .sheet-focus-media-link:hover,
  .sheet-focus-media-link:focus-visible {
    border-color: rgba(255, 255, 255, 0.82);
    background: rgba(255, 255, 255, 0.12);
  }

  .sheet-focus-media-link img {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: contain;
    background: rgba(255, 255, 255, 0.08);
  }

  .sheet-focus-media-link-copy {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 0.5dvh;
    padding: 1dvh 0.8dvw;
  }

  .sheet-focus-media-source {
    color: #c5cbd0;
    font: bold 1.45dvh/1.25 Arial, sans-serif;
  }

  .sheet-focus-media-name {
    font: 1.6dvh/1.35 Georgia, 'Times New Roman', serif;
  }
}

@media (max-width: 1023px) {
  #serious-mode {
    right: 4dvw;
    bottom: 2dvh;
    left: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    width: 6em;
    height: 3em;
    font-size: clamp(1rem, 4.5vw, 1.2rem);
    line-height: 1.1;
    padding: 0;
    text-align: center;
  }

  .fa {
    margin: 2dvh 0.5dvh;
  }

  #serious-mode-panel {
    top: 8dvh;
    left: 50%;
    width: 94dvw;
    height: 81dvh;
    padding: 1dvh 2dvw;
  }

  .serious-mode-tabs {
    justify-content: center;
    gap: 1dvw;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .serious-mode-tabs::-webkit-scrollbar {
    display: none;
  }

  .serious-mode-tab {
    flex: 0 0 auto;
    padding: max(1.2dvh, 12px) 2.5dvw;
    font-size: clamp(0.9rem, 3.8vw, 1.15rem);
    white-space: nowrap;
  }

  .serious-mode-project {
    grid-template-columns: minmax(0, 1fr);
    min-height: 0;
    gap: 1dvh;
    padding: 1.5dvh 2dvw;
  }

  .serious-mode-project-art {
    height: 40dvh;
    min-height: 32dvh;
  }

  .serious-mode-project-art img {
    object-fit: contain;
    object-position: top;
  }

  .serious-mode-project h3 {
    font-size: clamp(1.05rem, 4.5vw, 1.4rem);
  }

  .serious-mode-project p,
  .serious-mode-media-name {
    font-size: clamp(0.9rem, 3.6vw, 1.1rem);
  }

  .serious-mode-project-tags li,
  .serious-mode-media-source {
    font-size: clamp(0.75rem, 3vw, 0.9rem);
  }

  .serious-mode-project-tags li {
    padding: 0.6dvh 1.5dvw;
  }

  #sheet-focus-ui {
    position: fixed;
    inset: 0;
    z-index: 12;
    pointer-events: none;
  }

  #sheet-focus-ui[hidden],
  #sheet-focus-media-panel[hidden],
  #sheet-focus-burger-panel[hidden],
  #sheet-focus-cross-panel[hidden],
  #sheet-focus-details-panel[hidden] {
    display: none;
  }

  #sheet-focus-close {
    position: fixed;
    top: max(9dvh, calc(env(safe-area-inset-top) + 12px));
    right: max(4dvw, env(safe-area-inset-right));
    z-index: 1;
    display: grid;
    width: 48px;
    height: 48px;
    place-items: center;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.72);
    border-radius: 50%;
    background: rgba(10, 14, 16, 0.9);
    color: #fff;
    font-size: 0;
    pointer-events: auto;
  }

  #main > canvas {
    touch-action: none;
  }

  #sheet-focus-close::before,
  #sheet-focus-close::after {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 22px;
    height: 2px;
    background: currentColor;
    content: '';
  }

  #sheet-focus-close::before {
    transform: translate(-50%, -50%) rotate(45deg);
  }

  #sheet-focus-close::after {
    transform: translate(-50%, -50%) rotate(-45deg);
  }

  #sheet-focus-details-panel,
  #sheet-focus-media-panel,
  #sheet-focus-burger-panel,
  #sheet-focus-cross-panel {
    position: fixed;
    box-sizing: border-box;
    max-width: none;
    overflow-x: hidden;
    border: 1px solid rgba(255, 255, 255, 0.38);
    border-radius: 12px;
    background: rgba(8, 12, 14, 0.94);
    color: #f3f3f0;
    box-shadow: 0 1dvh 4dvh rgba(0, 0, 0, 0.48);
    -webkit-backdrop-filter: blur(1dvh);
    backdrop-filter: blur(1dvh);
    pointer-events: auto;
  }

  #sheet-focus-details-panel {
    display: flex;
    flex-direction: column;
    max-height: 48dvh;
    min-height: 10dvh;
    padding: 2.2dvh 4dvw;
    overflow-y: auto;
  }

  #sheet-focus-logline {
    font: clamp(1rem, 4vw, 1.2rem)/1.5 Georgia, 'Times New Roman', serif;
  }

  #sheet-focus-tags {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    justify-content: stretch;
    align-items: stretch;
    gap: 0.8dvh 2dvw;
    margin-top: 1.5dvh;
    padding: 0;
    list-style: none;
  }

  #sheet-focus-tags li {
    min-width: 0;
    overflow-wrap: anywhere;
    padding: 0.7dvh 2dvw;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.08);
    color: #d8dcdf;
    font: clamp(0.75rem, 3vw, 0.9rem)/1.3 'Courier New', Courier, monospace;
    text-align: center;
  }

  #sheet-focus-concept-art,
  #sheet-focus-production-photos,
  #sheet-focus-video {
    padding-top: 2dvh;
  }

  #sheet-focus-concept-art-title,
  #sheet-focus-production-photos-title,
  #sheet-focus-video-title {
    margin-bottom: 1dvh;
    font: bold clamp(1rem, 4vw, 1.2rem)/1.3 Georgia, 'Times New Roman', serif;
  }

  .sheet-focus-concept-art-viewer {
    position: relative;
    display: block;
    touch-action: pan-y;
  }

  .sheet-focus-concept-art-viewer img {
    width: 100%;
    height: auto;
    max-height: 25dvh;
    object-fit: contain;
  }

  #sheet-focus-concept-art-count {
    display: block;
    width: 100%;
    margin: 1dvh auto 0;
    text-align: center;
  }

  .sheet-focus-concept-art-viewer button {
    position: absolute;
    top: 50%;
    z-index: 1;
    width: 44px;
    height: 44px;
    transform: translateY(-50%);
    border-color: rgba(255, 255, 255, 0.42);
    background: rgba(8, 12, 14, 0.58);
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
  }

  .sheet-focus-concept-art-previous {
    left: 8px;
  }

  .sheet-focus-concept-art-next {
    right: 8px;
  }

  #sheet-focus-production-photos-gallery {
    grid-template-columns: minmax(0, 1fr);
    max-height: 30dvh;
    gap: 1dvh;
  }

  #sheet-focus-production-photos-gallery img {
    max-height: 28dvh;
  }

  #sheet-focus-video-frame {
    min-height: 0;
  }

  #sheet-focus-media-panel {
    display: flex;
    height: 48dvh;
    flex-direction: column;
    padding: 2dvh 3dvw;
  }

  #sheet-focus-title {
    padding-bottom: 1dvh;
    font: bold clamp(1.2rem, 5vw, 1.5rem)/1.3 Georgia, 'Times New Roman', serif;
    text-align: center;
  }

  #sheet-focus-media-links {
    display: grid;
    min-height: 0;
    flex: 1;
    grid-template-columns: minmax(0, 1fr);
    gap: 1dvh;
    margin: 0;
    padding: 0;
    overflow-y: auto;
    list-style: none;
    pointer-events: auto;
  }

  .sheet-focus-media-link {
    display: grid;
    height: auto;
    grid-template-columns: minmax(88px, 30%) minmax(0, 1fr);
    align-items: center;
    min-height: 76px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.32);
    color: #f3f3f0;
    text-decoration: none;
    pointer-events: auto;
  }

  .sheet-focus-media-link img {
    width: 100%;
    height: auto;
    object-fit: contain;
  }

  .sheet-focus-media-link-copy {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 0.5dvh;
    padding: 1dvh 2dvw;
  }

  .sheet-focus-media-source {
    font-size: clamp(0.75rem, 3vw, 0.9rem);
  }

  .sheet-focus-media-name {
    font-size: clamp(0.85rem, 3.5vw, 1.05rem);
  }

  .sheet-focus-concept-art-viewer button {
    position: absolute;
    top: 50%;
    display: grid;
    box-sizing: border-box;
    place-items: center;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    background: rgba(8, 12, 14, 0.58);
    color: #f3f3f0;
    font-size: 0;
    transform: translateY(-50%);
  }

  .sheet-focus-concept-art-viewer button::before {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 10px;
    height: 10px;
    border-top: 2px solid currentColor;
    border-right: 2px solid currentColor;
    content: '';
  }

  .sheet-focus-concept-art-previous::before {
    transform: translate(-35%, -50%) rotate(-135deg);
  }

  .sheet-focus-concept-art-next::before {
    transform: translate(-65%, -50%) rotate(45deg);
  }

  #sheet-focus-video {
    color: #f3f3f0;
    text-align: center;
  }

  #sheet-focus-video-frame {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    border: 0;
    pointer-events: auto;
  }

  #sheet-focus-burger-panel,
  #sheet-focus-cross-panel {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 2dvh 5dvw;
    text-align: center;
  }

  #sheet-focus-burger-quote,
  #sheet-focus-cross-verse {
    margin: 0;
    font: clamp(1.3rem, 4.5vw, 1.4rem)/1.5 Georgia, 'Times New Roman', serif;
  }

  #sheet-focus-burger-quote {
    font-family: 'Segoe Print', 'Comic Sans MS', cursive;
  }

  #sheet-focus-cross-reference {
    margin: 1.5dvh 0 0;
    color: #c5cbd0;
    font: bold clamp(0.9rem, 3.5vw, 1.05rem)/1.3 Arial, sans-serif;
  }
}
