:root {
  --bg: #050607;
  --panel: rgba(10, 11, 12, 0.48);
  --panel-strong: rgba(17, 19, 20, 0.72);
  --line: rgba(255, 255, 255, 0.12);
  --line-soft: rgba(255, 255, 255, 0.06);
  --text: rgba(246, 242, 233, 0.96);
  --muted: rgba(230, 223, 210, 0.62);
  --accent: #95b76e;
  --shadow: 0 32px 120px rgba(0, 0, 0, 0.42);
  --display: "Cormorant Garamond", "Times New Roman", "Songti SC", serif;
  --ui: "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--ui);
  overflow: hidden;
}

body.is-loading {
  overflow: hidden;
}

button,
a {
  color: inherit;
  font: inherit;
}

img {
  display: block;
  max-width: 100%;
}

.seo-content {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.noscript-content {
  min-height: 100vh;
  padding: 48px 24px;
  background: #050607;
  color: rgba(246, 242, 233, 0.96);
  font-family: var(--ui);
  line-height: 1.8;
}

.noscript-content h2 {
  margin: 0 0 18px;
  font-family: var(--display);
  font-size: clamp(34px, 7vw, 58px);
  font-weight: 500;
}

.noscript-content p {
  max-width: 720px;
  margin: 0;
  color: rgba(230, 223, 210, 0.72);
}

.experience {
  position: relative;
  min-height: 100vh;
  isolation: isolate;
  overflow: hidden;
  transition:
    opacity 720ms cubic-bezier(0.22, 1, 0.36, 1),
    visibility 720ms ease;
}

body.is-loading .experience {
  opacity: 0;
  visibility: hidden;
}

body.is-ready .experience {
  opacity: 1;
  visibility: visible;
}

body.is-experience-entered .experience {
  opacity: 1;
  visibility: visible;
}

.loading-screen {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 50% 18%, rgba(149, 183, 110, 0.12), transparent 24%),
    linear-gradient(180deg, rgba(14, 18, 14, 0.94), rgba(5, 7, 8, 0.98));
  transition:
    opacity 720ms cubic-bezier(0.22, 1, 0.36, 1),
    visibility 720ms ease;
}

body.is-ready .loading-screen {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loading-screen__inner {
  width: min(420px, calc(100vw - 48px));
  display: grid;
  justify-items: center;
  gap: 12px;
  text-align: center;
}

.loading-screen__logo-ring {
  position: relative;
  width: 104px;
  height: 104px;
  display: grid;
  place-items: center;
}

.loading-screen__logo-ring::before,
.loading-screen__logo-ring::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
}

.loading-screen__logo-ring::before {
  background:
    conic-gradient(
      from 0deg,
      rgba(149, 183, 110, 0.08),
      rgba(149, 183, 110, 0.94),
      rgba(149, 183, 110, 0.08)
    );
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 7px), #000 0);
  mask: radial-gradient(farthest-side, transparent calc(100% - 7px), #000 0);
  animation: loading-ring 1.6s linear infinite;
}

.loading-screen__logo-ring::after {
  inset: 9px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.loading-screen__logo {
  width: 76px;
  height: 76px;
  object-fit: contain;
  filter: drop-shadow(0 0 18px rgba(149, 183, 110, 0.28));
}

.loading-screen__eyebrow,
.loading-screen__status {
  margin: 0;
  font-size: 14px;
  letter-spacing: 0.22em;
  color: rgba(230, 223, 210, 0.66);
  text-transform: uppercase;
}

.background-stack,
.experience-noise,
.experience-vignette {
  position: fixed;
  inset: 0;
  pointer-events: none;
}

.transition-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.bg-layer {
  position: absolute;
  inset: -2vmax;
    background-image:
      linear-gradient(180deg, rgba(0, 0, 0, 0.36), rgba(0, 0, 0, 0.62)),
      var(--bg);
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  filter: blur(2px) saturate(0.9);
  transform: none;
  opacity: 0;
  transition:
      opacity 700ms ease,
      transform 900ms cubic-bezier(0.22, 1, 0.36, 1),
      filter 700ms ease;
}

.bg-layer::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 20%, rgba(255, 247, 232, 0.16), transparent 22%),
    radial-gradient(circle at 18% 18%, rgba(105, 139, 92, 0.22), transparent 30%),
    radial-gradient(circle at 82% 18%, rgba(176, 126, 78, 0.18), transparent 28%),
    rgba(4, 5, 6, 0.18);
}

