.work-portfolio { background: #f7f3ef; color: #251f19; padding-bottom: 42px; }
.work-portfolio h1 { font-size: clamp(2.35rem, 6vw, 4.7rem); line-height: 1.04; margin-bottom: 12px; }
.work-portfolio-category { background: #fff; border: 1px solid #e7ddd3; border-radius: 14px; padding: clamp(14px, 4vw, 28px); margin-top: 14px; }
.work-portfolio-category h2 { margin: 0 0 8px; font-size: 1.4rem; }
.work-portfolio-category p { margin: 12px 0 0; }
.work-portfolio-category summary { min-height: 44px; padding: 10px 0; cursor: pointer; font-weight: 750; }
.work-portfolio-category p a { color: #8b3b00; text-decoration: underline; text-underline-offset: 3px; }
.work-portfolio-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 140px), 1fr)); gap: 8px; }
.work-portfolio-grid img { display: block; width: 100%; aspect-ratio: 4 / 5; object-fit: contain; background: #f7f3ef; border-radius: 7px; }

.work-portfolio-preview { background: transparent; padding-block: 12px 2px; }
.work-portfolio-preview .solar-gallery-track { animation-duration: 68s; }
.work-portfolio-preview .solar-gallery-set img { aspect-ratio: 4 / 3; object-fit: contain; }

.work-portfolio-category.solar-projects { background: #fff; }
.work-portfolio-preview .solar-gallery-toggle { margin-bottom: 8px; }
.work-portfolio-preview .solar-gallery-track { animation-duration: 54s; }

.portfolio-hero {
  background: radial-gradient(ellipse at 93% 3%, #ffca9b 0%, transparent 50%), linear-gradient(150deg, #fff5e9 0%, #f6eee6 52%, #eedbcc 100%);
  padding: 112px 0 36px;
  color: #261e18;
}
.portfolio-hero-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; }
.portfolio-hero-copy p { max-width: 42ch; font-size: 1.08rem; line-height: 1.6; }
.portfolio-hero-actions, .portfolio-project-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 9px 16px; }
.portfolio-hero-actions > a:not(.button) { color: #783800; }
.portfolio-form { color: #251f19; }
.portfolio-form select, .portfolio-form textarea { width: 100%; border: 1px solid #d8d2cb; border-radius: 8px; padding: 8px; color: inherit; background: #fff; font: inherit; }
.portfolio-form select { min-height: 44px; margin: 5px 0 10px; }
.portfolio-question { display: block; margin-top: 9px; }
.portfolio-projects { padding-top: 20px; }
.portfolio-project-actions { margin: 12px 0 4px; }
.portfolio-project-actions > a:not(.button) { color: #873c00; font-weight: 750; text-decoration: underline; text-underline-offset: 3px; }
.portfolio-project-actions > a, .portfolio-hero-actions > a { min-height: 44px; display: inline-flex; align-items: center; }
@media (max-width: 760px) {
  .portfolio-hero-grid { grid-template-columns: minmax(0, 1fr); }
  .portfolio-hero { background-position: 46% center; }
}

.portfolio-hero .portfolio-form { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; gap: 12px 22px; padding: clamp(17px, 3vw, 30px); background: #fff; border: 1px solid #ece0d4; box-shadow: 0 10px 36px #5c351919; }
.portfolio-form h2, .portfolio-form .hero-form-fields, .portfolio-form .quote-channels, .portfolio-form .quote-combination { grid-column: 1 / -1; margin: 0; }
.portfolio-form .hero-form-fields { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px 14px; }
.portfolio-form .portfolio-question { grid-column: 2; grid-row: 2; margin-top: 0; }
.portfolio-form select, .portfolio-form textarea { display: block; margin-top: 5px; }
.portfolio-form .quote-channel-options { max-width: 520px; }
@media (max-width: 760px) {
  .portfolio-hero .portfolio-form, .portfolio-form .hero-form-fields { grid-template-columns: minmax(0, 1fr); }
  .portfolio-form .portfolio-question { grid-column: auto; grid-row: auto; }
}
