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

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

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

.idescu-case-page .hw-case {
  --hw-ink: #282c2b;
  --hw-muted: #656b65;
  --hw-accent: #8b6b2e;
  --hw-line: #3b47352b;
  color: var(--hw-ink);
  background: #ecebe5;
}

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

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

.idescu-trail {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 12px;
  color: #697065;
  font-size: 12px;
}

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

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

.idescu-opening .hw-case__label {
  color: #7f622b;
}

.idescu-case-page .idescu-opening h1 {
  margin-top: 8px;
  max-width: none;
  color: #282c2b;
  font-size: clamp(36px, 3.7vw, 56px);
  font-weight: 400;
  line-height: .98;
  letter-spacing: -.06em;
}

.idescu-opening__scope > p {
  max-width: 42ch;
  color: #414b40;
  font-size: 14px;
  line-height: 1.5;
}

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

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

.idescu-opening__scope dt {
  color: #71786e;
}

.idescu-opening__scope dd {
  margin: 0;
}

.hw-case figure.idescu-hero-scene {
  position: relative;
  width: min(100%, calc((100svh - 280px) * 1.7768));
  margin-inline: auto;
  overflow: hidden;
  border: 1px solid #75806930;
  border-radius: 7px;
  background: #d3d5cb;
}

.idescu-hero-scene a,
.idescu-hero-scene img,
.idescu-browser a,
.idescu-browser img {
  display: block;
  width: 100%;
  height: auto;
}

.idescu-home,
.idescu-content {
  padding-block: clamp(50px, 7vw, 100px) clamp(62px, 9vw, 126px);
  color-scheme: light;
  color: #282c2b;
  background: #f6f6f1;
}

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

.idescu-case-page .idescu-heading {
  font-size: clamp(34px, 4.5vw, 68px);
  font-weight: 400;
  line-height: 1;
  letter-spacing: -.06em;
  text-wrap: balance;
}

.idescu-section-head h2,
.idescu-content h2,
.idescu-app h2 {
  margin-top: 14px;
}

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

.idescu-site-link {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  min-height: 46px;
  gap: 24px;
  margin-top: 12px;
  border-bottom: 1px solid var(--hw-accent);
  font-size: 14px;
}

.idescu-browser {
  overflow: hidden;
  border: 1px solid #58645238;
  border-radius: 9px;
  background: #fff;
  box-shadow: 0 24px 60px #25302114;
}

.idescu-browser__bar {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  min-height: 34px;
  padding-inline: 16px;
  border-bottom: 1px solid #35402d19;
  color: #707767;
  background: #e9ebe3;
  font-size: 11px;
}

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

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

.idescu-scope {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 25px;
  margin: clamp(26px, 4vw, 54px) 0 0;
}

.idescu-scope > div {
  padding-top: 15px;
  border-top: 1px solid var(--hw-line);
}

.idescu-scope dt {
  margin-bottom: 8px;
  color: #8b6b2e;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.idescu-scope dd {
  margin: 0;
  font-size: clamp(16px, 1.9vw, 25px);
  line-height: 1.25;
  letter-spacing: -.03em;
}

.idescu-inspirations,
.idescu-app {
  --hw-ink: #f1f3ed;
  --hw-muted: #b6bdb0;
  --hw-accent: #c8b176;
  --hw-line: #c6d2b834;
  padding-block: clamp(60px, 8vw, 118px);
  color-scheme: dark;
  color: var(--hw-ink);
  background: #262d29;
}

.idescu-inspirations .hw-case__label,
.idescu-app .hw-case__label {
  color: var(--hw-accent);
}

.idescu-inspirations__scene a {
  display: block;
  padding: clamp(14px, 2.6vw, 36px);
  border: 1px solid #d2d8c946;
  border-radius: 10px;
  background: #f6f7f3;
  box-shadow: 0 30px 55px #111c1570;
}

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

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

/* Compositions preserve source typography and open the complete source in the gallery. */
.idescu-ui-crop--inspirations {
  aspect-ratio: 1568 / 565;
}

.idescu-ui-crop--inspirations img {
  width: 128.38%;
  left: -14.16%;
  top: -8.32%;
}