.bg-layer.is-active {
  opacity: 1;
  transform: none;
  filter: blur(0) saturate(0.96);
}

.experience[data-scene="-1"] .bg-layer {
  opacity: 0;
}

.experience-noise {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), transparent 18%),
    repeating-linear-gradient(
      90deg,
      rgba(255, 255, 255, 0.018) 0,
      rgba(255, 255, 255, 0.018) 1px,
      transparent 1px,
      transparent 96px
    );
  opacity: 0.32;
}

.experience-vignette {
  background: radial-gradient(circle at center, transparent 36%, rgba(0, 0, 0, 0.68) 100%);
}

.transition-layer {
  z-index: 6;
}

.experience.is-card-holding .transition-layer {
  z-index: 1;
}

.background-stack,
.experience-noise,
.experience-vignette {
  z-index: 1;
}

.shell {
  position: relative;
  min-height: 100vh;
  padding: 0;
  z-index: auto;
}

.shell-frame {
  position: absolute;
  inset: 0;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.025), transparent 18%),
    rgba(6, 8, 9, 0.08);
  /* backdrop-filter: blur(1px); */
  pointer-events: none;
}

.shell-frame::before,
.shell-frame::after {
  content: none;
  position: absolute;
  top: 50%;
  width: 14px;
  height: 1px;
  background: rgba(255, 255, 255, 0.18);
}

.shell-frame::before {
  left: -10px;
}

.shell-frame::after {
  right: -10px;
}

.topbar,
.gallery-view,
.detail-view {
  position: relative;
}

.topbar {
  z-index: 8;
  pointer-events: auto;
}

.gallery-view,
.detail-view {
  z-index: 2;
}

.topbar {
  min-height: 88px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 40px 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand-logo {
  width: 76px;
  height: 76px;
  object-fit: contain;
  filter: drop-shadow(0 0 14px rgba(149, 183, 110, 0.35));
}

.brand-copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.brand-copy strong,
.brand-copy span,
.topnav button,
.mode-button,
.eyebrow,
.gallery-intro,
.cta-button,
.back-button,
.round-button,
.dot,
.stat-list span,
.side-card-label {
  letter-spacing: 0.2em;
}

.brand-copy strong {
  font-size: 16px;
  font-weight: 600;
  color: rgba(248, 244, 236, 0.94);
}

.brand-copy span {
  font-size: 13px;
  color: rgba(230, 223, 210, 0.74);
}

.topnav {
  display: flex;
  justify-content: center;
  gap: clamp(20px, 2vw, 36px);
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -10%);
  width: max-content;
  z-index: 1;
}

.topnav button,
.mode-button {
  border: 0;
  background: transparent;
  padding: 0;
  color: rgba(245, 238, 226, 0.68);
  font-size: 16px;
  text-transform: uppercase;
  cursor: pointer;
  pointer-events: auto;
  transition: color 220ms ease, opacity 220ms ease;
}

.topnav button {
  position: relative;
  padding-bottom: 10px;
}

.topnav button::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: rgba(245, 238, 226, 0.78);
  transform: scaleX(0);
  transform-origin: center;
  opacity: 0;
  transition:
    transform 220ms ease,
    opacity 220ms ease;
}

.topnav button:hover,
.topnav button.is-active,
.mode-button:hover {
  color: rgba(245, 238, 226, 0.96);
}

.topnav button:hover::after,
.topnav button.is-active::after {
  transform: scaleX(1);
  opacity: 1;
}

.mode-button {
  opacity: 0.8;
  position: relative;
  z-index: 2;
}

.gallery-view,
.detail-view {
  position: absolute;
  inset: 0;
  padding: 120px 62px 52px;
}

