/* Sustainable Design page: an intro with a house drawn in section, then the seven parts of the
   building from the site map (3.1 to 3.7). Loaded after css/site.css, which holds the banner,
   section heads, scroll reveals, call to action and footer. */

:root {
  --clay: #a5603c;          /* sun and heat in the drawings */
  --sage: #b7c09a;          /* numbers on the dark bands */
  --rain: #6f8a93;          /* water in the drawings */
  --plaster-line: #dcd6ce;  /* hairlines on plaster bands */
}

/* ---------- Line icons (shared) ----------
   Each stroke is one unit long (pathLength="1"), so it draws itself in when its block is revealed */
.sd-icon {
  display: block;
  width: 44px;
  height: 44px;
  color: var(--olive);
  fill: none;
  stroke: currentColor;
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.js .sd-icon > * {
  stroke-dasharray: 1 1;
  stroke-dashoffset: 1;
  transition: stroke-dashoffset 1.6s var(--ease-out) calc(var(--d, 0s) + .3s);
}
.is-in .sd-icon > *,
.is-in.sd-icon > * { stroke-dashoffset: 0; }

/* ---------- Numbered points (shared, light and dark) ---------- */
.sd-points {
  margin: 0;
  padding: 0;
  list-style: none;
  border-bottom: 1px solid var(--line);
}
.sd-point {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  column-gap: 12px;
  padding: clamp(24px, 2.6vw, 34px) 0 clamp(26px, 2.8vw, 36px);
}
.sd-point-num {
  padding-top: .6em;
  font: 500 0.75rem/1 var(--sans);
  letter-spacing: .1em;
  color: var(--olive);
  font-variant-numeric: tabular-nums;
}
.sd-point-title {
  margin: 0;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.5rem, 1vw + 1rem, 2rem);
  line-height: 1.12;
  letter-spacing: -0.015em;
}
.sd-point-text {
  margin: 10px 0 0;
  max-width: 34rem;
  font-size: 0.96875rem;
  line-height: 1.65;
  color: var(--ink-soft);
  transition: color .5s ease;
}
.sd-point-body { transition: transform .7s var(--ease-out); }
@media (hover: hover) {
  .sd-point:hover .sd-point-body { transform: translateX(8px); }
}

.section-dark .sd-points { border-bottom-color: var(--night-line); }
.section-dark .sd-point-num { color: var(--sage); }
.section-dark .sd-point-text { color: var(--night-soft); }
@media (hover: hover) {
  .section-dark .sd-point:hover .sd-point-text { color: rgba(236, 233, 227, .84); }
}

.sd-point-title,
.sd-feature-title,
.sd-tier-title,
.sd-manual-title { text-wrap: balance; }

/* ---------- Intro ---------- */
.sd-intro { padding: clamp(80px, 9vw, 140px) 0 clamp(72px, 8vw, 120px); }
.sd-intro .section-head { margin-bottom: clamp(48px, 5vw, 80px); }
.sd-statement {
  margin: 0;
  max-width: 20ch;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2.25rem, 3vw + 1rem, 4.5rem);
  line-height: 1.04;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

/* The house in section */
.sd-house { margin: 0; }
.sd-house-frame {
  position: relative;
  aspect-ratio: 1200 / 620;
}
.sd-house-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}

/* Drawing styles, shared by both drawings on the page */
.sd-hatch { fill: none; stroke: var(--stone); stroke-width: 1; opacity: .5; }
.sd-hatch-soil { opacity: .35; }
.sd-panel { fill: rgba(79, 90, 58, .28); }
.sd-water-fill { fill: rgba(111, 138, 147, .22); }

