.portfolio-return {
  color: #66554b;
  font-size: 10px;
  letter-spacing: .11em;
  white-space: nowrap;
}

.portfolio-return:hover {
  color: var(--brown);
}

.nav-portfolio {
  display: none;
}

.hero-architect img.asset-image {
  object-position: center 52%;
}

/* Keep one continuous image plane beneath the existing cream veil. */
@media (min-width: 761px) {
  .hero-architect { inset: 0; }
}

.hero-side-note {
  max-width: 28rem;
}

.stage-overlay-note,
.scene-source {
  display: none;
}

.phone-bezel {
  display: none !important;
}

.phone-credit {
  white-space: normal;
  width: 18rem;
}

/* Round 2: normalize media blocks and keep the four overview tiles coherent. */
.overview-thumb {
  line-height: 0;
  background: #d8c8b8;
}

.overview-thumb img.asset-image {
  display: block;
  object-position: center;
  filter: saturate(.82) contrast(.96) brightness(.98);
}

.overview-card:nth-child(3) .overview-thumb img,
.overview-card:nth-child(4) .overview-thumb img {
  object-position: center 18%;
}

.overview-card-info {
  border-top: 0 !important;
  background: transparent;
  margin-top: 0;
  position: relative;
  z-index: 5;
}

.overview-card { overflow: hidden; }

/* Preserve the section numbers without letting them collide with headings. */
.section-aside {
  min-width: 0;
}

.section-number {
  position: relative;
  z-index: 0;
  line-height: .82;
  margin-bottom: 25px;
}

.section-heading,
.section-en,
.section-description {
  position: relative;
  z-index: 1;
}

/* Restore the approved Kinfolk-style, uncropped menu spread reader. */
.menu-section {
  background: #f7f5f1;
  color: var(--ink);
}

.menu-section .section-number,
.menu-section .section-en,
.menu-section .section-label {
  color: #947361;
}

.menu-section .section-description {
  color: #6b5d54;
}

.menu-section .divider-small {
  background: #a27b64;
}

.menu-reader {
  min-width: 0;
  border-top: 1px solid #cfc6b9;
  border-bottom: 1px solid #cfc6b9;
  padding: 27px 0 25px;
}

.menu-reader-top,
.reader-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  color: #877569;
  font-size: 9px;
  letter-spacing: .12em;
}

.menu-controls {
  display: flex;
  align-items: center;
  gap: 9px;
}

.menu-controls span {
  margin-right: 10px;
}

.menu-controls button {
  width: 38px;
  height: 38px;
  border: 1px solid #cdc0b4;
  background: transparent;
  color: #6f5749;
  cursor: pointer;
  transition: background .22s, color .22s, opacity .22s;
}

.menu-controls button:hover:not(:disabled) {
  background: #715040;
  color: #fff;
}

.menu-controls button:disabled {
  opacity: .28;
  cursor: default;
}

.menu-pages {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  margin: 34px auto 23px;
  max-width: 1250px;
  background: #fff;
  box-shadow: 0 20px 52px rgba(65, 45, 34, .16);
  transition: opacity .12s ease, transform .12s ease;
}

.menu-pages.is-changing {
  opacity: .45;
  transform: translateY(3px);
}

.menu-page {
  border: 0;
  padding: 0;
  margin: 0;
  min-width: 0;
  aspect-ratio: 1.43;
  overflow: hidden;
  background: #f1ede6;
  cursor: zoom-in;
  line-height: 0;
}

.menu-page:first-child {
  border-right: 1px solid #e1d9ce;
}

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

/* Use the supplied long article as real scrollable content inside the phone. */
.phone-real-scroll {
  width: 100%;
  height: 100%;
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: #8b5f4c transparent;
  background: #6c3829;
}

.phone-real-scroll img {
  display: block;
  width: calc(100% + 2px);
  max-width: none;
  margin-left: -1px;
  height: auto;
}

.phone-display {
  inset: .95% 2.18%;
  border-radius: 12.2% / 5.7%;
  background: #3b211a;
  outline: 0;
}

.wechat-display {
  min-height: 390px;
  background: #eee5da;
  display: grid;
  place-items: center;
  overflow: hidden;
  position: relative;
}

.wechat-display img.asset-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 8%;
  background: transparent;
}

.wechat-display[data-screen="1"] img.asset-image { object-position: center 48%; }
.wechat-display[data-screen="2"] img.asset-image { object-position: center 84%; }

.wechat-panel > .section-label {
  margin-bottom: 14px;
}