.gallery-view {
  display: grid;
  grid-template-rows: 1fr auto;
  justify-items: center;
  align-items: center;
  transition:
    opacity 500ms ease,
    transform 900ms cubic-bezier(0.22, 1, 0.36, 1),
    filter 500ms ease;
}

.gallery-copy {
  display: none;
}

.eyebrow {
  margin: 0 0 12px;
  font-size: 10px;
  color: rgba(245, 238, 226, 0.72);
  text-transform: uppercase;
}

.gallery-title {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(30px, 4vw, 62px);
  font-weight: 500;
  letter-spacing: 0.06em;
}

.gallery-intro {
  width: min(640px, 100%);
  margin: 14px auto 0;
  color: var(--muted);
  font-size: 10px;
  text-transform: uppercase;
  line-height: 1.9;
}

.strip-stage {
  display: grid;
  place-items: center;
  width: 100%;
  transition:
    transform 900ms cubic-bezier(0.22, 1, 0.36, 1),
    opacity 500ms ease,
    filter 500ms ease;
}

.strip-gallery {
  display: flex;
  align-items: flex-end;
  gap: clamp(10px, 1.3vw, 18px);
  padding-top: clamp(28px, 7vh, 54px);
  padding-bottom: clamp(16px, 2.4vh, 24px);
}

.strip {
  --strip-radius: 34px;
  position: relative;
  width: clamp(46px, 4.2vw, 72px);
  height: clamp(250px, 34vh, 420px);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--strip-radius);
  overflow: visible;
  background: transparent;
  isolation: isolate;
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.22);
  cursor: pointer;
  padding: 0;
  transition:
    transform 420ms cubic-bezier(0.22, 1, 0.36, 1),
    border-color 300ms ease,
    box-shadow 300ms ease;
}

.strip::before {
  content: "";
  position: absolute;
  left: 50%;
  top: calc(100% + 6px);
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.92);
  background: rgba(255, 255, 255, 0.08);
  transform: translate(-50%, 6px);
  opacity: 0;
  transition:
    opacity 260ms ease,
    border-color 260ms ease,
    background 260ms ease,
    transform 320ms cubic-bezier(0.22, 1, 0.36, 1);
  pointer-events: none;
}

body:not(.is-experience-entered) .strip {
  opacity: 0;
  filter: saturate(0.72);
}

.strip.is-entering {
  animation: strip-rise 900ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.strip:nth-child(1) {
  animation-delay: 60ms;
}

.strip:nth-child(2) {
  animation-delay: 120ms;
}

.strip:nth-child(3) {
  animation-delay: 180ms;
}

.strip:nth-child(4) {
  animation-delay: 240ms;
}

.strip:nth-child(5) {
  animation-delay: 300ms;
}

.strip:nth-child(6) {
  animation-delay: 360ms;
}

.strip:hover,
.strip.is-active {
  transform: translateY(-34px);
  border-color: rgba(255, 255, 255, 0.24);
  box-shadow: 0 26px 80px rgba(0, 0, 0, 0.32);
}

.strip:hover::before,
.strip.is-active::before {
  opacity: 1;
  transform: translate(-50%, 0);
  border-color: rgba(255, 255, 255, 0.92);
  background: rgba(255, 255, 255, 0.08);
}

.strip.is-active {
  border-color: rgba(255, 255, 255, 0.3);
  box-shadow:
    0 26px 80px rgba(0, 0, 0, 0.32),
    0 0 0 1px rgba(255, 255, 255, 0.08);
}

.strip-image,
.side-card-media,
.detail-hero {
  background-size: cover;
  background-position: center;
}

.strip-media {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border-radius: var(--strip-radius);
}

.strip-image {
  position: absolute;
  inset: -1px;
  border-radius: calc(var(--strip-radius) + 1px);
  background-image:
    linear-gradient(180deg, rgba(255, 255, 255, 0.12), transparent 22%, rgba(0, 0, 0, 0.36)),
    var(--image);
  transform: scale(1.08);
  transition: transform 420ms ease, filter 420ms ease;
  filter: saturate(0.92) brightness(0.88);
}

.strip:hover .strip-image,
.strip.is-active .strip-image {
  transform: scale(1.08);
  filter: saturate(1) brightness(0.98);
}

.strip-media::after,
.side-card-media::after {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: calc(var(--strip-radius) + 1px);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.1), transparent 20%, rgba(0, 0, 0, 0.24)),
    linear-gradient(120deg, rgba(255, 255, 255, 0.06), transparent 38% 62%, rgba(0, 0, 0, 0.1));
  pointer-events: none;
}

