.dc-page .dc-showcase { padding-block: var(--tc-section-space) 0; }
.dc-page .dc-showcase--design { padding-top: clamp(3.5rem, 6vw, 5rem); }
.dc-page .dc-showcase-heading {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(16rem, .7fr);
  align-items: end;
  gap: clamp(1.5rem, 5vw, 6rem);
  padding-bottom: clamp(1.5rem, 3vw, 2.5rem);
  border-bottom: 1px solid var(--tc-rule);
}
.dc-page .dc-showcase-heading h2 {
  max-width: 16ch;
  margin-top: .875rem;
  letter-spacing: -.045em;
  text-wrap: balance;
}
.dc-page .dc-showcase-heading > p {
  max-width: 41rem;
  padding-bottom: .25rem;
  font-size: clamp(1rem, 1.3vw, 1.25rem);
  line-height: 1.5;
  letter-spacing: -.03em;
  color: var(--tc-quiet);
}
.dc-proto-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(.625rem, 1.4vw, 1.25rem);
  padding-top: clamp(1rem, 2vw, 1.75rem);
}
.dc-proto-card {
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  min-width: 0;
  margin: 0;
  border: 1px solid var(--tc-rule);
  border-radius: .45rem;
  overflow: clip;
  background: var(--tc-paper);
}
.dc-proto-card:first-child { grid-column: 1 / -1; }
.dc-proto-card .dc-art-card__button { height: 100%; overflow: hidden; }
.dc-proto-card .dc-art-card__button img { display: block; width: 100%; height: 100%; min-height: 15rem; max-height: 32rem; aspect-ratio: 16 / 9; object-fit: contain; background: var(--tc-surface); }
.dc-proto-card figcaption { display: flex; justify-content: space-between; gap: 1rem; min-height: 3.5rem; padding: .875rem 1rem; border-top: 1px solid var(--tc-rule); }
.dc-proto-card figcaption span { font: .75rem/1.4 var(--font-mono), monospace; color: var(--tc-quiet); }
.dc-proto-card figcaption strong { font-size: .875rem; line-height: 1.35; font-weight: 500; }
.dc-brand-grid,
.dc-design-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(.625rem, 1.4vw, 1.25rem);
  padding-top: clamp(1rem, 2vw, 1.75rem);
}
.dc-brand-grid .dc-art-card--wide,
.dc-brand-grid .dc-art-card--narrow { grid-column: span 6; }
.dc-brand-grid .dc-art-card--third { grid-column: span 4; }
.dc-page .dc-showcase--design .dc-showcase-heading h2 {
  max-width: 20ch;
  letter-spacing: -.045em;
}
/* Real, full-height pages: the preview scrolls inside the frame, just as on TOLK. */
.dc-full-page-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-auto-rows: clamp(22rem, 65svh, 30rem);
  gap: 1rem;
  padding-top: clamp(1rem, 2vw, 1.75rem);
}
.dc-full-page {
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  gap: .75rem;
  min-width: 0;
  min-height: 0;
  margin: 0;
  padding: .875rem;
  border: 1px solid var(--tc-rule);
  background: var(--dc-soft);
  color: var(--tc-ink);
}
.dc-full-page__preview {
  min-width: 0;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  scrollbar-gutter: stable;
  scrollbar-width: thin;
  background: var(--tc-paper);
}
.dc-full-page__button {
  display: block;
  white-space: normal;
  line-height: 0;
  width: 100%;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: var(--tc-paper);
  cursor: zoom-in;
  text-align: left;
}
.dc-full-page__button img {
  display: block;
  width: 100%;
  max-width: none;
  height: auto;
}
.dc-full-page__preview:focus-visible,
.dc-full-page__button:focus-visible { outline: 2px solid var(--dc-blue); outline-offset: -3px; }
.dc-full-page figcaption {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: .75rem;
  font: .75rem/1.4 var(--font-mono), monospace;
}
.dc-full-page figcaption span:last-child { color: var(--tc-quiet); font-size: 1rem; }
.dc-design-detail-heading {
  display: block;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--tc-rule);
}
.dc-page .dc-design-detail-heading h2 {
  margin: 0;
  font-size: clamp(1.75rem, 2.8vw, 2.5rem);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -.04em;
}
.dc-design-grid { grid-auto-rows: clamp(12rem, 16vw, 16rem); }
.dc-design-grid .dc-art-card { display: grid; grid-template-rows: minmax(0, 1fr) auto; min-height: 0; }
.dc-design-grid .dc-art-card__button { height: 100%; min-height: 0; overflow: hidden; }
.dc-design-grid .dc-art-card__button img { width: 100%; height: 100%; aspect-ratio: auto; object-fit: contain; }
.dc-design-grid .dc-art-card--long img { object-fit: cover; }
.dc-design-grid .dc-art-card--categories img { object-position: center 12%; }
.dc-design-grid .dc-art-card--tariffs img { object-position: center 6%; }
.dc-design-grid .dc-art-card--learning img { object-position: center 25%; }
.dc-design-grid .dc-art-card--pdd img { object-position: center 21%; }
.dc-design-grid .dc-art-card--signup img { object-position: center 0%; }
.dc-design-grid .dc-art-card--categories { grid-column: span 7; grid-row: span 2; }
.dc-design-grid .dc-art-card--tariffs { grid-column: span 5; grid-row: span 2; }
.dc-design-grid .dc-art-card--learning { grid-column: span 5; grid-row: span 2; }
.dc-design-grid .dc-art-card--motopark { grid-column: span 7; grid-row: span 2; }
.dc-design-grid .dc-art-card--signup { grid-column: span 7; grid-row: span 2; }
.dc-design-grid .dc-art-card--pdd { grid-column: span 5; grid-row: span 2; }
.dc-art-card {
  min-width: 0;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--tc-rule);
  border-radius: .45rem;
  overflow: clip;
  background: var(--tc-paper);
}
.dc-art-card__button {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: #f7f7f7;
  cursor: zoom-in;
  text-align: left;
}
.dc-art-card__button img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: contain;
  transition: transform 250ms cubic-bezier(.16, 1, .3, 1);
}
.dc-art-card__button:hover img { transform: scale(1.018); }
.dc-art-card figcaption {
  min-height: 3.25rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: .75rem;
  padding: .875rem 1rem;
  border-top: 1px solid var(--tc-rule);
  font: .75rem/1.4 var(--font-mono), monospace;
  color: var(--tc-ink);
}
.dc-art-card figcaption span:last-child { font-size: 1rem; color: var(--tc-quiet); }
.dc-page .dc-lightbox:not([open]) { display: none; }
.dc-page .dc-lightbox {
  position: fixed;
  inset: 0;
  width: min(96vw, 1560px);
  height: min(95dvh, 1060px);
  max-width: none;
  max-height: none;
  padding: 0;
  border: 1px solid var(--tc-rule);
  border-radius: .5rem;
  background: var(--tc-paper);
  color: var(--tc-ink);
  overflow: hidden;
  grid-template-rows: auto minmax(0, 1fr) auto;
}
.dc-page .dc-lightbox[open] { display: grid; }
.dc-lightbox::backdrop { background: rgb(0 0 0 / .82); }
.dc-lightbox__bar,
.dc-lightbox__nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  min-height: 3.75rem;
  padding-inline: clamp(.875rem, 2vw, 1.5rem);
  font: .75rem/1.4 var(--font-mono), monospace;
}
.dc-lightbox__bar { border-bottom: 1px solid var(--tc-rule); }
.dc-lightbox__nav { justify-content: center; border-top: 1px solid var(--tc-rule); }
.dc-lightbox__bar > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dc-lightbox__bar button,
.dc-lightbox__nav button {
  min-width: 2.75rem;
  min-height: 2.75rem;
  border: 1px solid var(--tc-rule);
  border-radius: .25rem;
  background: var(--tc-paper);
  color: inherit;
  cursor: pointer;
}
.dc-lightbox__close { display: inline-flex; align-items: center; justify-content: center; gap: .75rem; padding-inline: .875rem; }
.dc-lightbox__close span { font-size: 1.25rem; }
.dc-lightbox__nav button { font-size: 1.25rem; }
.dc-lightbox__nav span { min-width: 3rem; text-align: center; }
.dc-lightbox__media {
  min-height: 0;
  overflow: auto;
  background: #f3f3f3;
  scrollbar-gutter: stable;
}
.dc-lightbox__media img { display: block; width: min(100%, 1440px); height: auto; margin-inline: auto; }
@media (min-width: 48rem) {
  .dc-full-page-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 17rem; gap: 1.25rem; }
  .dc-full-page--feature { grid-row: span 2; }
  .dc-full-page:last-child { grid-column: 1 / -1; }
}
@media (min-width: 75rem) {
  .dc-full-page-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); grid-auto-rows: 18rem; gap: 1.5rem; }
  .dc-full-page { grid-column: span 2; }
  .dc-full-page--feature { grid-column: span 3; }
  .dc-full-page:last-child { grid-column: span 2; }
}
@media (max-width: 48rem) {
  .dc-page .dc-showcase-heading { grid-template-columns: 1fr; gap: .875rem; }
  .dc-page .dc-showcase-heading h2 { max-width: none; }
  .dc-page .dc-showcase-heading > p { max-width: 36rem; }
  .dc-proto-card:first-child { grid-column: 1 / -1; }
  .dc-brand-grid .dc-art-card--wide,
  .dc-brand-grid .dc-art-card--narrow,
  .dc-brand-grid .dc-art-card--third,
  .dc-design-grid .dc-art-card { grid-column: span 6; grid-row: span 1; }
  .dc-brand-grid .dc-art-card--wide { grid-column: 1 / -1; }
  .dc-lightbox__media img { min-width: min(190vw, 680px); max-width: none; }
}
@media (max-width: 35rem) {
  .dc-proto-grid { grid-template-columns: 1fr; }
  .dc-proto-card:first-child { grid-column: 1; }
  .dc-brand-grid,
  .dc-design-grid { grid-template-columns: 1fr; }
  .dc-brand-grid .dc-art-card--wide,
  .dc-brand-grid .dc-art-card--narrow,
  .dc-brand-grid .dc-art-card--third,
  .dc-design-grid .dc-art-card { grid-column: 1; grid-row: span 1; }
  .dc-art-card figcaption { min-height: 3rem; }
  .dc-page .dc-lightbox { width: 100vw; height: 100dvh; border-radius: 0; }
  .dc-lightbox__bar,
  .dc-lightbox__nav { min-height: 3.25rem; }
  .dc-lightbox__bar > span { max-width: calc(100vw - 8.5rem); }
  .dc-lightbox__close { font-size: 0; gap: 0; }
  .dc-lightbox__close span { font-size: 1.5rem; }
}
@media (prefers-reduced-motion: reduce) {
  .dc-art-card__button img { transition: none; }
}