.ln {
  fill: none;
  stroke: var(--ink);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.ln-soft { stroke: var(--stone); stroke-width: 1.3; }
.ln-soft-static { fill: none; stroke: var(--stone); stroke-width: 1.3; }
.ln-water { stroke: var(--rain); }
.ln-sun,
.ln-air { fill: none; stroke-width: 1.6; stroke-linecap: round; }
.ln-sun { stroke: var(--clay); }
.ln-air { stroke: var(--olive); }
.ln-water.dash,
.ln-water:not(.ln) { fill: none; stroke: var(--rain); stroke-width: 1.6; stroke-linecap: round; }
.dash { stroke-dasharray: 2 7; }
.ln-sun-patch { fill: none; stroke: var(--clay); stroke-width: 5; stroke-linecap: round; opacity: .35; }

.sd-mk { fill: none; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.sd-mk-sun { stroke: var(--clay); }
.sd-mk-air { stroke: var(--olive); }
.sd-mk-water { stroke: var(--rain); }

.sd-svg-label {
  font: 500 13px var(--sans);
  letter-spacing: .14em;
  text-transform: uppercase;
  fill: var(--stone);
}

/* Draw-in sequence: lines draw, then fills and the sun, breeze and water fade in */
.js .sd-house .ln,
.js .sd-wall-fig .ln {
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  transition: stroke-dashoffset 2.2s var(--ease-out) .2s;
}
.sd-house.is-in .ln,
.sd-wall-fig.is-in .ln { stroke-dashoffset: 0; }

.js .sd-house .sd-fill,
.js .sd-wall-fig .sd-wl,
.js .sd-wall-fig .sd-joint,
.js .sd-wall-fig .sd-zig { opacity: 0; transition: opacity 1.2s ease .9s; }
.sd-house.is-in .sd-fill,
.sd-wall-fig.is-in .sd-wl,
.sd-wall-fig.is-in .sd-joint,
.sd-wall-fig.is-in .sd-zig { opacity: 1; }

.js .sd-late { opacity: 0; transition: opacity 1.2s ease 1.5s; }
.is-in .sd-late { opacity: 1; }

/* Pins over the drawing: a numbered dot and, on wide screens, a label */
.sd-pin {
  position: absolute;
  z-index: 1;
  left: var(--x);
  top: var(--y);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ink);
  text-decoration: none;
  transform: translate(-16px, -50%);
}
.sd-pin-num {
  position: relative;
  flex: none;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--olive);
  color: #fff;
  font: 600 0.71875rem/1 var(--sans);
  letter-spacing: .04em;
  font-variant-numeric: tabular-nums;
  box-shadow: 0 0 0 4px var(--paper);
  transition: transform .45s var(--ease-out), background-color .3s ease;
}
.sd-pin-label {
  padding: 6px 10px;
  background: var(--paper);
  border: 1px solid var(--line);
  font: 500 0.8125rem/1.2 var(--sans);
  white-space: nowrap;
  transition: border-color .3s ease, color .3s ease;
}
.sd-pin:hover .sd-pin-num,
.sd-pin:focus-visible .sd-pin-num { transform: scale(1.14); background: var(--olive-deep); }
.sd-pin:hover .sd-pin-label,
.sd-pin:focus-visible .sd-pin-label { border-color: var(--olive); color: var(--olive-deep); }
.sd-pin:focus-visible { outline: none; }
.sd-pin:focus-visible .sd-pin-num { outline: 2px solid var(--olive); outline-offset: 3px; }

.js .sd-house .sd-pin {
  opacity: 0;
  translate: 0 8px;
  transition: opacity .7s ease, translate .9s var(--ease-out);
  transition-delay: calc(1.8s + var(--i, 0) * .08s);
}
.sd-house.is-in .sd-pin { opacity: 1; translate: none; }

.sd-house-cap {
  margin-top: clamp(20px, 2.4vw, 32px);
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font-size: 0.875rem;
  color: var(--stone);
}
.sd-house-cap p { margin: 0; }

/* Shown on narrow screens, where the pins lose their labels */
.sd-legend {
  display: none;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px 20px;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}
.sd-legend a {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 6px 0;
  font-size: 0.9375rem;
  color: var(--ink);
  text-decoration: none;
}
.sd-legend span {
  font-size: 0.6875rem;
  letter-spacing: .08em;
  color: var(--olive);
  font-variant-numeric: tabular-nums;
}

/* ---------- 01 Alternative materials ----------
   A ruled list on a plaster band: a swatch, the material, why we use it, and where */
.sd-materials { background: var(--plaster); }
.sd-materials .ruled::after { background: var(--plaster-line); }

