/* ========================================================
   DO HO SUH EXHIBITION - MAIN STYLESHEET
   Expanded Web Scale & Refined Gallery Typography
   ======================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Montserrat:wght@100;200;300&display=swap');

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

html, body {
  width: 100%;
  min-height: 100%;
  background-color: #ffffff;
  color: #000000;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Default Body Font: Inter-regular */
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-weight: 400; /* Inter-regular default for all content */
  line-height: 1.6;
  overflow-x: hidden;
}

/* Global Outer Wrapper */
.web-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow-x: hidden;
}

/* ========================================================
   SECTION 1: HERO / POSTER SECTION
   ======================================================== */

.section-hero {
  width: 100%;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 3.5rem 2rem 0;
  margin-bottom: 18rem; /* Ample spacing for calm museum scroll */
}

.hero-container {
  width: 100%;
  max-width: 1080px; /* Widened for full web scale */
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-header {
  width: 100%;
  margin-bottom: 3.8rem;
}

/* Title: DO HO SUH in Azo Sans-thin (Maximized Width & Strictly One Line) */
.hero-title {
  font-family: 'Azo Sans', 'Azo Sans Thin', 'Montserrat', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-weight: 100;
  font-size: clamp(4.2rem, 12.5vw, 10.5rem); /* Substantially enlarged */
  line-height: 0.92;
  letter-spacing: 0.08em; /* Tighter letter-spacing as requested */
  white-space: nowrap; /* Strictly single line */
  text-align: justify;
  text-align-last: justify; /* Spans evenly edge-to-edge */
  text-transform: uppercase;
  color: #000000;
  margin-bottom: 2.8rem;
  user-select: none;
  width: 100%;
  display: block;
}

@supports not (text-align-last: justify) {
  .hero-title {
    text-align: center;
    letter-spacing: 0.12em;
  }
}

/* Meta: Left & Right Columns in Inter-medium */
.hero-meta {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 2rem;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-weight: 500; /* Inter-medium */
  font-size: 0.98rem;
  line-height: 1.5;
  color: #000000;
}

.meta-left {
  text-align: left;
}

.meta-left p {
  margin: 0;
}

.meta-right {
  text-align: right;
  white-space: nowrap;
}

.meta-right p {
  margin: 0;
}

/* Hero Artwork Stage */
.hero-stage {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 2rem;
}

.houses-wrapper {
  position: relative;
  width: 100%;
  max-width: 860px; /* Proportionally expanded */
  margin: 0 auto;
}

.houses-image {
  width: 100%;
  height: auto;
  display: block;
  user-select: none;
}

/* Centered Person Silhouette */
.person-image {
  position: absolute;
  top: 55.8%;
  left: 49.7%;
  transform: translate(-50%, -50%);
  width: 3.28%;
  height: auto;
  pointer-events: none;
  user-select: none;
  filter: contrast(1.15);
}

/* ========================================================
   SECTION 2: WELCOME & PASSAGE CORRIDOR (PERFECT CENTERING)
   ======================================================== */

.section-passage {
  width: 100%;
  max-width: 100%;
  padding: 6rem 0 0;
  margin-bottom: 22rem; /* Substantial scroll margin */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  box-sizing: border-box;
}

/* Centered "Welcome to SUH's home ..." Box */
.welcome-box-wrap {
  width: 100%;
  display: flex;
  justify-content: center;
  margin-bottom: 6rem;
  padding: 0 1.5rem;
}

.welcome-box {
  display: inline-block;
  border: 1px solid #000000;
  padding: 1.25rem 4.5rem;
  background-color: #ffffff;
  text-align: center;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease;
  user-select: none;
}

.welcome-box span {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-weight: 400; /* Inter-regular */
  font-size: 1.35rem;
  letter-spacing: 0.02em;
  color: #000000;
  white-space: nowrap;
}

.welcome-box:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}

/* Corridor Artwork Image: Perfectly Centered Across Full Web Width */
.passage-artwork-wrap {
  width: 100%;
  max-width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0 auto;
}

.passage-image {
  width: 100%;
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
  user-select: none;
}

/* ========================================================
   SECTION 3: ARTIST PROFILE & STATEMENT
   ======================================================== */

.section-artist {
  width: 100%;
  display: flex;
  justify-content: center;
  padding: 6rem 2rem 0;
  margin-bottom: 24rem; /* Generous breathing room */
}

.artist-stage-container {
  width: 100%;
  max-width: 1040px;
}

/* Layered 3D Stage Composition */
.artist-stage {
  position: relative;
  width: 100%;
  min-height: 1000px;
  margin: 0 auto;
}

/* Layer 1 (Back): Framed Hanok Thread Artwork */
.artist-artwork-frame {
  position: absolute;
  top: 0;
  left: 10%;
  width: 44%;
  max-width: 440px;
  z-index: 1;
}

.artist-artwork-frame img {
  width: 100%;
  height: auto;
  display: block;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.04);
}

