.home-chapters {
  --chapter-navy: #112934;
  --chapter-gutter: clamp(1rem, 4.3vw, 4.5rem);
  --chapter-gap: clamp(1.75rem, 5vw, 5rem);
  --chapter-width: 82rem;
}

.home-chapters .home-opening {
  padding: 0;
  background: var(--chapter-navy);
}

.home-chapters .home-opening-grid {
  width: 100%;
  max-width: none;
  grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr);
  gap: 0;
}

.home-chapters .home-opening-copy {
  min-width: 0;
  padding: clamp(2.75rem, 4.6vw, 4.75rem) clamp(1.5rem, 3.8vw, 4rem) clamp(2.75rem, 4.6vw, 4.75rem) max(var(--chapter-gutter), calc((100vw - var(--chapter-width)) / 2));
}

.home-chapters .home-opening h1 {
  max-inline-size: 15ch;
  font-size: clamp(2.8rem, 1.6rem + 2.97vw, 5.1rem);
  line-height: .99;
  letter-spacing: -.063em;
  text-wrap: balance;
}

.home-chapters .home-opening-copy p:not(.eyebrow) {
  font-size: clamp(1rem, .92rem + .33vw, 1.19rem);
  margin-block-end: 1.6rem;
}

.home-chapters .home-opening-photo,
.home-chapters .home-opening-image {
  align-self: stretch;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  min-width: 0;
}

.home-chapters .home-opening .home-photo img {
  height: 100%;
  aspect-ratio: auto;
  min-height: clamp(23rem, 35vw, 40rem);
  object-fit: cover;
  border-radius: 0;
  object-position: 56% 50%;
}

.home-chapters .home-opening .home-photo figcaption {
  margin: 0;
  padding: .5rem var(--chapter-gutter);
  background: #1c3947;
  color: #d9e6ea;
  font-size: .75rem;
}

.home-chapters .home-service-index {
  background: #203c49;
  border: 0;
}

.home-chapters .home-service-index > .container {
  display: flex;
  flex-wrap: wrap;
  gap: 0 clamp(1rem, 3vw, 3rem);
  padding-block: .35rem;
}

.home-chapters .home-service-index a {
  min-height: 44px;
  justify-content: start;
  color: #f0f7f7;
  text-decoration: underline;
  text-decoration-color: #a7c6d1;
  text-underline-offset: .24em;
}

.home-chapters .home-world {
  --chapter-background: #eaf0f7;
  --chapter-ink: #172b3b;
  --chapter-copy: #364d5f;
  --chapter-link: #234b76;
  --chapter-rule: #a7bacd;
  --chapter-image-mat: #b7cadd;
  --home-ink: var(--chapter-ink);
  --home-muted: var(--chapter-copy);
  --home-section-accent: var(--chapter-link);
  --home-section-rule: var(--chapter-rule);
  padding-block-end: clamp(2.5rem, 5.2vw, 4.75rem);
  color: var(--chapter-ink);
  background: var(--chapter-background);
}

.home-chapters .home-world--fire {
  --chapter-background: #f0e5d7;
  --chapter-ink: #2f2221;
  --chapter-copy: #4b3531;
  --chapter-link: #832a41;
  --chapter-rule: #b7968f;
  --chapter-image-mat: #77273a;
}

.home-chapters .home-world--electrical {
  --chapter-background: #202b35;
  --chapter-ink: #f6f6f2;
  --chapter-copy: #dfe6e9;
  --chapter-link: #f9d793;
  --chapter-rule: #667885;
  --chapter-image-mat: #364854;
}

.home-chapters .home-world--security {
  --chapter-background: #214f4a;
  --chapter-ink: #f2f9f4;
  --chapter-copy: #e2efea;
  --chapter-link: #c6f7dd;
  --chapter-rule: #80a79a;
  --chapter-image-mat: #173d38;
}

.home-chapters .home-world > .home-service {
  min-width: 0;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: var(--chapter-gap);
  padding-block: clamp(3rem, 7vw, 7rem) clamp(1.5rem, 3vw, 2.75rem);
}

.home-chapters .home-world .home-service h2 {
  max-inline-size: 19ch;
  margin-block-end: 1.15rem;
  color: var(--chapter-ink);
  font-size: clamp(2.05rem, 1.32rem + 2.2vw, 4.2rem);
  line-height: 1.02;
  letter-spacing: -.055em;
  text-wrap: pretty;
}

.home-chapters .home-world .home-service-copy .eyebrow {
  display: flex;
  align-items: center;
  gap: .65rem;
  margin-block-end: 1rem;
  color: var(--chapter-link);
  font-size: .76rem;
  letter-spacing: .115em;
}

.home-chapters .home-world .home-service-copy .eyebrow::before {
  content: "";
  inline-size: 1.65rem;
  block-size: 2px;
  background: currentColor;
}

.home-chapters .home-world .home-service-copy p:not(.eyebrow) {
  max-inline-size: 58ch;
  color: var(--chapter-copy);
  font-size: clamp(1rem, .95rem + .18vw, 1.12rem);
}

.home-chapters .home-world .home-reading-links {
  margin-block: .85rem;
  column-gap: 1.2rem;
}

