/* ============ INTERIOR WORKS — showroom ============
   Left: numbered index of divisions. Right: one large auto-playing stage
   with the division's photos as a filmstrip underneath. */
.interior { background: var(--off-white); }

/* ---- Head: title left, counts right ---- */
.intr__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px 40px;
}
.intr__head .section-head { margin: 0; }
.intr__meta {
  margin: 0 0 8px;
  font-size: var(--fs-small);
  color: var(--text-muted);
  letter-spacing: 0.02em;
}
.intr__meta b {
  color: var(--text-strong);
  font-size: 1.15em;
  font-variant-numeric: tabular-nums;
}
.intr__meta span { margin: 0 8px; color: var(--red); }

/* ---- Showroom grid ---- */
.intr__show {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) minmax(0, 1.7fr);
  gap: clamp(24px, 3.4vw, 52px);
  margin-top: clamp(30px, 4vw, 48px);
  align-items: start;
}

/* ---- Index ---- */
.intr__index {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line-strong);
  position: sticky;
  top: calc(var(--nav-h) + 20px);
}
.intr__index li { border-bottom: 1px solid var(--line-strong); }

.intr__tab {
  position: relative;
  display: flex;
  align-items: baseline;
  gap: 14px;
  width: 100%;
  padding: clamp(14px, 1.6vw, 19px) 4px clamp(14px, 1.6vw, 19px) 18px;
  background: none;
  border: 0;
  text-align: left;
  cursor: pointer;
  color: var(--text-muted);
  transition: color 0.35s var(--ease), padding 0.45s var(--ease);
}
/* red rule that grows in from the left on the active row */
.intr__tab::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 3px;
  height: 0;
  background: var(--red);
  border-radius: 3px;
  transform: translateY(-50%);
  transition: height 0.45s var(--ease);
}
.intr__no {
  flex: none;
  font-size: var(--fs-tiny);
  font-weight: 700;
  letter-spacing: 0.12em;
  font-variant-numeric: tabular-nums;
}
.intr__name {
  flex: 1;
  font-size: clamp(1.05rem, 1.55vw, 1.35rem);
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.2;
}
.intr__n {
  flex: none;
  font-size: var(--fs-tiny);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.intr__tab.is-active { color: var(--text-strong); padding-left: 26px; }
.intr__tab.is-active::before { height: 62%; }
.intr__tab.is-active .intr__no { color: var(--red); }
@media (hover: hover) and (pointer: fine) {
  .intr__tab:not(.is-active):hover { color: var(--text-strong); padding-left: 22px; }
}
.intr__tab:focus-visible { outline: 2px solid var(--red); outline-offset: -2px; }

/* ---- Stage ---- */
.intr__view { min-width: 0; }

.intr__stage {
  position: relative;
  margin: 0;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--ink);
  isolation: isolate;
  cursor: zoom-in;
}
/* the same photo, blurred, fills the frame so tall shots are never cropped */
.intr__bg {
  position: absolute;
  inset: -40px;
  width: calc(100% + 80px);
  height: calc(100% + 80px);
  object-fit: cover;
  filter: blur(28px) brightness(0.55) saturate(1.2);
  z-index: -1;
}
.intr__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.intr__img.is-in { animation: intrShow 0.9s var(--ease) both; }
@keyframes intrShow {
  from { opacity: 0; transform: scale(1.035); }
  to   { opacity: 1; transform: none; }
}

/* autoplay progress */
.intr__bar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: rgba(255, 255, 255, 0.14);
  z-index: 2;
}
.intr__bar i {
  display: block;
  height: 100%;
  width: 100%;
  background: var(--red);
  transform-origin: left;
  transform: scaleX(0);
}
.intr__bar i.is-run { animation: intrBar var(--intr-dur, 5s) linear forwards; }
.intr__stage.is-paused .intr__bar i { animation-play-state: paused; }
@keyframes intrBar { to { transform: scaleX(1); } }

