html {
  scroll-behavior: smooth;
  --work-scale: 3.1px;
}

html,
body {
  width: 100%;
  height: 100%;
  margin: 0;
  overflow: hidden;
  cursor: url("../images/Cursor/Cursor_2.png"), auto;
  background: linear-gradient(180deg, rgb(255, 255, 255) 50%, rgb(255, 229, 239) 100%);
}

body {
  position: relative;
  display: flex;
  flex-direction: column;
  background: transparent;
}

img {
  user-select: none;
  -webkit-user-drag: none;
}

img:hover {
  cursor: url("../images/Cursor/Cursor_1.png"), auto;
}
p {
  font-family: Cousine, monospace;
  margin: 0;
  line-height: 1.2;
  font-size: 0.8vw;
  opacity: 0.7;
}

button {
  font: inherit;
}

.map-button {
  padding: 0;
  border: none;
  background: transparent;
}

.work-title {
  font-size: clamp(11px, 0.82vw, 15px);
  font-weight: bold;
}
.work-details {
  font-style: italic;
  font-weight: bold;
  font-size: clamp(11px, 0.82vw, 15px);
  margin-bottom: clamp(8px, 0.7vw, 12px);
}
.work-small-title {
  font-style: italic;
  font-size: clamp(11px, 0.82vw, 15px);
}

.studio-sign {
  width: min(22vw, 220px);
  height: auto;
  z-index: 20;
  pointer-events: none;
}

.studio-sign-fixed {
  position: fixed;
  left: 20px;
  bottom: 20px;
}

.map-link {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 20;
  display: inline-flex;
}

.map-link:hover {
  cursor: url("../images/Cursor/Cursor_3.png"), pointer;
}

.map-icon {
  width: min(7vw, 70px);
  height: auto;
}

.mobile-widescreen-note {
  display: none;
}

/* Brochure Styles */
.painting-brochure {
  font-size: 10px;
  line-height: 1.3;
}

.brochure-subtitle {
  font-size: 25px;
  margin-bottom: 5px;
  text-transform: uppercase;
}

.brochure-copy {
  margin-bottom: 8px;
}

.brochure-label {
  font-style: italic;
  font-size: 20px;
}

.brochure-section {
  border-bottom: 1px solid black;
  padding-bottom: 10px;
  margin-bottom: 10px;
}

.brochure-contact-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
  justify-content: center;
  align-items: center;
  font-size: 12px;
  margin-top: 10px;
}

.brochure-contact-links p {
  flex: 0 0 100%;
  text-align: center;
  font-size: clamp(9px, 0.75vw, 11px);
  line-height: 1.4;
  opacity: 0.6;
}

/* Desktop Column Layout */
@media (min-width: 851px) {
  .brochure-panel-left .brochure-section:last-child,
  .brochure-panel-right .brochure-section:last-child {
    border-bottom: none;
  }
}
/* Map Legend */
.brochure-map-list.horizontal {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 15px;
  list-style: none;
  padding: 0;
  margin-top: 10px;
}

.map-circle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: black;
  color: white;
  border-radius: 50%;
  width: 18px;
  height: 18px;
  font-size: 11px;
  margin-right: 5px;
  vertical-align: middle;
  font-weight: bold;
}

/* Contact Buttons */
.brochure-btn {
  display: inline-block;
  background: black;
  color: white;
  font-family: 'Cousine', monospace;
  border: black solid 1px;
  border-radius: 20px;
  text-decoration: none;
  padding: 4px 8px;
  margin: 0;
  transition: background 0.2s ease;
}

.brochure-btn:hover {
  background: #e87ba8;
  transform: translateY(-1px);
  box-shadow: 0 12px 22px rgba(221, 108, 158, 0.18);
}

.brochure-overlay {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3vw;
  box-sizing: border-box;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(2px);
  z-index: 180;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s ease;
}

.brochure-overlay.is-open {
  opacity: 1;
  pointer-events: auto;
}