/* Layer 2 (Middle): Seated Artist Cutout */
.artist-portrait-wrap {
  position: absolute;
  top: 3.5%;
  right: 5%;
  width: 54%;
  max-width: 530px;
  z-index: 2; /* Sits beneath the bio card so text is never blocked */
  pointer-events: none;
}

.artist-portrait-wrap img {
  width: 100%;
  height: auto;
  display: block;
  filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.12));
}

/* Layer 3 (Topmost): Overlapping White Statement Card */
.artist-bio-card {
  position: absolute;
  bottom: 8%;
  left: 0;
  width: 74%;
  max-width: 700px;
  background: #ffffff;
  border: 1px solid #000000;
  padding: 2.6rem 3rem;
  z-index: 10; /* Highest z-index: text is 100% readable and never hidden! */
  box-sizing: border-box;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.06);
}

.bio-name {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 1.25rem;
  font-weight: 600;
  color: #000000;
  margin-bottom: 0.35rem;
  letter-spacing: -0.01em;
}

.bio-meta {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 0.85rem;
  font-weight: 400;
  color: #555555;
  margin-bottom: 1.5rem;
}

.bio-body p {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 0.92rem;
  font-weight: 400; /* Inter-regular */
  line-height: 1.8;
  color: #1a1a1a;
  margin-bottom: 0.65rem;
  word-break: keep-all;
}

.bio-body p:last-child {
  margin-bottom: 0;
}

/* ========================================================
   SECTION 4: SPECIMENS ARCHIVE (<완벽한 집> 누끼 오브제)
   ======================================================== */

.section-specimens {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 6rem 1.5rem 26rem; /* Substantially expanded bottom spacing */
  margin-bottom: 8rem;
  background: #ffffff;
  position: relative;
}

/* Top Intro Box: Feel free to look around */
.specimens-top-wrap {
  width: 100%;
  display: flex;
  justify-content: center;
  margin-bottom: 5.5rem;
}

.specimens-intro-box {
  display: inline-block;
  border: 1px solid #000000;
  padding: 0.95rem 3.8rem;
  background-color: #ffffff;
  text-align: center;
  user-select: none;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.specimens-intro-box span {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-weight: 400; /* Inter-regular */
  font-size: 1.15rem;
  color: #000000;
  letter-spacing: 0.02em;
}

.specimens-intro-box:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
}

/* The Grand Architectural Stage (Aspect Ratio matching reference 355:1024) */
.specimens-stage {
  position: relative;
  width: 100%;
  max-width: 1100px; /* Expansive web scale */
  aspect-ratio: 355 / 1024;
  margin: 0 auto;
  overflow: visible;
}

/* --- Ambient Layers (Shifted Slightly Left/Right to Hide Crop Lines) --- */
.specimen-layer {
  position: absolute;
  pointer-events: none;
  z-index: 1;
}

