/* HomePrint portfolio: four downloadable, manifest-driven Design Packs. */

.dp-page {
  --dp-paper: #F5F2EC;
  --dp-paper-deep: #EBE6DD;
  --dp-ink: #141A22;
  --dp-muted: #4F5966;
  --dp-blueprint: #1F4E8C;
  --dp-blueprint-deep: #173D6E;
  --dp-oak: #C49A5E;
  --dp-night: #0F2440;
  --dp-glass: rgba(255,255,255, .68);
  --dp-glass-strong: rgba(255,255,255, .86);
  --dp-hairline: rgba(20,26,34, .11);
  --dp-shadow: 0 28px 70px rgba(20,26,34, .11), 0 8px 22px rgba(20,26,34, .07);
  background: var(--dp-paper);
  color: var(--dp-ink);
  overflow: clip;
}

.dp-hero {
  min-height: 0;
  padding: clamp(118px, 10vw, 146px) 0 clamp(44px, 5vw, 64px);
  position: relative;
  isolation: isolate;
  display: grid;
  align-items: center;
  background:
    radial-gradient(circle at 82% 18%, rgba(31,78,140, .14), transparent 34%),
    radial-gradient(circle at 16% 76%, rgba(196,154,94, .12), transparent 32%),
    linear-gradient(142deg, #FFFFFF 0%, #F5F2EC 50%, #F0EDE7 100%);
}

.dp-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  opacity: .35;
  background-image:
    linear-gradient(rgba(20,26,34, .035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(20,26,34, .035) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, .8), transparent 92%);
}

.dp-hero-inner { position: relative; z-index: 1; }

.dp-hero h1 {
  max-width: 930px;
  font-size: clamp(3rem, 6vw, 5.4rem);
  line-height: .96;
  letter-spacing: -.042em;
  text-wrap: balance;
  margin-bottom: 24px;
}

.dp-hero h1 span {
  color: var(--dp-blueprint);
  font-style: italic;
  font-weight: 500;
}

.dp-hero-copy {
  max-width: 710px;
  color: var(--dp-muted);
  font-size: clamp(1.08rem, 1.7vw, 1.34rem);
  line-height: 1.65;
  text-wrap: pretty;
}

.dp-hero-notes {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.dp-hero-notes span {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 38px;
  padding: 8px 14px;
  border: 1px solid rgba(20,26,34, .1);
  border-radius: 999px;
  background: rgba(255, 255, 255, .54);
  box-shadow: inset 0 1px rgba(255, 255, 255, .8);
  color: var(--dp-muted);
  font-size: .84rem;
  font-weight: 600;
}

.dp-hero-notes span::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--dp-blueprint);
}

.dp-hero-orb {
  position: absolute;
  z-index: -1;
  border-radius: 42% 58% 62% 38% / 44% 40% 60% 56%;
  filter: blur(1px);
  pointer-events: none;
  animation: dp-float 14s ease-in-out infinite alternate;
}

.dp-hero-orb-one {
  width: clamp(250px, 34vw, 520px);
  aspect-ratio: 1;
  right: -10%;
  top: 18%;
  border: 1px solid rgba(31,78,140, .16);
  background: linear-gradient(135deg, rgba(255, 255, 255, .5), rgba(31,78,140, .08));
  box-shadow: inset 32px 32px 70px rgba(255, 255, 255, .4);
}

.dp-hero-orb-two {
  width: clamp(160px, 21vw, 330px);
  aspect-ratio: 1.2;
  left: -8%;
  bottom: -4%;
  background: rgba(196,154,94, .07);
  animation-delay: -5s;
}

@keyframes dp-float {
  to { transform: translate3d(-16px, 22px, 0) rotate(4deg); }
}

.dp-collection {
  padding: clamp(40px, 4.4vw, 64px) 0 clamp(96px, 12vw, 160px);
  background:
    linear-gradient(180deg, rgba(235,230,221, .62), transparent 17%),
    var(--dp-paper);
}

.dp-section-intro {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(260px, .65fr);
  align-items: end;
  gap: clamp(32px, 7vw, 90px);
  margin-bottom: clamp(30px, 3.4vw, 48px);
}

