.service-story {
  --story-bg: #e4e3dd;
  --story-ink: #14212a;
  --story-muted: rgba(20, 33, 42, 0.74);
  --story-line: rgba(20, 33, 42, 0.28);
  --story-focus: #14212a;
  --story-accent: #d76928;
  position: relative;
  isolation: isolate;
  min-height: clamp(680px, 86dvh, 900px);
  overflow: hidden;
  padding: 28px max(4vw, 48px) 48px;
  scroll-margin-top: 0;
  background: var(--story-bg);
  color: var(--story-ink);
}

.service-story__anchor {
  position: absolute;
  top: 0;
  left: 0;
}

.service-story__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 19px;
  border-bottom: 1px solid var(--story-line);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.09em;
  color: var(--story-muted);
}

.service-story__layout {
  display: grid;
  grid-template-columns: minmax(380px, 0.88fr) minmax(520px, 1.12fr);
  gap: clamp(64px, 8vw, 150px);
  align-items: center;
  min-height: clamp(570px, calc(86dvh - 96px), 790px);
  padding-top: clamp(44px, 5vh, 64px);
}

.service-story__copy {
  position: relative;
  z-index: 2;
  min-width: 0;
}

.service-story__eyebrow {
  margin: 0 0 20px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  color: var(--story-accent);
}

.service-story h2 {
  max-width: 820px;
  margin: 0;
  font-size: clamp(46px, 4.55vw, 76px);
  line-height: 0.97;
  font-weight: 400;
  letter-spacing: -0.052em;
  overflow-wrap: anywhere;
}

.service-story__lead {
  max-width: 620px;
  margin: 25px 0 0;
  font-size: clamp(16px, 1.12vw, 19px);
  line-height: 1.52;
  letter-spacing: -0.018em;
  color: var(--story-muted);
}

.service-story__scope {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 24px;
  max-width: 650px;
  margin: 34px 0 0;
  padding: 0;
  list-style: none;
}

.service-story__scope li {
  position: relative;
  min-height: 49px;
  padding: 13px 0 10px 16px;
  border-top: 1px solid var(--story-line);
  font-size: 13px;
  line-height: 1.35;
  color: var(--story-muted);
}

.service-story__scope li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 18px;
  width: 5px;
  height: 5px;
  background: var(--story-accent);
}

.service-story__cta {
  min-height: 48px;
  width: fit-content;
  display: inline-flex;
  align-items: center;
  gap: 38px;
  margin-top: 30px;
  padding: 0 17px;
  border: 1px solid var(--story-line);
  font-size: 16px;
  font-weight: 500;
  transition: color 180ms ease, background-color 180ms ease, border-color 180ms ease;
}

.service-story__cta:hover {
  border-color: var(--story-accent);
  background: var(--story-accent);
  color: #111a20;
}

.service-story a:focus-visible {
  outline-color: var(--story-focus);
}

.service-story__visual {
  position: relative;
  min-width: 0;
  min-height: 480px;
  color: var(--story-muted);
}

.service-story__visual svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.service-story__visual svg path,
.service-story__visual svg rect,
.service-story__visual svg circle {
  vector-effect: non-scaling-stroke;
  stroke-width: 0.8;
}

.service-story__visual svg .visual-heavy {
  stroke-width: 1.35;
}

.service-story__visual .visual-labels {
  fill: currentColor;
  stroke: none;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.06em;
}

.service-story__visual > p {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  display: flex;
  justify-content: space-between;
  margin: 0;
  padding-top: 12px;
  border-top: 1px solid var(--story-line);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.08em;
  color: var(--story-muted);
}

.js .service-story:not(.is-visible) .service-story__copy,
.js .service-story:not(.is-visible) .service-story__visual {
  opacity: 0;
  transform: translate3d(0, 22px, 0);
}

.service-story__copy,
.service-story__visual {
  transition: opacity 380ms var(--ease-out), transform 380ms var(--ease-out);
}

.service-story.is-visible .service-story__visual {
  transition-delay: 80ms;
}

/* 01 — architectural drawing sheet */
.service-story--architecture {
  --story-bg: #dfe0da;
}

.service-story--architecture::before {
  content: "A–01";
  position: absolute;
  right: -0.04em;
  bottom: -0.16em;
  z-index: -1;
  font-family: var(--mono);
  font-size: clamp(150px, 18vw, 300px);
  line-height: 0.8;
  color: rgba(20, 33, 42, 0.04);
}

.architecture-plan {
  padding: 18px;
  border: 1px solid var(--story-line);
}

.architecture-plan svg {
  inset: 18px 18px 38px;
  width: calc(100% - 36px);
  height: calc(100% - 56px);
}

