.krupinski-case-page {
  --krupinski-nav-space: calc(114px + env(safe-area-inset-top, 0px));
}

body.kwd-navigation.krupinski-case-page:not(.mobile-nav-open) #topbar#topbar {
  position: absolute !important;
}

body.kwd-navigation.elite-detail-page.krupinski-case-page #tresc {
  padding-top: var(--krupinski-nav-space);
  background: linear-gradient(115deg, #0b1823, #070e15 75%) top / 100% var(--krupinski-nav-space) no-repeat;
}

.krupinski-case-page .hw-case {
  --hw-ink: #1d2024;
  --hw-muted: #66696d;
  --hw-accent: #bf2433;
  --hw-line: #20232924;
  background: #f5f5f2;
  color: var(--hw-ink);
}

.krupinski-wrap {
  width: min(1440px, calc(100% - 8vw));
  margin-inline: auto;
}

.krupinski-opening {
  padding-block: 12px clamp(28px, 4vw, 58px);
  color-scheme: light;
  background: #f5f5f2;
}

.krupinski-trail {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 12px;
  color: #6a6d70;
  font-size: 12px;
}

.krupinski-trail a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 32px;
}

.krupinski-opening__head {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr);
  align-items: center;
  gap: 24px 5vw;
  margin-bottom: 20px;
}

.krupinski-opening .hw-case__label {
  color: #a9212e;
}

.krupinski-case-page .krupinski-opening h1 {
  margin-top: 8px;
  max-width: none;
  font-size: clamp(32px, 3.6vw, 56px);
  font-weight: 400;
  line-height: .98;
  letter-spacing: -.065em;
  text-wrap: balance;
}

.krupinski-opening__scope > p {
  max-width: 37ch;
  font-size: 14px;
  line-height: 1.5;
}

.krupinski-opening__scope dl {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin: 10px 0 0;
  font-size: 10px;
  line-height: 1.4;
}

.krupinski-opening__scope dl > div {
  display: flex;
  gap: 6px;
}

.krupinski-opening__scope dt {
  color: #777b7e;
}

.krupinski-opening__scope dd {
  margin: 0;
}

.hw-case figure.krupinski-hero-scene {
  position: relative;
  width: min(100%, calc((100svh - 280px) * 1.7768));
  margin-inline: auto;
  overflow: hidden;
  border-radius: 8px;
  background: #d8d9d7;
}

.krupinski-hero-scene > a {
  display: block;
}

.krupinski-hero-scene__image {
  display: block;
  width: 100%;
  height: auto;
}

.krupinski-home {
  padding-block: clamp(38px, 6vw, 88px) clamp(64px, 9vw, 126px);
  color-scheme: light;
  background: #fff;
}

.krupinski-section-head {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 22px 9vw;
  align-items: end;
  margin-bottom: clamp(28px, 4vw, 54px);
}

.krupinski-case-page .krupinski-heading {
  font-size: clamp(34px, 4.3vw, 65px);
  font-weight: 400;
  line-height: 1.01;
  letter-spacing: -.06em;
  text-wrap: balance;
}

.krupinski-section-head h2,
.krupinski-catalog h2,
.krupinski-team h2 {
  margin-top: 14px;
}

.krupinski-section-head p:not(.hw-case__label),
.krupinski-catalog__copy > p:not(.hw-case__label),
.krupinski-team header > p:not(.hw-case__label) {
  max-width: 47ch;
  color: var(--hw-muted);
  font-size: clamp(15px, 1.3vw, 18px);
  line-height: 1.65;
}

.krupinski-site-link {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  min-height: 46px;
  gap: 24px;
  margin-top: 10px;
  border-bottom: 1px solid #bd2434;
  font-size: 14px;
}

.krupinski-browser {
  overflow: hidden;
  border: 1px solid #b9bcc04d;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 24px 64px #17202b12;
}

.krupinski-browser__bar {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  min-height: 36px;
  padding-inline: 18px;
  border-bottom: 1px solid #181d2314;
  color: #6b7075;
  background: #f2f3f3;
  font-size: 11px;
}

.krupinski-browser__bar > span:first-child {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #bec1c4;
  box-shadow: 9px 0 #bec1c4, 18px 0 #bec1c4;
}

.krupinski-browser__bar > span:last-child {
  justify-self: end;
}

.krupinski-browser a,
.krupinski-context a,
.krupinski-team figure a {
  display: block;
}

.krupinski-browser img,
.krupinski-context img,
.krupinski-team figure img {
  display: block;
  width: 100%;
  height: auto;
}

.krupinski-browser figcaption {
  padding: 12px 18px;
  border-top: 1px solid #181d2314;
  color: #74787d;
  font-size: 11px;
}

.krupinski-investment {
  --hw-ink: #f5f6f6;
  --hw-muted: #b1b4b9;
  --hw-accent: #ff7b87;
  --hw-line: #ffffff29;
  overflow: hidden;
  padding-block: clamp(58px, 8vw, 114px);
  color: var(--hw-ink);
  color-scheme: dark;
  background: #1d2025;
}

