/* Colour chapters, seed 1796431093: give the globe and each work scene its own space. */

/* The two hero columns reserve real space; the canvas no longer sits behind the title. */
.home .qf-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr);
  align-items: center;
  column-gap: clamp(28px, 3vw, 56px);
  min-height: 0;
  padding-top: clamp(44px, 4.4vw, 72px);
  padding-bottom: clamp(52px, 5vw, 80px);
}
.home .qf-hero > .alignwide {
  display: block;
  grid-column: 1;
  grid-row: 1;
  width: 100%;
  min-width: 0;
  max-width: none;
  margin: 0 !important;
  pointer-events: auto;
}
.home .qf-hero-title {
  width: 100%;
  max-width: none;
  font-size: clamp(48px, 4.8vw, 84px);
  line-height: 1.12;
}
.home .qf-hero-bottom { width: 100%; margin-top: 30px; margin-bottom: 0; }
.home .qf-hero-intro { width: 100%; max-width: 540px; flex-basis: 100% !important; }
.home .qf-hero-intro > p:first-child { max-width: 520px; }
.home .qf-hero-caption { display: block; max-width: 500px; padding-top: 22px; }
.home .qf-hero .qf-hero-mark {
  position: relative;
  grid-column: 2;
  grid-row: 1;
  align-self: center;
  justify-self: end;
  top: auto;
  right: auto;
  width: 100%;
  max-width: 680px;
  height: auto;
  aspect-ratio: 1;
  margin: 0 !important;
}

/* Native figures retain their captions outside the image crop. */
.home .qf-work-scene { min-width: 0; width: 100%; margin: 0; }
.home .qf-work-scene img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  border: 0;
  border-radius: 0;
  object-fit: cover;
}
.home .qf-work-scene figcaption {
  margin: 13px 0 0;
  color: #344e52;
  font-size: 15px;
  line-height: 1.6;
  text-align: left;
}

/* Who: the introduction and factory scene come first, then three clear conditions. */
.home #who > .alignwide {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  column-gap: clamp(36px, 5vw, 80px);
  row-gap: clamp(30px, 3.5vw, 52px);
  align-items: start;
}
.home #who .qf-section-head {
  position: static;
  top: auto;
  grid-column: 1;
  grid-row: 1;
  align-self: center;
  margin: 0;
}
.home #who .qf-section-label {
  display: block;
  margin: 0 0 20px;
  color: #a84328;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
  letter-spacing: .05em;
}
.home #who .qf-section-title { font-size: clamp(36px, 3.6vw, 58px); line-height: 1.2; }
.home #who .qf-section-intro { max-width: 520px; margin-top: 26px; margin-bottom: 0; }
.home #who .qf-factory-scene { grid-column: 2; grid-row: 1; align-self: start; }
.home #who .qf-factory-scene img { aspect-ratio: 4 / 3; object-position: 50% 45%; }
.home #who .qf-fit-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-column: 1 / -1;
  grid-row: 2;
  gap: clamp(26px, 3vw, 46px);
  width: 100%;
  margin: 0;
}
.home #who .qf-fit-grid > .wp-block-column,
.home #who .qf-fit-grid > .wp-block-column:first-child,
.home #who .qf-fit-grid > .wp-block-column:nth-child(2),
.home #who .qf-fit-grid > .wp-block-column:nth-child(3) {
  grid-column: auto;
  grid-row: auto;
  width: auto;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
}
.home #who .qf-fit-grid h3 { margin: 0 0 17px; font-size: clamp(23px, 2.1vw, 30px); line-height: 1.3; }
.home #who .qf-fit-grid p:not(.qf-index) { margin: 0; font-size: 17px; line-height: 1.8; }
.home #who .qf-fit-note { grid-column: 1; grid-row: 3; max-width: none; margin: 0; padding: 0; }
.home #who .qf-home-detail-cta { grid-column: 2; grid-row: 3; justify-self: start; align-self: start; margin: 0; }