.dp-section-intro h2 {
  max-width: 710px;
  margin-bottom: 0;
  text-wrap: balance;
}

.dp-section-intro > p {
  color: var(--dp-muted);
  font-size: 1rem;
  line-height: 1.72;
  margin: 0 0 6px;
}

.dp-projects { display: grid; gap: clamp(36px, 6vw, 72px); }

.dp-project {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(230px, .78fr) minmax(0, 2.22fr);
  gap: clamp(24px, 4vw, 54px);
  align-items: stretch;
  padding: clamp(22px, 3vw, 38px);
  border: 1px solid rgba(255, 255, 255, .76);
  border-radius: clamp(24px, 3vw, 38px);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, .76), rgba(255,255,255, .51)),
    var(--dp-glass);
  -webkit-backdrop-filter: blur(24px) saturate(126%);
  backdrop-filter: blur(24px) saturate(126%);
  box-shadow: var(--dp-shadow), inset 0 0 0 1px rgba(20,26,34, .035);
  opacity: 0;
  transform: translateY(30px);
  transition: opacity .7s ease, transform .8s cubic-bezier(.2, .8, .2, 1);
}

.dp-project.is-visible { opacity: 1; transform: translateY(0); }

.dp-project::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  border-radius: inherit;
  background:
    radial-gradient(circle at 92% 5%, rgba(31,78,140, .13), transparent 26%),
    linear-gradient(112deg, rgba(255, 255, 255, .5), transparent 38%);
  pointer-events: none;
}

.dp-project:nth-child(2n)::before {
  background:
    radial-gradient(circle at 8% 92%, rgba(196,154,94, .12), transparent 29%),
    linear-gradient(112deg, rgba(255, 255, 255, .5), transparent 38%);
}

.dp-project-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 0;
  padding: clamp(4px, 1vw, 12px) 0;
}

.dp-project-index {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--dp-blueprint-deep);
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  margin-bottom: auto;
}

.dp-project-index::after {
  content: "";
  width: 30px;
  height: 1px;
  background: currentColor;
  opacity: .45;
}

.dp-project-meta h3 {
  font-size: clamp(1.65rem, 3vw, 2.7rem);
  line-height: 1.05;
  margin: clamp(32px, 5vw, 68px) 0 13px;
  text-wrap: balance;
}

.dp-project-description {
  color: var(--dp-muted);
  font-size: .96rem;
  line-height: 1.68;
  margin-bottom: 23px;
}

.dp-project-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  padding: 0;
  margin: 0 0 28px;
  list-style: none;
}

.dp-project-facts li {
  padding: 6px 10px;
  border: 1px solid var(--dp-hairline);
  border-radius: 999px;
  background: rgba(255, 255, 255, .4);
  color: var(--dp-muted);
  font-size: .74rem;
  font-weight: 600;
  line-height: 1.25;
}

.dp-details-button {
  appearance: none;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 0 0 7px;
  border: 0;
  border-bottom: 1px solid rgba(31,78,140, .34);
  background: transparent;
  color: var(--dp-blueprint-deep);
  font: 650 .9rem/1.2 "Inter", sans-serif;
  cursor: pointer;
}

.dp-details-button svg { width: 16px; height: 16px; transition: transform .2s ease; }
.dp-details-button:hover svg { transform: translateX(4px); }
.dp-project-budget { display: grid; gap: 5px; margin: 0 0 25px; }
.dp-project-budget strong { font: 500 clamp(1.35rem, 2vw, 1.75rem)/1.2 "Fraunces", serif; color: var(--dp-ink); }
.dp-project-budget span { color: var(--dp-muted); font-size: .72rem; line-height: 1.5; }
.dp-complete-pack { display: inline-flex; align-items: center; gap: 8px; margin-top: 20px; color: var(--dp-muted); font: 550 .78rem/1.4 "Inter", sans-serif; text-decoration: none; }
.dp-complete-pack svg { width: 15px; height: 15px; }
.dp-complete-pack:hover { color: var(--dp-blueprint-deep); }
.dp-details-button:focus-visible,
.dp-complete-pack:focus-visible,
.dp-carousel-button:focus-visible,
.dp-dialog-close:focus-visible,
.dp-download:focus-visible {
  outline: 3px solid rgba(31,78,140, .48);
  outline-offset: 4px;
}