.ambient-layer {
  opacity: 0.88;
  filter: contrast(0.96);
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.ambient-layer img {
  width: 100%;
  height: auto;
  display: block;
}

/* Bleeding past edges so straight crops disappear */
.ambient-01 {
  top: 1.5%;
  left: -4%;
  width: 108%;
}

.ambient-02 {
  top: 31%;
  left: -3%;
  width: 106%;
}

.ambient-03 {
  top: 84.5%;
  left: -4%;
  width: 27%;
}

.ambient-04 {
  top: 80.5%;
  right: -4%;
  left: auto;
  width: 30%;
}

/* Ambient 05: Scaled down slightly & aligned flush to the screen's left edge */
.ambient-05 {
  top: 91%;
  left: calc((100% - 100vw) / 2);
  width: clamp(320px, 36vw, 470px);
  max-width: 470px;
}

/* --- Vivid Objects & Attached Labels (Clickable Links) --- */
.specimen-item {
  position: absolute;
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Link wrapper */
.vivid-link {
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  cursor: pointer;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.vivid-static {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.vivid-obj {
  width: 100%;
  height: auto;
  display: block;
  user-select: none;
  filter: drop-shadow(0 12px 24px rgba(0, 0, 0, 0.12));
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), filter 0.4s ease;
}

/* Hover effects for clickable vivid items */
.vivid-link:hover .vivid-obj {
  transform: scale(1.08) translateY(-4px);
  filter: drop-shadow(0 20px 36px rgba(0, 0, 0, 0.22));
}

.vivid-link:hover .item-label-box {
  background-color: #000000;
  border-color: #000000;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.vivid-link:hover .item-label-box span {
  color: #ffffff;
}

/* 01. Green Door Lock */
.item-vivid-01 {
  top: 17.5%;
  left: 18%;
  width: 26%;
}

.item-vivid-01 .item-label-box {
  margin-top: 1.2rem;
}

/* 02. Brown Round Doorknob */
.item-vivid-02 {
  top: 30.5%;
  left: 63%;
  width: 13.5%;
}

.item-vivid-02 .item-label-box {
  margin-top: 1.4rem;
}

/* 03. Pink Double Switch */
.item-vivid-03 {
  top: 42.5%;
  left: 11%;
  width: 25%;
}

.item-vivid-03 .label-box-offset {
  margin-top: 1.2rem;
  margin-left: 50%;
}

/* 04. Olive Fuse Box */
.item-vivid-04 {
  top: 63.5%;
  left: 57%;
  width: 14.5%;
}

.item-vivid-04 .item-label-box {
  margin-top: 1.2rem;
}

/* 05. Ornate Handle & Teal Socket */
.item-vivid-05 {
  top: 77.0%;
  left: 8.5%;
  width: 22.5%;
}

.item-vivid-05 .label-box-side {
  position: absolute;
  top: 36%;
  left: 108%;
  white-space: nowrap;
}

/* Rectangular Text Boxes for Vivid Items */
.item-label-box {
  display: inline-block;
  border: 1px solid #000000;
  background-color: #ffffff;
  padding: 0.4rem 0.95rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
  white-space: nowrap;
  user-select: none;
  transition: all 0.3s ease;
}

.item-label-box span {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-weight: 400; /* Inter-regular */
  font-size: clamp(0.72rem, 1.05vw, 0.9rem);
  color: #000000;
  letter-spacing: -0.01em;
  line-height: 1.45;
  transition: color 0.3s ease;
}

.item-label-multiline {
  text-align: center;
}

/* ========================================================
   SCROLL REVEAL INTERACTION (위에서 아래로 스크롤 시 순차 등장)
   ======================================================== */

[data-reveal] {
  opacity: 0;
  transform: translateY(45px);
  transition: opacity 1.3s cubic-bezier(0.16, 1, 0.3, 1), transform 1.4s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

[data-reveal].revealed {
  opacity: 1;
  transform: translateY(0);
}

[data-reveal][data-reveal-speed="slow"] {
  transition-duration: 1.8s, 2.0s;
}

/* ========================================================
   RESPONSIVE DESIGN (Tablets & Mobile)
   ======================================================== */

@media (max-width: 860px) {
  .section-hero {
    margin-bottom: 12rem;
    padding-top: 2.5rem;
  }

  .section-passage {
    margin-bottom: 14rem;
  }

  .section-artist {
    margin-bottom: 16rem;
  }

  .artist-stage {
    min-height: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .artist-artwork-frame {
    position: static;
    width: 75%;
    max-width: 380px;
    margin-bottom: -3rem;
  }

  .artist-portrait-wrap {
    position: static;
    width: 85%;
    max-width: 440px;
    margin-bottom: -2rem;
  }

  .artist-bio-card {
    position: static;
    width: 100%;
    max-width: 100%;
    padding: 1.8rem;
  }

  .specimens-stage {
    max-width: 100%;
  }

  .item-vivid-05 .label-box-side {
    position: static;
    margin-top: 0.8rem;
    white-space: normal;
    max-width: 240px;
  }
}

@media (max-width: 600px) {
  .hero-header {
    margin-bottom: 2.5rem;
  }

  .hero-title {
    font-size: clamp(2.4rem, 11vw, 3.8rem);
    letter-spacing: 0.06em;
    margin-bottom: 1.8rem;
  }

  .hero-meta {
    font-size: 0.78rem;
    gap: 1rem;
  }

  .welcome-box {
    padding: 0.9rem 2.2rem;
  }

  .welcome-box span {
    font-size: 1.05rem;
  }

  .item-label-box {
    padding: 0.25rem 0.55rem;
  }

  .item-label-box span {
    font-size: 0.65rem;
  }
}

/* ========================================================
   SECTION 5: FINAL ARTWORK & MUSEUM FOOTER
   ======================================================== */

.section-final {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 8rem; /* Enhanced breathing room between floating specimens and crowd artwork */
  background-color: #ffffff;
  overflow: hidden;
}

.crowd-artwork-wrap {
  width: 100%;
  max-width: 100%;
  display: flex;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.crowd-artwork-img {
  width: 100%;
  max-width: 100%;
  height: auto;
  display: block;
  user-select: none;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, 0.3) 8%, black 22%, black 100%);
  mask-image: linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, 0.3) 8%, black 22%, black 100%);
}

/* Museum Footer Bar (Deoksugung Info + MMCA Graphic Logo pushed to edges) */
.site-museum-footer {
  width: 100%;
  background-color: #9a9591; /* Exact color sampled from reference */
  padding: 2.8rem clamp(2rem, 5vw, 6rem) 3.2rem; /* Clean edge margins */
  box-sizing: border-box;
}

.footer-inner {
  width: 100%;
  max-width: 100%;
  margin: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.footer-venue-info p {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-weight: 400; /* Inter-regular */
  font-size: 0.95rem;
  line-height: 1.6;
  color: #ffffff;
  margin: 0;
  letter-spacing: -0.01em;
}

.footer-logo-wrap {
  display: flex;
  align-items: center;
}

.footer-mmca-logo {
  width: 58px;
  height: auto;
  display: block;
  user-select: none;
}

@media (max-width: 600px) {
  .site-museum-footer {
    padding: 2.2rem 1.4rem;
  }
  .footer-venue-info p {
    font-size: 0.85rem;
  }
  .footer-mmca-logo {
    width: 48px;
  }
}