.sd-mat-list {
  margin: 0;
  padding: 0;
  list-style: none;
  border-bottom: 1px solid var(--plaster-line);
}
.sd-mat {
  display: grid;
  grid-template-columns: 72px minmax(0, 4fr) minmax(0, 5fr) minmax(0, 3fr);
  column-gap: clamp(20px, 3vw, 48px);
  align-items: start;
  padding: clamp(24px, 2.6vw, 36px) 0;
}
.sd-mat-name {
  margin: 0;
  padding-top: 4px;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.5rem, 1vw + 1rem, 2rem);
  line-height: 1.1;
  letter-spacing: -0.015em;
}
.sd-mat-text {
  margin: 0;
  padding-top: 6px;
  font-size: 0.96875rem;
  line-height: 1.65;
  color: var(--ink-soft);
  text-wrap: pretty;
}
.sd-mat-use {
  margin: 0;
  padding-top: 6px;
  font-size: 0.9375rem;
  line-height: 1.5;
  color: var(--ink);
}
.sd-mat-use span {
  display: block;
  margin-bottom: 6px;
  font: 500 0.6875rem/1.4 var(--sans);
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--stone);
}

/* Material swatches, drawn in CSS */
.sd-swatch {
  display: block;
  width: 72px;
  height: 72px;
  box-shadow: inset 0 0 0 1px rgba(46, 37, 33, .08);
  transition: transform .7s var(--ease-out);
}
.sd-swatch--earth {
  background:
    radial-gradient(circle at 30% 40%, rgba(60, 35, 20, .22) 0 1px, transparent 1.6px) 0 0 / 9px 9px,
    radial-gradient(circle at 70% 70%, rgba(255, 240, 220, .22) 0 1px, transparent 1.6px) 0 0 / 7px 7px,
    #a9764f;
}
.sd-swatch--lime {
  background:
    radial-gradient(circle, rgba(120, 110, 95, .16) 0 1px, transparent 1.5px) 0 0 / 6px 6px,
    linear-gradient(160deg, #f6f2ea, #e4ddcf);
}
.sd-swatch--timber {
  background:
    repeating-linear-gradient(97deg, rgba(60, 38, 22, 0) 0 5px, rgba(60, 38, 22, .22) 5px 6px, rgba(60, 38, 22, 0) 6px 11px, rgba(255, 235, 210, .1) 11px 13px),
    linear-gradient(90deg, #8d6646, #9a7351 50%, #85603f);
}
.sd-swatch--bamboo {
  background:
    linear-gradient(180deg, transparent 0 46%, rgba(90, 70, 30, .35) 46% 50%, transparent 50%),
    repeating-linear-gradient(90deg, #cdb47e 0 14px, #b99d64 14px 16px);
}
.sd-swatch--flyash {
  background:
    radial-gradient(circle, rgba(40, 40, 40, .2) 0 1px, transparent 1.5px) 0 0 / 5px 5px,
    radial-gradient(circle, rgba(255, 255, 255, .25) 0 1px, transparent 1.5px) 2px 3px / 7px 7px,
    #9c978e;
}
.sd-swatch--stone {
  background:
    linear-gradient(118deg, transparent 0 38%, rgba(255, 255, 255, .18) 38% 39%, transparent 39% 70%, rgba(40, 35, 30, .2) 70% 71%, transparent 71%),
    linear-gradient(135deg, #8d877c, #6e6961);
}
@media (hover: hover) {
  .sd-mat:hover .sd-swatch { transform: rotate(-4deg) scale(1.06); }
}

/* ---------- 02 Walls ----------
   A wall drawn in section beside the points */
.sd-walls-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: 32px;
  row-gap: 56px;
  align-items: start;
}
.sd-wall-fig { grid-column: 1 / 7; margin: 0; }
.sd-walls-main { grid-column: 8 / 13; }

.sd-wall-frame {
  position: relative;
  aspect-ratio: 560 / 460;
}
.sd-wall-frame svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}
.sd-side {
  position: absolute;
  top: 0;
  font: 500 0.6875rem/1.4 var(--sans);
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--stone);
}
.sd-side--out { left: 0; }
.sd-side--in { right: 0; }

.sd-wl { stroke: var(--ink); stroke-width: 1.4; }
.sd-wl-lime { fill: #efe9dd; }
.sd-wl-earth { fill: #e6d2bd; }
.sd-wl-ins { fill: #f5f1e9; }
.sd-wl-plaster { fill: #faf8f4; }
.sd-joint { fill: none; stroke: #b99a7d; stroke-width: 1; }
.sd-zig { fill: none; stroke: var(--stone); stroke-width: 1; stroke-linejoin: round; }
.sd-leader { fill: none; stroke: var(--stone); stroke-width: 1; }
.ln-heat { stroke: var(--clay); }
.ln-weak { opacity: .45; }
.sd-therm-hot { fill: var(--clay); }
.sd-therm-cool { fill: var(--olive); }

.sd-tag {
  position: absolute;
  left: var(--x);
  top: 96.3%;
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border: 1px solid var(--olive);
  border-radius: 50%;
  background: var(--paper);
  font: 600 0.75rem/1 var(--sans);
  color: var(--olive);
  transform: translate(-50%, -50%);
}

.sd-key {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px 28px;
  margin: clamp(36px, 4vw, 52px) 0 0;
  padding: 0;
  list-style: none;
}
.sd-key li {
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr);
  column-gap: 14px;
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--stone);
}
.sd-key strong {
  display: block;
  margin-bottom: 2px;
  font-weight: 500;
  font-size: 0.9375rem;
  color: var(--ink);
}
.sd-key-tag {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border: 1px solid var(--olive);
  border-radius: 50%;
  font: 600 0.75rem/1 var(--sans);
  color: var(--olive);
}

/* ---------- 03 Roofs ----------
   Dark band: heading, note and photograph held in view on the left, points on the right */
.sd-split {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: 32px;
  row-gap: 56px;
}
.sd-split-aside {
  grid-column: 1 / 6;
  align-self: start;
  position: sticky;
  top: calc(var(--header-h) + 56px);
}
.sd-split-main { grid-column: 7 / 13; }
.sd-aside-intro {
  margin: clamp(20px, 2.4vw, 28px) 0 0;
  max-width: 28rem;
  font-family: var(--serif);
  font-size: clamp(1.125rem, .5vw + .9rem, 1.3125rem);
  line-height: 1.5;
  color: rgba(236, 233, 227, .84);
}
.sd-aside-media {
  position: relative;
  margin: clamp(32px, 4vw, 48px) 0 0;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  background: #2a2c26;
}
.sd-aside-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
  filter: grayscale(.35) sepia(.12) brightness(.92);
}
.sd-aside-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(20, 22, 18, 0) 55%, rgba(20, 22, 18, .65) 100%);
  pointer-events: none;
}
.sd-aside-media figcaption {
  position: absolute;
  z-index: 1;
  left: clamp(16px, 2vw, 24px);
  bottom: clamp(14px, 1.8vw, 20px);
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, .88);
}