.dp-gallery { min-width: 0; display: grid; align-content: start; }

.dp-track {
  display: flex;
  gap: clamp(12px, 1.6vw, 20px);
  width: 100%;
  overflow-x: auto;
  padding: 3px 3px 16px;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  overscroll-behavior-inline: contain;
  -webkit-overflow-scrolling: touch;
}

.dp-track::-webkit-scrollbar { display: none; }
.dp-track:focus-visible { outline: 3px solid rgba(31,78,140, .4); outline-offset: 5px; border-radius: 22px; }

.dp-track.is-dragging { scroll-snap-type: none; scroll-behavior: auto; cursor: grabbing; user-select: none; }
@media (pointer: fine) { .dp-track { cursor: grab; } .dp-track.is-dragging { cursor: grabbing; } }

.dp-slide {
  position: relative;
  margin: 0;
  flex: 0 0 min(82%, 720px);
  min-width: 0;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  scroll-snap-align: start;
  border-radius: clamp(18px, 2vw, 28px);
  background: #E8E4DC;
  box-shadow: 0 18px 38px rgba(20,26,34, .13), inset 0 0 0 1px rgba(255, 255, 255, .55);
  transform: scale(.975);
  transform-origin: center;
  transition: transform .4s ease, box-shadow .4s ease;
}

.dp-slide.is-current {
  transform: scale(1);
  box-shadow: 0 24px 52px rgba(20,26,34, .18), inset 0 0 0 1px rgba(255, 255, 255, .62);
}

.dp-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(to top, rgba(10,22,40, .58), transparent 48%);
}

.dp-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.025);
  transition: opacity .45s ease, transform .8s cubic-bezier(.2, .8, .2, 1);
}

.dp-slide img.is-loaded { opacity: 1; transform: scale(1); }

.dp-slide-caption {
  position: absolute;
  z-index: 2;
  inset: auto 14px 14px;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 18px;
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, .26);
  border-radius: 14px;
  background: rgba(10,22,40, .35);
  -webkit-backdrop-filter: blur(16px) saturate(125%);
  backdrop-filter: blur(16px) saturate(125%);
  color: #FFFFFF;
  box-shadow: inset 0 1px rgba(255, 255, 255, .13);
}

.dp-slide-caption b {
  font-family: "Fraunces", Georgia, serif;
  font-size: clamp(1rem, 1.5vw, 1.25rem);
  font-weight: 560;
  line-height: 1.18;
}

