.staircase-scene {
  --stair-progress: 0;
  --stair-art-y: 0px;
  position: fixed;
  z-index: 6;
  right: clamp(8px, 2.4vw, 36px);
  top: 92px;
  width: min(31vw, 390px);
  height: calc(100svh - 118px);
  border: 1px solid rgba(23, 19, 16, 0.35);
  background: rgba(255, 248, 231, 0.42);
  overflow: hidden;
  pointer-events: none;
  opacity: 0.72;
  mix-blend-mode: multiply;
}

.staircase-label {
  position: absolute;
  z-index: 3;
  left: 12px;
  top: 12px;
  padding: 6px 8px;
  background: var(--paper-2);
  border: 1px solid var(--ink);
  color: var(--red);
  font: 900 9px/1 Arial, sans-serif;
  letter-spacing: 0.14em;
}

.staircase-art {
  position: absolute;
  inset: -20% -24%;
  background-image: url("/assets/images/emergency-staircase.svg");
  background-repeat: repeat-y;
  background-position: center var(--stair-art-y);
  background-size: 118% auto;
  filter: contrast(1.25);
  opacity: 0.56;
}

.staircase-art::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(244, 236, 217, 0.7), transparent 34%, rgba(244, 236, 217, 0.2)),
    repeating-linear-gradient(0deg, transparent 0 18px, rgba(215, 44, 34, 0.16) 19px 20px);
}

.stair-girl {
  --girl-x: 62%;
  --girl-y: 8%;
  position: absolute;
  z-index: 4;
  left: var(--girl-x);
  top: var(--girl-y);
  width: clamp(54px, 7vw, 88px);
  transform: translate(-50%, -50%);
  pointer-events: auto;
  filter: drop-shadow(9px 11px 0 rgba(215, 44, 34, 0.24));
}

.girl-silhouette-img {
  width: 100%;
  height: auto;
}

.girl-frame-b {
  position: absolute;
  inset: 0;
  opacity: calc(var(--stair-progress) * 0.9);
}

.member-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.member-card {
  min-height: 360px;
  padding: 18px;
  background: var(--paper-2);
  border: 1px solid var(--ink);
  box-shadow: 7px 7px 0 var(--shadow);
  display: flex;
  flex-direction: column;
  transform: rotate(-0.5deg);
}

.member-card:nth-child(even) { transform: rotate(0.8deg); }

.portrait {
  aspect-ratio: 1;
  border: 1px solid var(--ink);
  background:
    linear-gradient(45deg, transparent 0 48%, var(--red) 48% 52%, transparent 52%),
    var(--paper-3);
  display: grid;
  place-items: center;
  overflow: hidden;
  margin-bottom: 18px;
}

.portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.72) contrast(1.06);
}

.portrait span {
  font: 950 72px/1 Arial, sans-serif;
  color: var(--red);
}

.member-card p,
.member-card small {
  margin: 0;
}

.member-card p {
  font: 900 11px Arial, sans-serif;
  letter-spacing: 0.13em;
  color: var(--blue);
}

.member-card h3 {
  margin: 9px 0;
  font-size: 28px;
  line-height: 1.1;
}

.member-card small {
  font-size: 14px;
}

.member-social {
  margin-top: auto;
  align-self: flex-start;
  border-bottom: 2px solid var(--red);
  font-weight: 900;
}

.featured-product {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(260px, 0.55fr) 1fr;
  gap: clamp(24px, 5vw, 64px);
  padding: clamp(24px, 5vw, 56px);
  background: var(--paper-2);
  border: 1px solid var(--ink);
  box-shadow: 11px 11px 0 var(--ink);
}

.service-art {
  min-height: 330px;
  position: relative;
  background:
    linear-gradient(90deg, rgba(255, 248, 231, 0.18) 1px, transparent 1px),
    linear-gradient(rgba(255, 248, 231, 0.18) 1px, transparent 1px),
    #201915;
  background-size: 26px 26px;
  overflow: hidden;
}