.painting-brochure {
  width: 95vw;
  height: 90vh;
  display: flex;
  flex-direction: row;
  border: 1px solid rgba(0, 0, 0, 0.7);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.90);
  box-shadow: 0 16px 32px rgba(221, 108, 158, 0.16);
  overflow: hidden;
  position: relative;
}

.painting-brochure::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 1px;
  background: rgba(0, 0, 0, 0.7);
  transform: translateX(-50%);
}

.brochure-panel {
  flex: 1 1 50%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 16px;
  padding: clamp(26px, 4vw, 44px);
  box-sizing: border-box;
}

.brochure-panel-left {
  background: white;
}

.brochure-panel-right {
  background: white;
}

.brochure-kicker,
.brochure-label {
  font-family: Cousine, monospace;
  font-size: clamp(12px, 1vw, 15px);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 1;
}

.brochure-panel h1 {
  margin-top: 20px;
  margin-bottom: 20px;
  font-family: Cousine, monospace;
  font-size: clamp(35px, 4vw, 60px);
  line-height: 0.96;
  color: #000;
  text-transform: lowercase;
}

.brochure-section {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.brochure-map-image {
  width: min(100%, 360px);
  height: auto;
  align-self: center;
  object-fit: contain;
}

.brochure-map-list {
  margin: 0;
  padding-left: 1.25em;
  font-family: Cousine, monospace;
  font-size: clamp(9px, 1vw, 12px);
  line-height: 1.45;
  color: #000;
}

.brochure-map-list li + li {
  margin-top: 4px;
}

.brochure-subtitle {
  margin: 0;
  font-family: Cousine, monospace;
  font-size: clamp(14px, 1.25vw, 20px);
  font-weight: 700;
  line-height: 1.1;
  color: #000;
  text-align: left;
}
.brochure-copy {
  font-size: clamp(12px, 1.1vw, 16px);
  line-height: 1.42;
  opacity: 0.72;
}

.brochure-close {
  position: absolute;
  top: 18px;
  right: 18px;
  min-width: 35px;
  height: 35px;
  padding: 0 0;
  border: 1px solid rgba(0, 0, 0, 0.7);
  border-radius: 999px;
  background: rgb(0, 0, 0);
  color: #ffffff;
  font-family: Cousine, monospace;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1;
  text-transform: uppercase;
  cursor: url("../images/Cursor/Cursor_3.png"), pointer;
  z-index: 2;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.brochure-close:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 22px rgba(221, 108, 158, 0.18);
  background: #e87ba8;
}

.painting-brochure,
.portrait-answer-card,
.small-didactics {
  position: relative;
}

.painting-brochure.is-auto-scrolling,
.portrait-answer-card.is-auto-scrolling,
.small-didactics.is-auto-scrolling {
  scroll-behavior: auto !important;
}

.scroll-indicator {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  width: auto;
  margin-top: 0;
  padding: 1.5rem 0 0.5rem;
  font-family: Cousine, monospace;
  font-size: clamp(9px, 0.7vw, 11px);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(69, 34, 50, 0.62);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.96) 58%, rgba(255, 255, 255, 0.98) 100%);
  pointer-events: none;
  z-index: 3;
  border-bottom-left-radius: inherit;
  border-bottom-right-radius: inherit;
}

.scroll-indicator[hidden] {
  display: none;
}

.painting-brochure.is-overflowing,
.portrait-answer-card.is-overflowing,
.small-didactics.is-overflowing {
  padding-bottom: 2.1rem;
}

#works {
  width: 100%;
  flex: 1;
  position: relative;
  display: flex;
  align-items: flex-end;
  padding: 2.5vh 4vw 17vh;
  overflow-x: auto;
  overflow-y: hidden;
  box-sizing: border-box;
  scroll-behavior: smooth;
  scrollbar-width: thin;
  scrollbar-color: #ef7fae rgba(255, 255, 255, 0.18);
  touch-action: pan-x;
}

#works::-webkit-scrollbar {
  height: 12px;
}

#works::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.18);
  border-radius: 999px;
}