.idescu-content {
  background: linear-gradient(115deg, #f5f3ec, #e0e1d5);
}

.idescu-content__layout,
.idescu-app__layout {
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(0, 1.6fr);
  align-items: center;
  gap: clamp(28px, 5vw, 78px);
}

.idescu-content header > p:not(.hw-case__label),
.idescu-app header > p:not(.hw-case__label) {
  margin-top: 22px;
}

.idescu-content header ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}

.idescu-content header li {
  padding: 7px 10px;
  border: 1px solid var(--hw-line);
  border-radius: 4px;
  font-size: 12px;
}

.idescu-content-scene {
  display: block;
  padding-block: 16px;
}

.idescu-content-scene__articles,
.idescu-content-scene__footer {
  overflow: hidden;
  border: 5px solid #252d29;
  border-radius: 7px;
  box-shadow: 6px 24px 44px #2b372b2b;
}

.idescu-content-scene__articles {
  width: 94%;
  transform: rotate(-2.4deg);
}

.idescu-ui-crop--articles {
  aspect-ratio: 1911 / 525;
}

.idescu-ui-crop--articles img {
  width: 105.55%;
  left: -2.88%;
  top: -6.10%;
}

.idescu-content-scene__footer {
  width: 87%;
  margin: 5% 0 0 auto;
  transform: rotate(2.4deg);
}

.idescu-ui-crop--footer {
  aspect-ratio: 2017 / 341;
}

.idescu-ui-crop--footer img {
  width: 100%;
  left: 0;
  top: -185.34%;
}

.idescu-app {
  padding-block: clamp(70px, 10vw, 145px);
  background: linear-gradient(125deg, #202a25, #394036);
}

.idescu-app__presentation {
  padding: clamp(18px, 3vw, 42px) 0;
}

.idescu-laptop {
  position: relative;
  display: block;
  padding: 10px;
  border: 1px solid #91a48e80;
  border-radius: 12px;
  background: linear-gradient(120deg, #84937d, #202a24 45%, #475640);
  box-shadow: 0 26px 60px #08130d7d;
  transform: rotate(-2deg);
}

.idescu-laptop__camera {
  width: 4px;
  height: 4px;
  margin: -5px auto 5px;
  border-radius: 50%;
  background: #71836d;
}

.idescu-laptop img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 3px;
}

.idescu-laptop::after {
  position: absolute;
  right: -4%;
  bottom: -4%;
  left: -4%;
  height: 4%;
  border-radius: 0 0 50% 50%;
  background: linear-gradient(#adba9f, #4c5b42);
  content: "";
}

.idescu-end {
  padding-block: clamp(42px, 6vw, 84px);
  color-scheme: light;
  color: #282c2b;
  background: #ecebe5;
}

.idescu-end__layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 25px 40px;
}

.idescu-end__layout > p {
  font-size: clamp(29px, 3.8vw, 56px);
  line-height: 1.04;
  letter-spacing: -.06em;
}

.idescu-end__layout > a:not(.idescu-end__back) {
  display: inline-flex;
  align-items: center;
  gap: 24px;
  min-height: 54px;
  padding: 12px 18px;
  border-radius: 6px;
  color: #fff;
  background: #5c654d;
  font-size: 14px;
}

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

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

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

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

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

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

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

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

@media (max-width: 760px) {
  .idescu-opening__head,
  .idescu-section-head,
  .idescu-content__layout,
  .idescu-app__layout,
  .idescu-end__layout {
    grid-template-columns: 1fr;
  }

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

  .idescu-opening__head {
    gap: 16px;
  }

  .idescu-laptop {
    transform: none;
  }

  .idescu-content-scene__articles,
  .idescu-content-scene__footer {
    width: 100%;
    transform: none;
  }

  .idescu-end__layout > a:not(.idescu-end__back) {
    justify-self: start;
  }

  .idescu-end {
    padding-bottom: 110px;
  }
}

@media (max-width: 500px) {
  .idescu-scope {
    grid-template-columns: 1fr;
    gap: 18px;
  }
}