/* ---------- 04 Windows ---------- */
.sd-win-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: 32px;
  row-gap: 48px;
  align-items: center;
}
.sd-win-media {
  grid-column: 1 / 6;
  position: relative;
  margin: 0;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--plaster);
}
.sd-win-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.sd-win-media figcaption {
  position: absolute;
  left: 0;
  bottom: 0;
  max-width: calc(100% - 32px);
  padding: 10px 14px;
  background: var(--paper);
  font-size: 0.8125rem;
  line-height: 1.45;
  color: var(--ink);
}

.sd-features {
  grid-column: 7 / 13;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 32px;
  row-gap: clamp(40px, 4vw, 56px);
  margin: 0;
  padding: 0;
  list-style: none;
}
.sd-feature { padding-top: 28px; }
.sd-feature-title {
  margin: 22px 0 0;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.375rem, .7vw + 1rem, 1.75rem);
  line-height: 1.15;
  letter-spacing: -0.01em;
}
.sd-feature-text {
  margin: 10px 0 0;
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--ink-soft);
}

/* ---------- 05 Water use ----------
   Four steps joined by a line, then the ways the building uses less */
.sd-water { background: var(--plaster); }
.sd-water .ruled::after { background: var(--plaster-line); }

.sd-flow {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  column-gap: 32px;
  row-gap: 48px;
  margin: 0;
  padding: 0;
  list-style: none;
}
/* The joining line runs from the first icon's centre to the last */
.sd-flow.ruled::after {
  top: 36px;
  left: 36px;
  right: calc((100% - 96px) / 4 - 36px);
  background: #c9c1b6;
}
.sd-step { position: relative; }
.sd-step-icon {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 72px;
  height: 72px;
  border: 1px solid #c9c1b6;
  border-radius: 50%;
  background: var(--plaster);
  transition: background-color .5s ease, border-color .5s ease;
}
.sd-step-icon .sd-icon { width: 42px; height: 42px; stroke-width: 1.5; }
@media (hover: hover) {
  .sd-step:hover .sd-step-icon { background: var(--paper); border-color: var(--olive); }
}
.sd-step-num {
  margin: 28px 0 8px;
  font: 500 0.6875rem/1.4 var(--sans);
  letter-spacing: .14em;
  color: var(--olive);
  font-variant-numeric: tabular-nums;
}
.sd-step-title {
  margin: 0;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.625rem, 1vw + 1.1rem, 2.125rem);
  line-height: 1.1;
  letter-spacing: -0.015em;
}
.sd-step-text {
  margin: 12px 0 0;
  max-width: 30ch;
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--stone);
}

