/* Warm ivory, architectural details and motion that follows the work. */
:root {
  --paper: #e9e5db;
  --surface: #f0ece3;
  --muted: #596351;
  --line: #c8cbbd;
  --ease-out: cubic-bezier(.2,.7,.2,1);
}
html { scroll-padding-top: 96px; }
body { background-color: var(--paper); }
.calculator, .enquiry-form { background-color: var(--surface); }
.calculator input[type=number], .calculator select,
.calculator [data-repair-brief] select,
.enquiry-form input:not([type=checkbox]), .enquiry-form textarea, .enquiry-form select {
  background-color: #f5f1e8;
}
.new-home-brief, .upload-field { background-color: #e5e5d8; }
.architect-pathway, .secondary-services, .process { background-color: #e0e2d5; }
.build-journey, .meet-builder, .intro-band { background-color: #dbe1cf; }
.estimate-section { background-color: #e0e2d5; }
.service-hero { position: relative; }
.service-hero:not(.gaming-hero)::before {
  content: ''; position: absolute; z-index: -1; inset: 8% 2% 8% 58%;
  background: radial-gradient(ellipse, #b7c7a448, transparent 70%);
  pointer-events: none;
}
.breadcrumbs, .service-visual figcaption, .detail-gallery figcaption,
.project-gallery-item p, .kelston-cover figcaption { color: var(--muted); }

/* Drawing-board corners frame the photograph without obscuring the work. */
.drafting-visual { position: relative; margin-bottom: 26px; }
.drafting-visual > img {
  border-radius: 1px; box-shadow: 16px 16px 0 #d5dccb;
}
.drafting-visual::before {
  content: ''; position: absolute; top: -15px; left: -15px;
  width: 62px; height: 62px; border-top: 2px solid #7a8f67;
  border-left: 2px solid #7a8f67; pointer-events: none;
}
.drafting-visual > figcaption { margin-top: 24px; padding-right: 190px; }
.build-signature {
  position: absolute; right: -18px; bottom: -22px; z-index: 2;
  display: flex; flex-direction: column; align-items: center;
  width: 178px; padding: 16px 17px 14px;
  color: #263b28; background: #c4d1b4;
  box-shadow: 0 12px 26px #17201914;
}
.build-signature svg { display: block; width: 138px; height: 92px; overflow: visible; }
.build-signature path {
  fill: none; stroke: currentColor; stroke-width: 1.35;
  stroke-linejoin: round; stroke-linecap: round;
  stroke-dasharray: 1; stroke-dashoffset: 0;
}
.build-signature .trace-guide { stroke: #6c8058; stroke-width: .65; opacity: .65; }
.signature-caption {
  display: flex; align-items: center; justify-content: space-between;
  gap: 10px; width: 100%; border-top: 1px solid #859a70;
  padding-top: 10px; margin-top: 9px;
  font-size: 8px; font-weight: 600; letter-spacing: .12em;
}
.signature-caption i { width: 12px; height: 1px; background: #6c8058; }
.hero-composition > .build-signature { right: auto; left: 18px; bottom: 0; }
.hero-composition { min-height: 602px; }
.hero-build { overflow: hidden; }

/* Keep the builder's portrait in its natural framing on every screen. */
.builder-portrait { margin: 0; width: 100%; max-width: 440px; }
.builder-portrait img {
  display: block; width: 100%; height: auto; aspect-ratio: 3 / 4;
  object-fit: cover; border-radius: 2px;
}
.builder-portrait figcaption {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 6px 20px;
  padding: 15px 0 0; margin: 0; font-size: 12px; color: var(--muted);
}
.builder-portrait figcaption strong { color: var(--ink); font-weight: 600; }
.about-portrait { justify-self: end; }
.meet-builder.with-portrait { grid-template-columns: .85fr 1.15fr; align-items: center; }
.meet-builder.with-portrait h2 { margin-bottom: 30px; }
@media (max-width: 760px) {
  .about-portrait { justify-self: center; margin-top: 20px; }
  .meet-builder.with-portrait { grid-template-columns: 1fr; gap: 35px; }
  .meet-builder.with-portrait .builder-portrait { justify-self: center; }
}

/* Calm, tactile interactions with a clear keyboard focus state. */
.button {
  transition: background-color .25s, color .25s, border-color .25s,
    box-shadow .3s, transform .3s var(--ease-out);
}
.button span { display: inline-block; transition: transform .3s var(--ease-out); }
.text-link { position: relative; }
.text-link::after {
  content: ''; position: absolute; left: 0; bottom: -1px; width: 100%; height: 2px;
  background: currentColor; transform: scaleX(0); transform-origin: left;
  transition: transform .35s var(--ease-out); pointer-events: none;
}
.text-link:focus-visible::after { transform: scaleX(1); }
.site-header nav a { position: relative; }
.site-header nav a::after {
  content: ''; position: absolute; bottom: -7px; left: 0; width: 100%; height: 1px;
  background: var(--green); transform: scaleX(0); transform-origin: left;
  transition: transform .3s var(--ease-out);
}
.site-header nav a:focus-visible::after { transform: scaleX(1); }
.project-card-photo img, .project-gallery-link img { transition: transform .7s var(--ease-out); }
.project-card-photo > span, .project-gallery-link > span {
  transition: background-color .3s, transform .3s var(--ease-out);
}
.service-directory a, .project-list-row { transition: background-color .3s, padding .3s var(--ease-out); }
.build-journey li { position: relative; transition: border-color .35s, background-color .35s; }
.build-journey li::before {
  content: ''; position: absolute; top: -4px; left: 0;
  width: 7px; height: 7px; border-radius: 50%; background: #74885e;
}
.build-journey li > span { color: #4f6341; }
.build-journey li h3 { max-width: 230px; }
.reading-progress {
  position: fixed; top: 0; left: 0; width: 100%; height: 3px;
  background: #849f68; z-index: 30; transform: scaleX(0);
  transform-origin: left; pointer-events: none;
}
.service-jump {
  position: sticky; top: 3px; z-index: 15;
  background: var(--paper); box-shadow: 0 5px 16px #17201908;
}
.service-jump a { position: relative; color: #57634d; }
.service-jump a[aria-current] { color: var(--ink); }
.service-jump a::after {
  content: ''; position: absolute; bottom: -7px; left: 0; right: 0; height: 2px;
  background: #687e50; transform: scaleX(0); transform-origin: left;
  transition: transform .35s var(--ease-out);
}
.service-jump a[aria-current]::after { transform: scaleX(1); }
@media (hover: hover) and (pointer: fine) {
  .button:hover { background: #c9d8b8; border-color: #a4bc89; box-shadow: 0 7px 18px #17201912; transform: translateY(-2px); }
  .button:hover span { transform: translate(3px,-3px); }
  .visit-callout .button:hover { background: #2a3a25; border-color: #2a3a25; }
  .text-link:hover::after, .site-header nav a:hover::after { transform: scaleX(1); }
  .project-card-photo:hover img, .project-gallery-link:hover img { transform: scale(1.045); }
  .project-card-photo:hover > span, .project-gallery-link:hover > span { background: var(--green); transform: translate(-3px,-3px); }
  .service-directory a:hover, .project-list-row:hover { background: #dce2d2; padding-left: 14px; padding-right: 14px; }
  .build-journey li:hover { border-color: #62794d; background: #cbd7be66; }
}
@media (min-width: 761px) and (max-width: 1100px) {
  .hero-composition { min-height: 572px; }
}
@media (max-width: 760px) {
  .hero-composition { min-height: 414px; }
  .drafting-visual { margin: 48px 10px 35px 0; }
  .drafting-visual::before { left: -10px; top: -10px; width: 42px; height: 42px; }
  .drafting-visual > img { box-shadow: 10px 10px 0 #d5dccb; }
  .drafting-visual > figcaption { padding-right: 125px; margin-top: 18px; }
  .build-signature { width: 130px; right: -10px; bottom: -22px; padding: 11px; }
  .build-signature svg { width: 105px; height: 70px; }
  .signature-caption { font-size: 6px; letter-spacing: .07em; gap: 5px; margin-top: 5px; padding-top: 7px; }
  .signature-caption i { width: 8px; }
  .hero-composition > .build-signature { left: 0; bottom: 0; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .button, .button span, .text-link::after, .site-header nav a::after,
  .project-card-photo img, .project-gallery-link img,
  .project-card-photo > span, .project-gallery-link > span,
  .service-directory a, .project-list-row, .build-journey li,
  .service-jump a::after { transition: none; }
  .button:hover, .button:hover span, .project-card-photo:hover img,
  .project-gallery-link:hover img, .project-card-photo:hover > span,
  .project-gallery-link:hover > span { transform: none; }
}
@media print {
  .reading-progress, .build-signature { display: none; }
  .service-jump { position: static; }
}

/* Repair project photographs retain the full vertical context. */
.waitakere-gallery .project-gallery-link { aspect-ratio: 3/4; }
@media(min-width:1101px) { .featured-project-grid.project-grid-four { grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media(min-width:1001px) { .beam-progress-grid { grid-template-columns:repeat(4,minmax(0,1fr)); } }

/* Keep deck details visible while using the shared gallery layout. */
.ranui-gallery .project-gallery-link { aspect-ratio:3/4; }
