@font-face {
  font-family: "ST12 Alumni Sans";
  src: url("/fonts/alumni-sans-regular.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "ST12 Alumni Sans";
  src: url("/fonts/alumni-sans-semibold.ttf") format("truetype");
  font-style: normal;
  font-weight: 600;
  font-display: swap;
}

/* v5.46 is deliberately layered on the untouched Beget v5.44 build. */

/* MARCHI returns to every display role it held before the IBM-only pass. */
body h1,
body h2,
body h3,
body .drawing-title,
body .catalog-card-title,
body .catalog-feature-bottom strong,
body .catalog-feature-bottom h2,
body .projects-v4-feature-bottom strong,
body .projects-v4-feature-bottom h2,
body .expertise-item h3,
body .project-info h3,
body .combined-heading h2,
body .competency-summary h2,
body .combined-projects-head h2,
body .competency-tabs strong,
body .combined-project-card h3,
body .company-profile-cards h3,
body .section-card-list h3,
body .news-list h2,
body .documents-list h2,
body .capability-detail-hero h1,
body .capability-detail-body h2,
body .article-page h1,
body .article-page article > section h2,
body .contacts-map-card h2,
body .contacts-screen-intro h1,
body .partners-grid h2 {
  font-family: "ST12 Architectural", "Arial Narrow", sans-serif !important;
  font-weight: 400 !important;
  font-style: normal !important;
  letter-spacing: .01em !important;
  text-transform: uppercase;
}

/* Keep the original MARCHI display system even where the base build has a
   more specific page selector. */
body .home-page .hero h1,
body main.home-page .hero .drawing-title,
body main h1,
body main h2,
body main h3,
body main .projects-section .project-info h3,
body main .projects-section .project-card .project-info h3,
body main .combined-project-grid .combined-project-card h3,
body .metrics strong,
body .project-specifications strong,
body .company-proof strong {
  font-family: "ST12 Architectural", "Arial Narrow", sans-serif !important;
  font-weight: 400 !important;
  font-style: normal !important;
}

/* Only mathematical marks use the thinnest bundled neutral face. */
body .metric-symbol {
  display: inline-block;
  margin-inline: .02em;
  font-family: "ST12 IBM Plex Sans Condensed", "Arial Narrow", sans-serif !important;
  font-size: .78em;
  font-weight: 400 !important;
  font-style: normal !important;
  letter-spacing: -.12em !important;
  transform: scaleX(.46);
  transform-origin: center;
}

body .project-specifications > div {
  display: flex;
  min-width: 0;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

body .company-profile-cards article > span {
  min-width: max-content;
  white-space: nowrap;
}

/* Align the two editorial text compositions shown on the company and home pages. */
@media (min-width: 901px) {
  body .company-manifesto {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1.2fr);
    align-items: start;
    gap: clamp(48px, 6vw, 118px);
  }

  body .company-manifesto h2 {
    align-self: start;
  }

  body .company-manifesto > div {
    align-self: start;
    max-width: none;
    margin: 0;
  }

  body .home-page .intro-copy {
    align-items: start;
  }

  body .home-page .intro-copy .text-link {
    justify-self: center;
  }
}

/* Captions return below the active photo without bringing back counters. */
body .project-timeline:not(.is-narrative):not(.is-cinematic) {
  grid-template-rows: auto minmax(0, 1fr) auto 76px;
  gap: 9px;
}

body .project-timeline:not(.is-narrative):not(.is-cinematic)::after {
  content: attr(data-caption);
  display: block;
  min-height: 24px;
  margin-top: 2px;
  padding: 9px 0 5px;
  border: 0;
  border-top: 1px solid rgba(31, 76, 61, .24);
  background: transparent;
  box-shadow: none;
  color: var(--muted);
  font-family: "ST12 IBM Plex Sans Condensed", "Arial Narrow", sans-serif !important;
  font-size: clamp(16px, 1.05vw, 19px);
  font-weight: 500 !important;
  line-height: 1.35;
}

/* Mars becomes a vertical narrative; all other projects retain v5.44 controls. */
body .project-timeline.is-narrative {
  display: block;
  height: auto;
  margin-block: clamp(72px, 9vw, 150px);
}

body .project-timeline.is-narrative .project-timeline-head {
  margin-bottom: clamp(48px, 7vw, 100px);
}

body .project-timeline.is-narrative .project-timeline-viewport {
  display: none;
}

body .project-timeline.is-narrative .project-timeline-track {
  display: block;
}

body .project-timeline.is-narrative .project-timeline-track button {
  position: relative;
  display: block;
  width: min(88%, 1240px);
  margin: 0 0 clamp(86px, 12vw, 180px);
  padding: 0;
  border: 0;
  opacity: 1;
  text-align: left;
}

body .project-timeline.is-narrative .project-timeline-track button:nth-child(even) {
  margin-left: auto;
}

body .project-timeline.is-narrative .project-timeline-track button::before {
  content: attr(data-caption);
  display: block;
  margin-bottom: 18px;
  color: var(--emerald-950);
  font-family: "ST12 Architectural", "Arial Narrow", sans-serif !important;
  font-size: clamp(32px, 3.5vw, 62px);
  font-weight: 400 !important;
  line-height: 1.04;
  letter-spacing: .01em;
  text-transform: uppercase;
}

body .project-timeline.is-narrative .project-timeline-track img {
  display: block;
  width: 100%;
  height: min(68svh, 720px);
  object-fit: cover;
}

body .project-timeline.is-narrative.is-ready .project-timeline-track button {
  opacity: 0;
  transform: translateY(50px) scale(.985);
  transition: opacity .75s ease, transform .9s cubic-bezier(.22, 1, .36, 1);
}

body .project-timeline.is-narrative.is-ready .project-timeline-track button.is-visible {
  opacity: 1;
  transform: none;
}

@media (max-width: 640px) {
  body .project-timeline:not(.is-narrative):not(.is-cinematic) {
    grid-template-rows: auto minmax(0, 1fr) auto 68px;
  }

  body .project-timeline.is-narrative .project-timeline-track button,
  body .project-timeline.is-narrative .project-timeline-track button:nth-child(even) {
    width: 100%;
    margin-bottom: 82px;
  }

  body .project-timeline.is-narrative .project-timeline-track img {
    height: 62svh;
    min-height: 320px;
  }
}

@media (prefers-reduced-motion: reduce) {
  body .project-timeline.is-narrative.is-ready .project-timeline-track button {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* v5.54 — the quality screen now follows the site's full-image hero language. */
body .quality-hero {
  position: relative;
  isolation: isolate;
  display: flex;
  min-height: 100svh;
  overflow: hidden;
  background: var(--emerald-950);
}

body .quality-hero::after {
  content: "";
  position: absolute;
  z-index: 1;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(7, 35, 28, .94) 0%, rgba(7, 35, 28, .76) 38%, rgba(7, 35, 28, .2) 73%, rgba(7, 35, 28, .48) 100%),
    linear-gradient(0deg, rgba(5, 27, 22, .6), transparent 48%);
  pointer-events: none;
}

body .quality-hero > div:first-child {
  position: relative;
  z-index: 2;
  width: min(760px, 62vw);
  min-height: 100svh;
  background: transparent;
}

body .quality-hero-image {
  position: absolute;
  z-index: 0;
  inset: 0;
  height: 100%;
}

body .quality-hero-image img {
  filter: saturate(.68) contrast(1.05) brightness(.83);
}

/* Numeric glyphs keep the weight of their role instead of becoming
   accidentally heavier than the surrounding copy. */
body .st12-number { font-weight: 400 !important; }
body .st12-number.is-bold-number { font-weight: 600 !important; }
body .project-specifications strong .st12-number,
body .metrics strong .st12-number {
  display: inline;
  margin: 0;
  font: inherit;
  line-height: inherit;
}

/* Full-screen project story experiment for SIBUR. */
body .project-timeline.is-cinematic {
  display: block;
  height: auto;
  margin-block: clamp(72px, 9vw, 150px);
}

body .project-timeline.is-cinematic .project-timeline-head {
  margin-bottom: clamp(42px, 6vw, 86px);
}

body .project-timeline.is-cinematic .project-timeline-viewport { display: none; }
body .project-timeline.is-cinematic .project-timeline-track {
  display: block;
  background: var(--emerald-950);
}

body .project-timeline.is-cinematic .project-timeline-track button {
  position: sticky;
  top: 0;
  display: block;
  width: 100vw;
  height: 100svh;
  min-height: 520px;
  margin: 0 0 22svh calc(50% - 50vw);
  padding: 0;
  overflow: hidden;
  border: 0;
  background: var(--emerald-950);
  pointer-events: none;
  isolation: isolate;
  opacity: .58;
  clip-path: inset(0);
  transform: scale(.965);
  transform-origin: center bottom;
  transition: opacity .7s ease, clip-path 1s cubic-bezier(.22, 1, .36, 1), transform 1s cubic-bezier(.22, 1, .36, 1);
}

body .project-timeline.is-cinematic .project-timeline-track button::after {
  content: "";
  position: absolute;
  z-index: 1;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(5, 29, 23, .85), transparent 55%, rgba(5, 29, 23, .38)),
    linear-gradient(0deg, rgba(5, 29, 23, .82), transparent 58%);
}

body .project-timeline.is-cinematic .project-timeline-track button::before {
  content: attr(data-caption);
  position: absolute;
  z-index: 2;
  left: clamp(24px, 5vw, 88px);
  bottom: clamp(110px, 15svh, 170px);
  width: min(780px, 68%);
  color: #fff;
  font-family: "ST12 Architectural", "Arial Narrow", sans-serif !important;
  font-size: clamp(30px, 3.5vw, 60px);
  font-weight: 400 !important;
  line-height: 1.02;
  letter-spacing: .01em;
  text-align: left;
  text-transform: uppercase;
  opacity: 0;
  transform: translateY(32px);
  transition: opacity .55s ease .18s, transform .8s cubic-bezier(.22, 1, .36, 1) .12s;
}

body .project-timeline.is-cinematic .project-timeline-track img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .9;
  transform: scale(1.09);
  transition: transform 1.25s cubic-bezier(.22, 1, .36, 1), opacity .7s ease;
}