#works::-webkit-scrollbar-thumb {
  background: linear-gradient(90deg, #f7a3c7 0%, #ef7fae 100%);
  border-radius: 999px;
  border: 2px solid rgba(255, 255, 255, 0.18);
}

.works-row {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: flex-end;
  width: max-content;
  min-width: 100%;
  padding: 3vh 12vw 0 2vw;
  box-sizing: border-box;
}

.work-card {
  --work-w: 1;
  --work-h: 1;
  position: relative;
  display: inline-block;
  width: calc(var(--work-w) * var(--work-scale));
  height: calc(var(--work-h) * var(--work-scale));
  margin: 0;
  perspective: 1200px;
  flex: 0 0 auto;
  transition: transform 0.25s ease;
  overflow: visible;
}

.work-card img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: fill;
  transition: transform 0.55s ease, opacity 0.35s ease;
  transform-style: preserve-3d;
  backface-visibility: hidden;
}

.paintingboard-floor {
  position: absolute;
  left: 0;
  bottom: 3vh;
  width: calc(115 * var(--work-scale));
  pointer-events: none;
  z-index: 6;
}

.paintingboard-floor img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
}

.room-prop {
  pointer-events: none;
}

.room-prop::after,
.room-prop .small-didactics {
  display: none;
}

.room-prop a,
.room-prop button {
  pointer-events: auto;
}

.room-prop:hover,
.room-prop:hover img,
.room-prop.is-open,
.room-prop.is-open img {
  transform: none;
}

.portrait-prop {
  margin-left: calc(var(--work-scale) * 26);
  margin-right: calc(var(--work-scale) * 38);
  transform: translateY(-2vh) scale(1);
  z-index: 12;
}

.portrait-prop img {
  object-fit: contain;
}

.portrait-interview-ui {
  position: absolute;
  top: 0;
  left: 0;
  width: min(20vw, 270px);
  display: block;
  align-items: stretch;
  z-index: 120;
}

.portrait-question-shell {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column-reverse;
  align-items: center;
  gap: 8px;
  padding: 6px 6px 0;
  box-sizing: border-box;
  overflow: visible;
}

.portrait-chat-trigger {
  width: fit-content;
  min-width: min(14vw, 170px);
  max-width: 100%;
  border: 1px solid rgba(0, 0, 0, 0.7);
  border-radius: 18px;
  padding: 11px 14px;
  background: rgba(255, 255, 255, 0.92);
  color: #000;
  font-family: Cousine, monospace;
  font-size: clamp(11px, 0.82vw, 13px);
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08);
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.portrait-chat-trigger:hover,
.portrait-chat-trigger.is-open {
  transform: translateY(-1px);
  box-shadow: 0 13px 24px rgba(221, 108, 158, 0.18);
  background: rgba(255, 255, 255, 0.98);
  cursor: url("../images/Cursor/Cursor_3.png"), pointer;
}

.portrait-question-container {
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: stretch;
  gap: 10px;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transform: translateY(8px);
  transition: max-height 0.2s ease, opacity 0.18s ease, transform 0.18s ease;
}

.portrait-question-container.is-open {
  max-height: 360px;
  opacity: 1;
  transform: translateY(0);
}

.portrait-question-container .question-btn {
  flex: 0 1 calc(50% - 5px);
  border: 1px solid rgba(0, 0, 0, 0.7);
  border-radius: 14px;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.86);
  color: #000;
  font-family: Cousine, monospace;
  font-size: clamp(10px, 0.72vw, 12px);
  line-height: 1.2;
  text-align: center;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.08);
  transition: transform 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}