.sd-save {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: 32px;
  row-gap: 20px;
  margin-top: clamp(64px, 7vw, 104px);
  padding-top: 28px;
}
.sd-save-label {
  grid-column: 1 / 4;
  margin: 0;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.25rem, .6vw + 1rem, 1.5rem);
  line-height: 1.25;
}
.sd-save-list {
  grid-column: 4 / 13;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px 32px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.sd-save-list li {
  position: relative;
  padding-left: 20px;
  font-size: 0.9375rem;
  line-height: 1.5;
  color: var(--ink);
}
.sd-save-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .5em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--rain);
}

/* ---------- 06 Electricity use ----------
   Dark band: the three steps in order, then a photograph */
.sd-tiers {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  column-gap: 32px;
  row-gap: 48px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.sd-tier { padding-top: 28px; }
.sd-tier-num {
  display: block;
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(4rem, 4vw + 2rem, 6.5rem);
  line-height: .9;
  letter-spacing: -0.03em;
  color: var(--sage);
}
.sd-tier-step {
  margin: 28px 0 10px;
  font: 500 0.6875rem/1.4 var(--sans);
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--night-soft);
}
.sd-tier-title {
  margin: 0;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.75rem, 1.2vw + 1.1rem, 2.375rem);
  line-height: 1.08;
  letter-spacing: -0.015em;
}
.sd-tier-text {
  margin: 14px 0 0;
  max-width: 34ch;
  font-size: 0.96875rem;
  line-height: 1.65;
  color: var(--night-soft);
}
.sd-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}
.sd-tags li {
  padding: 6px 12px;
  border: 1px solid var(--night-line);
  border-radius: 999px;
  font-size: 0.8125rem;
  line-height: 1.2;
  color: rgba(236, 233, 227, .84);
}

.sd-energy-media {
  margin: clamp(64px, 7vw, 112px) 0 0;
}
.sd-energy-frame {
  overflow: hidden;
  background: #2a2c26;
}
.sd-energy-media img {
  width: 100%;
  aspect-ratio: 8 / 3;
  object-fit: cover;
  object-position: center 60%;
  filter: grayscale(.45) sepia(.15) brightness(.88);
}
.sd-energy-media figcaption {
  margin-top: 14px;
  font-size: 0.8125rem;
  color: var(--night-soft);
}

/* ---------- 07 Maintenance of the building ----------
   A timeline of what to check and when, then the principles and the handover manual */
.sd-timeline {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  column-gap: 32px;
  row-gap: 48px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.sd-timeline.ruled::after { top: 6px; background: var(--line); }
.sd-time {
  position: relative;
  padding-top: 40px;
}
.sd-time::before {
  content: "";
  position: absolute;
  z-index: 1;
  top: 0;
  left: 0;
  width: 13px;
  height: 13px;
  border: 1.5px solid var(--olive);
  border-radius: 50%;
  background: var(--paper);
}
.sd-time:first-child::before { background: var(--olive); }
.sd-time-when {
  margin: 0;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.5rem, .9vw + 1rem, 1.875rem);
  line-height: 1.1;
  letter-spacing: -0.015em;
}
.sd-time-note {
  margin: 6px 0 0;
  font: 500 0.6875rem/1.4 var(--sans);
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--stone);
}
.sd-check {
  display: grid;
  gap: 10px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}
.sd-check li {
  position: relative;
  padding-left: 26px;
  font-size: 0.9375rem;
  line-height: 1.55;
  color: var(--ink-soft);
}
.sd-check li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: .42em;
  width: 11px;
  height: 6px;
  border-left: 1.5px solid var(--olive);
  border-bottom: 1.5px solid var(--olive);
  transform: rotate(-45deg);
}