body .project-timeline.is-cinematic .project-timeline-track button.is-visible {
  opacity: 1;
  clip-path: inset(0);
  transform: none;
}

body .project-timeline.is-cinematic .project-timeline-track button.is-visible::before {
  opacity: 1;
  transform: none;
}

body .project-timeline.is-cinematic .project-timeline-track button.is-visible img {
  opacity: 1;
  transform: scale(1);
}

@media (max-width: 640px) {
  body .quality-hero > div:first-child { width: 100%; min-height: 100svh; }
  body .quality-hero::after { background: linear-gradient(0deg, rgba(5, 29, 23, .9), rgba(5, 29, 23, .28) 76%, rgba(5, 29, 23, .56)); }
  body .project-timeline.is-cinematic .project-timeline-track button {
    top: 0;
    height: 100svh;
    min-height: 480px;
    margin-bottom: 16svh;
    margin-left: calc(50% - 50vw);
    clip-path: inset(0);
  }
  body .project-timeline.is-cinematic .project-timeline-track button::before {
    bottom: clamp(82px, 13svh, 120px);
    width: calc(100% - 48px);
  }
}

@media (prefers-reduced-motion: reduce) {
  body .project-timeline.is-cinematic .project-timeline-track button,
  body .project-timeline.is-cinematic .project-timeline-track button::before,
  body .project-timeline.is-cinematic .project-timeline-track img { transition: none; }
}

/* v5.59 — the classic project gallery keeps the full photograph, caption and
   filmstrip together. The frame reaches into the page margins to give wide
   construction photographs enough room without cropping. */
@media (min-width: 901px) {
  body .project-timeline:not(.is-narrative):not(.is-cinematic) {
    width: calc(100% + 9.2vw);
    height: clamp(650px, calc(100svh - 84px), 900px);
    margin-left: -4.6vw;
    grid-template-areas:
      "heading"
      "photo"
      "caption"
      "filmstrip";
    grid-template-rows: auto minmax(0, 1fr) auto 76px;
    gap: 10px;
  }

  body .project-timeline:not(.is-narrative):not(.is-cinematic) .project-timeline-head {
    grid-area: heading;
    padding-inline: 4.6vw;
  }

  body .project-timeline:not(.is-narrative):not(.is-cinematic) .project-timeline-viewport {
    grid-area: photo;
    background: var(--emerald-950);
  }

  body .project-timeline:not(.is-narrative):not(.is-cinematic) .project-timeline-viewport > img {
    object-fit: contain;
  }

  body .project-timeline:not(.is-narrative):not(.is-cinematic)::after {
    grid-area: caption;
    margin: 0 4.6vw;
    padding-block: 8px 3px;
  }

  body .project-timeline:not(.is-narrative):not(.is-cinematic) .project-timeline-track {
    grid-area: filmstrip;
    margin-inline: 4.6vw;
  }
}

/* v5.61 — MARCHI remains the display face; every other typographic role uses
   only the local Alumni Sans Regular and SemiBold files. */
:root {
  --font-display: "ST12 Alumni Sans", "Arial Narrow", sans-serif;
  --font-ui: "ST12 Alumni Sans", "Arial Narrow", sans-serif;
  --font-body: "ST12 Alumni Sans", "Arial Narrow", sans-serif;
}

html body,
html body * {
  font-family: "ST12 Alumni Sans", "Arial Narrow", sans-serif !important;
  font-style: normal !important;
  font-weight: 400 !important;
}

html body :where(
  strong,
  b,
  button,
  .button,
  .text-link,
  nav a,
  .filter,
  .eyebrow,
  .breadcrumbs,
  .page-intro-mark,
  .project-timeline-caption span
) {
  font-weight: 600 !important;
}

html body :where(
  h1,
  h1 *,
  h2,
  h2 *,
  h3,
  h3 *,
  .drawing-title,
  .drawing-title *,
  .metrics strong,
  .metrics strong *,
  .project-specifications strong,
  .project-specifications strong *,
  .company-proof strong,
  .company-proof strong *
) {
  font-family: "ST12 Architectural", "Arial Narrow", sans-serif !important;
  font-style: normal !important;
  font-weight: 400 !important;
}

html body .metric-symbol {
  font-family: "ST12 Alumni Sans", "Arial Narrow", sans-serif !important;
  font-weight: 400 !important;
}

@media (max-width: 900px) {
  body .project-timeline:not(.is-narrative):not(.is-cinematic) {
    height: min(760px, calc(100svh - 82px));
    grid-template-areas:
      "heading"
      "photo"
      "caption"
      "filmstrip";
    grid-template-rows: auto minmax(0, 1fr) auto 68px;
  }

  body .project-timeline:not(.is-narrative):not(.is-cinematic) .project-timeline-head { grid-area: heading; }
  body .project-timeline:not(.is-narrative):not(.is-cinematic) .project-timeline-viewport {
    grid-area: photo;
    background: var(--emerald-950);
  }
  body .project-timeline:not(.is-narrative):not(.is-cinematic) .project-timeline-viewport > img {
    object-fit: contain;
  }
  body .project-timeline:not(.is-narrative):not(.is-cinematic)::after { grid-area: caption; }
  body .project-timeline:not(.is-narrative):not(.is-cinematic) .project-timeline-track { grid-area: filmstrip; }
}

/* The SIBUR story now eases between sticky full-screen frames instead of
   changing state abruptly at the visibility threshold. */
body .project-timeline.is-cinematic .project-timeline-track button {
  margin-bottom: 12svh;
  opacity: .32;
  transform: scale(.985);
  transition:
    opacity 1.25s cubic-bezier(.22, 1, .36, 1),
    clip-path 1.55s cubic-bezier(.22, 1, .36, 1),
    transform 1.55s cubic-bezier(.22, 1, .36, 1);
}

body .project-timeline.is-cinematic .project-timeline-track button::before {
  transform: translateY(22px);
  transition:
    opacity .9s ease .18s,
    transform 1.25s cubic-bezier(.22, 1, .36, 1) .12s;
}

