  #home-design-project > .content { margin: 36px var(--pt64, 64px) 0; }
  #home-design-project .d5-legacy { display: none; }
  #home-design-project .d5 { display: grid; grid-template-columns: minmax(440px, .88fr) minmax(0, 1.32fr); color: #242424; font-family: Montserrat, sans-serif; letter-spacing: 0; }
  .d5, .d5 * { box-sizing: border-box; }
  .d5 button, .d5 input { font: inherit; border-radius: 0; }
  .d5 button, .d5 a { -webkit-tap-highlight-color: transparent; }
  .d5 button { cursor: pointer; }
  .d5 :focus-visible { outline: 2px solid #82c5e7; outline-offset: 4px; }
  .d5-copy { background: #f0f5f7; color: #fff; }
  .d5-story { padding: 32px; background: #252525; }
  #home-design-project .d5 h3 { margin: 0; font-family: Geologica, sans-serif; font-weight: 700; font-size: 34px; line-height: 1.15; text-transform: uppercase; color: #fff; }
  #home-design-project .d5 h3 span { color: #82c5e7; }
  .d5-rule { width: 40px; height: 3px; background: #3999c9; margin: 22px 0; }
  .d5-intro { font-size: 18px; line-height: 1.55; margin: 0 0 14px; color: #f1f1f1; }
  .d5-intro:last-child { margin-bottom: 0; }
  .d5-lead { font-size: 21px; line-height: 1.4; margin-bottom: 20px; }
  .d5-lead strong { font-weight: 600; }
  .d5-form { margin: 0; padding: 28px 32px 32px; border-top: 3px solid #3999c9; color: #242424; }
  #home-design-project .d5 h4 { color: #242424; font-size: 25px; line-height: 1.25; font-weight: 600; margin: 0 0 14px; }
  .d5-form-note { font-size: 16px; line-height: 1.5; margin: 0 0 22px; color: #454c50; }
  .d5-channels { border: 0; padding: 0; margin: 0 0 20px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; min-width: 0; }
  .d5-channels legend { font-size: 16px; line-height: 1.4; padding: 0 0 12px; color: #242424; }
  .d5-channels label { position: relative; cursor: pointer; min-width: 0; }
  .d5-channels input { position: absolute; width: 1px; height: 1px; opacity: 0; }
  .d5-channels span { display: flex; align-items: center; justify-content: center; min-height: 50px; border: 1px solid #aab5bb; color: #30383c; font-size: 16px; font-weight: 500; transition: border-color .15s, color .15s, background-color .15s; }
  .d5-channels input:checked + span { border-color: #252525; color: #fff; background: #252525; }
  .d5-channels label:hover span { border-color: #252525; }
  .d5-channels input:focus-visible + span { outline: 2px solid #82c5e7; outline-offset: 3px; }
  .d5-fields { display: grid; grid-template-columns: .8fr 1.2fr; gap: 14px; margin-bottom: 20px; }
  .d5-fields label { font-size: 15px; line-height: 1.5; color: #424b50; min-width: 0; }
  .d5-fields input { display: block; width: 100%; height: 52px; padding: 12px 0; margin-top: 3px; background: transparent; color: #242424; border: 0; border-bottom: 1px solid #8a9ca6; font-size: 17px; box-shadow: none; }
  .d5-fields input::placeholder { color: #59656c; opacity: 1; }
  .d5-submit { display: flex; width: 100%; align-items: center; justify-content: space-between; gap: 12px; min-height: 60px; padding: 16px; background: #252525; color: #fff; border: 1px solid #252525; text-transform: uppercase; font-size: 15px !important; font-weight: 600 !important; transition: background-color .15s, color .15s; }
  .d5-submit img { filter: invert(1); }
  .d5-submit:hover { background: #fff; color: #252525; }
  .d5-submit:hover img { filter: none; }
  .d5-privacy { color: #59656c; margin: 12px 0 0; font-size: 13px; line-height: 1.5; }
  .d5-status { color: #226c92; font-size: 16px; line-height: 1.5; margin: 16px 0 0; }
  .d5-portfolio { min-width: 0; display: flex; flex-direction: column; padding-left: 24px; background: #fff; }
  .d5-projects { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .d5-projects button { background: transparent; color: #303030; border: 1px solid #303030; min-height: 64px; padding: 12px 8px; font-size: 17px; font-weight: 600; text-transform: uppercase; }
  .d5-projects button[aria-selected="true"], .d5-projects button:hover { border-color: #287ca8; color: #287ca8; }
  .d5-project { display: flex; flex-direction: column; flex: 1; min-height: 0; }
  .d5-stage { position: relative; display: flex; flex: 1; min-height: 400px; background: #fff; margin-top: 16px; overflow: hidden; }
  .d5-main { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: contain; }
  .d5-expand { position: absolute; top: 10px; right: 10px; display: grid; place-items: center; width: 44px; height: 44px; background: #fff; border: 1px solid #ddd; }
  .d5-pages { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; padding: 18px 0; border-top: 1px solid #dedede; }
  .d5-page { display: block; height: 116px; padding: 3px; border: 1px solid #dedede; background: #fff; }
  .d5-page[aria-pressed="true"] { border-color: #287ca8; box-shadow: inset 0 -2px #3999c9; }
  .d5-page img { display: block; width: 100%; height: 100%; object-fit: contain; }
  .d5-caption { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 70px; border-top: 1px solid #dedede; }
  .d5-caption-title { display: block; font-size: 19px; font-weight: 600; margin-bottom: 5px; }
  .d5-caption > div > span { font-size: 14px; color: #656565; }
  .d5-navigation { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
  .d5-count { min-width: 44px; font-size: 15px; }
  .d5-navigation button { display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid #bbb; background: #fff; }
  .d5-navigation button:hover { border-color: #287ca8; background: #f2f7fa; }
@media (min-width: 1600px) {
  .d5-story { padding: 40px; }
  .d5-form { padding: 30px 40px 36px; }
  #home-design-project .d5 h3 { font-size: 42px; }
  .d5-intro { font-size: 20px; }
  .d5-lead { font-size: 23px; }
  #home-design-project .d5 h4 { font-size: 28px; }
  .d5-form-note { font-size: 18px; }
  .d5-channels span, .d5-channels legend { font-size: 18px; }
  .d5-projects button { font-size: 20px; min-height: 72px; }
  .d5-page { height: 135px; }
  .d5-submit { font-size: 17px !important; }
}

#home-design-project .d5-form { background: #f0f5f7; }
#home-design-project .d5-form > p:empty { display: none; }
#home-design-project .d5-channels > p { grid-column: 1 / -1; margin: 0; }
#home-design-project .d5-channels .wpcf7-form-control-wrap { display: block; width: 100%; }
#home-design-project .d5-channels .wpcf7-radio { width: 100%; }
#home-design-project .d5-fields > p { display: contents; }
#home-design-project .d5-fields > p > br { display: none; }
#home-design-project .d5-fields label { display: block; }
#home-design-project .d5-channels > .wpcf7-form-control-wrap { grid-column: 1 / -1; }
#home-design-project .d5-channels .wpcf7-radio { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
#home-design-project .d5-channels .wpcf7-list-item { display: block; margin: 0; }
#home-design-project .d5-channels label { display: block; }
#home-design-project .d5-channels span:not(.wpcf7-list-item-label) { border: 0; min-height: 0; padding: 0; background: none; }
#home-design-project .d5-channels input:checked + .wpcf7-list-item-label { color: #fff; background: #252525; }
#home-design-project .d5-fields .wpcf7-form-control-wrap { display: block; }
#home-design-project .d5-fields input { min-height: 52px; border: 0; border-bottom: 1px solid #8a9ca6; text-align: left; font-size: 17px; padding: 12px 0; margin: 3px 0 0; background: transparent; }
#home-design-project .d5-consent { margin: 0 0 20px; font-size: 13px; line-height: 1.6; color: #59656c; }
#home-design-project .d5-consent .wpcf7-list-item { margin: 0; }
#home-design-project .d5-consent label { display: flex; gap: 10px; align-items: flex-start; }
#home-design-project .d5-consent input { appearance: auto; width: 18px; height: 18px; min-width: 18px; margin: 3px 0 0; accent-color: #252525; }
#home-design-project .d5-consent a { color: inherit; text-decoration: underline; }
#home-design-project .wpcf7-response-output { margin: 16px 0 0; padding: 12px; font-size: 16px; line-height: 1.5; color: #242424; }
#home-design-project .wpcf7-not-valid-tip { font-size: 14px; margin-top: 6px; }
#home-design-project .submitting .d5-submit { opacity: .6; pointer-events: none; }
@media (max-width: 1100px) {
  #home-design-project > .content { margin: 28px 24px 0; }
  #home-design-project .d5 { display: flex; flex-direction: column; gap: 24px; }
  #home-design-project .d5-copy { display: contents; }
  .d5-story { order: 0; }
  .d5-portfolio { order: 1; padding: 0; }
  .d5-form-host { order: 2; }
  .d5-stage { flex: none; aspect-ratio: 1.42; min-height: 0; }
  .d5-page { height: 100px; }
}
@media (max-width: 600px) {
  #home-design-project > .header > .h2 { font-size: 28px; line-height: 1.15; }
  #home-design-project > .header > .subtitle { font-size: 18px; line-height: 1.5; }
  #home-design-project > .content { margin: 24px 0 0; }
  .d5-story, .d5-form { padding: 28px 22px; }
  #home-design-project .d5 h3 { font-size: 28px; }
  #home-design-project .d5 h4 { font-size: 24px; }
  .d5-intro, .d5-lead { font-size: 18px; line-height: 1.5; }
  .d5-portfolio { padding: 0 12px; }
  .d5-projects { gap: 4px; }
  .d5-projects button { font-size: 13px; min-height: 52px; padding: 10px 4px; }
  .d5-fields { grid-template-columns: 1fr; }
  .d5-page { height: 76px; }
  .d5-pages { gap: 6px; padding: 12px 0; }
  .d5-caption-title { font-size: 17px; }
  .d5-caption > div > span { font-size: 12px; }
  .d5-count { font-size: 13px; min-width: 32px; }
  .d5-navigation { gap: 4px; }
  .d5-navigation button { width: 40px; height: 40px; }
  .d5-channels span { font-size: 15px; }
}