.strip-label {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 24px);
  display: grid;
  gap: 2px;
  min-width: max-content;
  opacity: 0;
  transform: translate(-50%, 12px);
  transition: opacity 280ms ease, transform 280ms ease;
  text-align: center;
  pointer-events: none;
}

.strip:hover .strip-label,
.strip.is-active .strip-label {
  opacity: 1;
  transform: translate(-50%, 0);
}

.strip.is-ghost {
  opacity: 0;
}

.strip-cn {
  font-size: 17px;
  font-weight: 600;
  white-space: nowrap;
}

.strip-en {
  font-size: 13px;
  color: rgba(245, 238, 226, 0.62);
  text-transform: uppercase;
  white-space: nowrap;
}

.gallery-footer {
  display: flex;
  align-items: center;
  gap: clamp(22px, 3vw, 34px);
  justify-self: center;
}

.round-button,
.cta-button,
.back-button,
.dot {
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.04);
  color: rgba(245, 238, 226, 0.82);
  transition:
    transform 220ms ease,
    border-color 220ms ease,
    background 220ms ease;
}

.round-button,
.dot {
  border-radius: 999px;
}

.round-button {
  width: 59px;
  height: 31px;
  display: grid;
  place-items: center;
  padding: 0;
  cursor: pointer;
}

.round-button span {
  width: 14px;
  height: 14px;
  border-top: 1px solid currentColor;
  border-right: 1px solid currentColor;
}

#prevButton span {
  transform: rotate(-135deg);
}

#nextButton span {
  transform: rotate(45deg);
}

.cta-button,
.back-button {
  height: 31px;
  padding: 0 14px;
  border-radius: 999px;
  font-size: 13px;
  text-transform: uppercase;
  cursor: pointer;
}

.gallery-footer .cta-button {
  min-width: 126px;
  border-color: transparent;
  background: transparent;
  color: rgba(245, 238, 226, 0.86);
  font-size: 20px;
  font-weight: 600;
  line-height: 1.1;
}

.round-button:hover,
.cta-button:hover,
.back-button:hover,
.dot:hover,
.dot.is-active {
  transform: translateY(-1px);
  border-color: rgba(255, 255, 255, 0.24);
  background: rgba(255, 255, 255, 0.08);
}

.detail-view {
  position: absolute;
  inset: 0;
  padding: 0;
  --detail-max-w: 100%;
  --detail-hero-h: clamp(224px, 33.1vh, 256px);
  --detail-gap: 0px;
  --detail-text-col: clamp(420px, 48vw, 620px);
  --detail-media-col: clamp(250px, 26vw, 330px);
  --detail-col-gap: clamp(42px, 5vw, 64px);
  --detail-content-w: calc(var(--detail-text-col) + var(--detail-media-col) + var(--detail-col-gap));
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition:
    opacity 320ms ease,
    visibility 500ms ease;
}

.experience[data-mode="detail"] .detail-view {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  z-index: 4;
}

.experience[data-mode="detail"] .gallery-view {
  opacity: 0;
  filter: none;
  transform: none;
  pointer-events: none;
}

.experience[data-mode="detail"] .strip-stage {
  transform: none;
  opacity: 0;
  filter: none;
}

.experience.is-transitioning .gallery-view {
  pointer-events: none;
  opacity: 1;
  filter: none;
  transform: none;
}

.experience.is-transitioning .strip-stage {
  transform: none;
  opacity: 1;
  filter: none;
}