body .project-timeline.is-cinematic .project-timeline-track img {
  transform: scale(1.045);
  transition:
    transform 2s cubic-bezier(.22, 1, .36, 1),
    opacity 1.2s ease;
}

@media (prefers-reduced-motion: reduce) {
  body .project-timeline.is-cinematic .project-timeline-track button,
  body .project-timeline.is-cinematic .project-timeline-track button::before,
  body .project-timeline.is-cinematic .project-timeline-track img {
    transition: none;
  }
}

/* The filmstrip presentation is replaced by Mars' editorial photo story. */
html body .project-timeline.is-narrative {
  display: block;
  width: 100%;
  height: auto;
  margin: clamp(72px, 9vw, 150px) 0;
}
html body .project-timeline.is-narrative .project-timeline-viewport { display: none; }
html body .project-timeline.is-narrative .project-timeline-track {
  display: block;
  margin: 0;
  padding: 0;
  background: transparent;
}
html body .project-timeline.is-narrative .project-timeline-track button,
html body .project-timeline.is-narrative .project-timeline-track button:nth-child(even) {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(230px, 28%);
  align-items: stretch;
  width: min(100%, 1440px);
  height: auto;
  min-height: 0;
  margin: 0 auto clamp(68px, 10vw, 140px);
  padding: 0;
  overflow: visible;
  isolation: isolate;
  border: none;
  background: #e9e7df;
  clip-path: none;
  text-align: left;
  pointer-events: none;
  opacity: 1;
  transform: none;
}
html body .project-timeline.is-narrative .project-timeline-track button:nth-child(even) {
  grid-template-columns: minmax(230px, 28%) minmax(0, 1fr);
}
html body .project-timeline.is-narrative .project-timeline-track button::after { content: none; }
html body .project-timeline.is-narrative .project-timeline-track button::before {
  content: attr(data-caption);
  position: static;
  grid-column: 2;
  grid-row: 1;
  z-index: 1;
  display: flex;
  align-items: end;
  box-sizing: border-box;
  width: auto;
  min-width: 0;
  min-height: 100%;
  margin: 0;
  padding: clamp(24px, 3.2vw, 56px);
  border-left: 1px solid rgba(27, 65, 52, .16);
  color: #1a3524;
  background: #e9e7df;
  font-family: "ST12 Architectural", "Arial Narrow", sans-serif !important;
  font-size: clamp(26px, 2.6vw, 47px);
  font-weight: 400 !important;
  line-height: 1.06;
  letter-spacing: .01em;
  text-transform: uppercase;
  opacity: 1;
  transform: none;
}
html body .project-timeline.is-narrative .project-timeline-track button:nth-child(even)::before {
  grid-column: 1;
  grid-row: 1;
  border-left: 0;
  border-right: 1px solid rgba(27, 65, 52, .16);
}
html body .project-timeline.is-narrative .project-timeline-track img,
html body .project-timeline.is-narrative .project-timeline-track button.is-visible img {
  position: static;
  grid-column: 1;
  grid-row: 1;
  display: block;
  width: 100%;
  height: clamp(380px, 60svh, 730px);
  min-height: 0;
  object-fit: contain;
  background: #1a3524;
  opacity: 1;
  transform: none;
}
html body .project-timeline.is-narrative .project-timeline-track button:nth-child(even) img {
  grid-column: 2;
}
html body .project-timeline.is-narrative.is-ready .project-timeline-track button {
  opacity: 0;
  transform: translateY(42px);
  transition: opacity .75s ease, transform .9s cubic-bezier(.22,1,.36,1);
}
html body .project-timeline.is-narrative.is-ready .project-timeline-track button.is-visible {
  opacity: 1;
  transform: none;
}
html body .project-timeline.is-narrative.is-ready .project-timeline-track button::before {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .65s ease .22s, transform .85s cubic-bezier(.22,1,.36,1) .22s;
}
html body .project-timeline.is-narrative.is-ready .project-timeline-track button.is-visible::before {
  opacity: 1;
  transform: none;
}

/* Only the unpublished Huawei page remains hidden. */
body :is(.catalog-card, .catalog-feature, .projects-v4-card, .projects-v4-feature,
  .project-card, .combined-project-card):has(a[href^="/projects/huawei"]) {
  display: none !important;
}