/* label + controls sit on a soft bottom gradient */
.intr__stage::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 42%;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.62), transparent);
  pointer-events: none;
}
.intr__label {
  position: absolute;
  left: clamp(18px, 2.4vw, 30px);
  bottom: clamp(16px, 2.2vw, 26px);
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 4px;
  color: #fff;
  pointer-events: none;
}
.intr__now {
  font-size: clamp(1.25rem, 2.3vw, 1.9rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
}
.intr__ctr {
  font-size: var(--fs-tiny);
  letter-spacing: 0.14em;
  color: rgba(255, 255, 255, 0.7);
  font-variant-numeric: tabular-nums;
}
.intr__ctr b { color: #fff; }

.intr__ctrls {
  position: absolute;
  right: clamp(14px, 2vw, 24px);
  bottom: clamp(14px, 2vw, 24px);
  z-index: 2;
  display: flex;
  gap: 8px;
}
.intr__btn {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(6px);
  color: #fff;
  font-size: 0.9rem;
  cursor: pointer;
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease), transform 0.3s var(--ease);
}
.intr__btn:hover { background: var(--red); border-color: var(--red); transform: translateY(-2px); }
.intr__btn:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.intr__stage:focus-visible { outline: 3px solid var(--red); outline-offset: 4px; }

/* ---- Filmstrip ---- */
.intr__strip {
  display: flex;
  gap: 10px;
  margin-top: 14px;
  padding: 4px 2px 10px;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  scrollbar-width: thin;
  scrollbar-color: var(--line-strong) transparent;
}
.intr__ph {
  flex: none;
  width: clamp(84px, 9vw, 112px);
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--ink);
  scroll-snap-align: start;
  opacity: 0.55;
  outline: 2px solid transparent;
  outline-offset: 2px;
  transition: opacity 0.3s var(--ease), outline-color 0.3s var(--ease);
}
.intr__ph[hidden] { display: none; }
.intr__ph img { width: 100%; height: 100%; object-fit: cover; }
.intr__ph:hover { opacity: 0.9; }
.intr__ph.is-current { opacity: 1; outline-color: var(--red); }
.intr__ph:focus-visible { opacity: 1; outline-color: var(--text-strong); }

@media (prefers-reduced-motion: reduce) {
  .intr__img.is-in { animation: none; }
  .intr__bar { display: none; }
}

/* ============ Materials strip ============ */
.intr__materials {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: clamp(18px, 2.4vw, 32px);
  margin-top: clamp(56px, 6vw, 84px);
  padding: clamp(22px, 2.6vw, 32px) clamp(24px, 3vw, 40px);
  border-radius: var(--radius-lg);
  background: var(--ink);
  background-image:
    repeating-linear-gradient(90deg,
      rgba(255, 255, 255, 0.022) 0 1px,
      transparent 1px 7px);
}

.intr__bar-lead {
  font-size: clamp(1.05rem, 1.7vw, 1.4rem);
  font-weight: 700;
  letter-spacing: -0.015em;
  color: #fff;
  margin: 0;
}
.intr__bar-lead .accent { color: var(--red); }

.intr__mats {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0;
}
.intr__mats li {
  padding: 9px 20px;
  border: 1px solid var(--line-on-dark);
  border-radius: var(--radius-pill);
  font-size: var(--fs-small);
  font-weight: 600;
  color: #fff;
  transition: border-color 0.35s var(--ease), background 0.35s var(--ease);
}
.intr__mats li:hover { border-color: var(--red); background: rgba(225, 29, 42, 0.14); }

/* ---- Responsive ---- */
@media (max-width: 900px) {
  .intr__show { grid-template-columns: 1fr; }
  /* index turns into a swipeable row above the stage */
  .intr__index {
    position: static;
    display: flex;
    gap: 8px;
    overflow-x: auto;
    border: 0;
    margin-inline: calc(var(--gutter) * -1);
    padding: 2px var(--gutter) 6px;
    scrollbar-width: none;
  }
  .intr__index::-webkit-scrollbar { display: none; }
  .intr__index li { flex: none; border: 0; }
  .intr__tab,
  .intr__tab.is-active {
    padding: 10px 16px;
    gap: 8px;
    border: 1.5px solid var(--line-strong);
    border-radius: var(--radius-pill);
    background: var(--white);
  }
  .intr__tab::before { display: none; }
  .intr__tab.is-active { border-color: var(--text-strong); background: var(--text-strong); color: #fff; }
  .intr__tab.is-active .intr__no { color: var(--red); }
  .intr__name { font-size: var(--fs-small); white-space: nowrap; }
  .intr__stage { aspect-ratio: 4 / 3; }
}
@media (max-width: 580px) {
  .intr__head { align-items: flex-start; }
  .intr__btn { width: 38px; height: 38px; }
  .intr__ctrls [data-full] { display: none; }   /* a tap on the photo already opens it */
  .intr__materials { flex-direction: column; align-items: flex-start; }
}