.experience.is-transitioning .detail-view {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.experience.is-returning .gallery-view {
  pointer-events: none;
  opacity: 1;
  filter: none;
  transform: none;
}

.experience.is-returning .strip-stage {
  transform: none;
  opacity: 1;
  filter: none;
}

.experience.is-returning .detail-view {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.experience.is-measuring .detail-view {
  opacity: 0 !important;
}

.transition-card {
  position: absolute;
  border-radius: 34px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 28px 120px rgba(0, 0, 0, 0.38);
  background-size: cover;
  background-position: center top;
  opacity: 0;
  transform-origin: center center;
  will-change: left, top, width, height, transform, opacity;
  contain: layout style paint;
  backface-visibility: hidden;
  transform: translateZ(0);
  transition:
    left 980ms cubic-bezier(0.2, 0.86, 0.22, 1),
    top 980ms cubic-bezier(0.2, 0.86, 0.22, 1),
    width 980ms cubic-bezier(0.2, 0.86, 0.22, 1),
    height 980ms cubic-bezier(0.2, 0.86, 0.22, 1),
    border-radius 980ms cubic-bezier(0.2, 0.86, 0.22, 1),
    opacity 380ms ease,
    transform 980ms cubic-bezier(0.2, 0.86, 0.22, 1);
}

.transition-card.is-persistent {
  border: 0;
  box-shadow: none;
  background-position: center top;
}

.transition-card.is-persistent::before,
.transition-card.is-persistent::after {
  background: none;
}

.transition-card::before,
.transition-card::after {
  content: "";
  position: absolute;
  inset: 0;
}

.transition-card::before {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.14), transparent 22%, rgba(0, 0, 0, 0.3)),
    linear-gradient(120deg, rgba(255, 255, 255, 0.08), transparent 40% 60%, rgba(0, 0, 0, 0.16));
}

.transition-card::after {
  background: linear-gradient(180deg, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.28));
}

.detail-hero {
  position: absolute;
  top: 0;
  left: 50%;
  right: auto;
  width: var(--detail-max-w);
  height: var(--detail-hero-h);
  overflow: hidden;
  border-radius: 0;
  background-color: rgba(6, 8, 9, 0.2);
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center top;
  background-attachment: fixed;
  box-shadow: 0 22px 72px rgba(0, 0, 0, 0.3);
  transform: translateX(-50%);
}

.detail-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(18, 20, 19, 0.24), transparent 58%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(0, 0, 0, 0.18));
  pointer-events: none;
}

.detail-body {
  position: absolute;
  inset: 0;
  display: block;
  box-sizing: border-box;
  padding-top: calc(var(--detail-hero-h) + var(--detail-gap));
  overflow: hidden;
  transform: translateY(54px);
  opacity: 0;
  transition:
    opacity 520ms ease,
    transform 900ms cubic-bezier(0.22, 1, 0.36, 1);
}

.experience[data-mode="detail"] .detail-body {
  transform: translateY(0);
  opacity: 1;
}

.experience.is-transitioning .detail-body {
  transform: translateY(54px);
  opacity: 0;
}

.experience.is-returning .detail-body {
  transform: translateY(54px);
  opacity: 0;
}

.detail-hero-overlay {
  display: none;
}

.detail-hero-copy {
  position: absolute;
  left: max(54px, calc((100% - var(--detail-content-w)) / 2));
  right: max(54px, calc((100% - var(--detail-content-w)) / 2));
  top: clamp(74px, 12.7vh, 94px);
  z-index: 1;
  transition:
    opacity 320ms ease,
    transform 700ms cubic-bezier(0.22, 1, 0.36, 1);
}

.experience.is-returning .detail-hero-copy {
  opacity: 0;
  transform: translateY(18px);
}

.experience:not([data-mode="detail"]) .detail-hero-copy {
  opacity: 0;
  transform: translateY(18px);
}

#detailEyebrow {
  display: none;
}


.detail-title {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(34px, 4vw, 52px);
  font-weight: 500;
}

.detail-summary {
  display: -webkit-box;
  width: min(520px, 100%);
  margin: 10px 0 0;
  overflow: hidden;
  color: rgba(246, 242, 233, 0.78);
  font-size: clamp(14px, 1.25vw, 16px);
  line-height: 1.7;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 1;
}