.portrait-question-container .question-btn:hover,
.portrait-question-container .question-btn.active {
  background: linear-gradient(135deg, #f9b0cf, #f38ab5);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 12px 22px rgba(221, 108, 158, 0.22);
  cursor: url("../images/Cursor/Cursor_3.png"), pointer;
}

.portrait-answers-panel {
  position: absolute;
  top: 0;
  left: calc(100% + 18px);
  width: min(26vw, 360px);
  max-height: min(45vh, 450px);
  padding: 16px 18px;
  border-radius: 24px;
  box-sizing: border-box;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(0, 0, 0, 0.88);
  box-shadow: 0 16px 28px rgba(221, 108, 158, 0.2);
  transform: translateY(12px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
  overflow: hidden;
}

.portrait-answers-panel.is-open {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.portrait-answer-card {
  display: none;
  max-height: min(26vh, 260px);
  overflow-y: scroll; /* Changed from auto to scroll */
  padding-right: 6px;
  scrollbar-width: thin;
  scrollbar-color: #ef7fae rgba(255, 255, 255, 0.35);
}

.portrait-answer-card::-webkit-scrollbar {
  width: 10px;
}

.portrait-answer-card::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.18);
  border-radius: 999px;
}

.portrait-answer-card::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #f7a3c7 0%, #ef7fae 100%);
  border-radius: 999px;
  border: 2px solid rgba(255, 255, 255, 0.18);
}

.portrait-answer-card::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #ffb7d4 0%, #f06b9e 100%);
}

.portrait-answer-card.active {
  display: block;
}

.portrait-answer-card p,
.portrait-answer-card a,
.portrait-answer-card li {
  font-family: Cousine, monospace;
  font-size: clamp(11px, 0.78vw, 13px);
  line-height: 1.45;
  color: #000;
}

.portrait-answer-card p + p {
  margin-top: 10px;
}

.portrait-answer-card strong {
  color: #df478e;
}

.portrait-answer-list {
  margin: 10px 0 0;
  padding-left: 1.2em;
}

.portrait-answer-list li + li {
  margin-top: 7px;
}

.portrait-answer-card a {
  color: #df478e;
  text-decoration-thickness: 1.5px;
}

.portrait-answer-card a:hover {
  color: #b82c6e;
}

.door-prop {
  position: relative;
  display: inline-block;
  width: calc(var(--work-w) * var(--work-scale));
  height: calc(var(--work-h) * var(--work-scale));
  flex: 0 0 auto;
  margin-right: calc(var(--work-scale) * 10);
  transform: translateY(-1vh) scale(1.02);
  z-index: 3;
}

.door-prop img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.desk-prop {
  position: relative;
  display: inline-block;
  width: calc(var(--work-w) * var(--work-scale));
  height: calc(var(--work-h) * var(--work-scale));
  flex: 0 0 auto;
  transform: translateY(-2vh) scale(1.3);
  z-index: 4;
  transition: transform 0.18s ease;
}

.desk-prop img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.desk-prop:hover {
  transform: translateY(-2vh) scale(1.33);
  cursor: url("../images/Cursor/Cursor_3.png"), pointer;
}

.desk-button {
  position: absolute;
  left: 24%;
  top: 38%;
  width: 35%;
  height: 20%;
  padding: 0;
  border: none;
  transform: translate(-50%, -50%);
  z-index: 20;
}

.desk-button:hover {
  transform: translate(-50%, -50%) scale(1.02);
  cursor: url("../images/Cursor/Cursor_3.png"), pointer;
}

.door-button {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 100%;
  height: 100%;
  padding: 0;
  border: none;
  transform: translate(-50%, -50%);
  z-index: 20;
}

.door-button:hover {
  transform: translate(-50%, -50%) scale(1.02);
  cursor: url("../images/Cursor/Cursor_3.png"), pointer;
}

.work-card + .work-card {
  margin-left: clamp(-56px, -3.8vw, -34px);
}

.work-card:nth-child(4n) {
  transform: translateY(4.5vh) scale(1);
  z-index: 4;
}

.work-card:nth-child(4n + 1) {
  transform: translateY(1vh) scale(0.93);
  z-index: 2;
}

.work-card:nth-child(4n +2) {
  transform: translateY(-1vh) scale(0.9);
  z-index: 1;
}

.work-card:nth-child(4n + 3) {
  transform: translateY(3vh) scale(0.96);
  z-index: 3;
}

