/* Overview — one-screen editorial layout (mirrors Inspiration) */
html:has(.page-overview) {
  overflow: hidden;
}

.page-overview.page-shell {
  overflow: hidden;
}

.page-overview .overview {
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-rows: minmax(0, 1.15fr) minmax(0, 0.95fr) minmax(0, 0.55fr);
  overflow: hidden;
}

.overview {
  min-height: 0;
}

.ov-hero,
.ov-collections,
.ov-strip {
  min-height: 0;
  overflow: hidden;
}

/* ——— Hero ——— */
.ov-hero {
  display: grid;
  grid-template-columns: minmax(0, 0.72fr) minmax(0, 1.28fr);
  border-bottom: 1px solid var(--insp-line);
}

.ov-hero__intro {
  padding: clamp(10px, 1.6vh, 20px) clamp(14px, 1.8vw, 28px);
  border-right: 1px solid var(--insp-line);
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 0;
  background: var(--insp-bg);
}

.ov-hero__title {
  font-family: var(--insp-serif);
  font-size: clamp(1.75rem, 4.8vh, 3.4rem);
  font-weight: 300;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: clamp(6px, 1vh, 12px);
  flex-shrink: 0;
  color: var(--insp-ink);
  line-height: 0.95;
}

.ov-hero__lead {
  font-size: clamp(0.7rem, 1.35vh, 0.875rem);
  font-weight: 400;
  line-height: 1.55;
  color: var(--insp-ink);
  opacity: 0.82;
  max-width: 34ch;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 5;
  overflow: hidden;
  margin-bottom: clamp(8px, 1.2vh, 14px);
}

.ov-hero__cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: var(--insp-text-xs);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--insp-ink);
  border-bottom: 1px solid var(--insp-ink);
  padding-bottom: 2px;
  width: fit-content;
  flex-shrink: 0;
}

.ov-hero__cta svg {
  width: 14px;
  height: 14px;
}

.ov-hero__cta:hover {
  opacity: 0.7;
}

.ov-hero__handle {
  display: none;
}

.ov-hero__scene {
  position: relative;
  margin: 0;
  overflow: hidden;
  min-height: 0;
  background: #1a1816;
}

.ov-hero__slides {
  position: absolute;
  inset: 0;
}

.ov-hero__slide {
  position: absolute;
  inset: 0;
  margin: 0;
  opacity: 0;
  transition: opacity 1.1s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 0;
}

.ov-hero__slide.is-active {
  opacity: 1;
  z-index: 1;
}

.ov-hero__slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  transform: scale(1.06);
  transition: transform 7s cubic-bezier(0.22, 1, 0.36, 1);
}

.ov-hero__slide.is-active img {
  transform: scale(1);
}

.ov-hero__scene::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(10, 10, 10, 0.45) 0%, rgba(10, 10, 10, 0.12) 42%, transparent 68%),
    linear-gradient(0deg, rgba(10, 10, 10, 0.55) 0%, transparent 42%);
}

.ov-hero__caption {
  position: absolute;
  left: clamp(16px, 2vw, 28px);
  bottom: clamp(18px, 2.4vh, 32px);
  z-index: 3;
  color: #fff;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.45);
  width: max-content;
  max-width: calc(100% - 48px);
  min-height: 3.2em;
}

.ov-hero__line {
  position: absolute;
  left: 0;
  bottom: 0;
  margin: 0;
  width: max-content;
  max-width: 100%;
  opacity: 0;
  transform: translateY(14px);
  transition:
    opacity 0.85s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.85s cubic-bezier(0.22, 1, 0.36, 1);
  pointer-events: none;
}