/* 02 — material board and room layers */
.service-story--interior {
  --story-bg: #29231f;
  --story-ink: #f1eee7;
  --story-muted: rgba(241, 238, 231, 0.72);
  --story-line: rgba(241, 238, 231, 0.24);
  --story-focus: #f1eee7;
}

.service-story--interior .service-story__copy {
  grid-column: 2;
}

.service-story--interior .interior-board {
  grid-column: 1;
  grid-row: 1;
}

.interior-board {
  border: 1px solid var(--story-line);
}

.interior-board__room {
  position: absolute;
  top: 10%;
  right: 11%;
  bottom: 27%;
  left: 8%;
  border: 1px solid currentColor;
}

.interior-board__room::before,
.interior-board__room::after {
  content: "";
  position: absolute;
  background: currentColor;
  opacity: 0.8;
}

.interior-board__room::before { left: 38%; top: 0; bottom: 0; width: 1px; }
.interior-board__room::after { left: 0; right: 0; top: 56%; height: 1px; }

.interior-board__room i {
  position: absolute;
  border: 1px solid currentColor;
}

.interior-board__room i:nth-child(1) { left: 7%; top: 10%; width: 23%; height: 31%; }
.interior-board__room i:nth-child(2) { left: 47%; top: 10%; width: 43%; height: 18%; }
.interior-board__room i:nth-child(3) { left: 47%; top: 38%; width: 18%; height: 45%; }
.interior-board__room i:nth-child(4) { right: 10%; bottom: 9%; width: 18%; height: 30%; border-radius: 50%; }

.interior-board__room span,
.interior-board__arch span {
  position: absolute;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.08em;
}

.interior-board__room span { left: 8px; bottom: 7px; }

.interior-board__arch {
  position: absolute;
  top: 3%;
  right: 3%;
  width: 18%;
  aspect-ratio: 0.72;
  border: 1px solid var(--story-accent);
  border-bottom: 0;
  border-radius: 50% 50% 0 0;
}

.interior-board__arch span { right: 4px; bottom: 5px; }

.interior-board__materials {
  position: absolute;
  right: 8%;
  bottom: 11%;
  left: 8%;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  height: 48px;
  border: 1px solid var(--story-line);
}