.small-didactics {
  font-family: Cousine, monospace;
  line-height: 1.2;
  font-size: clamp(10px, 0.74vw, 14px);
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  box-sizing: border-box;
  margin: 0;
  padding: 1.25vw;
  display: block;
  text-align: left;
  background: rgb(255, 255, 255);
  border: 0.5px black solid;
  border-radius: 5px;
  box-shadow: inset 0 0 0 1px rgba(196, 69, 127, 0.08);
  opacity: 0;
  transform: rotateY(-180deg);
  transition: opacity 0.3s ease, transform 0.55s ease;
  pointer-events: none;
  backface-visibility: hidden;
  overflow-y: scroll; /* Changed from auto to scroll */
  scroll-behavior: smooth;
  scrollbar-width: thin;
  scrollbar-color: #ef7fae rgba(255, 255, 255, 0.18);
}

.small-didactics::-webkit-scrollbar {
  width: 10px;
}

.small-didactics::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.18);
  border-radius: 999px;
}

.small-didactics::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #f7a3c7 0%, #ef7fae 100%);
  border-radius: 999px;
  border: 2px solid rgba(255, 255, 255, 0.18);
}

.small-didactics::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #ffb7d4 0%, #f06b9e 100%);
}

.work-title {
  display: block;
  margin-bottom: 0.45vw;
}

.work-card:hover img,
.work-card:hover {
  transform: translateY(-3vh) scale(1.04);
  z-index: 40;
}

.work-card.is-open {
  transform: translateY(-3vh) scale(1.04);
  z-index: 50;
}

.work-card.is-open img {
  transform: rotateY(180deg);
  opacity: 0.5;
}

.work-card.is-open .small-didactics {
  opacity: 1;
  transform: rotateY(0);
  pointer-events: auto;
}

.work-card::after {
  content: "click to flip";
  position: absolute;
  left: 50%;
  bottom: -2rem;
  transform: translateX(-50%);
  font-family: Cousine, monospace;
  font-size: 0.75vw;
  letter-spacing: 0.04em;
  color: rgba(69, 34, 50, 0.45);
  text-transform: uppercase;
  white-space: nowrap;
  opacity: 0;
  transition: opacity 0.18s ease;
  pointer-events: none;
}

.work-card:hover:not(.is-open)::after {
  opacity: 1;
}




