/* Treppen continues the ABEL composition and uses its shared design tokens. */
html { scrollbar-gutter: stable; }
.stair-hero { height: 100svh; min-height: 650px; max-height: 1120px; }
.stair-hero .hero-frame { height: 100%; }
.stair-hero .stair-photo { height: 100%; }
.stair-hero img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 58%; }
.stair-hero-shade { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(180deg, rgb(2 19 37 / .4), transparent 38%, rgb(2 19 37 / .74)); }
.stair-hero-copy { position: absolute; bottom: 9%; left: var(--gutter); pointer-events: none; }
.stair-hero-copy p { font-size: 13px; margin-bottom: 24px; }
.stair-hero-copy h1 { font-size: clamp(42px, 5.4vw, 90px); line-height: 1.07; letter-spacing: -.045em; }
.stair-hero-copy a { pointer-events: auto; margin-top: 28px; }
.stair-hero-copy .text-link:hover { color: white; }
.stair-intro { display: grid; grid-template-columns: 1fr 1fr; gap: 12%; padding-bottom: 100px; }
.stair-intro h2 { font-size: clamp(28px, 2.6vw, 44px); letter-spacing: -.025em; }
.stair-intro p { max-width: 570px; color: var(--muted); }
.stair-intro p + p { margin-top: 18px; }
.stair-intro .text-link { margin-top: 18px; }
.stair-photo { display: block; position: relative; overflow: hidden; background: var(--mist); }
.stair-photo img { transition: transform 1s var(--ease); }
@media (hover:hover) { .stair-photo:hover img { transform: scale(1.025); } }
.stair-photo:focus-visible { outline-offset: -6px; }
.stair-pair { display: grid; grid-template-columns: 1fr 1fr; align-items: start; gap: 7%; }
.stair-pair > figure:last-child { padding-top: 16%; }
.stair-pair .stair-photo img { width: 100%; height: auto; }
.stair-caption { display: flex; justify-content: space-between; gap: 24px; padding: 22px 0 0; font-size: 14px; }
.stair-caption > span:last-child { color: var(--muted); font-size: 12px; white-space: nowrap; }
.stair-wide { padding-top: clamp(90px, 11vw, 175px); }
.stair-wide img { width: 100%; height: auto; }
.stair-bottom-pair { padding-top: clamp(90px, 11vw, 175px); grid-template-columns: 40% 47%; gap: 13%; }
.stair-bottom-pair > figure:last-child { padding-top: 26%; }
.stair-collection { padding-top: clamp(100px, 12vw, 190px); }
.stair-more { border-block: 1px solid #aebbc7; }
.stair-more > summary { display: flex; align-items: center; justify-content: space-between; gap: 20px; cursor: pointer; list-style: none; padding: 30px 0; }
.stair-more > summary::-webkit-details-marker { display: none; }
.stair-more-title { font-size: clamp(26px, 2.4vw, 40px); letter-spacing: -.025em; }
.stair-more-count { font-size: 14px; color: var(--muted); margin-left: auto; }
.stair-more-icon { font-size: 30px; font-weight: 400; width: 40px; text-align: center; transition: transform .3s; }
.stair-more[open] .stair-more-icon { transform: rotate(45deg); }
.stair-more-note { margin-top: 20px; font-size: 14px; color: var(--muted); }
.stair-more-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px 28px; padding-block: 18px 45px; }
.stair-more-grid .stair-photo { border-top-left-radius: 30px; }
.stair-more-grid img { width: 100%; height: 320px; object-fit: contain; }
.stair-more-grid figcaption { padding-top: 14px; font-size: 13px; color: var(--muted); }
.stair-contact-link { margin-top: 45px; }
body.gallery-open { overflow: hidden; }
.stair-lightbox { padding: 0; border: 0; width: min(1440px, 96vw); max-width: none; max-height: 96dvh; color: white; background: #041a2c; }
.stair-lightbox::backdrop { background: rgb(0 9 17 / .94); }
.stair-lightbox-top { display: flex; align-items: center; justify-content: space-between; padding: 12px 20px; }
.stair-lightbox-top h2 { font-size: 16px; }
.stair-lightbox .circle { width: 44px; height: 44px; font-size: 24px; }
.stair-lightbox-image { display: block; width: 100%; height: min(73dvh, 960px); object-fit: contain; }
.stair-lightbox-bottom { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 16px 20px 20px; }
.stair-lightbox-copy { flex: 1; min-width: 0; }
.stair-lightbox-copy p { font-size: 14px; }
.stair-lightbox-copy a { color: #b2ddef; font-size: 12px; text-decoration: underline; text-underline-offset: 3px; }
.stair-lightbox-controls { display: flex; align-items: center; gap: 14px; }
.stair-lightbox-count { font-size: 12px; white-space: nowrap; }
.stair-lightbox-error { padding: 20px; }
.stair-lightbox [hidden] { display: none; }
@media (max-width:900px) {
  .stair-more-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stair-more-grid img { height: 280px; }
}
@media (max-width:700px) {
  .stair-hero { min-height: 620px; height: 94svh; }
  .stair-hero img { object-position: 53% 50%; }
  .stair-hero-copy { bottom: 14%; }
  .stair-hero-copy p { font-size: 12px; margin-bottom: 20px; }
  .stair-hero-copy h1 { font-size: clamp(38px, 9vw, 60px); }
  .stair-intro { grid-template-columns: 1fr; gap: 28px; padding-bottom: 64px; }
  .stair-intro h2 { font-size: 29px; }
  .stair-pair { grid-template-columns: 1fr; gap: 55px; }
  .stair-pair > figure:last-child { padding-top: 0; }
  .stair-caption { font-size: 13px; gap: 15px; padding-top: 17px; }
  .stair-more > summary { padding-block: 23px; gap: 12px; }
  .stair-more-count { font-size: 12px; }
  .stair-more-icon { width: 28px; }
  .stair-more-grid { gap: 28px 16px; }
  .stair-more-grid img { height: 220px; }
  .stair-more-grid figcaption { font-size: 12px; }
  .stair-lightbox { width: 100%; max-height: 100dvh; }
  .stair-lightbox-image { height: 62dvh; }
  .stair-lightbox-bottom { display: block; padding: 15px; }
  .stair-lightbox-controls { justify-content: center; margin-top: 20px; }
}
@media (max-width:480px) {
  .stair-more-grid { grid-template-columns: 1fr; }
  .stair-more-grid img { height: 330px; }
}

/* Keep desktop photos within the viewport while retaining full-width image fill. */
@media (min-width:801px) {
  .stair-hero { height: 100svh; min-height: 0; }
  .stair-pair .stair-photo img, .stair-wide img { max-height: 75svh; object-fit: cover; }
  .stair-photo:hover img { transform: none; }
}