.ov-hero__line.is-active {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.ov-hero__line strong {
  display: block;
  font-size: clamp(0.78rem, 1.7vh, 1.05rem);
  font-weight: 500;
  letter-spacing: 0.14em;
  line-height: 1.45;
  text-transform: uppercase;
}

.ov-hero__row {
  display: block;
  white-space: nowrap;
}

.ov-hero__line--soft strong {
  font-weight: 400;
  letter-spacing: 0.04em;
  text-transform: none;
  font-size: clamp(0.85rem, 1.85vh, 1.15rem);
  line-height: 1.4;
}

.ov-hero__dots {
  position: absolute;
  right: clamp(12px, 1.5vw, 22px);
  bottom: clamp(16px, 2vh, 26px);
  z-index: 3;
  display: flex;
  gap: 8px;
}

.ov-hero__dots button {
  width: 22px;
  height: 2px;
  padding: 0;
  border: none;
  background: rgba(255, 255, 255, 0.35);
  cursor: pointer;
  transition: background 0.35s, width 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.ov-hero__dots button.is-active {
  width: 36px;
  background: #fff;
}

.ov-hero__dots button:hover {
  background: rgba(255, 255, 255, 0.7);
}

@media (prefers-reduced-motion: reduce) {
  .ov-hero__slide,
  .ov-hero__slide img,
  .ov-hero__line {
    transition: none;
  }
}

/* ——— Collections row ——— */
.ov-collections {
  display: grid;
  grid-template-columns: minmax(180px, 0.34fr) minmax(0, 1fr);
  border-bottom: 1px solid var(--insp-line);
}

.ov-collections__aside {
  padding: clamp(10px, 1.4vh, 16px) clamp(14px, 1.8vw, 24px);
  border-right: 1px solid var(--insp-line);
  background: var(--insp-bg);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
  min-height: 0;
}

.ov-collections__label {
  font-size: var(--insp-text-xs);
  font-weight: 700;
  letter-spacing: 0.18em;
}

.ov-collections__lead {
  font-size: clamp(0.625rem, 1.15vh, 0.75rem);
  font-weight: 400;
  line-height: 1.45;
  color: var(--insp-ink);
  opacity: 0.78;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
}

.ov-collections__nav {
  display: flex;
  gap: 8px;
  margin-top: 4px;
}

.ov-collections__nav button {
  width: 32px;
  height: 32px;
  border: 1px solid var(--insp-line);
  background: transparent;
  color: var(--insp-ink);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  line-height: 1;
  transition: background 0.2s, opacity 0.2s;
}

.ov-collections__nav button:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.35);
}

.ov-collections__nav button:disabled {
  opacity: 0.28;
  cursor: default;
}

.ov-collections__track-wrap {
  position: relative;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  background: var(--insp-bg-deep);
}

.ov-collections__track-wrap::before,
.ov-collections__track-wrap::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 28px;
  z-index: 2;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s;
}

.ov-collections__track-wrap::before {
  left: 0;
  background: linear-gradient(to right, var(--insp-bg-deep), transparent);
}

.ov-collections__track-wrap::after {
  right: 0;
  background: linear-gradient(to left, var(--insp-bg-deep), transparent);
}

.ov-collections__track-wrap:not(.is-at-start)::before,
.ov-collections__track-wrap:not(.is-at-end)::after {
  opacity: 1;
}

.ov-collections__grid {
  display: flex;
  flex-wrap: nowrap;
  align-items: stretch;
  height: 100%;
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior-x: contain;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.ov-collections__grid::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

/* ——— Piano keys (inside a model line) ——— */
.ov-collections__grid.is-piano {
  overflow-x: hidden;
  gap: 0;
}

.ov-collections__grid.is-families {
  overflow: hidden;
}

.ov-collections__grid.is-families .ov-collection--family {
  flex: 1 1 0;
  min-width: 0;
  cursor: pointer;
  border: none;
  font: inherit;
  text-align: left;
  background: rgba(255, 255, 255, 0.12);
  transition: background 0.25s ease, flex 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.ov-collections__grid.is-families .ov-collection--family:hover {
  background: rgba(255, 255, 255, 0.36);
  flex: 1.35 1 0;
}

.ov-collections__grid.is-families .ov-collection__body {
  opacity: 1;
  transform: none;
}

.ov-collection__enter {
  display: inline-block;
  margin-top: 8px;
  font-size: clamp(0.55rem, 1vh, 0.68rem);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--insp-ink);
  opacity: 0.55;
  border-bottom: 1px solid currentColor;
  padding-bottom: 1px;
}

.ov-collections__grid.is-families .ov-collection--family:hover .ov-collection__enter {
  opacity: 1;
}

.ov-collections__back {
  display: inline-flex;
  align-items: center;
  margin: 0 0 6px;
  padding: 0;
  border: none;
  background: none;
  cursor: pointer;
  font-size: clamp(0.58rem, 1.05vh, 0.72rem);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--insp-ink);
  opacity: 0.55;
}