.sd-care-foot {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: 32px;
  row-gap: 48px;
  align-items: start;
  margin-top: clamp(80px, 9vw, 128px);
}
.sd-care-points { grid-column: 1 / 7; }
.sd-manual {
  grid-column: 8 / 13;
  padding: clamp(28px, 3vw, 44px);
  background: var(--olive);
  color: #f1efe6;
}
.sd-manual-icon { color: #e3e8d2; }
.sd-manual .eyebrow { margin: 28px 0 14px; color: rgba(241, 239, 230, .7); }
.sd-manual-title {
  margin: 0;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.625rem, 1vw + 1.1rem, 2.125rem);
  line-height: 1.12;
  letter-spacing: -0.015em;
}
.sd-manual-text {
  margin: 14px 0 0;
  font-size: 0.96875rem;
  line-height: 1.65;
  color: rgba(241, 239, 230, .84);
}

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .sd-mat { grid-template-columns: 64px minmax(0, 1fr) minmax(0, 1.4fr); row-gap: 14px; }
  .sd-swatch { width: 64px; height: 64px; }
  .sd-mat-use { grid-column: 3; padding-top: 0; }

  .sd-flow { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sd-flow.ruled::after { display: none; }

  .sd-save-label { grid-column: 1 / -1; }
  .sd-save-list { grid-column: 1 / -1; }

  .sd-timeline { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sd-timeline.ruled::after { display: none; }
  .sd-time { padding-top: 28px; border-top: 1px solid var(--line); }
  .sd-time::before { top: -7px; }
}

@media (max-width: 960px) {
  .sd-pin { transform: translate(-13px, -50%); }
  .sd-pin-num { width: 26px; height: 26px; font-size: 0.65625rem; box-shadow: 0 0 0 3px var(--paper); }
  .sd-pin-label,
  .sd-svg-label { display: none; }
  .sd-legend { display: grid; }

  .sd-wall-fig,
  .sd-walls-main { grid-column: 1 / -1; }
  .sd-wall-fig { max-width: 620px; }

  .sd-split-aside,
  .sd-split-main { grid-column: 1 / -1; }
  .sd-split-aside { position: static; }
  .sd-aside-media { aspect-ratio: 16 / 9; }

  .sd-win-media,
  .sd-features { grid-column: 1 / -1; }
  .sd-win-media { aspect-ratio: 4 / 3; }

  .sd-tiers { grid-template-columns: minmax(0, 1fr); row-gap: 40px; }
  .sd-tier > div {
    display: grid;
    grid-template-columns: 96px minmax(0, 1fr);
    column-gap: 20px;
  }
  .sd-tier-num { grid-row: 1 / span 5; }
  .sd-tier-step { margin-top: 4px; }

  .sd-care-points,
  .sd-manual { grid-column: 1 / -1; }
  .sd-save-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
  .sd-pin { transform: translate(-10px, -50%); }
  .sd-pin-num { width: 20px; height: 20px; font-size: 0.5625rem; letter-spacing: 0; box-shadow: 0 0 0 2px var(--paper); }

  .sd-mat { grid-template-columns: 52px minmax(0, 1fr); column-gap: 18px; row-gap: 10px; }
  .sd-swatch { width: 52px; height: 52px; grid-row: 1 / span 3; }
  .sd-mat-name { padding-top: 0; }
  .sd-mat-text,
  .sd-mat-use { grid-column: 2; padding-top: 0; }

  .sd-key { grid-template-columns: minmax(0, 1fr); gap: 14px; }

  .sd-point { grid-template-columns: 40px minmax(0, 1fr); column-gap: 8px; }

  .sd-features { grid-template-columns: minmax(0, 1fr); }

  .sd-flow { grid-template-columns: minmax(0, 1fr); row-gap: 36px; }
  .sd-step {
    display: grid;
    grid-template-columns: 64px minmax(0, 1fr);
    column-gap: 20px;
  }
  .sd-step-icon { width: 64px; height: 64px; grid-row: 1 / span 3; }
  .sd-step-num { margin: 4px 0 6px; }

  .sd-save-list { grid-template-columns: minmax(0, 1fr); }

  .sd-timeline { grid-template-columns: minmax(0, 1fr); row-gap: 36px; }

  .sd-tier > div { grid-template-columns: 64px minmax(0, 1fr); column-gap: 16px; }
  .sd-energy-media img { aspect-ratio: 4 / 3; }
}

@media (prefers-reduced-motion: reduce) {
  .js .sd-icon > *,
  .js .sd-house .ln,
  .js .sd-wall-fig .ln { stroke-dashoffset: 0; transition: none; }
  .js .sd-house .sd-fill,
  .js .sd-wall-fig .sd-wl,
  .js .sd-wall-fig .sd-joint,
  .js .sd-wall-fig .sd-zig,
  .js .sd-late { opacity: 1; transition: none; }
  .js .sd-house .sd-pin { opacity: 1; translate: none; transition: none; }
  .sd-point-body,
  .sd-swatch,
  .sd-pin-num { transition: none; }
}


/* =====================================================================
   The five points (sheet 6.2 to 6.6): one chapter layout for all five.
   A big title from the sheet with a highlight that sweeps in, the tagline and intro beside it,
   one wide photograph, then an even grid of points.
   ===================================================================== */
.sdc {
  padding: clamp(88px, 10vw, 160px) 0;
  background: var(--paper);
  scroll-margin-top: var(--header-h);
}
.sdc--alt { background: var(--plaster); }

/* ---------- Head: number, big highlighted title, tagline and intro ---------- */
.sdc-head {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: 32px;
  row-gap: 28px;
  align-items: end;
}
.sdc-head-main { grid-column: 1 / 8; }
.sdc-head-side { grid-column: 9 / 13; padding-bottom: .6rem; }

.sdc-num {
  margin: 0 0 4px;
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(4.25rem, 7vw, 7.5rem);
  line-height: 1;
  letter-spacing: -0.04em;
  color: transparent;
  -webkit-text-stroke: 1px rgba(79, 90, 58, .6);
}
.sdc-title {
  margin: 0;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2.75rem, 4.4vw + .6rem, 5.75rem);
  line-height: 1.02;
  letter-spacing: -0.025em;
  text-wrap: balance;
}
/* The highlight: a soft olive band behind the lower half of the words */
.sdc-mark {
  background-image: linear-gradient(rgba(79, 90, 58, .2), rgba(79, 90, 58, .2));
  background-repeat: no-repeat;
  background-position: 0 86%;
  background-size: 100% .36em;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
  padding: 0 .06em;
  transition: background-size 1.5s var(--ease-out) .35s;
}
.js .sdc-title:not(.is-in) .sdc-mark { background-size: 0% .36em; }
.sdc--alt .sdc-mark { background-image: linear-gradient(rgba(79, 90, 58, .24), rgba(79, 90, 58, .24)); }