.service-art::before,
.service-art::after {
  content: "";
  position: absolute;
  inset: auto auto 36px 32px;
  width: 68%;
  height: 42%;
  border: 3px solid var(--paper-2);
  transform: rotate(-8deg);
}

.service-art::after {
  inset: 40px 30px auto auto;
  width: 42%;
  height: 42%;
  border-color: var(--red);
  transform: rotate(12deg);
}

.product-door {
  position: absolute;
  left: 42px;
  bottom: 42px;
  width: 78px;
  height: 126px;
  border: 2px solid var(--yellow);
  background: rgba(244, 199, 79, 0.08);
}

.product-no {
  position: absolute;
  right: 20px;
  bottom: 18px;
  color: var(--paper-2);
  font: 900 12px Arial, sans-serif;
  letter-spacing: 0.2em;
}

.product-copy h3 {
  margin: 10px 0 20px;
  font-size: clamp(42px, 8vw, 92px);
  line-height: 1;
}

.product-copy > p:not(:first-child) {
  max-width: 720px;
  margin: 0 0 24px;
  font-size: 16px;
}

.service-flow {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin: 22px 0;
}

.service-flow span,
.tag {
  display: inline-block;
  padding: 9px 11px;
  border: 1px solid var(--ink);
  background: var(--paper);
  font-weight: 900;
  font-size: 12px;
}

.tag {
  margin: 0 7px 7px 0;
  color: var(--red);
}

.product-subhead {
  grid-column: 1 / -1;
  display: flex;
  gap: 14px;
  align-items: baseline;
  margin-top: 20px;
}

.product-list {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.product-card {
  min-height: 430px;
  display: grid;
  grid-template-rows: 190px 1fr;
  background: var(--paper-2);
  border: 1px solid var(--ink);
  box-shadow: 7px 7px 0 var(--shadow);
  overflow: hidden;
}

.product-card-art {
  min-height: 190px;
  position: relative;
  background: var(--ink);
  color: var(--paper-2);
  overflow: hidden;
}

.art-site {
  background:
    repeating-linear-gradient(-6deg, rgba(255, 248, 231, 0.16) 0 12px, transparent 12px 24px),
    #201915;
}

.art-site span {
  position: absolute;
  left: 22px;
  bottom: 20px;
  font: 950 54px/1 Arial, sans-serif;
}

.art-site i,
.art-survey i,
.art-survey b {
  position: absolute;
  border: 2px solid var(--red);
  inset: 24px 28px 48px 80px;
  transform: rotate(-9deg);
}

.art-survey {
  background:
    radial-gradient(circle at 72% 34%, var(--yellow) 0 28px, transparent 29px),
    linear-gradient(135deg, #244f46, #1c1713);
}

.art-survey span {
  position: absolute;
  left: 30px;
  top: 12px;
  font: 950 112px/1 Arial, sans-serif;
}

.art-survey b {
  inset: auto 34px 32px 42px;
  height: 48px;
  border-color: var(--paper-2);
  transform: rotate(4deg);
}

.art-kuraimori img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-card-copy {
  padding: 22px;
  display: grid;
  gap: 10px;
}

.product-card-copy h3 {
  margin: 0;
  font-size: 30px;
  line-height: 1.15;
}

.product-card-copy span {
  font-size: 14px;
}

.product-card-copy i {
  align-self: end;
  justify-self: end;
  font-style: normal;
  font-size: 28px;
  color: var(--red);
}

@media (max-width: 1020px) {
  .staircase-scene {
    width: 170px;
    opacity: 0.44;
  }
  .member-grid,
  .product-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .featured-product { grid-template-columns: 1fr; }
}

@media (max-width: 680px) {
  .staircase-scene {
    right: -48px;
    width: 150px;
    opacity: 0.24;
  }
  .staircase-label { display: none; }
  .member-grid,
  .product-list,
  .service-flow { grid-template-columns: 1fr; }
  .member-card { min-height: auto; }
  .featured-product { box-shadow: 7px 7px 0 var(--ink); }
}

@media (prefers-reduced-motion: reduce) {
  .staircase-art { background-position: center top; }
  .stair-girl { top: 56%; left: 44%; }
}

/* Monochrome underground hideout direction */
.staircase-scene {
  right: clamp(0px, 2vw, 24px);
  top: 72px;
  width: min(40vw, 500px);
  height: calc(100svh - 72px);
  border-color: rgba(255, 255, 255, 0.4);
  background: rgba(0, 0, 0, 0.62);
  opacity: 0.84;
  mix-blend-mode: normal;
  box-shadow: inset 0 0 80px rgba(0, 0, 0, 0.92), -24px 0 80px rgba(0, 0, 0, 0.72);
}

.staircase-label {
  background: #f5f5f5;
  color: #050505;
  border-color: #f5f5f5;
}

.staircase-art {
  inset: -24% -34%;
  background-size: 132% auto;
  filter: grayscale(1) invert(1) contrast(1.75) brightness(0.62);
  opacity: 0.86;
}

.staircase-art::after {
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.9), transparent 38%, rgba(0, 0, 0, 0.42)),
    repeating-linear-gradient(0deg, transparent 0 18px, rgba(255, 255, 255, 0.09) 19px 20px);
}