.home-chapters .home-world :is(.home-reading-links a, .home-enquiry, .home-photo figcaption) {
  color: var(--chapter-link);
}

.home-chapters .home-world .home-photo figcaption { font-size: .75rem; }

.home-chapters .home-world .home-enquiry {
  width: fit-content;
  min-width: 0;
  padding: .45rem .9rem;
  border: 1px solid currentColor;
  text-decoration: none;
}

.home-chapters .home-world .home-enquiry:hover {
  background: var(--chapter-link);
  color: var(--chapter-background);
  border-color: var(--chapter-link);
}

.home-chapters .home-world .home-photo {
  min-width: 0;
  position: relative;
}

.home-chapters .home-world .home-photo img {
  display: block;
  position: relative;
  border-radius: 0;
}

.home-chapters .home-world--fire .home-fire-photo {
  padding: clamp(1rem, 3vw, 2.7rem);
  background: var(--chapter-image-mat);
}

.home-chapters .home-world--fire .home-fire-photo img {
  aspect-ratio: 4 / 3;
  max-height: 31rem;
  object-fit: contain;
  background: transparent;
}

.home-chapters .home-world--fire .home-fire-photo figcaption {
  color: #fff0ed;
  text-align: start;
}

.home-chapters .home-fire-platforms {
  min-width: 0;
  padding: clamp(1.5rem, 4vw, 3.5rem);
  background: var(--chapter-image-mat);
  color: #fff0ed;
}

.home-chapters .home-fire-platforms > a {
  display: block;
  padding-block: 1.35rem;
  color: #fff0ed;
}