.sdc-tagline {
  margin: 0 0 16px;
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.375rem, .9vw + 1rem, 1.875rem);
  line-height: 1.25;
  color: var(--olive-deep);
}
.sdc-intro {
  margin: 0;
  font-size: 1rem;
  line-height: 1.7;
  color: var(--ink-soft);
  text-wrap: pretty;
}

/* ---------- One wide photograph ---------- */
.sdc-photo { margin: clamp(48px, 6vw, 88px) 0 clamp(56px, 6vw, 96px); }
/* The frame clips the photo while the reveal zooms it in */
.sdc-photo-frame {
  overflow: hidden;
  border-radius: 3px;
}
.sdc-photo img {
  display: block;
  width: 100%;
  aspect-ratio: 21 / 9;
  object-fit: cover;
}
.sdc-photo figcaption {
  margin-top: 14px;
  font-size: 0.8125rem;
  color: var(--stone);
}

/* ---------- The points: an even grid ---------- */
.sdc-group {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0 0 6px;
  font: 500 0.75rem/1.4 var(--sans);
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--olive);
}
.sdc-list + .sdc-group { margin-top: clamp(48px, 5vw, 72px); }

.sdc-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  column-gap: clamp(24px, 3vw, 48px);
  margin: 0;
  padding: 0;
  list-style: none;
}
.sdc-list--four { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.sdc-item { padding: 28px 0 40px; }
.sdc--alt .sdc-item::after { background: #dcd6ce; }
.sdc-item-num {
  margin: 0 0 18px;
  font: 500 0.75rem/1 var(--sans);
  letter-spacing: .12em;
  font-variant-numeric: tabular-nums;
  color: var(--olive);
}
.sdc-item-title {
  margin: 0 0 12px;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.375rem, .6vw + 1.1rem, 1.75rem);
  line-height: 1.15;
  letter-spacing: -0.01em;
}
.sdc-item-text {
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.65;
  color: var(--ink-soft);
  text-wrap: pretty;
}
.sdc-item-use {
  margin: 14px 0 0;
  font-size: 0.8125rem;
  line-height: 1.5;
  color: var(--stone);
}
.sdc-item-use span {
  margin-right: 8px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  font-size: 0.6875rem;
  color: var(--olive);
}

/* ---------- A highlighted note (the building manual) ---------- */
.sdc-note {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  column-gap: clamp(24px, 4vw, 64px);
  row-gap: 12px;
  align-items: end;
  margin-top: clamp(40px, 5vw, 64px);
  padding: clamp(28px, 4vw, 56px);
  border-radius: 4px;
  background: var(--olive);
  color: #fff;
}
.sdc-note-label {
  grid-column: 1;
  margin: 0;
  font: 500 0.75rem/1.4 var(--sans);
  letter-spacing: .16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .7);
}
.sdc-note-title {
  grid-column: 1;
  margin: 0;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.75rem, 1.6vw + 1rem, 2.5rem);
  line-height: 1.1;
  text-wrap: balance;
}
.sdc-note-text {
  grid-column: 2;
  grid-row: 1 / 3;
  margin: 0;
  font-size: 1rem;
  line-height: 1.65;
  color: rgba(255, 255, 255, .88);
}