.dp-slide-caption span {
  flex: none;
  color: rgba(255, 255, 255, .76);
  font-size: .7rem;
  font-weight: 650;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.dp-image-error {
  position: absolute;
  inset: 0;
  display: none;
  place-items: center;
  color: var(--dp-muted);
  font-size: .84rem;
}

.dp-slide.has-error .dp-image-error { display: grid; }

.dp-gallery-empty {
  min-height: 330px;
  display: grid;
  place-items: center;
  border: 1px solid var(--dp-hairline);
  border-radius: 24px;
  background: rgba(255, 255, 255, .35);
  color: var(--dp-muted);
  font-size: .9rem;
}

.dp-carousel-footer {
  display: grid;
  grid-template-columns: auto minmax(90px, 1fr) auto;
  align-items: center;
  gap: 16px;
  margin-top: 5px;
  padding-inline: 3px;
}

.dp-carousel-actions { display: flex; gap: 8px; }

.dp-carousel-button,
.dp-dialog-close {
  appearance: none;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid var(--dp-hairline);
  border-radius: 50%;
  background: rgba(255, 255, 255, .68);
  color: var(--dp-ink);
  box-shadow: 0 6px 18px rgba(20,26,34, .07), inset 0 1px rgba(255, 255, 255, .9);
  cursor: pointer;
  transition: color .2s ease, background .2s ease, transform .2s ease;
}

.dp-carousel-button:hover:not(:disabled) { color: #fff; background: var(--dp-blueprint); transform: translateY(-2px); }
.dp-carousel-button:disabled { opacity: .32; cursor: default; }
.dp-carousel-button svg,
.dp-dialog-close svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.dp-progress {
  width: 100%;
  height: 2px;
  overflow: hidden;
  border-radius: 4px;
  background: rgba(20,26,34, .12);
}

.dp-progress span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: var(--dp-blueprint);
  transform-origin: left center;
  transition: width .35s ease;
}

.dp-progress-label {
  min-width: 54px;
  text-align: right;
  color: var(--dp-muted);
  font: 650 .78rem/1 "Inter", sans-serif;
  font-variant-numeric: tabular-nums;
}

.dp-loading,
.dp-notice {
  min-height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 13px;
  color: var(--dp-muted);
  text-align: center;
  font-size: .92rem;
}

.dp-loading-mark {
  width: 16px;
  height: 16px;
  border: 2px solid rgba(31,78,140, .2);
  border-top-color: var(--dp-blueprint);
  border-radius: 50%;
  animation: dp-spin .85s linear infinite;
}

@keyframes dp-spin { to { transform: rotate(1turn); } }

.dp-notice {
  min-height: 170px;
  padding: 34px;
  border: 1px solid var(--dp-hairline);
  border-radius: 24px;
  background: rgba(255, 255, 255, .42);
}

.dp-next { padding: 0 0 clamp(90px, 11vw, 150px); }

.dp-next-card {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(34px, 7vw, 90px);
  padding: clamp(42px, 7vw, 86px);
  border-radius: clamp(26px, 4vw, 44px);
  background:
    radial-gradient(circle at 90% 0, rgba(196,154,94, .24), transparent 32%),
    #0F2440;
  color: #F2EEE6;
  box-shadow: 0 34px 80px rgba(20,26,34, .2);
}

.dp-next-card::after {
  content: "";
  position: absolute;
  width: 260px;
  height: 260px;
  right: -110px;
  bottom: -150px;
  border: 1px solid rgba(245,242,236, .14);
  border-radius: 48% 52% 38% 62%;
}

.dp-next-card h2 { color: #FFFFFF; }
.dp-next-card p { max-width: 650px; color: rgba(245,242,236, .7); margin-bottom: 0; }
.dp-next-card .eyebrow { color: #C49A5E; }
.dp-next-card .eyebrow::before { background: #C49A5E; }
.dp-next-card .btn { position: relative; z-index: 1; white-space: nowrap; }

.dp-dialog {
  width: min(1050px, calc(100% - 36px));
  max-width: none;
  max-height: min(880px, calc(100dvh - 36px));
  padding: 0;
  border: 0;
  border-radius: 30px;
  background: transparent;
  color: var(--dp-ink);
  box-shadow: 0 42px 120px rgba(10,22,40, .36);
  overflow: visible;
}

.dp-dialog::backdrop {
  background: rgba(10,22,40, .58);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.dp-dialog[open] { animation: dp-dialog-in .28s ease both; }

@keyframes dp-dialog-in {
  from { opacity: 0; transform: translateY(20px) scale(.985); }
}

.dp-dialog-shell {
  position: relative;
  max-height: min(880px, calc(100dvh - 36px));
  overflow: auto;
  border: 1px solid rgba(255, 255, 255, .7);
  border-radius: inherit;
  background: rgba(245,242,236, .95);
  -webkit-backdrop-filter: blur(28px) saturate(120%);
  backdrop-filter: blur(28px) saturate(120%);
}

.dp-dialog-close {
  position: sticky;
  z-index: 5;
  top: 18px;
  float: right;
  margin: 18px 18px -60px 0;
  background: rgba(255, 255, 255, .84);
}

.dp-dialog-body { clear: both; }

.dp-dialog-cover {
  position: relative;
  min-height: 300px;
  overflow: hidden;
  display: grid;
  align-items: end;
  padding: clamp(32px, 5vw, 64px);
  border-radius: 30px 30px 0 0;
  background: #DCD8D0;
}

.dp-dialog-cover img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.dp-dialog-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10,22,40, .84), rgba(10,22,40, .06) 70%);
}

.dp-dialog-heading { position: relative; z-index: 1; max-width: 760px; color: #fff; }
.dp-dialog-heading .dp-dialog-kicker { margin: 0 0 8px; color: rgba(255, 255, 255, .74); font-size: .76rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.dp-dialog-heading h2 { color: #fff; font-size: clamp(2rem, 4.4vw, 3.7rem); margin-bottom: 10px; }
.dp-dialog-heading p { color: rgba(255, 255, 255, .8); margin: 0; max-width: 640px; }

.dp-dialog-content {
  padding: clamp(30px, 5vw, 62px);
  display: grid;
  gap: clamp(34px, 5vw, 58px);
}

.dp-summary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border: 1px solid var(--dp-hairline);
  border-radius: 20px;
  background: rgba(255, 255, 255, .55);
}

.dp-summary-item { min-width: 0; padding: 20px; }
.dp-summary-item + .dp-summary-item { border-left: 1px solid var(--dp-hairline); }
.dp-summary-item span { display: block; margin-bottom: 6px; color: var(--dp-muted); font-size: .68rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.dp-summary-item strong { display: block; font-family: "Fraunces", Georgia, serif; font-size: clamp(1.05rem, 2vw, 1.35rem); line-height: 1.25; overflow-wrap: anywhere; }

.dp-dialog-section h3 { font-size: clamp(1.45rem, 2.6vw, 2rem); margin-bottom: 18px; }

.dp-contents-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.dp-content-item {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: start;
  gap: 13px;
  padding: 17px;
  border: 1px solid var(--dp-hairline);
  border-radius: 16px;
  background: rgba(255, 255, 255, .47);
}

.dp-content-icon {
  display: grid;
  place-items: center;
  width: 29px;
  height: 29px;
  border-radius: 10px;
  background: rgba(31,78,140, .1);
  color: var(--dp-blueprint-deep);
  font-size: .8rem;
  font-weight: 750;
}

.dp-content-item b { display: block; font-size: .9rem; line-height: 1.4; }
.dp-content-item span:not(.dp-content-icon) { display: block; margin-top: 3px; color: var(--dp-muted); font-size: .8rem; line-height: 1.45; }

.dp-plan-preview {
  overflow: hidden;
  border: 1px solid var(--dp-hairline);
  border-radius: 20px;
  background: #fff;
}

.dp-plan-preview img { width: 100%; max-height: 520px; object-fit: contain; background: #F0EDE7; }
.dp-plan-preview figcaption { padding: 12px 16px; color: var(--dp-muted); font-size: .78rem; }

.dp-downloads { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }

.dp-download {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 64px;
  padding: 15px 17px;
  border: 1px solid var(--dp-hairline);
  border-radius: 16px;
  background: #fff;
  color: var(--dp-ink);
  text-decoration: none;
  box-shadow: 0 8px 22px rgba(20,26,34, .06);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.dp-download:hover { transform: translateY(-2px); border-color: rgba(31,78,140, .35); box-shadow: 0 14px 28px rgba(20,26,34, .1); }
.dp-download b { display: block; font-size: .86rem; }
.dp-download span { display: block; margin-top: 2px; color: var(--dp-muted); font-size: .7rem; }
.dp-download svg { width: 18px; height: 18px; flex: none; fill: none; stroke: var(--dp-blueprint); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

body.dp-dialog-open { overflow: hidden; }

@supports not ((-webkit-backdrop-filter: blur(2px)) or (backdrop-filter: blur(2px))) {
  .dp-project, .dp-dialog-shell { background: #FFFFFF; }
  .dp-slide-caption { background: rgba(10,22,40, .78); }
}

@media (max-width: 960px) {
  .dp-section-intro { grid-template-columns: 1fr; gap: 18px; }
  .dp-section-intro > p { max-width: 660px; }
  .dp-project { grid-template-columns: 1fr; }
  .dp-project-meta { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 24px; }
  .dp-project-index { margin-bottom: 0; }
  .dp-project-meta h3 { grid-column: 1; margin: 26px 0 10px; }
  .dp-project-description { grid-column: 1; }
  .dp-project-facts { grid-column: 1; margin-bottom: 0; }
  .dp-details-button { grid-column: 2; grid-row: 2 / span 3; align-self: end; margin-bottom: 3px; }
  .dp-slide { flex-basis: 78%; }
  .dp-next-card { grid-template-columns: 1fr; }
  .dp-next-card .btn { justify-self: start; }
}

@media (max-width: 700px) {
  .dp-hero { min-height: auto; padding-top: 138px; }
  .dp-hero::before { background-size: 38px 38px; }
  .dp-hero h1 { font-size: clamp(2.75rem, 14vw, 4.5rem); }
  .dp-section-intro { margin-bottom: 40px; }
  .dp-projects { gap: 28px; }
  .dp-project { padding: 18px; border-radius: 25px; }
  .dp-project-meta { display: flex; }
  .dp-project-index { margin-bottom: 0; }
  .dp-project-meta h3 { margin: 24px 0 10px; }
  .dp-project-description { margin-bottom: 18px; }
  .dp-project-facts { margin-bottom: 22px; }
  .dp-details-button { align-self: flex-start; margin: 0; }
  .dp-slide { flex-basis: calc(100vw - 82px); min-height: 290px; aspect-ratio: 4 / 3; }
  .dp-slide-caption { inset: auto 10px 10px; padding: 10px 11px; }
  .dp-carousel-footer { grid-template-columns: auto minmax(50px, 1fr) auto; gap: 11px; }
  .dp-carousel-button { width: 40px; height: 40px; }
  .dp-next-card { padding: 36px 26px; }
  .dp-next-card .btn { width: 100%; white-space: normal; }
  .dp-dialog { width: calc(100% - 18px); max-height: calc(100dvh - 18px); border-radius: 22px; }
  .dp-dialog-shell { max-height: calc(100dvh - 18px); }
  .dp-dialog-cover { min-height: 330px; padding: 26px; border-radius: 22px 22px 0 0; }
  .dp-dialog-content { padding: 26px 20px 34px; }
  .dp-summary-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dp-summary-item:nth-child(3) { border-left: 0; }
  .dp-summary-item:nth-child(n + 3) { border-top: 1px solid var(--dp-hairline); }
  .dp-contents-list, .dp-downloads { grid-template-columns: 1fr; }
}

@media (max-width: 430px) {
  .dp-hero-notes { gap: 7px; }
  .dp-hero-notes span { min-height: 34px; padding: 7px 10px; font-size: .74rem; }
  .dp-slide { flex-basis: calc(100vw - 68px); min-height: 260px; }
  .dp-slide-caption span { display: none; }
  .dp-summary-item { padding: 16px 13px; }
}

@media (prefers-reduced-motion: reduce) {
  .dp-page *, .dp-page *::before, .dp-page *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .dp-project, .dp-project.is-visible { opacity: 1; transform: none; }
  .dp-slide, .dp-slide.is-current { transform: none; }
}

@media (forced-colors: active) {
  .dp-project, .dp-slide, .dp-summary-grid, .dp-content-item, .dp-download { border: 1px solid CanvasText; }
  .dp-progress span { background: Highlight; }
}

/* Static pack summaries: the crawlable copy of design-packs.json written by
   publish_relayout_portfolio.py. Shown only when JavaScript cannot run; the gallery
   script replaces the whole block when it renders. */
.js .dp-static { display: none; }
html:not(.js) .dp-loading { display: none; }
.dp-static { display: grid; gap: 40px; }
.dp-static-pack { padding-top: 28px; border-top: 1px solid rgba(20,26,34, 0.12); }
.dp-static-pack h3 { font-family: var(--serif, Fraunces, Georgia, serif); font-size: 32px; margin: 0 0 12px; }
.dp-static-pack img { display: block; width: 100%; max-width: 960px; height: auto; border-radius: 18px; margin: 18px 0; }
.dp-static-facts { display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 12px 0; list-style: none; }
.dp-static-facts li { border: 1px solid rgba(20,26,34, 0.16); border-radius: 999px; padding: 4px 12px; font-size: 13px; }
.dp-static-rooms { padding-left: 18px; line-height: 1.6; }
.dp-static-links { display: flex; flex-wrap: wrap; gap: 14px 22px; }