.stair-girl {
  filter: grayscale(1) contrast(1.4) brightness(0.86) drop-shadow(10px 12px 0 rgba(255, 255, 255, 0.22));
}

.member-card,
.featured-product,
.product-card {
  background: rgba(10, 10, 10, 0.9);
  border-color: rgba(255, 255, 255, 0.55);
  box-shadow: 7px 7px 0 rgba(255, 255, 255, 0.14);
}

.portrait {
  border-color: rgba(255, 255, 255, 0.5);
  background:
    linear-gradient(45deg, transparent 0 48%, rgba(255, 255, 255, 0.5) 48% 52%, transparent 52%),
    #181818;
}

.portrait img,
.art-kuraimori img {
  filter: grayscale(1) contrast(1.22);
}

.portrait span,
.member-card p,
.product-card-copy i,
.tag {
  color: #f5f5f5;
}

.member-social {
  border-bottom-color: #f5f5f5;
}

.service-art,
.art-site,
.art-survey {
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.14) 1px, transparent 1px),
    linear-gradient(rgba(255, 255, 255, 0.14) 1px, transparent 1px),
    #050505;
  background-size: 24px 24px;
}

.service-art::before,
.service-art::after,
.art-site i,
.art-survey i,
.art-survey b,
.product-door {
  border-color: #f5f5f5;
}

.product-door {
  background: rgba(255, 255, 255, 0.06);
}

.service-flow span,
.tag {
  background: #050505;
  border-color: rgba(255, 255, 255, 0.54);
}

@media (max-width: 1020px) {
  .staircase-scene {
    width: 230px;
    opacity: 0.5;
  }
}

@media (max-width: 680px) {
  .staircase-scene {
    right: -76px;
    width: 190px;
    opacity: 0.34;
  }
}

/* Generated-key-visual redesign */
.staircase-scene {
  top: 72px;
  right: 0;
  width: min(34vw, 420px);
  height: calc(100svh - 72px);
  border: 0;
  background: transparent;
  box-shadow: none;
  opacity: 1;
}

.staircase-art,
.staircase-label {
  display: none;
}

.stair-girl {
  width: clamp(48px, 5.2vw, 78px);
  opacity: calc(0.06 + var(--stair-progress) * 0.78);
  filter: grayscale(1) contrast(1.7) brightness(0.9) drop-shadow(0 0 12px rgba(255, 255, 255, 0.28));
}

.member-card,
.featured-product,
.product-card {
  background: rgba(0, 0, 0, 0.76);
  backdrop-filter: blur(5px);
}

.product-list {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

@media (min-width: 1021px) {
  .product-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 1020px) {
  .staircase-scene {
    width: 180px;
    opacity: 0.62;
  }
}

@media (max-width: 680px) {
  .staircase-scene {
    right: -46px;
    width: 140px;
    opacity: 0.42;
  }
}