/* ---------- Smaller screens ---------- */
@media (max-width: 1100px) {
  .sdc-list--four { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 960px) {
  .sdc-head-main,
  .sdc-head-side { grid-column: 1 / -1; }
  .sdc-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sdc-photo img { aspect-ratio: 16 / 9; }
  .sdc-note { grid-template-columns: minmax(0, 1fr); }
  .sdc-note-text { grid-column: 1; grid-row: auto; margin-top: 8px; }
}
@media (max-width: 600px) {
  .sdc-list,
  .sdc-list--four { grid-template-columns: minmax(0, 1fr); }
  .sdc-item { padding-bottom: 28px; }
  .sdc-photo img { aspect-ratio: 4 / 3; }
}
@media (prefers-reduced-motion: reduce) {
  .sdc-mark { transition: none; }
  .js .sdc-title:not(.is-in) .sdc-mark { background-size: 100% .36em; }
}

/* ---------- Point icons: drawn in as each point arrives, redrawn on hover ---------- */
.sdc-item-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 20px;
}
.sdc-item-top .sdc-item-num { margin: 4px 0 0; }
.sdc-icon {
  width: 40px;
  height: 40px;
  fill: none;
  stroke: var(--olive);
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.sdc-icon path { stroke-dasharray: 1; stroke-dashoffset: 0; }
.js .sdc-item .sdc-icon path {
  stroke-dashoffset: 1;
  transition: stroke-dashoffset 1.6s var(--ease-out) calc(var(--d, 0s) + .25s);
}
.js .sdc-item.is-in .sdc-icon path { stroke-dashoffset: 0; }
@keyframes sdc-redraw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@media (hover: hover) {
  .sdc-item:hover .sdc-icon path { animation: sdc-redraw 1.1s var(--ease-out) both; }
}

/* ---------- Chapters 2 and 4: a tall photograph held in view beside the points ---------- */
.sdc { scroll-margin-top: calc(var(--header-h) + 60px); }
.sdc-split {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: 32px;
  align-items: start;
  margin-top: clamp(48px, 6vw, 88px);
}
.sdc-split-media { grid-column: 1 / 6; align-self: stretch; }
.sdc-split-media .sdc-photo {
  position: sticky;
  top: calc(var(--header-h) + 88px);
  margin: 0;
}
.sdc-split-media .sdc-photo img { aspect-ratio: 4 / 5; }
.sdc-split-main { grid-column: 7 / 13; }
.sdc-split-main .sdc-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }

@media (max-width: 960px) {
  .sdc-split-media,
  .sdc-split-main { grid-column: 1 / -1; }
  .sdc-split-media .sdc-photo { position: static; }
  .sdc-split-media .sdc-photo img { aspect-ratio: 16 / 9; }
  .sdc-split-main { margin-top: 40px; }
}
@media (max-width: 600px) {
  .sdc-split-main .sdc-list { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  .js .sdc-item .sdc-icon path { stroke-dashoffset: 0; transition: none; }
  .sdc-item:hover .sdc-icon path { animation: none; }
}