.detail-reading {
  position: relative;
  display: grid;
  box-sizing: border-box;
  grid-template-columns: var(--detail-text-col) var(--detail-media-col);
  align-items: start;
  justify-content: center;
  width: var(--detail-max-w);
  height: 100%;
  min-height: 0;
  margin: 0 auto;
  padding: clamp(26px, 4vh, 42px) 0 clamp(30px, 5vh, 52px);
  gap: var(--detail-col-gap);
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: none;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-right: 0;
  border-left: 0;
  border-radius: 0;
  background:
    linear-gradient(180deg, rgba(96, 97, 90, 0.24), rgba(48, 50, 47, 0.17)),
    rgba(56, 56, 52, 0.16);
  /* backdrop-filter: blur(12px); */
  box-shadow: 0 26px 96px rgba(0, 0, 0, 0.18);
  min-height: 0;
}

.detail-reading::-webkit-scrollbar {
  display: none;
}

.detail-reading::before {
  content: "";
  position: absolute;
  left: clamp(58px, 8vw, 90px);
  top: clamp(64px, 17vh, 118px);
  width: 1px;
  height: clamp(42px, 8vh, 68px);
  background: rgba(255, 255, 255, 0.48);
}

.reading-panel,
.side-card {
  border: 0;
  border-radius: 0;
  background: transparent;
  backdrop-filter: blur(18px);
  box-shadow: none;
}

.experience.is-transitioning .shell-frame,
.experience.is-returning .shell-frame,
.experience.is-transitioning .reading-panel,
.experience.is-returning .reading-panel,
.experience.is-transitioning .side-card,
.experience.is-returning .side-card {
  backdrop-filter: none;
}

.reading-panel {
  display: flex;
  box-sizing: border-box;
  min-height: 0;
  padding: clamp(18px, 2.8vw, 34px) clamp(18px, 3vw, 38px);
  overflow: visible;
  flex-direction: column;
  gap: clamp(16px, 2vh, 22px);
}

.reading-columns {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(12px, 2vh, 18px);
}

.reading-columns p,
.side-card-text {
  margin: 0;
  font-size: clamp(15px, 1.35vw, 17px);
  line-height: 1.9;
  color: rgba(238, 232, 222, 0.76);
}

.stat-list {
  list-style: none;
  margin: auto 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.stat-list li {
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.stat-list strong {
  display: block;
  font-family: var(--display);
  font-size: clamp(22px, 2.4vw, 28px);
  font-weight: 500;
}

.stat-list span {
  display: block;
  margin-top: 6px;
  color: rgba(230, 223, 210, 0.56);
  font-size: 11px;
  text-transform: uppercase;
}

.side-card {
  display: grid;
  align-self: start;
  height: clamp(340px, 54vh, 560px);
  min-height: 0;
  grid-template-rows: minmax(0, 1fr);
  overflow: hidden;
}

.side-card-media {
  position: relative;
  overflow: hidden;
  min-height: 0;
  border-radius: 24px;
  background-image:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), transparent 24%, rgba(0, 0, 0, 0.24)),
    url("./assets/aerial-farm.jpg");
  box-shadow: 0 22px 66px rgba(0, 0, 0, 0.28);
}

.logo-box {
  display: none;
}

.logo-box img {
  width: 58px;
  height: 58px;
  object-fit: contain;
}

.side-card-copy {
  display: none;
}

.side-card-label {
  margin: 0 0 10px;
  font-size: 11px;
  color: rgba(230, 223, 210, 0.56);
  text-transform: uppercase;
}

.side-card-title {
  margin: 0 0 12px;
  font-family: var(--display);
  font-size: 26px;
  font-weight: 500;
}