.interior-board__materials i { border-right: 1px solid var(--story-line); }
.interior-board__materials i:nth-child(2) { background: #9d7e65; }
.interior-board__materials i:nth-child(3) { background: #d76928; }
.interior-board__materials i:last-child { border-right: 0; background: #d8d2c5; }

.interior-board > p { right: 8%; bottom: 3%; left: 8%; }

/* 03 — facade rhythm */
.service-story--commercial {
  --story-bg: #d76928;
  --story-ink: #111a20;
  --story-muted: rgba(17, 26, 32, 0.92);
  --story-line: rgba(17, 26, 32, 0.34);
  --story-focus: #111a20;
}

.service-story--commercial .service-story__layout {
  grid-template-columns: minmax(460px, 1.05fr) minmax(460px, 0.95fr);
}

.service-story--commercial h2 {
  font-size: clamp(52px, 5.3vw, 88px);
}

.commercial-facade {
  min-height: 510px;
  background: #111a20;
  color: rgba(239, 243, 244, 0.72);
}

.commercial-facade svg {
  inset: 28px;
  width: calc(100% - 56px);
  height: calc(100% - 78px);
}

.commercial-facade > p {
  right: 28px;
  bottom: 18px;
  left: 28px;
  border-color: rgba(239, 243, 244, 0.24);
  color: rgba(239, 243, 244, 0.7);
}

/* 04 — coordinated engineering network */
.service-story--industrial {
  --story-bg: #10242d;
  --story-ink: #eef3f4;
  --story-muted: rgba(238, 243, 244, 0.7);
  --story-line: rgba(238, 243, 244, 0.22);
  --story-focus: #eef3f4;
}

.service-story--industrial::after {
  content: "";
  position: absolute;
  z-index: -1;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 1px;
  background: rgba(238, 243, 244, 0.08);
}

.industrial-network {
  border-left: 1px solid var(--story-line);
  color: rgba(238, 243, 244, 0.5);
}

.industrial-network svg { inset: 18px; width: calc(100% - 36px); height: calc(100% - 56px); }
.industrial-network .network-main { stroke: var(--story-accent); stroke-width: 1.3; }
.industrial-network > p { left: 18px; right: 18px; }

/* 05 — house elevation */
.service-story--houses {
  --story-bg: #d9d1c4;
}

.service-story--houses .service-story__copy {
  grid-column: 2;
}

.service-story--houses .house-elevation {
  grid-column: 1;
  grid-row: 1;
  border-right: 1px solid var(--story-line);
}

.house-elevation svg { right: 28px; width: calc(100% - 28px); }
.house-elevation > p { right: 28px; }

/* 06 — renovation layers */
.service-story--renovation {
  --story-bg: #eeece6;
}

.service-story--renovation::after {
  content: "";
  position: absolute;
  z-index: -1;
  top: 0;
  right: 0;
  width: 18%;
  height: 100%;
  background: #d76928;
}

.renovation-layers {
  display: grid;
  align-content: center;
  gap: 12px;
}

.renovation-layers > div {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  min-height: 82px;
  padding: 0 20px;
  border: 1px solid var(--story-line);
  background: #dad8d1;
  transform: translateX(calc((var(--layer, 0)) * 14px));
}

.renovation-layers > div:nth-child(1) { --layer: 0; background: #b7b5af; }
.renovation-layers > div:nth-child(2) { --layer: 1; background: #c9c7c0; }
.renovation-layers > div:nth-child(3) { --layer: 2; background: #dedbd4; }
.renovation-layers > div:nth-child(4) { --layer: 3; background: #d76928; }

.renovation-layers span,
.renovation-layers i {
  font-family: var(--mono);
  font-size: 9px;
  font-style: normal;
  letter-spacing: 0.08em;
}

.renovation-layers strong { font-size: clamp(20px, 2vw, 31px); font-weight: 500; }

/* 07 — topographic landscape plan */
.service-story--landscaping {
  --story-bg: #203229;
  --story-ink: #edf2ed;
  --story-muted: rgba(237, 242, 237, 0.72);
  --story-line: rgba(237, 242, 237, 0.22);
  --story-focus: #edf2ed;
}

.service-story--landscaping .service-story__layout {
  grid-template-columns: minmax(380px, 0.72fr) minmax(600px, 1.28fr);
}

.landscape-map {
  color: rgba(237, 242, 237, 0.42);
}

.landscape-map .visual-heavy {
  stroke: var(--story-accent);
  stroke-width: 1.5;
}

/* 08 — FF&E specification */
.service-story--furnishing {
  --story-bg: #c7b493;
  --story-muted: rgba(20, 33, 42, 0.78);
  --story-line: rgba(20, 33, 42, 0.3);
}

.service-story--furnishing::before {
  content: "08";
  position: absolute;
  z-index: -1;
  left: -0.08em;
  bottom: -0.18em;
  font-family: var(--mono);
  font-size: clamp(180px, 22vw, 360px);
  line-height: 0.8;
  color: rgba(20, 33, 42, 0.055);
}

.service-story--furnishing .service-story__copy {
  grid-column: 2;
}

.service-story--furnishing .furniture-plan {
  grid-column: 1;
  grid-row: 1;
  padding-right: 26px;
  border-right: 1px solid var(--story-line);
}

.furniture-plan svg { right: 26px; width: calc(100% - 26px); }
.furniture-plan > p { right: 26px; }

/* 09 — crew capability matrix */
.service-story--crews {
  --story-bg: #111a20;
  --story-ink: #f1f4f5;
  --story-muted: rgba(241, 244, 245, 0.72);
  --story-line: rgba(241, 244, 245, 0.23);
  --story-focus: #f1f4f5;
}

.service-story--crews h2 { font-size: clamp(52px, 5.5vw, 92px); }

.crew-matrix {
  display: grid;
  align-content: center;
  min-height: 510px;
  border-top: 1px solid var(--story-line);
}

.crew-matrix > div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 72px 90px;
  gap: 18px;
  align-items: center;
  min-height: 62px;
  border-bottom: 1px solid var(--story-line);
}

.crew-matrix__head {
  min-height: 38px !important;
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.09em;
  color: var(--story-muted);
}

.crew-matrix strong { font-size: clamp(16px, 1.6vw, 24px); font-weight: 500; }
.crew-matrix i { width: 42px; height: 2px; background: var(--story-accent); }
.crew-matrix > div > span { font-family: var(--mono); font-size: 9px; letter-spacing: 0.06em; }
.crew-matrix > p { bottom: -2px; }

/* Photographic service stories — every direction except renovation */
.service-story:not(.service-story--renovation) .service-story__layout {
  grid-template-columns: minmax(0, 1.08fr) minmax(420px, 0.92fr);
  gap: clamp(48px, 5vw, 88px);
}

.service-story--interior .service-story__layout,
.service-story--houses .service-story__layout,
.service-story--furnishing .service-story__layout {
  grid-template-columns: minmax(420px, 0.92fr) minmax(0, 1.08fr);
}

.service-story--landscaping .service-story__layout {
  grid-template-columns: minmax(520px, 0.92fr) minmax(560px, 1.08fr);
}

.service-story:not(.service-story--renovation) h2 {
  max-width: none;
  font-size: clamp(44px, 4.15vw, 70px);
  line-height: 0.98;
  white-space: normal;
  overflow-wrap: normal;
  word-break: normal;
  hyphens: none;
  text-wrap: balance;
}

.service-story:is(
  .service-story--architecture,
  .service-story--industrial,
  .service-story--landscaping,
  .service-story--furnishing
) h2 {
  font-size: clamp(40px, 3.55vw, 60px);
}

.service-story:not(.service-story--renovation) .service-story__lead {
  max-width: 58ch;
  text-wrap: pretty;
}

.service-story--interior .service-story__photo,
.service-story--houses .service-story__photo,
.service-story--furnishing .service-story__photo {
  grid-column: 1;
  grid-row: 1;
}

.service-story__photo {
  position: relative;
  isolation: isolate;
  min-height: 520px;
  margin: 0;
  overflow: hidden;
  box-sizing: border-box;
  background: #111a20;
}

.service-story__photo picture {
  position: absolute;
  inset: 0 0 42px;
  display: block;
}

.service-story__photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.86) contrast(1.04);
}

.service-story__photo figcaption {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 42px;
  padding: 10px 14px;
  border-top: 1px solid var(--story-line);
  background: var(--story-bg);
  color: var(--story-muted);
  font-family: var(--mono);
  font-size: 9px;
  line-height: 1.25;
  letter-spacing: 0.08em;
}

.service-story__photo figcaption span:last-child {
  flex: 0 0 auto;
  margin-left: 24px;
  text-align: right;
}

.service-story__photo--architecture {
  border: 1px solid var(--story-line);
  background: var(--story-bg);
}

.service-story__photo--architecture picture {
  inset: 18px 18px 60px;
}

.service-story__photo--architecture figcaption {
  right: 18px;
  bottom: 10px;
  left: 18px;
  min-height: 34px;
  padding-right: 0;
  padding-left: 0;
  background: transparent;
}

.service-story__photo--architecture::before {
  content: "";
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 3;
  width: 10px;
  height: 10px;
  background: var(--story-accent);
}

.service-story__photo--architecture img { object-position: 56% 50%; }

.service-story__photo--interior picture { inset: 0 0 46px; }
.service-story__photo--interior img { object-position: 56% 50%; }
.service-story__photo--interior figcaption { padding-left: 74px; }

.service-story__photo--interior figcaption::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 16px;
  width: 9px;
  height: 9px;
  background: #9d7e65;
  box-shadow: 13px 0 #d76928, 26px 0 #d8d2c5, 39px 0 #5e5148;
  transform: translateY(-50%);
}

.service-story__photo--commercial {
  min-height: 520px;
  border: 20px solid #111a20;
}

.service-story__photo--commercial img { object-position: 54% 48%; }

.service-story__photo--commercial figcaption {
  border-color: rgba(239, 243, 244, 0.24);
  background: #111a20;
  color: rgba(239, 243, 244, 0.72);
}

.service-story__photo--industrial {
  border-left: 6px solid var(--story-accent);
}

.service-story__photo--industrial img {
  object-position: 62% 50%;
  filter: saturate(0.72) contrast(1.08);
}

.service-story__photo--industrial::after {
  content: "04 / COORD";
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
  padding: 6px 8px;
  border: 1px solid rgba(238, 243, 244, 0.36);
  background: rgba(16, 36, 45, 0.82);
  color: rgba(238, 243, 244, 0.8);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.08em;
}

.service-story__photo--houses {
  border-right: 1px solid var(--story-line);
  background: var(--story-bg);
}

.service-story__photo--houses picture { inset: 12px 28px 58px 0; }
.service-story__photo--houses img { object-position: 54% 56%; }

.service-story__photo--houses figcaption {
  right: 28px;
  bottom: 10px;
  background: transparent;
}

.service-story__photo--houses::before {
  content: "";
  position: absolute;
  bottom: 47px;
  left: 0;
  z-index: 3;
  width: 26%;
  height: 3px;
  background: var(--story-accent);
}

.service-story__photo--landscaping { min-height: 480px; }
.service-story__photo--landscaping img { object-position: 50% 64%; }

.service-story__photo--landscaping figcaption {
  background: #203229;
  color: rgba(237, 242, 237, 0.74);
}

.service-story__photo--landscaping::before {
  content: "";
  position: absolute;
  bottom: 40px;
  left: 0;
  z-index: 3;
  width: 25%;
  height: 4px;
  background: var(--story-accent);
}

.service-story__photo--furnishing {
  border: 1px solid var(--story-line);
  background: transparent;
}

.service-story__photo--furnishing picture { inset: 18px 18px 60px; }
.service-story__photo--furnishing img { object-position: 54% 50%; }

.service-story__photo--furnishing figcaption {
  right: 18px;
  bottom: 10px;
  left: 18px;
  min-height: 34px;
  padding-right: 0;
  padding-left: 64px;
  background: transparent;
}

.service-story__photo--furnishing figcaption::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  width: 8px;
  height: 8px;
  background: #624d39;
  box-shadow: 12px 0 #d9d1c4, 24px 0 #14212a, 36px 0 #d76928;
  transform: translateY(-50%);
}

.service-story__photo--crews { min-height: 520px; }

.service-story__photo--crews img {
  object-position: 50% 40%;
  filter: saturate(0.78) contrast(1.06);
}

.service-story__photo--crews figcaption {
  min-height: 48px;
  padding-left: 42px;
  background: #0d1418;
  color: rgba(241, 244, 245, 0.76);
}

.service-story__photo--crews figcaption::before {
  content: "";
  position: absolute;
  left: 15px;
  width: 10px;
  height: 10px;
  background: var(--story-accent);
}

@media (max-width: 1180px) and (min-width: 821px) {
  .service-story {
    padding-right: 32px;
    padding-left: 32px;
  }

  .service-story__layout,
  .service-story--commercial .service-story__layout,
  .service-story--landscaping .service-story__layout {
    grid-template-columns: minmax(300px, 0.82fr) minmax(0, 1.18fr);
    gap: 42px;
  }

  .service-story h2 { font-size: clamp(41px, 4.8vw, 58px); }
  .service-story__scope { grid-template-columns: 1fr; margin-top: 24px; }
  .service-story__visual { min-height: 410px; }
}

@media (max-width: 820px) {
  .service-story {
    min-height: 0;
    padding: 20px 22px 38px;
  }

  .service-story__meta {
    padding-bottom: 16px;
    font-size: 9px;
  }

  .service-story__layout,
  .service-story--commercial .service-story__layout,
  .service-story--landscaping .service-story__layout {
    display: flex;
    flex-direction: column;
    gap: 42px;
    min-height: 0;
    padding-top: 45px;
  }

  .service-story__copy,
  .service-story--interior .service-story__copy,
  .service-story--houses .service-story__copy,
  .service-story--furnishing .service-story__copy {
    order: 1;
    width: 100%;
  }

  .service-story__visual,
  .service-story--interior .interior-board,
  .service-story--houses .house-elevation,
  .service-story--furnishing .furniture-plan {
    order: 2;
    width: 100%;
    min-height: 330px;
    border-right: 0;
  }

  .service-story__eyebrow { margin-bottom: 17px; font-size: 9px; }

  .service-story h2,
  .service-story--commercial h2,
  .service-story--crews h2 {
    font-size: clamp(38px, 11.4vw, 56px);
    line-height: 0.99;
  }

  .service-story__lead { margin-top: 21px; font-size: 16px; line-height: 1.5; }
  .service-story__scope { grid-template-columns: 1fr; margin-top: 28px; }
  .service-story__scope li { min-height: 46px; font-size: 13px; }
  .service-story__cta { width: 100%; justify-content: space-between; }

  .service-story--renovation::after { width: 8px; }
  .renovation-layers > div { grid-template-columns: 32px minmax(0, 1fr); padding: 0 14px; transform: none; }
  .renovation-layers > div i { display: none; }
  .crew-matrix { min-height: 380px; }
  .crew-matrix > div { grid-template-columns: minmax(0, 1fr) 36px 68px; gap: 10px; }
  .crew-matrix strong { font-size: 15px; }
  .commercial-facade { min-height: 360px; }
}

@media (max-width: 480px) {
  .service-story__visual,
  .service-story--interior .interior-board,
  .service-story--houses .house-elevation,
  .service-story--furnishing .furniture-plan {
    min-height: 280px;
  }

  .service-story__meta span:first-child { max-width: 68%; }
  .interior-board__materials { height: 36px; }
  .crew-matrix > div { grid-template-columns: minmax(0, 1fr) 24px 58px; }
  .crew-matrix > div > span { font-size: 8px; }
}

@media (prefers-reduced-motion: reduce) {
  .service-story__copy,
  .service-story__visual {
    opacity: 1 !important;
    transform: none !important;
  }
}
