/* Bright canvas, quiet section bands, distinct cards and retained media slots. */
:root {
  --paper: #ffffff;
  --surface: #f2f4f6;
  --line: #d4dbe3;
  --media-surface: #e7ebf0;
  --media-line: #aeb9c7;
  --card-shadow: 0 4px 16px rgb(29 32 38 / 4%);
  --home-card-aura: 0 0 34px 7px rgb(238 0 34 / 22%), 0 8px 24px rgb(29 32 38 / 7%);
  --home-section-grey: #eceef1;
}

body.responsive[data-theme-page='home'] .section.alt { background: var(--home-section-grey) !important; }
body.responsive[data-theme-page='home'] :is(#company, #services, #enquiry) { background: #fff !important; }

body.responsive main > :is(.section, .stage-section) {
  border-bottom: 1px solid #e3e7ec !important;
}
body.responsive :is(.contact-opening, .approach-opening, .founder-section) {
  background: var(--paper) !important;
}
body.responsive :is(.section.alt, .section.residential, .stage-index, .jump-strip) {
  background: var(--surface) !important;
}
body.responsive :is(.section.alt, .approach-opening, .founder-section, .contact-opening)::before {
  content: none;
}
body.responsive :is(#commercial, #residential) .section-intro {
  background: transparent !important;
}

/* Restore containers stripped by the earlier content-only wireframe cleanup. */
body.responsive :is(.space-panel, .service-item, .process-card, .delivery-stage, .contact-side) {
  background: var(--paper) !important;
  border: 1px solid var(--line) !important;
  border-radius: 12px;
  box-shadow: var(--card-shadow) !important;
  min-width: 0;
}
body.responsive .space-panel { overflow: hidden; }
body.responsive .space-copy { padding: 28px; }
body.responsive .space-copy .text-link { margin-top: auto; padding-top: 20px; }
body.responsive .service-grid { gap: 24px; align-items: stretch; }
body.responsive .service-item { padding: 26px !important; display: flex; flex-direction: column; }
body.responsive .service-item > div:last-child { display: flex; flex-direction: column; flex: 1; align-items: start; }
body.responsive .service-item .text-link { margin-top: auto; padding-top: 20px; }
body.responsive .service-icon { background: transparent !important; }
body.responsive .process-card { overflow: hidden; }
body.responsive .delivery-stage { padding: 24px; }
body.responsive .amc-strip {
  background: var(--surface) !important;
  border: 1px solid var(--line) !important;
  border-radius: 12px;
}
body.responsive .examples { gap: 8px; }
body.responsive .examples li {
  padding: 6px 10px;
  background: var(--surface);
  border: 1px solid #e0e5eb !important;
  border-radius: 6px;
}
body.responsive :is(.principles li, .philosophy-rows li) {
  padding: 20px;
  margin-bottom: 12px;
  background: var(--paper);
  border: 1px solid var(--line) !important;
  border-radius: 10px;
}
body.responsive .timeline::before { content: none; }
body.responsive .process-step {
  padding: 20px;
  background: var(--paper);
  border: 1px solid var(--line) !important;
  border-radius: 10px;
}
body.responsive .step-number { margin-bottom: 18px; background: var(--surface) !important; }
body.responsive .deck-current { background: var(--paper) !important; box-shadow: var(--card-shadow) !important; border-radius: 10px; }
body.responsive .deck-next { background: #e0e5eb !important; border-radius: 10px; }

/* Placeholder labels stay inside their frames, away from the copy. */
body.responsive .media-slot {
  position: relative;
  min-width: 0;
  overflow: hidden;
  background: var(--media-surface) !important;
  border: 1px dashed var(--media-line) !important;
  border-radius: 10px;
  color: #687585 !important;
}
body.responsive .media-slot-label {
  position: absolute;
  z-index: 2;
  top: 10px;
  left: 10px;
  max-width: calc(100% - 20px);
  padding: 5px 9px;
  border: 1px solid #d4dbe3;
  border-radius: 5px;
  background: rgb(255 255 255 / 94%);
  color: #515b69;
  font: 500 10px/1.4 var(--body-font);
  letter-spacing: .015em;
  pointer-events: none;
}
body.responsive .media-slot > svg,
body.responsive .media-slot .gallery-frame svg { padding-top: 38px !important; }
body.responsive .space-image { border-radius: 0; border-width: 0 0 1px !important; }
body.responsive .process-card .card-visual { border-radius: 0; border-width: 0 0 1px !important; }
body.responsive .room-image { padding-bottom: 16px; }
body.responsive .stage-figure { padding: 24px 18px; }
body.responsive .about-statement {
  background: var(--surface) !important;
  border: 1px solid var(--line);
  border-radius: 12px;
}

/* Home's existing motion now has a dedicated window beside the introduction. */
body.responsive[data-theme-page='home'] .hero {
  padding: 64px 0 150px;
  min-height: 0;
}
body.responsive[data-theme-page='home'] .hero-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: clamp(32px, 4vw, 64px);
  align-items: center;
}
body.responsive[data-theme-page='home'] .hero-copy { max-width: none; min-width: 0; }
body.responsive[data-theme-page='home'] .hero h1 { font-size: clamp(42px, 4.4vw, 66px); }
body.responsive[data-theme-page='home'] .hero-art {
  position: relative;
  inset: auto;
  display: block;
  z-index: 1;
  opacity: 1 !important;
  filter: grayscale(1);
}
body.responsive[data-theme-page='home'] .hero-art::before { content: none; }
body.responsive[data-theme-page='home'] .building {
  display: block;
  width: 100%;
  height: auto;
  max-height: none;
  padding: 38px 12px 12px !important;
}
body.responsive[data-theme-page='home'] .scroll-cue { display: none; }
body.responsive .stage-controls { border-top: 1px solid var(--line) !important; }
body.responsive .stage-button { border-top: 2px solid transparent !important; }
body.responsive .stage-button[aria-pressed='true'] { border-top-color: var(--brand-red) !important; }
body.responsive[data-theme-page='hvac-solutions'] .hero::after {
  background: linear-gradient(90deg, #fff 0%, #fffffff2 30%, #ffffff00 85%) !important;
}

/* A white application viewer is distinct from the gray section behind it. */
body.responsive :is(#commercial, #residential) .application-index {
  background: var(--paper);
  border: 1px solid var(--line) !important;
  border-radius: 10px;
  overflow: hidden;
}
body.responsive .application-tab { border-bottom: 1px solid #e3e7ec !important; }
body.responsive .application-tab:last-child { border-bottom: 0 !important; }
body.responsive .application-tab[aria-selected='true'] { background: #e9edf2 !important; }
body.responsive :is(#commercial, #residential) .application-panel {
  padding: 20px;
  background: var(--paper);
  border: 1px solid var(--line) !important;
  border-radius: 12px;
  box-shadow: var(--card-shadow) !important;
}
body.responsive .gallery { background: var(--paper) !important; }
body.responsive :is(#commercial, #residential) .gallery-controls {
  border-bottom: 1px solid #e3e7ec !important;
}
body.responsive .gallery-controls .control { background: white !important; border: 1px solid var(--line); border-radius: 6px; }
body.responsive .gallery-controls .frame-dot { border: 0; }

body.responsive :is(.offer-row, .company-facts > div, .stage-facts li, .project-checklist li, .followup-points li) {
  border-bottom: 1px solid var(--line) !important;
}
body.responsive .example { padding: 16px; border-radius: 8px; background: var(--surface) !important; }
body.responsive .stage-index-links a { border-top: 1px solid var(--line) !important; }
body.responsive .contact-layout > div:first-child {
  min-width: 0;
  padding: 32px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--card-shadow);
}
body.responsive .contact-layout { gap: 32px; }
body.responsive .field :is(input, select, textarea) { background: #fff !important; border-color: #b7c1ce; border-radius: 6px; }
body.responsive .attachment-area { border: 1px dashed var(--media-line); background: var(--surface) !important; border-radius: 8px; }
body.responsive .footer .footer-bottom { border-top: 1px solid #424a54 !important; padding-top: 20px; }

/* Final sketch artwork for the five Home process cards. */
body.responsive[data-theme-page='home'] .timeline { gap: 16px; }
body.responsive[data-theme-page='home'] .process-step { padding: 18px; }
body.responsive[data-theme-page='home'] .process-step .step-number {
  display: block;
  width: auto;
  height: auto;
  margin-bottom: 8px;
  border: 0 !important;
  border-radius: 0;
  background: transparent !important;
  font-size: 11px;
  line-height: 1.4;
}
body.responsive .process-sketch {
  display: block;
  width: 100%;
  height: clamp(100px, 10vw, 145px);
  margin: 0 0 18px;
}
body.responsive .process-sketch img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: none;
}
body.responsive[data-theme-page='home'] .process-step h3 {
  max-width: none;
  min-height: 2.44em;
  font-size: clamp(16px, 1.4vw, 19px);
  line-height: 1.22;
  letter-spacing: -.035em;
}
body.responsive[data-theme-page='home'] .process-step p { font-size: 12px; line-height: 1.65; }

@media (min-width: 901px) {
  body.responsive[data-theme-page='home'] .process-step {
    min-height: 0;
    padding: 20px 18px;
  }
  body.responsive[data-theme-page='home'] .process-step .process-sketch {
    height: auto;
    aspect-ratio: 3 / 2;
    margin-bottom: 16px;
  }
  body.responsive[data-theme-page='home'] .process-step .process-sketch img { height: auto; }
  body.responsive[data-theme-page='home'] .process-step h3 { min-height: 0; }
}

body.responsive .process-viewport { overflow: hidden; border-radius: 12px; touch-action: pan-y; cursor: grab; }
body.responsive .process-viewport.is-dragging { cursor: grabbing; }
body.responsive .process-track { display: flex; align-items: stretch; will-change: transform; }
body.responsive .process-slide {
  flex: 0 0 100%; min-width: 0; box-sizing: border-box; margin: 0;
  padding: 24px; background: #fff; border: 1px solid var(--line);
  border-radius: 12px; user-select: none; -webkit-user-select: none;
}
body.responsive .process-slide .process-sketch { height: 160px; margin: 0 0 18px; }
body.responsive .process-slide h3 { font-size: 24px; line-height: 1.2; }
body.responsive .process-slide p { margin-top: 14px; font-size: 13px; line-height: 1.65; }
body.responsive .process-slide img { pointer-events: none; -webkit-user-drag: none; }
/* Planning-card aura sits outside the card; the mobile viewport keeps slides clipped. */
body.responsive[data-theme-page='home'] #planning .process-step,
body.responsive[data-theme-page='home'] #planning .process-viewport {
  transition: box-shadow 180ms ease;
}
body.responsive[data-theme-page='home'] #planning .process-carousel:focus-within .process-viewport {
  box-shadow: var(--home-card-aura) !important;
}
@media (hover: hover) {
  body.responsive[data-theme-page='home'] #planning .process-step:hover,
  body.responsive[data-theme-page='home'] #planning .process-viewport:hover {
    box-shadow: var(--home-card-aura) !important;
  }
}
@media (prefers-reduced-motion: reduce) {
  body.responsive[data-theme-page='home'] #planning .process-step,
  body.responsive[data-theme-page='home'] #planning .process-viewport { transition: none; }
}
body.responsive .process-dots { display: flex; align-items: center; justify-content: center; gap: 0; margin-top: 10px; }
body.responsive .process-dot {
  display: grid; place-items: center; width: 40px; height: 44px; padding: 0;
  border: 0; background: transparent; border-radius: 8px; cursor: pointer;
}
body.responsive .process-dot span { display: block; width: 7px; height: 7px; border-radius: 50%; background: #a4adb8; }
body.responsive .process-dot[aria-current='true'] span { background: var(--brand-red); }

@media (max-width: 900px) {
  body.responsive[data-theme-page='home'] .hero { padding: 38px 0 160px; }
  body.responsive[data-theme-page='home'] .hero-layout { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  body.responsive[data-theme-page='home'] .hero h1 { font-size: clamp(34px, 7vw, 48px); }
  body.responsive[data-theme-page='home'] .hero-art { width: 100%; }
  body.responsive .space-copy { padding: 24px; }
  body.responsive .service-item { padding: 24px !important; }
  body.responsive .contact-layout > div:first-child { padding: 24px 20px; }
  body.responsive .contact-side { margin-top: 24px; }
  body.responsive :is(#commercial, #residential) .application-panel { padding: 14px; }
  body.responsive :is(#commercial, #residential) .mobile-application-trigger {
    padding: 14px !important;
    background: var(--paper);
    border: 1px solid var(--line) !important;
    border-radius: 8px;
  }
  body.responsive .application-item > h3 { margin: 8px 0; }
}
@media (max-width: 380px) {
  body.responsive .process-card .media-slot-label { font-size: 9px; }
  body.responsive .service-item { padding: 20px !important; }
}

/* Home spaces only: full-width introduction and balanced application cards. */
body.responsive[data-theme-page='home'] #spaces .section-intro {
  display: block;
}
body.responsive[data-theme-page='home'] #spaces h2 {
  display: flex;
  flex-wrap: wrap;
  column-gap: .22em;
  max-width: none;
}
body.responsive[data-theme-page='home'] #spaces h2 br { display: none; }
body.responsive[data-theme-page='home'] #spaces .section-intro > p {
  max-width: 76ch;
  margin-top: 18px;
}
body.responsive[data-theme-page='home'] #spaces .spaces-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-auto-rows: 1fr;
  gap: 32px;
  align-items: stretch;
}
body.responsive[data-theme-page='home'] #spaces .space-panel {
  display: grid;
  grid-template-rows: 245px 1fr;
  margin-top: 0;
}
body.responsive[data-theme-page='home'] #spaces .space-image {
  min-height: 0;
  height: 245px;
}
body.responsive[data-theme-page='home'] #spaces .space-image svg { height: 100%; }
body.responsive[data-theme-page='home'] #spaces .space-copy h3 {
  font-size: clamp(25px, 2.1vw, 29px);
}
@media (max-width: 900px) {
  body.responsive[data-theme-page='home'] #spaces .spaces-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
  }
  body.responsive[data-theme-page='home'] #spaces .space-panel { grid-template-rows: 200px 1fr; }
  body.responsive[data-theme-page='home'] #spaces .space-image { height: 200px; }
}