.ov-collections__back:hover {
  opacity: 1;
}

.ov-collections__back[hidden] {
  display: none !important;
}

.ov-collections__product {
  display: inline-block;
  margin: 0 0 8px;
  font-size: clamp(0.58rem, 1.05vh, 0.72rem);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--insp-ink);
  text-decoration: none;
  border-bottom: 1px solid var(--insp-ink);
  padding-bottom: 2px;
  width: fit-content;
}

.ov-collections__product:hover {
  opacity: 0.7;
}

.ov-collections__product[hidden] {
  display: none !important;
}

.ov-collection {
  flex: 1 1 0;
  min-width: 0;
  width: auto;
  height: 100%;
  display: flex;
  flex-direction: column;
  border-right: 1px solid var(--insp-line);
  background: rgba(255, 255, 255, 0.1);
  text-decoration: none;
  color: inherit;
  overflow: hidden;
  transition:
    flex 0.48s cubic-bezier(0.22, 1, 0.36, 1),
    min-width 0.48s cubic-bezier(0.22, 1, 0.36, 1),
    background 0.3s ease;
}

.ov-collections__grid.is-piano .ov-collection {
  flex: 0.55 1 0;
  min-width: 36px;
  max-width: none;
}

.ov-collection:last-child {
  border-right: none;
}

.ov-collection:hover,
.ov-collections__grid.is-piano .ov-collection.is-open {
  background: rgba(255, 255, 255, 0.38);
}

.ov-collections__grid.is-piano .ov-collection.is-open {
  flex: 3.8 1 0;
  min-width: min(220px, 28%);
  z-index: 2;
}

.ov-collections__grid.is-piano .ov-collection:not(.is-open) .ov-collection__body {
  opacity: 0;
  transform: translateY(6px);
  pointer-events: none;
}

.ov-collections__grid.is-piano .ov-collection.is-open .ov-collection__body {
  opacity: 1;
  transform: none;
}

.ov-collections__grid.is-piano .ov-collection:not(.is-open) .ov-collection__media img {
  transform: scale(0.72);
  opacity: 0.72;
}

.ov-collections__grid.is-piano .ov-collection.is-open .ov-collection__media img {
  transform: scale(1);
  opacity: 1;
}

.ov-collection--view-all {
  display: none;
}

.ov-collection__media {
  margin: 0;
  flex: 1;
  min-height: 0;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 8px 6px 0;
  overflow: hidden;
}

.ov-collection__media img {
  width: auto;
  height: 100%;
  max-height: 100%;
  max-width: 100%;
  object-fit: contain;
  object-position: bottom center;
  mix-blend-mode: normal;
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.35s ease;
}

.ov-collection__body {
  padding: 8px 10px 10px;
  border-top: 1px solid var(--insp-line);
  flex-shrink: 0;
  transition: opacity 0.35s ease, transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.ov-collection__family {
  display: block;
  font-size: 0.55rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--insp-ink);
  opacity: 0.45;
  margin-bottom: 3px;
}

.ov-collection__body h3 {
  font-size: var(--insp-text-xs);
  font-weight: 700;
  letter-spacing: 0.14em;
  margin-bottom: 3px;
}