.detail-toolbar {
  position: absolute;
  top: 58%;
  right: clamp(18px, 2.4vw, 34px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transform: translateY(-50%);
}

.detail-dots {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 10px 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  background: rgba(8, 10, 10, 0.34);
  backdrop-filter: blur(12px);
  pointer-events: auto;
}

.dot {
  width: 16px;
  height: 16px;
  cursor: pointer;
  padding: 0;
}

.detail-toolbar .back-button {
  display: inline-flex;
  width: 34px;
  min-width: 0;
  height: auto;
  min-height: 52px;
  padding: 10px 8px;
  align-items: center;
  justify-content: center;
  border-color: rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  background: rgba(8, 10, 10, 0.34);
  color: rgba(246, 242, 233, 0.72);
  font-size: 13px;
  line-height: 1.15;
  letter-spacing: 0;
  text-align: center;
  writing-mode: vertical-rl;
  backdrop-filter: blur(12px);
}

@keyframes strip-rise {
  from {
    opacity: 0;
    filter: saturate(0.72);
  }

  to {
    opacity: 1;
    filter: saturate(1);
  }
}

@keyframes loading-ring {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

@media (max-width: 880px) {
  .topbar {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 14px;
    padding: 14px 20px 0;
  }

  .topnav {
    position: relative;
    left: auto;
    top: auto;
    transform: none;
    width: auto;
    grid-column: 1 / -1;
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .gallery-view {
    padding: 126px 26px 26px;
  }

  .detail-view {
    inset: 0;
    --detail-max-w: 100%;
    --detail-hero-h: clamp(227px, 38.1vh, 267px);
    --detail-text-col: clamp(360px, 48vw, 520px);
    --detail-media-col: clamp(220px, 27vw, 280px);
    --detail-col-gap: clamp(34px, 5vw, 54px);
  }

  .strip {
    height: clamp(220px, 30vh, 340px);
  }

  .detail-reading {
    grid-template-columns: var(--detail-text-col) var(--detail-media-col);
  }
}

@media (max-width: 780px) {
  .background-stack,
  .experience-noise,
  .experience-vignette {
      inset: 0;
    }

  .bg-layer {
      inset: -1.5vmax;
    }

  body {
    overflow: auto;
  }

  .shell {
    padding: 0;
  }

  .gallery-view {
    position: absolute;
    inset: 0;
    padding: 76px 18px 142px;
  }

  .detail-view {
    position: absolute;
    inset: 94px 18px 24px;
    --detail-max-w: 100%;
    --detail-hero-h: 279px;
  }

  .gallery-view {
    min-height: 100vh;
  }

  .strip-gallery {
    gap: 8px;
    padding-top: 12px;
    padding-bottom: 14px;
  }

  .strip {
    --strip-radius: 22px;
    width: clamp(34px, 11vw, 48px);
    height: min(54vw, 280px);
    border-radius: var(--strip-radius);
  }

  .strip:hover,
  .strip.is-active {
    transform: translateY(-18px);
  }

  .strip::before {
    top: calc(100% + 1px);
    width: 24px;
    height: 24px;
  }

  .detail-hero-copy {
    left: 20px;
    right: 20px;
    top: clamp(62px, 10.4vh, 78px);
  }

  .detail-hero {
    height: var(--detail-hero-h);
  }

  .detail-body {
    padding-top: calc(var(--detail-hero-h) + var(--detail-gap));
    overflow: auto;
  }

  .reading-panel {
    padding: 20px;
    overflow: visible;
  }

  .reading-columns,
  .stat-list {
    grid-template-columns: 1fr;
  }

  .detail-reading {
    grid-template-columns: 1fr;
    height: 100%;
    min-height: calc(100vh - 360px);
    padding: 0;
    overflow-x: hidden;
    overflow-y: auto;
  }

  .side-card {
    display: none;
  }

  .detail-toolbar {
    top: auto;
    right: auto;
    bottom: 0;
    left: 0;
    flex-direction: row;
    align-items: center;
    gap: 14px;
    transform: none;
  }

  .detail-dots {
    flex-direction: row;
  }

  .detail-toolbar .back-button {
    width: auto;
    min-height: 0;
    padding: 8px 12px;
    font-size: 13px;
    line-height: 1;
    writing-mode: horizontal-tb;
  }

  .experience[data-mode="detail"] .strip-stage {
    transform: translateY(-4vh) scale(1.6);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0ms !important;
  }
}