/* Consistent heading-first introductions for the marked offerings/planning sections. */
body.responsive[data-theme-page='home'] :is(#services, #planning) .section-intro,
body.responsive[data-theme-page='services'] #offerings .offering-intro { display: block; }
body.responsive[data-theme-page='home'] :is(#services, #planning) h2,
body.responsive[data-theme-page='services'] #offerings h2 {
  display: flex;
  flex-wrap: wrap;
  column-gap: .22em;
  max-width: none;
}
body.responsive[data-theme-page='home'] :is(#services, #planning) h2 br,
body.responsive[data-theme-page='services'] #offerings h2 br { display: none; }
body.responsive[data-theme-page='home'] :is(#services, #planning) .section-intro > p,
body.responsive[data-theme-page='services'] #offerings .offering-intro > p {
  max-width: 76ch;
  margin-top: 18px;
}

/* Agency credit occupies the bottom-right corner of every footer. */
body.responsive .footer .footer-bottom {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 12px 24px;
}
body.responsive .footer .footer-bottom > span { margin: 0; }
body.responsive .footer .footer-credit {
  justify-self: end;
  text-align: right;
  font-size: 11px;
  line-height: 1.6;
  text-decoration: none;
}
body.responsive .footer .footer-credit:hover { text-decoration: underline; text-underline-offset: 3px; }
body.responsive .footer .footer-credit:focus-visible { outline-color: #e2e6eb !important; outline-offset: 4px; }
@media (max-width: 900px) {
  body.responsive .footer .footer-bottom { grid-template-columns: minmax(0, 1fr); gap: 8px; }
}