.ov-collection__body p {
  font-size: var(--insp-text-xs);
  font-weight: 300;
  line-height: 1.35;
  color: var(--insp-muted);
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

/* ——— Bottom strip ——— */
.ov-strip {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.ov-strip__item {
  margin: 0;
  position: relative;
  border-right: 1px solid var(--insp-line);
  overflow: hidden;
  background: var(--insp-bg-deep);
  min-height: 0;
  display: block;
  text-decoration: none;
  color: #fff;
}

.ov-strip__item:last-child {
  border-right: none;
}

.ov-strip__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.ov-strip__item:hover img {
  transform: scale(1.04);
}

.ov-strip__item span {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 6px 8px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-align: center;
  color: #fff;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.55));
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ov-strip__item:nth-child(1) img,
.ov-strip__item:nth-child(4) img {
  object-fit: contain;
  mix-blend-mode: multiply;
  padding: 8px;
  background: var(--insp-bg);
}

.ov-strip__item:nth-child(1) span,
.ov-strip__item:nth-child(4) span {
  color: var(--insp-ink);
  background: linear-gradient(transparent, rgba(212, 205, 195, 0.92));
}

/* ——— Compact height ——— */
@media (max-height: 760px) {
  .ov-hero__num {
    font-size: clamp(1.75rem, 5.5vh, 3.5rem);
  }

  .ov-hero__lead {
    -webkit-line-clamp: 3;
  }

  .ov-collections__lead {
    -webkit-line-clamp: 2;
  }
}

/* ——— Responsive width ——— */
@media (max-width: 1200px) {
  .insp-header__inner {
    grid-template-columns: 1fr auto;
  }

  .insp-nav {
    display: none;
  }

  .page-overview .menu-btn {
    display: flex;
  }

  .ov-hero {
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  }
}

@media (max-width: 900px) {
  html:has(.page-overview) {
    overflow: auto;
  }

  .page-overview {
    --insp-rail: 52px;
    height: auto;
    max-height: none;
    overflow: auto;
  }

  .insp-rail {
    display: flex;
    width: var(--insp-rail);
  }

  .insp-rail__nums {
    gap: 14px;
  }

  .insp-rail__num {
    font-size: 10px;
  }

  .insp-rail__nums a.is-active .insp-rail__num {
    font-size: 12px;
  }

  .insp-rail__vertical {
    font-size: 10px;
    letter-spacing: 0.22em;
  }

  .insp-shell {
    margin-left: var(--insp-rail);
    height: auto;
    max-height: none;
    overflow: visible;
  }

  .overview {
    overflow: visible;
    grid-template-rows: auto auto auto;
  }

  .page-overview .overview {
    overflow: visible;
    grid-template-rows: auto auto auto;
  }

  .ov-hero {
    grid-template-columns: 1fr;
    grid-template-rows: auto minmax(220px, 36vh);
  }

  .ov-hero__intro {
    grid-column: 1 / -1;
    border-right: none;
    border-bottom: 1px solid var(--insp-line);
  }

  .ov-collections {
    grid-template-columns: 1fr;
  }

  .ov-collections__aside {
    border-right: none;
    border-bottom: 1px solid var(--insp-line);
  }

  .ov-collections__grid {
    height: clamp(200px, 28vh, 280px);
  }

  .ov-strip {
    grid-template-columns: repeat(3, 1fr);
  }

  .ov-strip__item {
    aspect-ratio: 4 / 3;
  }

  .insp-pager__dir {
    display: none;
  }
}

@media (max-width: 640px) {
  .ov-hero {
    grid-template-columns: 1fr;
    grid-template-rows: auto minmax(180px, 28vh);
  }

  .ov-strip {
    grid-template-columns: repeat(2, 1fr);
  }

  .ov-collections__grid.is-piano {
    overflow-x: auto;
  }

  .ov-collections__grid.is-piano .ov-collection {
    flex: 0 0 44px;
    min-width: 44px;
  }

  .ov-collections__grid.is-piano .ov-collection.is-open {
    flex: 0 0 min(70vw, 220px);
    min-width: min(70vw, 220px);
  }

  .insp-header__link:first-of-type {
    display: none;
  }
}