@media (max-width: 800px) {
  html body .project-timeline.is-narrative .project-timeline-track button,
  html body .project-timeline.is-narrative .project-timeline-track button:nth-child(even) {
    display: flex;
    flex-direction: column;
    width: 100%;
    margin-bottom: 72px;
  }
  html body .project-timeline.is-narrative .project-timeline-track img,
  html body .project-timeline.is-narrative .project-timeline-track button:nth-child(even) img {
    width: 100%;
    height: auto;
    max-height: 68svh;
    min-height: 0;
    object-fit: contain;
    order: 0;
  }
  html body .project-timeline.is-narrative .project-timeline-track button::before,
  html body .project-timeline.is-narrative .project-timeline-track button:nth-child(even)::before {
    min-height: 0;
    padding: 22px 24px 27px;
    border: 0;
    order: 1;
    font-size: clamp(25px, 6vw, 39px);
  }
}
@media (prefers-reduced-motion: reduce) {
  html body .project-timeline.is-narrative.is-ready .project-timeline-track button,
  html body .project-timeline.is-narrative.is-ready .project-timeline-track button::before {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* Let the image define its own height: no colored gutters and no cropping. */
html body .project-timeline.is-narrative .project-timeline-track button,
html body .project-timeline.is-narrative .project-timeline-track button:nth-child(even) {
  grid-template-columns: minmax(0, 72%) minmax(0, 28%);
  align-items: stretch;
  background: transparent;
}
html body .project-timeline.is-narrative .project-timeline-track button:nth-child(even) {
  grid-template-columns: minmax(0, 28%) minmax(0, 72%);
}
html body .project-timeline.is-narrative .project-timeline-track button::before {
  content: none;
}
html body .project-timeline.is-narrative .project-timeline-track img,
html body .project-timeline.is-narrative .project-timeline-track button.is-visible img {
  width: 100%;
  height: auto;
  max-height: none;
  object-fit: contain;
  background: transparent;
}
html body .project-timeline.is-narrative .project-timeline-track .timeline-copy {
  box-sizing: border-box;
  grid-column: 2;
  grid-row: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-width: 0;
  height: 100%;
  padding: clamp(28px, 3vw, 52px);
  border-left: 1px solid rgba(27, 65, 52, .12);
  background: #f4f3ee;
  color: #1a3524;
}
html body .project-timeline.is-narrative .project-timeline-track button:nth-child(even) .timeline-copy {
  grid-column: 1;
  border-left: 0;
  border-right: 1px solid rgba(27, 65, 52, .12);
}
html body .project-timeline.is-narrative .timeline-copy-number {
  display: block;
  color: #6e806f;
  font-family: "ST12 Alumni Sans", "Arial Narrow", sans-serif;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: .16em;
}
html body .project-timeline.is-narrative .timeline-copy-content {
  display: flex;
  flex-direction: column;
  gap: clamp(18px, 2vw, 32px);
  padding-block: 32px;
}
html body .project-timeline.is-narrative .timeline-copy-heading {
  display: block;
  font-family: "ST12 Architectural", "Arial Narrow", sans-serif;
  font-size: clamp(27px, 2.5vw, 46px);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: .01em;
  text-transform: uppercase;
}
html body .project-timeline.is-narrative .timeline-copy-description {
  display: block;
  max-width: 27ch;
  color: #506259;
  font-family: "ST12 Alumni Sans", "Arial Narrow", sans-serif;
  font-size: clamp(19px, 1.35vw, 23px);
  font-weight: 400;
  line-height: 1.32;
}
html body .project-timeline.is-narrative.is-ready .project-timeline-track button .timeline-copy-number,
html body .project-timeline.is-narrative.is-ready .project-timeline-track button .timeline-copy-content {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .7s ease .24s, transform .9s cubic-bezier(.22,1,.36,1) .24s;
}
html body .project-timeline.is-narrative.is-ready .project-timeline-track button .timeline-copy-content {
  transition-delay: .38s;
}
html body .project-timeline.is-narrative.is-ready .project-timeline-track button.is-visible .timeline-copy-number,
html body .project-timeline.is-narrative.is-ready .project-timeline-track button.is-visible .timeline-copy-content {
  opacity: 1;
  transform: none;
}
@media (max-width: 800px) {
  html body .project-timeline.is-narrative .project-timeline-track button,
  html body .project-timeline.is-narrative .project-timeline-track button:nth-child(even) {
    display: flex;
    flex-direction: column;
  }
  html body .project-timeline.is-narrative .project-timeline-track img,
  html body .project-timeline.is-narrative .project-timeline-track button:nth-child(even) img {
    width: 100%;
    height: auto;
    max-height: none;
    object-fit: contain;
  }
  html body .project-timeline.is-narrative .project-timeline-track .timeline-copy,
  html body .project-timeline.is-narrative .project-timeline-track button:nth-child(even) .timeline-copy {
    width: 100%;
    min-height: 240px;
    padding: 24px;
    border: 0;
    order: 1;
  }
  html body .project-timeline.is-narrative .timeline-copy-content { padding-block: 30px 8px; }
}
@media (prefers-reduced-motion: reduce) {
  html body .project-timeline.is-narrative.is-ready .project-timeline-track button .timeline-copy-number,
  html body .project-timeline.is-narrative.is-ready .project-timeline-track button .timeline-copy-content {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* Keep the green photograph mat and warm-gray editorial panel from v5.62,
   but extend each complete slide to the viewport edges. */
html body .project-timeline.is-narrative .project-timeline-track button,
html body .project-timeline.is-narrative .project-timeline-track button:nth-child(even) {
  background: #e9e7df;
  width: 100vw;
  max-width: none;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
}
html body .project-timeline.is-narrative .project-timeline-track img,
html body .project-timeline.is-narrative .project-timeline-track button.is-visible img {
  height: clamp(380px, 60svh, 730px);
  max-height: none;
  object-fit: contain;
  background: #1a3524;
}
html body .project-timeline.is-narrative .project-timeline-track .timeline-copy,
html body .project-timeline.is-narrative .project-timeline-track button:nth-child(even) .timeline-copy {
  background: #e9e7df;
}
@media (max-width: 800px) {
  html body .project-timeline.is-narrative .project-timeline-track img,
  html body .project-timeline.is-narrative .project-timeline-track button:nth-child(even) img {
    height: auto;
    max-height: 68svh;
    background: #1a3524;
  }
}

/* Preserve the photo's displayed height, but size its column to the photo
   itself, so the gray text panel starts at the actual edge of the image. */
html body .project-timeline.is-narrative .project-timeline-track button,
html body .project-timeline.is-narrative .project-timeline-track button:nth-child(even) {
  --timeline-photo-height: clamp(380px, 60svh, 730px);
  --timeline-photo-ratio: 1.4;
  --timeline-photo-width: min(65vw, calc(var(--timeline-photo-height) * var(--timeline-photo-ratio)));
  --timeline-copy-width: clamp(300px, 28vw, 440px);
  width: min(100%, calc(var(--timeline-photo-width) + var(--timeline-copy-width)));
  max-width: 100%;
  grid-template-columns: minmax(0, var(--timeline-photo-width)) minmax(0, var(--timeline-copy-width));
  margin-inline: auto;
  background: transparent;
}
html body .project-timeline.is-narrative .project-timeline-track button:nth-child(even) {
  grid-template-columns: minmax(0, var(--timeline-copy-width)) minmax(0, var(--timeline-photo-width));
}
html body .project-timeline.is-narrative .project-timeline-track img,
html body .project-timeline.is-narrative .project-timeline-track button.is-visible img {
  width: 100%;
  height: var(--timeline-photo-height);
  max-height: none;
  object-fit: contain;
  background: transparent;
}
html body .project-timeline.is-narrative .project-timeline-track .timeline-copy,
html body .project-timeline.is-narrative .project-timeline-track button:nth-child(even) .timeline-copy {
  background: #e9e7df;
}
@media (min-width: 801px) and (max-width: 1100px) {
  html body .project-timeline.is-narrative .project-timeline-track button,
  html body .project-timeline.is-narrative .project-timeline-track button:nth-child(even) {
    --timeline-photo-height: clamp(330px, 48svh, 580px);
    --timeline-photo-width: min(57vw, calc(var(--timeline-photo-height) * var(--timeline-photo-ratio)));
    --timeline-copy-width: 260px;
  }
}
@media (max-width: 800px) {
  html body .project-timeline.is-narrative .project-timeline-track button,
  html body .project-timeline.is-narrative .project-timeline-track button:nth-child(even) {
    width: 100%;
    margin-inline: auto;
  }
  html body .project-timeline.is-narrative .project-timeline-track img,
  html body .project-timeline.is-narrative .project-timeline-track button:nth-child(even) img {
    width: 100%;
    height: auto;
    max-height: 68svh;
    object-fit: contain;
    background: transparent;
  }
}

/* Alternate full-size photo stories against the left and right viewport edges.
   Keep the editorial copy panel at its existing width and type sizes. */
@media (min-width: 801px) {
  html body .project-timeline.is-narrative .project-timeline-track button,
  html body .project-timeline.is-narrative .project-timeline-track button:nth-child(even) {
    --timeline-photo-height: clamp(490px, 75svh, 860px);
    --timeline-photo-width: min(
      72vw,
      calc(var(--timeline-photo-height) * var(--timeline-photo-ratio)),
      calc(100vw - var(--timeline-copy-width))
    );
    width: 100vw;
    max-width: none;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    justify-content: start;
  }
  html body .project-timeline.is-narrative .project-timeline-track button:nth-child(even) {
    justify-content: end;
  }
}
@media (min-width: 801px) and (max-width: 1100px) {
  html body .project-timeline.is-narrative .project-timeline-track button,
  html body .project-timeline.is-narrative .project-timeline-track button:nth-child(even) {
    --timeline-photo-height: clamp(430px, 62svh, 680px);
    --timeline-photo-width: min(
      68vw,
      calc(var(--timeline-photo-height) * var(--timeline-photo-ratio)),
      calc(100vw - var(--timeline-copy-width))
    );
  }
}

/* A wide photographic frame with a deliberate vertical crop. */
@media (min-width: 801px) {
  html body .project-timeline.is-narrative .project-timeline-track button,
  html body .project-timeline.is-narrative .project-timeline-track button:nth-child(even) {
    --timeline-photo-height: clamp(390px, 58svh, 650px);
    --timeline-photo-width: min(
      72vw,
      calc(var(--timeline-photo-height) * 1.9),
      calc(100vw - var(--timeline-copy-width))
    );
  }
}
html body .project-timeline.is-narrative .project-timeline-track img,
html body .project-timeline.is-narrative .project-timeline-track button.is-visible img {
  object-fit: cover;
  object-position: center var(--timeline-focus, 50%);
}
/* Keep the numeral unobtrusive at the top while centering title and body. */
html body .project-timeline.is-narrative .project-timeline-track .timeline-copy,
html body .project-timeline.is-narrative .project-timeline-track button:nth-child(even) .timeline-copy {
  position: relative;
  justify-content: center;
}
html body .project-timeline.is-narrative .timeline-copy-number {
  position: absolute;
  top: clamp(28px, 3vw, 52px);
  left: clamp(28px, 3vw, 52px);
}
html body .project-timeline.is-narrative .timeline-copy-content {
  padding-block: 0;
}
/* Curated focal points from the actual project images. */
body:has(.project-timeline) .project-timeline-track button { --timeline-focus: 50%; }
body .project-timeline-track button:has(img[src*="/obsidian/01.webp"]) { --timeline-focus: 64%; }
body .project-timeline-track button:has(img[src*="/obsidian/02.webp"]) { --timeline-focus: 57%; }
body .project-timeline-track button:has(img[src*="/obsidian/03.webp"]) { --timeline-focus: 49%; }
body .project-timeline-track button:has(img[src*="/obsidian/04.webp"]) { --timeline-focus: 55%; }
body .project-timeline-track button:has(img[src*="/altayskaya-school/01.webp"]) { --timeline-focus: 44%; }
body .project-timeline-track button:has(img[src*="/altayskaya-school/02.webp"]) { --timeline-focus: 56%; }
body .project-timeline-track button:has(img[src*="/altayskaya-school/03.webp"]) { --timeline-focus: 53%; }
body .project-timeline-track button:has(img[src*="/altayskaya-school/04.webp"]) { --timeline-focus: 49%; }
body .project-timeline-track button:has(img[src*="/altayskaya-school/05.webp"]) { --timeline-focus: 50%; }
body .project-timeline-track button:has(img[src*="/sibur-yakimanka/01.webp"]) { --timeline-focus: 59%; }
body .project-timeline-track button:has(img[src*="/sibur-yakimanka/02.webp"]) { --timeline-focus: 51%; }
body .project-timeline-track button:has(img[src*="/sibur-yakimanka/03.webp"]) { --timeline-focus: 46%; }
body .project-timeline-track button:has(img[src*="/polyclinic/01.webp"]) { --timeline-focus: 57%; }
body .project-timeline-track button:has(img[src*="/polyclinic/02.webp"]) { --timeline-focus: 52%; }
body .project-timeline-track button:has(img[src*="/polyclinic/03.webp"]) { --timeline-focus: 44%; }
body .project-timeline-track button:has(img[src*="/polyclinic/04.webp"]) { --timeline-focus: 48%; }
body .project-timeline-track button:has(img[src*="/polyclinic/05.webp"]) { --timeline-focus: 54%; }
body .project-timeline-track button:has(img[src*="/updated/image4.jpg"]) { --timeline-focus: 57%; }
body .project-timeline-track button:has(img[src*="/updated/image3.jpg"]) { --timeline-focus: 49%; }
body .project-timeline-track button:has(img[src*="/updated/image2.jpg"]) { --timeline-focus: 48%; }
body .project-timeline-track button:has(img[src*="/updated/image8.jpg"]) { --timeline-focus: 51%; }
body .project-timeline-track button:has(img[src*="/updated/image21.jpg"]) { --timeline-focus: 52%; }
body .project-timeline-track button:has(img[src*="/updated/image25.jpg"]) { --timeline-focus: 49%; }
body .project-timeline-track button:has(img[src*="/altayskaya-school.png"]) { --timeline-focus: 33%; }
@media (max-width: 800px) {
  html body .project-timeline.is-narrative .project-timeline-track img,
  html body .project-timeline.is-narrative .project-timeline-track button:nth-child(even) img {
    height: clamp(260px, 56vw, 480px);
    max-height: none;
    object-fit: cover;
  }
  html body .project-timeline.is-narrative .timeline-copy-number {
    top: 22px;
    left: 24px;
  }
  html body .project-timeline.is-narrative .timeline-copy-content {
    padding-top: 46px;
  }
}

/* Architectural lines, strokes and circular direction arrows. */
html body :is(.expanded-content, .combined-explorer, .competency-details, .supplier-layout) {
  --editorial-line: rgba(26, 53, 36, .25);
}
html body :is(.combined-heading, .competency-summary, .combined-projects-head, .projects-head) {
  position: relative;
}
html body :is(.combined-heading, .combined-projects-head, .projects-head)::before {
  content: "";
  position: absolute;
  top: -17px;
  left: 0;
  width: 48px;
  height: 2px;
  background: #d5a75a;
}
html body :is(.combined-project-card, .catalog-card:not(.combined-project-card)) {
  position: relative;
  border: 1px solid rgba(26, 53, 36, .22);
}
html body :is(.combined-project-card, .catalog-card:not(.combined-project-card))::before {
  content: "";
  position: absolute;
  z-index: 2;
  top: 15px;
  right: 15px;
  width: 34px;
  height: 34px;
  border-top: 1px solid rgba(26, 53, 36, .45);
  background: linear-gradient(45deg, transparent 48%, rgba(26, 53, 36, .45) 49% 51%, transparent 52%);
  pointer-events: none;
}
html body .home-page .expertise-item { border-block-end: 1px solid rgba(255, 255, 255, .3); }
html body .home-page .expertise-item::before {
  content: "";
  position: absolute;
  top: 14px;
  right: 70px;
  width: 35px;
  height: 35px;
  border-top: 1px solid rgba(255, 255, 255, .35);
  transform: rotate(45deg);
  opacity: .6;
  pointer-events: none;
}
html body .home-page .expertise-item { position: relative; }
/* Light construction-pencil marks rather than extra decorative numerals. */
html body .competency-summary::before {
  content: "";
  position: absolute;
  z-index: 0;
  left: 37%;
  top: 14px;
  width: min(26vw, 320px);
  height: 78%;
  border: 1px solid rgba(26, 53, 36, .13);
  border-radius: 60% 60% 0 0;
  background: repeating-linear-gradient(90deg, transparent 0 26px,
    rgba(26, 53, 36, .12) 27px, transparent 28px),
    linear-gradient(0deg, transparent 50%, rgba(26, 53, 36, .1) 50% 51%, transparent 51%);
  opacity: .42;
  transform: none;
  pointer-events: none;
}
/* The homepage's existing square project arrows intentionally stay square. */
html body a.project-open:not(.home-page .project-open):hover svg.arrow {
  transform: translateX(4px);
}
html body .home-page .project-open svg.arrow { border: 0; border-radius: 0; padding: 0; }
html body a.project-open:not(.home-page .project-open) {
  width: 48px;
  height: 48px;
  border: 1px solid #1a3524;
  border-radius: 50%;
  background: rgba(247, 246, 241, .92);
  color: #1a3524;
}
html body a.project-open:not(.home-page .project-open) svg.arrow {
  width: 20px;
  height: 20px;
  padding: 0;
  border: 0;
}

/* A small statement in the bottom-right of every available title hero. */
html body :is(.expanded-hero, .competencies-hero, .company-hero,
  .section-hero, .contacts-screen-intro, .home-page .hero) { position: relative; }
html body .hero-edge-note {
  position: absolute;
  z-index: 4;
  right: clamp(24px, 4.6vw, 88px);
  bottom: clamp(22px, 3vw, 50px);
  width: min(270px, 38%);
  margin: 0;
  padding-top: 9px;
  border-top: 1px solid currentColor;
  text-align: right;
  font-family: "ST12 Alumni Sans", "Arial Narrow", sans-serif;
  font-size: clamp(12px, .95vw, 15px);
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: .16em;
  color: #1a3524;
  pointer-events: none;
}
html body :is(.expanded-hero, .company-hero, .home-page .hero,
  .competencies-hero, .section-hero:not(.section-hero-light), .contacts-screen-intro) .hero-edge-note {
  color: #f6f3ea;
  text-shadow: 0 1px 12px rgba(0, 0, 0, .6);
}
html body .hero-edge-note.is-inline {
  position: static;
  width: min(270px, 60%);
  margin: 18px 0 0 auto;
  color: #1a3524;
}

/* A long, dark specification strip with the original site background. */
html body .project-sibur .project-specifications {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  width: 100%;
  box-sizing: border-box;
  padding: clamp(36px, 4vw, 72px) clamp(28px, 4vw, 72px);
  gap: 0;
  min-height: 175px;
  margin-block: 52px 60px;
  background: #1a3524;
  color: #fff;
}
html body .project-sibur .project-specifications > div { padding-inline: clamp(12px, 2.8vw, 48px); }
html body .project-sibur .project-specifications > div:first-child { padding-left: 0; }
html body .project-sibur .project-specifications > div + div {
  border-left: 1px solid rgba(255, 255, 255, .27);
}
html body .project-sibur .project-specifications strong {
  color: #d5a75a;
  font-size: clamp(38px, 4vw, 66px);
}
html body .project-sibur .project-specifications span { font-size: clamp(13px, 1vw, 17px); }

/* The introductory spread for every vertical project timeline. */
html body .project-timeline.is-narrative .project-timeline-head {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(260px, .75fr);
  grid-template-rows: auto auto;
  align-items: center;
  gap: 12px 5vw;
  isolation: isolate;
  min-height: 190px;
  box-sizing: border-box;
  margin: 0 0 clamp(34px, 6vw, 92px);
  padding: clamp(28px, 3vw, 54px) clamp(30px, 5vw, 94px);
  background: #f7f6f1;
  border-block: 1px solid rgba(26, 53, 36, .18);
}
html body .project-timeline.is-narrative .project-timeline-head::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0 36% 0 28%;
  background-image: var(--timeline-architecture);
  background-size: cover;
  background-position: center;
  opacity: .12;
  filter: grayscale(1);
  -webkit-mask-image: linear-gradient(90deg, transparent, black 25%, black 70%, transparent);
  mask-image: linear-gradient(90deg, transparent, black 25%, black 70%, transparent);
}
html body .project-timeline.is-narrative .timeline-intro-kicker {
  grid-column: 1;
  color: #718078;
  font-family: "ST12 Alumni Sans", "Arial Narrow", sans-serif;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .18em;
}
html body .project-timeline.is-narrative .timeline-intro-kicker::after {
  content: "";
  display: inline-block;
  width: 44px;
  height: 1px;
  margin-left: 16px;
  vertical-align: middle;
  background: #d5a75a;
}
html body .project-timeline.is-narrative .project-timeline-head h2 {
  grid-column: 1;
  grid-row: 2;
  margin: 0;
  font-size: clamp(46px, 5vw, 90px);
  line-height: 1;
}
html body .project-timeline.is-narrative .timeline-intro-note {
  grid-column: 2;
  grid-row: 1 / span 2;
  max-width: 36ch;
  margin: 0;
  padding-left: clamp(20px, 3vw, 50px);
  border-left: 1px solid rgba(26, 53, 36, .23);
  color: #41594f;
  font-family: "ST12 Alumni Sans", "Arial Narrow", sans-serif;
  font-size: clamp(20px, 1.6vw, 26px);
  line-height: 1.32;
}

/* Slim outlined stage rails and a restrained drafted frame. No second numeral. */
@media (min-width: 801px) {
  html body .project-timeline.is-narrative .project-timeline-track button,
  html body .project-timeline.is-narrative .project-timeline-track button:nth-child(even) {
    --timeline-rail-width: 74px;
    --timeline-photo-width: min(67vw, calc(var(--timeline-photo-height) * 1.9),
      calc(100vw - var(--timeline-copy-width) - var(--timeline-rail-width)));
    margin-bottom: clamp(24px, 3.5vw, 60px);
    border-block: 1px solid rgba(26, 53, 36, .2);
  }
  html body .project-timeline.is-narrative .project-timeline-track button {
    grid-template-columns: minmax(0, var(--timeline-photo-width))
      minmax(0, var(--timeline-copy-width)) var(--timeline-rail-width);
  }
  html body .project-timeline.is-narrative .project-timeline-track button:nth-child(even) {
    grid-template-columns: minmax(0, var(--timeline-copy-width))
      minmax(0, var(--timeline-photo-width)) var(--timeline-rail-width);
  }
  html body .project-timeline.is-narrative .project-timeline-track button::after,
  html body .project-timeline.is-narrative .project-timeline-track button:nth-child(even)::after {
    content: attr(data-stage-name);
    position: static;
    box-sizing: border-box;
    grid-column: 3;
    grid-row: 1;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    width: var(--timeline-rail-width);
    height: 100%;
    padding: 20px 24px;
    border: 1px solid rgba(26, 53, 36, .22);
    border-left: 0;
    color: #667870;
    background: linear-gradient(130deg, transparent 61%, rgba(26, 53, 36, .08) 61% 62%, transparent 62%), #f7f6f1;
    font-family: "ST12 Alumni Sans", "Arial Narrow", sans-serif;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: .2em;
    writing-mode: vertical-rl;
    text-orientation: mixed;
    opacity: 1;
    transform: none;
  }
}
html body .project-timeline.is-narrative .project-timeline-track .timeline-copy {
  border-block: 1px solid rgba(26, 53, 36, .18);
}
html body .project-timeline.is-narrative .timeline-copy-content::after {
  content: "";
  display: block;
  width: min(100%, 180px);
  height: 1px;
  margin-top: 3px;
  background: linear-gradient(90deg, #d5a75a 0 42px, rgba(26, 53, 36, .22) 42px);
}

/* Remove the old blank band between the portfolio introduction and projects. */
html body .combined-explorer .competency-summary {
  min-height: 0;
  margin-top: 32px;
  padding-block: 34px;
}
html body .combined-explorer .combined-projects-head { margin-top: 24px; }

/* Subcontractor brief: expand in place, with a different on-site photograph. */
html body .supplier-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(180px, .64fr) minmax(240px, .8fr);
  gap: 0;
  align-items: stretch;
  margin-block: clamp(30px, 5vw, 86px);
  border-block: 1px solid var(--editorial-line);
}
html body .supplier-layout > div {
  box-sizing: border-box;
  padding: clamp(24px, 3vw, 48px) clamp(22px, 3vw, 54px) clamp(20px, 3vw, 48px) 0;
}
html body .supplier-layout > div h2 { margin: 0 0 24px; }
html body .supplier-layout > div { counter-reset: supplier-stage; }
html body .supplier-layout details {
  counter-increment: supplier-stage;
  padding: 0;
  border-top: 1px solid var(--editorial-line);
}
html body .supplier-layout details:last-child { border-bottom: 1px solid var(--editorial-line); }
html body .supplier-layout summary {
  position: relative;
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr) 44px;
  align-items: center;
  gap: 4px 12px;
  min-height: 100px;
  padding: 14px 0;
  list-style: none;
  font-family: "ST12 Alumni Sans", "Arial Narrow", sans-serif;
  font-size: clamp(20px, 1.7vw, 29px);
  font-weight: 600;
}
html body .supplier-layout summary::-webkit-details-marker { display: none; }
html body .supplier-layout summary::before {
  content: counter(supplier-stage, decimal-leading-zero);
  grid-column: 1;
  grid-row: 1 / span 2;
  color: #1a3524;
  font-family: "ST12 Architectural", "Arial Narrow", sans-serif;
  font-size: clamp(38px, 3.2vw, 56px);
  font-weight: 400;
}
html body .supplier-layout summary::after {
  content: "→";
  grid-column: 3;
  grid-row: 1 / span 2;
  display: grid;
  place-items: center;
  width: 39px;
  height: 39px;
  border: 0;
  border-radius: 0;
  font-size: 28px;
  font-weight: 400;
  transition: transform .25s ease, background .25s ease;
}
html body .supplier-layout details[open] summary::after { transform: translateX(5px); color: #a77a26; }
html body .supplier-layout summary:hover::after { transform: translateX(5px); }
html body .supplier-layout .supplier-teaser {
  display: block;
  grid-column: 2;
  grid-row: 2;
  color: #667870;
  font-size: clamp(15px, 1.15vw, 19px);
  font-weight: 400;
  line-height: 1.3;
}
html body .supplier-layout details > p {
  margin: 0 40px 23px 66px;
  max-width: 48ch;
  font-size: clamp(17px, 1.2vw, 20px);
  line-height: 1.45;
}
html body .supplier-editorial-photo {
  position: relative;
  min-height: 510px;
  margin: 0;
  overflow: hidden;
}
html body .supplier-editorial-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 49% center;
}
html body .supplier-layout aside {
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-end;
  gap: 24px;
  margin: 0;
  padding: clamp(28px, 3.2vw, 60px);
  background: #0d4938;
  box-shadow: 50vw 0 0 #0d4938;
  color: #fff;
}
html body .supplier-layout aside h2 {
  max-width: 9ch;
  margin: 0;
  font-size: clamp(39px, 3.7vw, 70px);
  line-height: 1.02;
}
html body .supplier-layout aside p {
  max-width: 30ch;
  margin: 0;
  font-size: clamp(18px, 1.35vw, 23px);
  line-height: 1.32;
}
html body .supplier-layout aside .button { margin-top: 8px; }
html body .supplier-layout aside .button::after {
  content: "→";
  display: inline-grid;
  place-items: center;
  width: 35px;
  height: 35px;
  border: 1px solid currentColor;
  border-radius: 50%;
  font-family: "ST12 Alumni Sans", sans-serif;
  font-size: 24px;
  font-weight: 400;
}

@media (max-width: 800px) {
  html body .hero-edge-note { width: min(215px, 55%); bottom: 18px; right: 22px; }
  html body .project-sibur .project-specifications {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 26px;
  }
  html body .project-sibur .project-specifications > div,
  html body .project-sibur .project-specifications > div:first-child {
    padding: 0 0 18px;
    border-left: 0;
    border-bottom: 1px solid rgba(255, 255, 255, .26);
  }
  html body .project-sibur .project-specifications > div:last-child { border-bottom: 0; padding-bottom: 0; }
  html body .project-timeline.is-narrative .project-timeline-head {
    grid-template-columns: 1fr;
    gap: 18px;
    padding: 28px 24px;
  }
  html body .project-timeline.is-narrative .project-timeline-head::before { inset: 0; }
  html body .project-timeline.is-narrative .project-timeline-head h2 { grid-row: 2; }
  html body .project-timeline.is-narrative .timeline-intro-note {
    grid-column: 1;
    grid-row: 3;
    padding-left: 18px;
  }
  html body .supplier-layout { grid-template-columns: 1fr; }
  html body .supplier-layout > div { padding: 22px; }
  html body .supplier-editorial-photo { min-height: 280px; max-height: 410px; }
  html body .supplier-layout aside { min-height: 330px; }
  html body .supplier-layout aside h2 { max-width: none; }
}
@media (prefers-reduced-motion: reduce) {
  html body .supplier-layout summary::after,
  html body a svg.arrow { transition: none; }
}

/* Figure strips retain the original green while letting the actual building
   appear through it. The rules apply to every project with supplied figures. */
html body .project-specifications,
html body .project-sibur .project-specifications {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(175px, 1fr));
  align-items: center;
  width: 100vw;
  max-width: none;
  min-height: 190px;
  box-sizing: border-box;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  gap: 0;
  padding: 36px clamp(45px, 7vw, 150px);
  background: linear-gradient(90deg, rgba(22, 55, 43, .92), rgba(22, 55, 43, .79)),
    var(--project-figure-photo, none) center 48% / cover, #1a3524;
  color: #f8f6ee;
}
html body .project-specifications > div,
html body .project-sibur .project-specifications > div {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 95px;
  padding: 8px 24px;
  text-align: center;
}
html body .project-specifications > div + div,
html body .project-sibur .project-specifications > div + div {
  border-left: 1px solid rgba(255, 255, 255, .46);
}
html body .project-specifications strong,
html body .project-sibur .project-specifications strong { color: #f8f6ee; }

/* Each stage occupies the same horizontal three-column frame. */
@media (min-width: 801px) {
  html body .project-timeline.is-narrative .project-timeline-track button,
  html body .project-timeline.is-narrative .project-timeline-track button:nth-child(even) {
    --timeline-rail-width: clamp(72px, 6vw, 110px);
    --timeline-copy-width: clamp(300px, 27vw, 490px);
    --timeline-photo-width: calc(100vw - var(--timeline-copy-width) - var(--timeline-rail-width));
    display: grid;
    width: 100vw;
    max-width: none;
    grid-template-columns: minmax(0, var(--timeline-photo-width))
      minmax(0, var(--timeline-copy-width)) var(--timeline-rail-width);
    justify-content: start;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
  }
  html body .project-timeline.is-narrative .project-timeline-track button > img,
  html body .project-timeline.is-narrative .project-timeline-track button:nth-child(even) > img {
    grid-column: 1;
    grid-row: 1;
  }
  html body .project-timeline.is-narrative .project-timeline-track button > .timeline-copy,
  html body .project-timeline.is-narrative .project-timeline-track button:nth-child(even) > .timeline-copy {
    grid-column: 2;
    grid-row: 1;
  }
  html body .project-timeline.is-narrative .project-timeline-track button::after,
  html body .project-timeline.is-narrative .project-timeline-track button:nth-child(even)::after {
    grid-column: 3;
    border-left: 1px solid rgba(26, 53, 36, .28);
    background: linear-gradient(135deg, transparent 25%, rgba(26,53,36,.23) 25.3%, transparent 25.8%),
      linear-gradient(45deg, transparent 25%, rgba(26,53,36,.15) 25.3%, transparent 25.8%),
      repeating-linear-gradient(0deg, transparent 0 24px, rgba(26,53,36,.11) 24px 25px),
      #f1efe7;
    box-shadow: inset 11px 0 0 #e9e7df, inset 12px 0 0 rgba(26,53,36,.25),
      inset -9px 0 0 #e9e7df, inset -10px 0 0 rgba(26,53,36,.25);
  }
}

/* Sketch backgrounds live behind the card's text, never over it. */
html body .competency-tabs button { position: relative; isolation: isolate; overflow: hidden; }
html body .competency-tabs button::before {
  content: "";
  position: absolute;
  z-index: 0;
  inset: 0;
  background: linear-gradient(90deg, rgba(247,246,241,.96), rgba(247,246,241,.72)),
    url('/images/projects/updated/image5.jpg') center / cover;
  opacity: .45;
  filter: grayscale(1);
  pointer-events: none;
}
html body .competency-tabs button > * { position: relative; z-index: 1; }
html body .competency-tabs button:nth-child(2)::before {
  background-image: linear-gradient(90deg, rgba(247,246,241,.96), rgba(247,246,241,.72)), url('/images/projects/updated/image24.jpg');
}
html body .competency-tabs button:nth-child(3)::before {
  background-image: linear-gradient(90deg, rgba(247,246,241,.96), rgba(247,246,241,.72)), url('/images/projects/updated/image1.jpg');
}
html body .competency-tabs button:nth-child(4)::before {
  background-image: linear-gradient(90deg, rgba(247,246,241,.96), rgba(247,246,241,.72)), url('/images/projects/updated/image12.jpg');
}
html body .competency-tabs button:nth-child(5)::before {
  background-image: linear-gradient(90deg, rgba(247,246,241,.96), rgba(247,246,241,.72)), url('/images/projects/updated/image30.jpg');
}
html body .home-page .expertise-item {
  position: relative;
  isolation: isolate;
  overflow: hidden;
}
html body .home-page .expertise-item::after {
  content: "";
  position: absolute;
  z-index: 0;
  inset: 0;
  background: linear-gradient(90deg, rgba(26,53,36,.93), rgba(26,53,36,.69)),
    url('/images/projects/updated/image5.jpg') center / cover;
  opacity: .58;
  filter: grayscale(.8);
  pointer-events: none;
}
html body .home-page .expertise-item > * { position: relative; z-index: 1; }
html body .home-page .expertise-item:nth-child(2)::after {
  background-image: linear-gradient(90deg, rgba(26,53,36,.93), rgba(26,53,36,.69)), url('/images/projects/updated/image24.jpg');
}
html body .home-page .expertise-item:nth-child(3)::after {
  background-image: linear-gradient(90deg, rgba(26,53,36,.93), rgba(26,53,36,.69)), url('/images/projects/updated/image1.jpg');
}
html body .home-page .expertise-item:nth-child(4)::after {
  background-image: linear-gradient(90deg, rgba(26,53,36,.93), rgba(26,53,36,.69)), url('/images/projects/updated/image12.jpg');
}
html body .home-page .expertise-item:nth-child(5)::after {
  background-image: linear-gradient(90deg, rgba(26,53,36,.93), rgba(26,53,36,.69)), url('/images/projects/updated/image30.jpg');
}

/* Disclosure arrow points down only while open. The body opens softly. */
html body .supplier-layout details summary::after,
html body .supplier-layout details[open] summary::after {
  transition: transform .34s cubic-bezier(.2,.8,.2,1), color .34s;
}
html body .supplier-layout details[open] summary::after { transform: rotate(90deg); }
html body .supplier-layout details[open] summary:hover::after { transform: rotate(90deg); }
html body .supplier-layout details { interpolate-size: allow-keywords; }
html body .supplier-layout details::details-content {
  block-size: 0;
  overflow: hidden;
  opacity: 0;
  transition: block-size .42s ease, opacity .35s ease, content-visibility .42s;
  transition-behavior: allow-discrete;
}
html body .supplier-layout details[open]::details-content { block-size: auto; opacity: 1; }
html body .supplier-layout aside {
  justify-content: flex-end;
  padding-right: clamp(22px, 3vw, 56px);
  box-shadow: 0 0 0 0 #0d4938;
  position: relative;
}
html body .supplier-layout aside::before {
  content: "";
  position: absolute;
  z-index: 0;
  left: 100%;
  width: calc(4.6vw + 2px);
  top: 0;
  bottom: 0;
  background: #0d4938;
  pointer-events: none;
}
html body .supplier-layout aside h2 { max-width: none; font-size: clamp(35px, 3vw, 57px); }

/* The note belongs below the main introduction, not across its text. */
html body .contacts-screen-intro .hero-edge-note {
  position: static;
  display: block;
  width: fit-content;
  max-width: 35ch;
  margin: 20px 0 0 auto;
  padding-top: 10px;
  font-size: 12px;
  text-align: right;
}

@media (max-width: 800px) {
  html body .project-specifications,
  html body .project-sibur .project-specifications {
    grid-template-columns: 1fr;
    padding: 28px 24px;
  }
  html body .project-specifications > div + div,
  html body .project-sibur .project-specifications > div + div {
    border-left: 0;
    border-top: 1px solid rgba(255,255,255,.35);
  }
  html body .supplier-layout aside::before { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  html body .supplier-layout details::details-content,
  html body .supplier-layout details summary::after { transition: none; }
}

/* No photographic fills behind links or filter buttons. */
html body .competency-tabs button::before,
html body .home-page .expertise-item::after { content: none !important; }

/* Stage 2 follows exactly the same image-left / copy-right layout as stage 1.
   The vertical architectural marker remains at the far right. */
@media (min-width: 801px) {
  html body .project-timeline.is-narrative .project-timeline-track button:nth-child(even) {
    grid-template-columns: minmax(0, var(--timeline-photo-width))
      minmax(0, var(--timeline-copy-width)) var(--timeline-rail-width);
    justify-content: start;
  }
  html body .project-timeline.is-narrative .project-timeline-track button:nth-child(even) > img {
    grid-column: 1;
  }
  html body .project-timeline.is-narrative .project-timeline-track button:nth-child(even) > .timeline-copy {
    grid-column: 2;
    border-left: 1px solid rgba(27,65,52,.12);
    border-right: 0;
  }
  html body .project-timeline.is-narrative .project-timeline-track button:nth-child(even)::after {
    grid-column: 3;
  }
}

/* The disclosures change height; adjacent photo and contact panel do not. */
html body .supplier-layout { align-items: start; }
html body .supplier-editorial-photo,
html body .supplier-layout aside {
  height: clamp(510px, 72svh, 760px);
  min-height: 0;
  align-self: start;
}
html body .supplier-editorial-photo img { height: 100%; }
@media (max-width: 800px) {
  html body .supplier-editorial-photo { height: 340px; }
  html body .supplier-layout aside { height: auto; min-height: 330px; }
}
/* Never reveal the exported legacy gallery before the current story mounts. */
html body .project-timeline:not(.is-narrative) { visibility: hidden; }
html body .competencies-page .competency-summary a[href^="/competencies/"] { display: none; }

/* Photo and text alternate; the thin drafted rail stays at the right edge. */
@media (min-width: 801px) {
  html body .project-timeline.is-narrative .project-timeline-track button:nth-child(even) {
    grid-template-columns: minmax(0, var(--timeline-copy-width))
      minmax(0, var(--timeline-photo-width)) var(--timeline-rail-width);
    justify-content: start;
  }
  html body .project-timeline.is-narrative .project-timeline-track button:nth-child(even) > img {
    grid-column: 2;
  }
  html body .project-timeline.is-narrative .project-timeline-track button:nth-child(even) > .timeline-copy {
    grid-column: 1;
    border-right: 1px solid rgba(27,65,52,.12);
    border-left: 0;
  }
  html body .project-timeline.is-narrative .project-timeline-track button:nth-child(even)::after {
    grid-column: 3;
  }
}

/* Image is on the button itself: a pseudo-element previously sat behind its
   opaque fill, which is why the cards looked blank. No decorative numerals. */
html body .competency-tabs button:not(.all-projects) {
  background-color: #f8f7f1;
  background-image: linear-gradient(90deg,
      rgba(250,248,241,.98) 0%, rgba(250,248,241,.93) 34%,
      rgba(250,248,241,.52) 69%, rgba(250,248,241,.18) 100%),
    url('/images/abstract/capital-construction.png');
  background-position: center, right center;
  background-repeat: no-repeat;
  background-size: cover;
}
html body .competency-tabs button:nth-child(2) {
  background-image: linear-gradient(90deg, rgba(250,248,241,.98) 0%,
      rgba(250,248,241,.93) 34%, rgba(250,248,241,.52) 69%, rgba(250,248,241,.18) 100%),
    url('/images/abstract/capital-repair.png');
}
html body .competency-tabs button:nth-child(3) {
  background-image: linear-gradient(90deg, rgba(250,248,241,.98) 0%,
      rgba(250,248,241,.93) 34%, rgba(250,248,241,.52) 69%, rgba(250,248,241,.18) 100%),
    url('/images/abstract/restoration.png');
}
html body .competency-tabs button:nth-child(4) {
  background-image: linear-gradient(90deg, rgba(250,248,241,.98) 0%,
      rgba(250,248,241,.93) 34%, rgba(250,248,241,.52) 69%, rgba(250,248,241,.18) 100%),
    url('/images/abstract/landscaping.png');
}
html body .competency-tabs button:nth-child(5) {
  background-image: linear-gradient(90deg, rgba(250,248,241,.98) 0%,
      rgba(250,248,241,.93) 34%, rgba(250,248,241,.52) 69%, rgba(250,248,241,.18) 100%),
    url('/images/abstract/fit-out.png');
}
html body .competency-tabs button::before { content: none !important; }
html body .competency-tabs button.all-projects { background-image: none; }

/* Gold "all projects" card: an airy architectural study instead of a blank fill. */
html body .competency-tabs button.all-projects {
  background-image: url('/images/abstract/all-projects-drawing.svg');
  background-position: right center;
  background-repeat: no-repeat;
  background-size: cover;
}

/* Selected photo cards stay pale, so their labels must stay dark. */
html body .competency-tabs button.active:not(.all-projects),
html body .competency-tabs button.active:not(.all-projects) strong {
  color: #193b31 !important;
}

/* Inset frame and gold drafting rule identify the selected direction. */
html body .competency-tabs button:focus-visible {
  outline: 3px solid #193b31;
  outline-offset: -6px;
}


/* Выбранная карточка — без золотой полоски */
html body .competency-tabs button.active:not(.all-projects) {
  box-shadow: inset 0 0 0 2px #193b31;
}

/* При выборе «Все проекты» не показываем описание направления ниже */
html body .combined-explorer:has(.competency-tabs .all-projects.active)
:is(.competency-summary, .competency-details) {
  display: none;
}

/* Direction cards read as short editorial introductions, aligned to the left. */
html body .competency-tabs button {
  min-height: 180px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 11px;
  padding: 27px 36px;
  text-align: left;
}
html body .competency-tabs button strong {
  display: block;
  max-width: min(100%, 400px);
  line-height: 1.03;
  text-align: left;
}
html body .competency-tabs .competency-card-description {
  display: block;
  max-width: 270px;
  font-family: 'ST12 Alumni Sans', sans-serif;
  font-size: clamp(16px, 1.12vw, 19px);
  font-weight: 400;
  line-height: 1.23;
  color: #52625c;
  text-wrap: pretty;
}
html body .competency-tabs button.active .competency-card-description {
  color: #304c40;
}
html body .competency-tabs button.all-projects .competency-card-description {
  color: #304238;
}
@media (max-width: 640px) {
  html body .competency-tabs button {
    min-height: 132px;
    padding: 22px 24px;
  }
}