.krupinski-investment__head {
  max-width: 840px;
}

.krupinski-investment__head .hw-case__label {
  color: #ff7b87;
}

.krupinski-case-page .krupinski-investment h2 {
  margin-block: 16px 20px;
  font-size: clamp(42px, 6vw, 91px);
}

.krupinski-investment__head > p:last-child {
  max-width: 52ch;
  color: var(--hw-muted);
  font-size: clamp(15px, 1.35vw, 18px);
  line-height: 1.65;
}

.krupinski-selection-steps {
  display: flex;
  gap: clamp(24px, 6vw, 90px);
  margin: clamp(28px, 4vw, 54px) 0 0;
  padding: 20px 0 0;
  border-top: 1px solid var(--hw-line);
  list-style: none;
}

.krupinski-selection-steps li {
  display: flex;
  align-items: baseline;
  gap: 12px;
}

.krupinski-selection-steps span {
  color: #f06b77;
  font-size: 11px;
}

.krupinski-selection-steps strong {
  font-size: clamp(16px, 2vw, 25px);
  font-weight: 400;
  letter-spacing: -.03em;
}

.krupinski-selection-scene {
  position: relative;
  min-height: clamp(390px, 48vw, 680px);
  margin: 30px -2vw 0;
  padding: clamp(36px, 6vw, 88px) 2vw;
  background:
    linear-gradient(#ffffff05 1px, transparent 1px) center / 72px 72px,
    linear-gradient(90deg, #ffffff05 1px, transparent 1px) center / 72px 72px,
    radial-gradient(ellipse at 50% 60%, #44484e, transparent 64%);
}

.krupinski-selection-scene__building {
  width: 82%;
  transform: rotate(-3deg);
}

.krupinski-selection-scene__floor {
  position: absolute;
  right: 1%;
  bottom: 4%;
  width: 34%;
  transform: rotate(4deg);
}

.krupinski-screen {
  display: block;
  overflow: hidden;
  padding: 7px;
  border: 1px solid #6d737c;
  border-radius: 13px;
  background: linear-gradient(130deg, #53575d, #16181c 65%);
  box-shadow: 10px 28px 58px #0008;
}

.krupinski-screen--detail {
  padding: 5px;
  border-color: #c3c6cb;
  background: #f4f4f2;
  box-shadow: 12px 25px 44px #0009;
}

.krupinski-screen__bar {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 28px;
  padding: 0 8px 4px;
  color: #d8dbde;
  font-size: 10px;
}

.krupinski-screen__bar i {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #92969d;
}

.krupinski-screen--detail .krupinski-screen__bar {
  color: #565b62;
}

.krupinski-ui-crop {
  position: relative;
  overflow: hidden;
}

.krupinski-ui-crop img {
  position: absolute;
  display: block;
  max-width: none;
  height: auto;
}

/* Crops keep the original interface; gallery links open each full source. */
.krupinski-ui-crop--building {
  aspect-ratio: 1807 / 669;
  border-radius: 5px;
}

.krupinski-ui-crop--building img {
  width: 110.68%;
  left: -5.42%;
  top: -17.64%;
}

.krupinski-ui-crop--floor {
  aspect-ratio: 625 / 650;
  border-radius: 5px;
}

.krupinski-ui-crop--floor img {
  width: 316.48%;
  left: -68%;
  top: -38.46%;
}

.krupinski-investment__index {
  display: grid;
  grid-template-columns: minmax(0, .7fr) minmax(0, 1.6fr);
  align-items: center;
  gap: clamp(26px, 6vw, 90px);
  margin-top: clamp(30px, 6vw, 84px);
  padding-top: clamp(28px, 4vw, 55px);
  border-top: 1px solid var(--hw-line);
}

.krupinski-investment__index > div > p:last-child {
  max-width: 28ch;
  margin-top: 14px;
  color: var(--hw-muted);
  font-size: clamp(18px, 2vw, 28px);
  line-height: 1.35;
  letter-spacing: -.03em;
}

.krupinski-investment-cards {
  display: block;
}

.krupinski-ui-crop--investments {
  aspect-ratio: 1778 / 710;
  border-radius: 8px;
}

.krupinski-ui-crop--investments img {
  width: 112.60%;
  left: -6.30%;
  top: -70.42%;
}

.krupinski-catalog {
  padding-block: clamp(64px, 9vw, 130px);
  color-scheme: light;
  background: #eeefed;
}

.krupinski-catalog__layout {
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(0, 1.5fr);
  align-items: center;
  gap: clamp(26px, 5vw, 78px);
}

.krupinski-catalog__copy > p:not(.hw-case__label) {
  margin-top: 22px;
}

.krupinski-catalog__copy ul {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}

.krupinski-catalog__copy li {
  padding: 7px 10px;
  border: 1px solid #2a2f3529;
  border-radius: 5px;
  font-size: 12px;
}

.krupinski-catalog-card {
  display: block;
  padding: 15px clamp(12px, 2vw, 27px) clamp(20px, 3vw, 42px);
  border: 1px solid #bbc0c58c;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 25px 55px #1f27311a;
  transform: rotate(-2deg);
}

.krupinski-catalog-card__top {
  display: flex;
  justify-content: space-between;
  padding-bottom: 14px;
  border-bottom: 1px solid #e4e6e8;
  color: #7d8288;
  font-size: 11px;
}

.krupinski-ui-crop--filters {
  width: 88%;
  margin: 22px auto 28px;
  aspect-ratio: 920 / 455;
}

.krupinski-ui-crop--filters img {
  width: 222.61%;
  left: -17.39%;
  top: -52.75%;
}

.krupinski-ui-crop--listings {
  aspect-ratio: 1656 / 504;
}

.krupinski-ui-crop--listings img {
  width: 123.67%;
  left: -10.87%;
  top: -142.46%;
}

.krupinski-catalog__presentation figcaption {
  margin-top: 22px;
  color: #6e7378;
  font-size: 11px;
  text-align: center;
}

.krupinski-context {
  padding-block: clamp(46px, 6vw, 88px);
  color: #f4f4f1;
  color-scheme: dark;
  background: #25282d;
}

.krupinski-context__head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 18px;
  margin-bottom: 28px;
}

.krupinski-context__head .hw-case__label {
  color: #9da2a9;
}

.krupinski-case-page .krupinski-context h2 {
  font-size: clamp(25px, 3.4vw, 49px);
}

.krupinski-context figure {
  overflow: hidden;
  border-radius: 8px;
}

.krupinski-team {
  padding-block: clamp(64px, 9vw, 130px) 55px;
  color-scheme: light;
  background: #f5f5f2;
}

.krupinski-team__layout {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(28px, 6vw, 90px);
}

.krupinski-team figure {
  overflow: hidden;
  border-radius: 8px;
}

.krupinski-team header > p:last-child {
  margin-top: 22px;
}

.krupinski-end {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px 40px;
  align-items: center;
  margin-top: clamp(64px, 9vw, 126px);
  padding-top: 32px;
  border-top: 1px solid var(--hw-line);
}

.krupinski-end > p {
  font-size: clamp(26px, 3.4vw, 48px);
  line-height: 1.05;
  letter-spacing: -.05em;
}

.krupinski-end > a:not(.krupinski-end__back) {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  min-height: 54px;
  gap: 24px;
  padding: 12px 18px;
  border-radius: 6px;
  background: #bc2433;
  color: #fff;
  font-size: 14px;
}

.krupinski-end__back {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  gap: 9px;
  grid-column: 1 / -1;
  color: #6a6d70;
  font-size: 12px;
}

body.krupinski-case-page:has(.hw-gallery[open]) {
  overflow: hidden;
}

body.krupinski-case-page:has(#topbar:not(.is-condensed)) .dock {
  visibility: hidden !important;
}

body.krupinski-case-page .hw-gallery {
  --hw-ink: #edf6ff;
  --hw-muted: #b6c4d0;
  --hw-line: #bcd9ef34;
}

body.krupinski-case-page .hw-gallery[open],
body.krupinski-case-page .hw-gallery[open] * {
  cursor: auto !important;
}

body.krupinski-case-page .hw-gallery[open] button,
body.krupinski-case-page .hw-gallery[open] button * {
  cursor: pointer !important;
}

body.krupinski-case-page:has(.hw-gallery[open]) .kwd-cursor {
  visibility: hidden;
}

@media (max-width: 870px) {
  .krupinski-case-page {
    --krupinski-nav-space: calc(84px + env(safe-area-inset-top, 0px));
  }
}

@media (max-width: 760px) {
  .krupinski-opening__head,
  .krupinski-section-head,
  .krupinski-investment__index,
  .krupinski-catalog__layout,
  .krupinski-team__layout,
  .krupinski-end {
    grid-template-columns: 1fr;
  }

  .krupinski-opening__scope dl {
    max-width: 470px;
  }

  .hw-case figure.krupinski-hero-scene {
    width: 100%;
  }

  .krupinski-selection-steps {
    gap: 14px;
    justify-content: space-between;
  }

  .krupinski-selection-steps li {
    gap: 7px;
  }

  .krupinski-selection-scene {
    min-height: 0;
    margin-top: 22px;
    padding-top: 22px;
    padding-bottom: 12px;
  }

  .krupinski-selection-scene__building {
    width: 96%;
    transform: rotate(-2deg);
  }

  figure.krupinski-selection-scene__floor {
    position: relative;
    right: auto;
    bottom: auto;
    width: 60%;
    margin: -4% 0 0 auto;
    transform: rotate(3deg);
  }

  .krupinski-screen__bar {
    min-height: 24px;
    font-size: 9px;
  }

  .krupinski-catalog-card {
    transform: none;
  }

  .krupinski-context__head {
    display: grid;
  }

  .krupinski-end > a:not(.krupinski-end__back) {
    justify-self: start;
  }
}

@media (prefers-reduced-motion: reduce) {
  .krupinski-screen,
  .krupinski-catalog-card {
    transition: none;
  }
}
