/* Hublok V277 — visual refinement. Photo overlays are intentionally untouched. */
.design-main { padding-top: 0; }
.design-main h1, .design-main h2, .design-main h3 { text-wrap: balance; }
.design-main > section:last-child .flex { flex-wrap: wrap; }
.design-main h2 { letter-spacing: -.025em; }
.design-main h3 { letter-spacing: -.015em; }

/* A shared scale and alignment for text and photographic page introductions. */
.design-page-intro { padding-top: clamp(48px, 5.4vw, 76px); padding-bottom: clamp(48px, 5.4vw, 76px); }
.design-page-intro > .design-intro-inner { max-width: 1400px; }
.design-page-intro h1 { font-size: clamp(2.25rem, 4vw, 3.375rem); line-height: 1.09; letter-spacing: -.035em; max-width: 24ch; }
.design-page-intro .design-intro-inner > p { max-width: 66ch; }
.design-page-intro .design-intro-inner > p:first-child { margin-bottom: 18px; }
.design-page-intro .design-intro-inner > p:not(:first-child) { margin-top: 22px; }
.design-page-intro.design-photo-intro { padding: 0; }
.design-photo-intro > .design-intro-inner { padding-top: clamp(56px, 6vw, 88px); padding-bottom: clamp(56px, 6vw, 88px); }
.design-page-intro form { align-self: start; box-shadow: 0 16px 44px -30px #17212c40; }
.design-page-intro + section { padding-top: clamp(40px, 4.5vw, 64px); }

/* Keep all six existing project images in a compact, balanced composition. */
.design-home .homepage-hero { overflow: clip; padding-top: clamp(36px, 4.2vw, 60px); padding-bottom: 32px; }
.design-home .homepage-hero-grid { align-items: center; gap: 40px; }
.design-home .homepage-hero h1 { font-size: clamp(2.25rem, 3.9vw, 3.5rem); line-height: 1.08; letter-spacing: -.04em; text-wrap: balance; }
.design-home .homepage-hero-grid > div { min-width: 0; }
.design-home .homepage-hero-grid > div:first-child > p:first-child { max-width: 60ch; font-size: 11px; line-height: 1.6; letter-spacing: .17em; }
.design-home .homepage-hero-grid > div:first-child > p:not(:first-child) { font-size: 17px; line-height: 1.7; max-width: 57ch !important; }
.design-home .project-hero-collage { aspect-ratio: 6 / 5; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-template-rows: repeat(3, minmax(0, 1fr)); gap: 10px; }
.design-home .project-hero-tile { display: block; border-radius: 9px; box-shadow: 0 12px 32px -24px #17212c66; }
.design-home .project-hero-tile-1 { grid-column: 1 / 3; grid-row: 1 / 3; }
.design-home .project-hero-tile-2 { grid-column: 3; grid-row: 1; }
.design-home .project-hero-tile-3 { grid-column: 3; grid-row: 2; }
.design-home .project-hero-tile-4 { grid-column: 1; grid-row: 3; }
.design-home .project-hero-tile-5 { grid-column: 2; grid-row: 3; }
.design-home .project-hero-tile-6 { grid-column: 3; grid-row: 3; }
.design-home .homepage-hero > .container > .mt-12 { margin-top: 40px; border-radius: 8px; }
.design-home > section:not(.homepage-hero):not(.overflow-hidden) { padding-top: clamp(56px, 6vw, 84px); padding-bottom: clamp(56px, 6vw, 84px); }

/* The process is a connected sequence, distinct from clickable sector tiles. */
.design-process .design-process-grid { position: relative; gap: 32px; margin-top: 40px; }
.design-process .design-process-grid::before { content: ''; position: absolute; height: 1px; top: 25px; left: 25px; right: 25px; background: #cbd3d9; }
.design-process .design-process-step { position: relative; padding: 0 24px 0 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; }
.design-process-step > span { display: inline-flex; position: relative; align-items: center; justify-content: center; width: 52px; height: 52px; border: 1px solid #d0d7dc; border-radius: 50%; background: #fff; color: #9b430b; font-size: 18px; z-index: 1; }
.design-process-step > svg { margin-top: 26px; margin-bottom: 16px; width: 26px; height: 26px; color: #56616a; }
.design-process-step h3 { font-size: 18px; margin-bottom: 10px; }
.design-process-step p { line-height: 1.75; color: #4f5d69; }
.design-process .motion-hover-card:hover { transform: none; }
.design-sectors .grid { gap: 24px; margin-top: 36px; }
.design-sectors .design-sector-tile { position: relative; padding: 27px 8px 25px 0; border: 0; border-top: 2px solid #cbd3d9; border-radius: 0; background: transparent; }
.design-sector-tile > svg { width: 30px; height: 30px; margin-bottom: 22px; }
.design-sector-tile h3 { font-size: 17px; margin-bottom: 9px; }
.design-sector-tile p { max-width: 31ch; line-height: 1.7; }
.design-sectors .design-sector-tile:hover, .design-sectors .design-sector-tile:focus-visible { border-top-color: #e96e12; }
.design-sector-tile:focus-visible { outline: 2px solid #9b430b; outline-offset: 6px; }

/* Project panels retain every word, with a clear reading order and outcome. */
.design-projects .design-project-grid { align-items: stretch; gap: 24px; }
.design-projects .design-project-card { display: flex; flex-direction: column; padding: 28px; border-color: #dbe1e5; border-top: 3px solid #28343e; border-radius: 9px; background: #fff; box-shadow: 0 14px 36px -28px #17212c44; }
.design-project-card > span { color: #92420e; font-size: 11px; letter-spacing: .1em; }
.design-project-card h3 { font-size: 20px; line-height: 1.3; margin-top: 13px; margin-bottom: 22px; min-height: 2.6em; }
.design-project-card > .space-y-2 { margin-top: 0; display: grid; gap: 20px; }
.design-project-card > .space-y-2 > div { margin-top: 0; }
.design-project-card p:not(.design-detail-label) { color: #4b5965; font-size: 14px; line-height: 1.75; }
.design-main .design-detail-label { color: #40515e; font-size: 11px; font-weight: 700; letter-spacing: .11em; line-height: 1.4; margin-bottom: 8px; }
.design-project-card .design-card-outcome { margin: 25px -14px -14px; padding: 17px 14px; border: 0; border-radius: 6px; background: #f0f3f5; flex-grow: 1; }
.design-project-card .design-card-outcome p:last-child { color: #25343e; font-weight: 500; }
.design-project-list .design-project-list-card { border-radius: 10px; border-color: #d7dfe5; box-shadow: 0 14px 40px -32px #17212c55; }
.design-project-list-card h2 { font-size: clamp(22px, 2.2vw, 29px); line-height: 1.25; margin-top: 10px; }
.design-project-list-card .design-project-details { gap: 28px; align-items: stretch; margin-top: 30px; }
.design-project-details .design-detail-block { padding-top: 17px; border-top: 1px solid #d9e0e5; }
.design-project-details .design-detail-block p:not(.design-detail-label) { font-size: 15px; line-height: 1.8; color: #465563; }
.design-project-details .design-detail-outcome { padding: 17px 19px 20px; border-top: 2px solid #e96e12; background: #f1f4f6; border-radius: 0 0 6px 6px; }
.design-project-list > section:nth-child(2) .mb-10 { margin-bottom: 24px; }

/* A defined charcoal finish, including the existing legal and portal links. */
footer.design-footer { background: #232c32; border-top: 3px solid #e96e12; color: #edf1f3; }
footer.design-footer .site-shell-footer-inner { padding-top: 56px; padding-bottom: 25px; }
footer.design-footer .site-shell-footer-brand, footer.design-footer .text-foreground { color: #fff; }
footer.design-footer .design-footer-brand { width: 180px; min-height: 45px; background: url('/brand/hublok-logo-header-v90.png') left center / contain no-repeat; font-size: 0; filter: grayscale(1) invert(1) brightness(1.6); mix-blend-mode: screen; }
footer.design-footer :is(.site-shell-footer-about, .site-shell-footer-company, .site-shell-footer-copy, .text-muted-foreground) { color: #b8c3ca; }
footer.design-footer .site-shell-footer-heading { color: #f0f3f5; font-size: 11px; letter-spacing: .13em; margin-bottom: 18px; }
footer.design-footer a, footer.design-footer .site-shell-footer-tools :is(a, span), footer.design-footer .site-shell-legal a { color: #c6cfd5; }
footer.design-footer a:hover, footer.design-footer a:focus-visible { color: #fff; text-decoration: underline; text-underline-offset: 4px; }
footer.design-footer a:focus-visible { outline: 2px solid #f29351; outline-offset: 4px; }
footer.design-footer .site-shell-footer-base, footer.design-footer .border-t { border-top-color: #47525b; }
/* V279: override the legacy portal link's important dark-text declaration. */
footer.design-footer :is(.site-shell-proposals, .footer-proposals-button) { color: #fff !important; border: 1px solid #788792; background: transparent; border-radius: 5px; }
footer.design-footer :is(.site-shell-proposals, .footer-proposals-button):is(:hover, :focus-visible) { color: #fff !important; border-color: #fff; background: #35444f; }
footer.design-footer .site-shell-footer-tools { flex-wrap: wrap; }

@media (min-width: 1024px) {
  .design-home .homepage-hero-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .design-project-card > .space-y-2 { grid-template-rows: minmax(95px, auto) minmax(120px, auto); }
}
@media (max-width: 1023px) {
  .design-home .homepage-hero-grid { gap: 32px; }
  .design-home .project-hero-collage { max-width: 740px; margin-inline: auto; aspect-ratio: 7 / 5; }
  .design-home .homepage-hero h1 { max-width: 23ch; font-size: clamp(2.25rem, 5.6vw, 3.4rem); }
  footer.design-footer .site-shell-footer-base { grid-template-columns: 1fr; justify-items: start; }
  footer.design-footer .site-shell-footer-tools { justify-content: flex-start; }
}
@media (max-width: 767px) {
  .design-page-intro, .design-photo-intro > .design-intro-inner { padding-top: 40px; padding-bottom: 44px; }
  .design-page-intro.design-photo-intro { padding: 0; }
  .design-page-intro h1 { font-size: clamp(2.1rem, 8.4vw, 2.75rem); }
  .design-home .homepage-hero-grid { gap: 30px; }
  .design-home .homepage-hero h1 { font-size: clamp(2.15rem, 8.5vw, 3rem); }
  .design-home .project-hero-collage { aspect-ratio: 6 / 5; gap: 7px; }
  .design-home .project-hero-tile { border-radius: 6px; }
  .design-home .homepage-hero > .container > .mt-12 { margin-top: 28px; }
  .design-process .design-process-grid { gap: 28px; }
  .design-process .design-process-grid::before { left: 25px; top: 25px; bottom: 25px; right: auto; width: 1px; height: auto; }
  .design-process .design-process-step { padding-left: 76px; padding-right: 0; min-height: 90px; }
  .design-process-step > span { position: absolute; left: 0; top: 0; }
  .design-process-step > svg { margin-top: 1px; margin-bottom: 12px; }
  .design-project-card h3 { min-height: 0; }
  .design-projects .design-project-card { padding: 24px; }
  .design-project-card .design-card-outcome { margin-top: 22px; }
  .design-project-list-card .design-project-details { gap: 22px; }
  footer.design-footer .site-shell-footer-grid { gap: 32px; }
  footer.design-footer .site-shell-footer-inner { padding-top: 40px; }
}