@media (max-width: 850px) {
  .brochure-overlay {
    padding: 3vw 5vw 3vw;
  }

  .painting-brochure {
    width: 95vw;
    height: 80vh;
    flex-direction: column;
    border-radius: 22px;
  }

  .painting-brochure::after {
    display: none;
  }

  .brochure-panel {
    flex-basis: 50%;
    gap: 12px;
    padding: 5px 20px;
  }

  .brochure-panel h1 {
    font-size: clamp(24px, 8vw, 38px);
    margin-top: 10px;
    margin-bottom: 10px;

  }

  .brochure-close {
    top: 12px;
    right: 12px;
    min-width: 25px;
    height: 25px;
    padding: 0 0;
    font-size: 11px;
  }
  .painting-brochure {
    display: flex !important;
    flex-direction: column !important;
    padding: 15px !important;
    gap: 0;
    overflow-y: scroll; /* Changed from auto to scroll */
    font-size: 7px;
    scroll-behavior: smooth;
    scrollbar-width: thin;
    scrollbar-color: #ef7fae rgba(255, 255, 255, 0.18);
    touch-action: pan-y;
  }

  .painting-brochure.is-overflowing {
    padding-bottom: 2.6rem !important;
  }

  .painting-brochure::-webkit-scrollbar {
    height: 12px;
  }

  .painting-brochure::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.18);
    border-radius: 999px;
  }

  .painting-brochure::-webkit-scrollbar-thumb {
    background: linear-gradient(90deg, #f7a3c7 0%, #ef7fae 100%);
    border-radius: 999px;
    border: 2px solid rgba(255, 255, 255, 0.18);
  }

  .brochure-panel {
    width: 100%;
  }

  .brochure-panel-right .brochure-section:last-child {
    border-bottom: none;
  }

  .brochure-subtitle {
    font-size: 15px;
  }

  .brochure-label {
    font-size: 10px;
  }

  .mobile-widescreen-note {
    position: fixed;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    display: block;
    width: min(76vw, 320px);
    z-index: 220;
    border: 1px solid rgba(0, 0, 0, 0.62);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.84);
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.08);
    overflow: visible;
    backdrop-filter: blur(6px);
  }

  .mobile-widescreen-note .mobile-widescreen-title {
    padding: 8px 12px;
    font-size: 10px;
    font-weight: 700;
    line-height: 1.2;
    text-align: center;
  }

  .mobile-widescreen-note p {
    padding: 0 12px 10px;
    font-size: 10px;
    line-height: 1.35;
    text-align: center;
    opacity: 0.72;
  }

  #note-close {
    position: absolute;
    top: 8px;
    right: 8px;
    min-width: 20px;
    height: 20px;
    padding: 0;
    border: 1px solid rgba(0, 0, 0, 0.7);
    border-radius: 999px;
    background: #000;
    cursor: url("../images/Cursor/Cursor_3.png"), pointer;
    z-index: 2;
    transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
    color: #fff;
    font-family: 'Cousine', monospace;
    font-size: 11px;
    font-weight: 700;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  #note-close:hover {
    background: #e87ba8;
    transform: translateY(-1px);
    box-shadow: 0 12px 22px rgba(221, 108, 158, 0.18);
  }
  .studio-sign {
    width: min(34vw, 170px);
  }

  .studio-sign-fixed {
    left: 14px;
    bottom: 14px;
  }

  .map-link {
    right: 14px;
    bottom: 14px;
  }

  .map-icon {
   width: min(10vw, 80px);
  }

  #works {
    padding: 24vh 3vw 12vh;
  }


  .works-row {
    padding: 3vh 16vw 0 3vw;
  }

  .work-title {
    font-size: 10px;
  }

  .small-didactics {
    font-size: 5px;
    line-height: 1.28;
    padding: 1vw;
    -webkit-overflow-scrolling: touch;
    border: none;
    box-shadow: inset 0 0 0 0.5px rgba(0, 0, 0, 0.8);
  }

  .work-details {
    display: block;
    font-size: 9px;
    line-height: 1.28;
    margin-bottom: 1.4vw;
  }

  .work-small-title {
    font-size: 9px;
  }

  .work-card {
    transform: none;
  }

  html {
    --work-scale: 1.42px;
  }

  .work-card img {
    width: 100%;
    height: 100%;
    max-height: none;
  }

  .work-card + .work-card {
    margin-left: clamp(-22px, -4vw, -10px);
  }

  .work-card.is-focused,
  .work-card.is-open {
    transform: translate(var(--focus-x, 0px), var(--focus-y, 0px)) scale(var(--focus-scale, 1));
    transform-origin: center top;
    z-index: 80;
  }

  .work-card.is-focused img,
  .work-card.is-open img {
    display: block;
    margin: 0 auto;
    width: 90%;
    height: 90%;
    max-width: none;
    max-height: none;
    object-fit: fill;
    margin: 8% 5% 2%;
  }

  .work-card::after {
    font-size: var(--pseudo-font-size, 12px);
    bottom: 0;
  }

  .work-card.is-focused:not(.is-open)::after {
    content: "click again to flip";
    opacity: 1;
    bottom: -2.5em;
  }

  .work-card.is-open .small-didactics,
  .work-card:focus-within .small-didactics {
    opacity: 1;
    transform: rotateY(0);
    
  }

  .work-card.is-focused .small-didactics,
  .work-card.is-open .small-didactics {
    inset: 0;
    width: 90%;
    height: 90%;
    margin: 8% 5% 2%;
    max-height: none;
  }

  .work-card.is-focused:not(.is-open) .small-didactics {
    opacity: 0;
    pointer-events: none;
  }

  .portrait-prop {
    margin-left: calc(var(--work-scale) * 12);
    margin-right: calc(var(--work-scale) * 34);
    transform: translateY(0) scale(1.08);
  }

  .portrait-prop img {
    width: 100%;
    height: 100%;
    object-fit: contain;
  }

  .paintingboard-floor {
    bottom: 30vh;
    width: calc(92 * var(--work-scale));
  }

  .desk-prop {
    width: calc(var(--work-w) * var(--work-scale));
    height: calc(var(--work-h) * var(--work-scale));
    transform: translateY(0) scale(1.08);
  }

  .desk-prop:hover {
    transform: translateY(0) scale(1.1);
    cursor: url("../images/Cursor/Cursor_3.png"), pointer;
  }

  .door-prop {
    width: calc(var(--work-w) * var(--work-scale));
    height: calc(var(--work-h) * var(--work-scale));
    margin-right: calc(var(--work-scale) * 6);
    transform: translateY(0) scale(1.08);
  }

  .portrait-interview-ui {
    width: min(70vw, 270px);
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    z-index: 120;
  }

  .portrait-question-shell {
    flex-direction: column-reverse;
    gap: 8px;
    padding: 4px 4px 0;
  }

  .portrait-chat-trigger {
    width: fit-content;
    min-width: 0;
    max-width: 62%;
    font-size: 12px;
    padding: 10px 12px;
    border-radius: 16px;
  }

  .portrait-question-container {
    gap: 8px;
  }

  .portrait-question-container .question-btn {
    flex: 0 1 calc(50% - 4px);
    font-size: 11px;
    padding: 9px 10px;
    border-radius: 12px;
  }

  .portrait-answers-panel {
    position: relative;
    top: auto;
    left: auto;
    width: 100%;
    max-height: min(34vh, 260px);
    transform: translateY(8px);
    z-index: 119;
  }

  .portrait-answers-panel.is-open {
    transform: translateY(0);
  }

  .portrait-answer-card {
    max-height: min(28vh, 220px);
  }

  .portrait-answer-card.is-overflowing,
  .small-didactics.is-overflowing {
    padding-bottom: 2.4rem;
  }

  .portrait-answer-card p,
  .portrait-answer-card a,
  .portrait-answer-card li {
    font-size: 12px;
    line-height: 1.45;
  }