/* Supplied culture-wall renders in the approved three-state editorial gallery. */
.culture-editorial { min-width: 0; }
.culture-gallery-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 16px;
  color: #8d7668;
  font: 9px/1.5 var(--latin);
  letter-spacing: .13em;
}
.culture-counter { color: #563f33; }
.culture-stage {
  position: relative;
  aspect-ratio: 1.78;
  overflow: hidden;
  background: #e5ded5;
}
.culture-slide {
  position: absolute;
  inset: 0;
  margin: 0;
  display: grid;
  place-items: center;
  opacity: 0;
  visibility: hidden;
  transform: translateY(7px);
  transition: opacity .34s ease, transform .34s ease, visibility .34s;
  pointer-events: none;
}
.culture-slide.active {
  opacity: 1;
  visibility: visible;
  transform: none;
  pointer-events: auto;
  cursor: zoom-in;
}
.culture-slide img { display: block; width: 100%; height: 100%; object-fit: contain; }
.culture-open {
  position: absolute;
  right: 14px;
  bottom: 14px;
  z-index: 4;
  min-height: 34px;
  padding: 0 13px;
  border: 1px solid rgba(255,255,255,.58);
  border-radius: 999px;
  background: rgba(45,35,30,.64);
  color: #fff;
  font: 8px/1 var(--latin);
  letter-spacing: .1em;
  cursor: pointer;
  backdrop-filter: blur(8px);
}
.culture-index { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 18px; margin-top: 18px; }
.culture-index button {
  position: relative;
  min-width: 0;
  min-height: 88px;
  padding: 17px 0 0;
  border: 0;
  border-top: 1px solid #c9bbae;
  background: transparent;
  color: #8c7769;
  text-align: left;
  cursor: pointer;
}
.culture-index button::before { content:""; position:absolute; top:-1px; left:0; width:0; height:1px; background:#6c4a3a; transition:width .3s ease; }
.culture-index button[aria-pressed="true"]::before { width: 100%; }
.culture-index button span { display:flex; justify-content:space-between; gap:10px; }
.culture-index b { color:#5d463b; font:12px/1.3 var(--serif); font-weight:400; }
.culture-index em { font:8px/1.5 var(--latin); font-style:normal; letter-spacing:.08em; }
.culture-index small { display:block; margin-top:12px; font-size:9px; line-height:1.7; }
.material-meta { margin-top: 22px; }

.footer-visual {
  position: relative;
  width: 100%;
  height: clamp(340px,45vw,650px);
  margin: 48px 0 0;
  overflow: hidden;
  background: #231a16;
  line-height: 0;
}
.footer-visual img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 52%;
  -webkit-mask-image: linear-gradient(to bottom,transparent 0%,#000 28%,#000 100%);
  mask-image: linear-gradient(to bottom,transparent 0%,#000 28%,#000 100%);
}

/* Remove the legacy diagonal hatch while retaining the quiet corner glow. */
.case-footer::before {
  background: radial-gradient(ellipse at 92% 12%,#835b443d,transparent 45%);
}

@media (max-width: 760px) {
  .portfolio-return {
    display: none;
  }

  .menu-toggle {
    display: block !important;
    position: absolute;
    top: 22px;
    right: 19px;
    z-index: 2;
  }

  .nav-portfolio {
    display: inline-block;
  }

  .hero {
    min-height: calc(100svh - 62px);
  }

  .hero-architect {
    inset: 56% 0 0;
  }

  .hero-architect img.asset-image {
    object-position: 62% center;
  }

  .hero-grain {
    background:
      linear-gradient(180deg, #f4f0e9 0%, #f4f0e9 49%, rgba(244,240,233,.98) 54%, rgba(244,240,233,.3) 70%, transparent 82%),
      radial-gradient(ellipse at 65% 20%, transparent 20%, #0000001f 100%);
  }

  .hero-copy {
    padding-bottom: 44svh;
  }

  .section-aside {
    grid-template-columns: 74px minmax(0, 1fr);
    grid-template-rows: auto auto;
    column-gap: 17px;
  }

  .section-number {
    grid-row: 1;
    margin: 0;
    line-height: .82;
  }

  .section-aside > div:nth-child(2) {
    grid-column: 2;
    grid-row: 1;
  }

  .section-aside .section-description {
    grid-column: 1 / -1;
    grid-row: 2;
    margin-top: 24px;
  }

  .menu-reader-top,
  .reader-bottom {
    align-items: flex-start;
    flex-direction: column;
    gap: 13px;
  }

  .menu-reader-top .menu-controls {
    width: 100%;
    justify-content: flex-end;
  }

  .menu-pages {
    margin-top: 24px;
  }

  .wechat-display,
  .wechat-display img.asset-image {
    min-height: 0;
    height: 360px;
  }

  .culture-stage { aspect-ratio: 1.42; }
  .culture-index { grid-template-columns: 1fr; gap: 0; }
  .culture-index button { min-height: 74px; }
  .footer-visual { height: 390px; margin-top: 36px; }
}

@media (max-width: 430px) {
  .section-aside {
    grid-template-columns: 62px minmax(0, 1fr);
  }

  .section-number {
    font-size: 50px;
  }

  .menu-pages {
    grid-template-columns: 1fr;
    box-shadow: 0 15px 36px rgba(65, 45, 34, .14);
  }

  .menu-page:first-child {
    border-right: 0;
    border-bottom: 1px solid #e1d9ce;
  }

  .phone-area {
    min-height: 530px;
  }
}