/* A new field colour closes search services before the project-planning chapter. */
.home #approach { background: #d7e7e4; padding-top: clamp(82px, 8vw, 120px); padding-bottom: clamp(82px, 8vw, 120px); }
.home #approach .qf-section-head { max-width: 1040px; margin-bottom: 40px; }
.home #approach .qf-planning-scene { margin: 0 0 clamp(40px, 5vw, 72px); }
.home #approach .qf-planning-scene img { aspect-ratio: 16 / 9; object-position: 50% 42%; }
.home #approach .qf-process-grid { margin-top: 0; padding-top: 0; }
.home #approach .qf-process-expectation { background: #c2d8d3; }

@media (max-width: 1100px) and (min-width: 782px) {
  .home .qf-hero-title { font-size: clamp(43px, 4.8vw, 54px); }
  .home .qf-hero-intro > p:first-child { font-size: 16px; line-height: 1.8; }
  .home .qf-hero .wp-block-buttons { gap: 14px; }
  .home .qf-hero .wp-block-button__link { font-size: 14px; }
  .home .qf-hero .wp-block-button:not(.qf-text-link) .wp-block-button__link { padding-inline: 21px; }
  .home #who .qf-section-title { font-size: 36px; }
  .home #who .qf-section-intro { font-size: 16px; }
  .home #who .qf-fit-grid p:not(.qf-index) { font-size: 16px; }
}

@media (max-width: 1000px) {
  .home .qf-hero { grid-template-columns: minmax(0, 1fr); row-gap: 12px; padding-top: 40px; padding-bottom: 52px; }
  .home .qf-hero > .alignwide { grid-column: 1; grid-row: 1; }
  .home .qf-hero-title { font-size: clamp(34px, 8.8vw, 66px); }
  .home .qf-hero-intro { max-width: 660px; }
  .home .qf-hero-intro > p:first-child { max-width: 620px; }
  .home .qf-hero-bottom { margin-top: 26px; }
  .home .qf-hero-caption { max-width: 620px; font-size: 14px; }
  .home .qf-hero .qf-hero-mark { grid-column: 1; grid-row: 2; justify-self: center; width: 100%; max-width: 560px; margin: 8px 0 0 !important; }
}

@media (max-width: 781px) {
  .home .qf-hero { padding-top: 34px; padding-bottom: 42px; }
  .home .qf-hero > .alignwide { display: block; }
  .home .qf-hero-title, .home .qf-hero-bottom, .home .qf-hero-caption { grid-column: auto; grid-row: auto; }
  .home .qf-hero-intro > p:first-child { font-size: 16px; line-height: 1.85; }
  .home .qf-hero-caption { padding-top: 18px; }
  .home .qf-work-scene figcaption { margin-top: 11px; font-size: 14px; }
  .home #who > .alignwide { display: block; }
  .home #who .qf-section-head { position: static; margin: 0 0 30px; }
  .home #who .qf-section-title { font-size: clamp(31px, 7.9vw, 48px); }
  .home #who .qf-section-intro { margin-top: 22px; }
  .home #who .qf-fit-grid { grid-template-columns: minmax(0, 1fr); gap: 30px; margin-top: 36px; }
  .home #who .qf-fit-grid h3 { font-size: 25px; }
  .home #who .qf-fit-grid p:not(.qf-index) { font-size: 16px; }
  .home #who .qf-fit-note { margin-top: 30px; }
  .home #who .qf-home-detail-cta { margin-top: 16px; }
  .home #approach { padding-top: 72px; padding-bottom: 72px; }
  .home #approach .qf-section-head { margin-bottom: 30px; }
  .home #approach .qf-planning-scene { margin-bottom: 38px; }
  .home #approach .qf-planning-scene img { aspect-ratio: 3 / 2; object-position: center; }
  .home #approach .qf-process-grid { gap: 30px; }
}

/* These layouts add no continuous motion; pause and reduced-motion retain the same flow. */