.circle {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 10px;
  height: 10px;
  border: 1px solid rgba(221, 108, 158, 0.8);
  border-radius: 50%;
  transform: translate(-50%, -50%) scale(1);
  animation: expandCircle 4s cubic-bezier(0.165, 0.84, 0.44, 1) infinite;
  opacity: 0;
}


}

/* Loading Screen Styles */
#loading-screen {
  position: fixed;
  inset: 0;
  background: #ffffff;
  z-index: 3000; /* Ensure it stays above brochures and overlays */
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.8s ease, visibility 0.8s ease;
}

#loading-screen.fade-out {
  opacity: 0;
  visibility: hidden;
}

.loading-text {
  font-family: 'Cousine', monospace;
  font-size: clamp(14px, 1.2vw, 18px);
  font-style: italic;
  font-style: bold;
  color: #000;
  text-transform: lowercase;
  z-index: 3002;
  text-align: center;
  opacity: 1 !important; /* Override global p opacity */
}

.circle-container {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: 3001;
}

.circle {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 2px;
  height: 2px;
  border: 1px solid rgba(221, 108, 158, 0.8);
  border-radius: 50%;
  transform: translate(-50%, -50%) scale(1);
  animation: expandCircle 4s cubic-bezier(0.165, 0.84, 0.44, 1) infinite;
  opacity: 0;
}

.circle:nth-child(2) { animation-delay: 3s; }
.circle:nth-child(3) { animation-delay: 6s; }
.circle:nth-child(4) { animation-delay: 9s; }

@keyframes expandCircle {
  0% { transform: translate(-50%, -50%) scale(1); opacity: 0; }
  15% { opacity: 1; }
  100% { transform: translate(-50%, -50%) scale(300); opacity: 0; }
}