.home-chapters .home-fire-platforms > a + a { border-block-start: 1px solid #c7919a; }

.home-chapters .home-fire-platforms :is(span, strong) { display: block; }
.home-chapters .home-fire-platforms span { margin-block-end: .3rem; color: #f3c8cf; }
.home-chapters .home-fire-platforms strong {
  font-size: clamp(1.7rem, 1rem + 2vw, 3.05rem);
  line-height: 1.08;
  letter-spacing: -.035em;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: .2em;
}
.home-chapters .home-world--fire .home-fire-platforms figcaption { color: #fff0ed; }

.home-chapters .home-world--electrical .home-photo {
  padding-block-end: .6rem;
  border-block-end: 1px solid var(--chapter-rule);
}

.home-chapters .home-world--electrical .home-photo img {
  aspect-ratio: 5 / 4;
  object-position: 44% 50%;
}

.home-chapters .home-world--security .home-photo img {
  aspect-ratio: 5 / 4;
  object-position: 53% 43%;
  background: var(--chapter-image-mat);
}

.home-chapters .home-world--connectivity .home-photo img {
  aspect-ratio: 16 / 10;
  object-position: 50% 55%;
  box-shadow: clamp(.5rem, 1.6vw, 1.45rem) clamp(.5rem, 1.6vw, 1.45rem) 0 var(--chapter-image-mat);
}

.home-chapters .home-world--connectivity .home-photo figcaption {
  margin-block-start: clamp(1rem, 2.5vw, 2rem);
}

.home-chapters .home-field-guide {
  --guide-rule: var(--chapter-rule, #a7bacd);
  --guide-accent: var(--chapter-link, #234b76);
  --guide-copy: var(--chapter-copy, #364d5f);
  border-block: 1px solid var(--guide-rule);
}

.home-chapters .home-field-guide > summary,
.home-chapters .home-maker > summary {
  display: flex;
  align-items: center;
  gap: .6rem 1rem;
  min-block-size: 50px;
  padding-block: .9rem;
  color: var(--guide-accent, #31505a);
  font-weight: 700;
  cursor: pointer;
  list-style: none;
  line-height: 1.4;
}

.home-chapters :is(.home-field-guide, .home-maker) > summary::-webkit-details-marker { display: none; }

.home-chapters :is(.home-field-guide, .home-maker) > summary::after {
  flex: 0 0 1.15rem;
  height: 1.15rem;
  margin-inline-start: auto;
  background:
    linear-gradient(currentColor, currentColor) center / .95rem 2px no-repeat,
    linear-gradient(currentColor, currentColor) center / 2px .95rem no-repeat;
  content: "";
}

.home-chapters :is(.home-field-guide, .home-maker)[open] > summary::after {
  background-size: .95rem 2px, 0 0;
}

.home-chapters .home-field-guide > summary > span {
  color: var(--guide-copy);
  font-size: .88rem;
  font-weight: 550;
}

.home-chapters :is(.home-field-guide, .home-maker) > summary:hover { text-decoration: underline; }

.home-chapters :is(.home-field-guide, .home-maker) > summary:focus-visible,
.home-chapters .home-world a:focus-visible {
  outline: 3px solid currentColor;
  outline-offset: 4px;
}

.home-chapters .home-field-guide .home-reading-section {
  --reading-text: var(--guide-copy);
  --home-section-accent: var(--guide-accent);
  --home-section-rule: var(--guide-rule);
  width: 100%;
  color: var(--chapter-ink, #172b3b);
  padding-block: clamp(1rem, 3vw, 2rem);
}

.home-chapters .home-tail {
  padding-block: clamp(2.5rem, 6vw, 5rem);
  background: #e3e9ed;
}

.home-chapters .home-tail .home-field-guide + .home-field-guide { border-block-start: 0; }
.home-chapters .home-tail .home-premises {
  background: transparent;
  padding-block: clamp(1rem, 3vw, 2rem);
}
.home-chapters .home-tail .home-premises > .container { width: 100%; }

.home-chapters .home-manufacturers {
  padding-block: clamp(3rem, 7vw, 6.5rem);
  color: #2a2621;
  background: #e2d4bb;
}

.home-chapters .home-manufacturers h2 {
  max-inline-size: 24ch;
  margin: 0 0 .65rem;
  color: #2a2621;
  font-size: clamp(2rem, 1.3rem + 2vw, 3.7rem);
  line-height: 1.06;
  letter-spacing: -.046em;
}

.home-chapters .home-manufacturers p {
  max-inline-size: 64ch;
  margin-block: 0 .85rem;
  color: #493b31;
}

.home-chapters .home-maker-list {
  list-style: none;
  margin-block: 1.5rem 0;
  padding: 0;
  border-block-end: 1px solid #a48f72;
}

.home-chapters .home-maker {
  --guide-accent: #422d23;
  border-block-start: 1px solid #a48f72;
}

.home-chapters .home-maker summary strong {
  flex: 0 1 17rem;
  font-size: clamp(1.05rem, 1rem + .48vw, 1.5rem);
  line-height: 1.22;
  text-wrap: pretty;
}

.home-chapters .home-maker summary span { font-size: .94rem; }
.home-chapters .home-maker-content { padding-block: 0 1rem; }
.home-chapters .home-maker-content a {
  display: inline-block;
  min-height: 44px;
  margin-inline-end: 1rem;
  padding-block: .55rem;
  color: #583027;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: .22em;
}

.home-chapters .home-projects { background: #f1ede6; }
.home-chapters .home-projects .home-section-heading h2 {
  font-size: clamp(2rem, 1.28rem + 2.15vw, 3.85rem);
  line-height: 1.06;
  letter-spacing: -.05em;
}
.home-chapters .home-stories--chapter > article:first-child {
  padding: clamp(1.15rem, 3vw, 3rem);
  border: 0;
  background: #233847;
  --home-ink: #f5f7f3;
  --reading-text: #e3ecee;
  --reading-accent: #b9e6f4;
}
.home-chapters .home-stories--chapter > article:first-child h3 {
  font-size: clamp(1.45rem, 1.01rem + 1.28vw, 2.45rem);
  line-height: 1.09;
}
.home-chapters .home-stories--chapter > article:first-child + article { border-block-start: 0; }

@media (min-width: 52rem) {
  .home-chapters .home-world--electrical > .home-service { grid-template-columns: minmax(0, 1.17fr) minmax(0, .83fr); }
  .home-chapters .home-world--electrical > .home-service .home-photo { grid-area: 1 / 1; }
  .home-chapters .home-world--security > .home-service { grid-template-columns: minmax(0, .86fr) minmax(0, 1.14fr); }
  .home-chapters .home-world--security .home-photo img { aspect-ratio: 15 / 10; }
  .home-chapters .home-world--connectivity > .home-service { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); }
  .home-chapters .home-maker-layout {
    display: grid;
    align-items: start;
    grid-template-columns: minmax(0, .70fr) minmax(0, 1.3fr);
    gap: var(--chapter-gap);
  }
  .home-chapters .home-maker-list { margin-block-start: 0; }
  .home-chapters .home-maker summary strong { flex-basis: 12rem; }
}

@media (max-width: 51.99rem) {
  .home-chapters .home-opening-grid,
  .home-chapters .home-world > .home-service { grid-template-columns: minmax(0, 1fr); }
  .home-chapters .home-opening-copy { padding: 2.75rem var(--chapter-gutter) 1.75rem; }
  .home-chapters .home-opening h1 { font-size: clamp(2.55rem, 9vw, 4.25rem); }
  .home-chapters .home-opening .home-photo img { height: auto; min-height: 0; aspect-ratio: 16 / 10; }
  .home-chapters .home-world--electrical .home-photo { grid-area: auto; }
  .home-chapters .home-world--electrical .home-photo img { aspect-ratio: 3 / 2; }
}

@media (max-width: 36rem) {
  .home-chapters .home-service-index > .container {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 1rem;
  }
  .home-chapters .home-service-index a { padding-block: .45rem; }
  .home-chapters .home-field-guide > summary > span { font-size: .8rem; }
  .home-chapters .home-maker summary { flex-wrap: wrap; gap: .25rem .75rem; }
  .home-chapters .home-maker summary strong { flex-basis: calc(100% - 2rem); }
  .home-chapters .home-maker summary span { order: 2; flex-basis: 100%; }
}

@media (forced-colors: active) {
  .home-chapters :is(.home-field-guide, .home-maker) > summary { display: list-item; list-style: revert; }
  .home-chapters :is(.home-field-guide, .home-maker) > summary::after { display: none; }
}
