:root {
  --amg-accent: #c99664;
  --amg-accent-dark: #9f6d3e;
  --amg-charcoal: #171717;
  --amg-ink: #242424;
  --amg-muted: #706d68;
  --amg-paper: #fbfaf7;
  --amg-line: rgba(23, 23, 23, 0.14);
  --page-w: 210mm;
  --page-h: 297mm;
  --page-screen-w: min(420px, calc(100vw - 28px));
  --toolbar-h: 66px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  color: var(--amg-ink);
  background: #e9e7e2;
  font-family: "Cairo", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

button, input, textarea, select { font: inherit; }
a { color: inherit; text-decoration: none; }

.viewer-toolbar {
  position: sticky;
  top: 0;
  z-index: 50;
  min-height: var(--toolbar-h);
  padding: 10px clamp(14px, 3vw, 32px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  background: rgba(23, 23, 23, 0.97);
  color: #fff;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  backdrop-filter: blur(14px);
}

.viewer-brand, .viewer-actions, .toolbar-button {
  display: inline-flex;
  align-items: center;
}

.viewer-brand { gap: 12px; font-size: 0.8rem; font-weight: 700; letter-spacing: 0.05em; }
.viewer-brand-mark { color: var(--amg-accent); font-size: 1.2rem; font-weight: 800; letter-spacing: 0.02em; }
.viewer-actions { justify-content: flex-end; gap: 8px; }

.toolbar-button, .language-button {
  min-height: 38px;
  border: 1px solid rgba(255,255,255,0.18);
  background: transparent;
  color: #fff;
  padding: 0 12px;
  cursor: pointer;
  transition: 180ms ease;
}

.toolbar-button { gap: 7px; font-size: 0.72rem; font-weight: 700; }
.toolbar-button:hover, .language-button:hover { border-color: var(--amg-accent); color: var(--amg-accent); }
.toolbar-button.is-disabled { opacity: 0.38; cursor: not-allowed; pointer-events: none; }
.button-icon { color: var(--amg-accent); font-weight: 800; }
.language-button { width: 42px; padding: 0; font-weight: 800; }

.preview-banner {
  position: sticky;
  top: var(--toolbar-h);
  z-index: 45;
  padding: 8px 18px;
  text-align: center;
  background: #fff2cf;
  border-bottom: 1px solid #d8ba6b;
  color: #5c4712;
  font-size: 0.78rem;
}
.preview-banner strong { margin-inline-end: 8px; }
.preview-banner.is-review { color: #214c3c; background: #e5f1eb; border-bottom-color: #87ad9c; }

.profile-shell {
  width: 100%;
  padding: clamp(22px, 5vw, 64px) 14px 80px;
  overflow-x: clip;
}

.loading-state, .unpublished-state {
  min-height: calc(100vh - 160px);
  display: grid;
  place-content: center;
  justify-items: center;
  text-align: center;
  color: var(--amg-muted);
}
.loading-mark { color: var(--amg-accent); font-size: 2.2rem; font-weight: 800; }

.spread {
  width: fit-content;
  max-width: 100%;
  margin: 0 auto clamp(24px, 4vw, 48px);
  display: grid;
  grid-template-columns: repeat(2, var(--page-screen-w));
  align-items: stretch;
  filter: drop-shadow(0 22px 34px rgba(0,0,0,0.18));
}

.spread.is-cover-spread { grid-template-columns: var(--page-screen-w); }
.spread.is-cover-spread .profile-page { box-shadow: 0 22px 34px rgba(0,0,0,0.18); }
.spread .profile-page + .profile-page { border-inline-start: 1px solid rgba(0,0,0,0.2); }

/* Stage 8.7 · interactive book viewer */
.book-stage {
  position: relative;
  width: min(calc(var(--page-screen-w) * 2), 100%);
  min-height: calc(var(--page-screen-w) * 1.4142857);
  margin: 0 auto;
  perspective: 2400px;
  perspective-origin: 50% 42%;
  touch-action: pan-y;
  user-select: none;
}

.book-stage > .spread {
  display: none;
  margin: 0 auto;
}

.book-stage > .spread.is-active { display: grid; }

.book-stage > .spread.is-book-ready,
.book-stage > .spread.is-book-underlay {
  position: absolute;
  top: 0;
  left: 50%;
  display: grid;
  margin: 0;
  transform: translateX(-50%);
}

.book-stage > .spread.is-book-ready {
  visibility: hidden;
  pointer-events: none;
}

.book-stage > .spread.is-book-underlay { z-index: 1; }
.book-stage > .spread.is-book-overlay { position: relative; z-index: 2; }
.book-stage .profile-page.is-book-turn-source { visibility: hidden; }

.book-stage::after {
  content: "";
  position: absolute;
  z-index: -1;
  right: 8%;
  bottom: -13px;
  left: 8%;
  height: 24px;
  border-radius: 50%;
  background: rgba(20,20,20,.2);
  filter: blur(13px);
  pointer-events: none;
}

.book-controls {
  width: min(720px, calc(100% - 20px));
  margin: clamp(24px,4vw,38px) auto 0;
  display: grid;
  gap: 14px;
}

.book-primary-controls {
  display: grid;
  grid-template-columns: minmax(110px,1fr) minmax(180px,1.4fr) minmax(110px,1fr);
  align-items: center;
  gap: 12px;
}

.book-control {
  min-height: 46px;
  padding: 0 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: #fff;
  background: var(--amg-charcoal);
  border: 1px solid var(--amg-charcoal);
  border-radius: 2px;
  font-size: .76rem;
  font-weight: 700;
  cursor: pointer;
  transition: color 180ms ease, background 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.book-control:hover:not(:disabled), .book-control:focus-visible {
  color: var(--amg-charcoal);
  background: #fff;
  border-color: var(--amg-accent);
  transform: translateY(-1px);
}

.book-control:disabled { opacity: .32; cursor: not-allowed; }
.book-control-icon { color: var(--amg-accent); font-size: 1.35rem; line-height: 1; }
.book-position { display: grid; justify-items: center; gap: 3px; color: var(--amg-muted); text-align: center; }
.book-position strong { color: var(--amg-charcoal); direction: ltr; unicode-bidi: isolate; font-size: .88rem; letter-spacing: .08em; }
.book-position span { font-size: .66rem; }

.book-quick-nav {
  display: grid;
  grid-template-columns: 42px minmax(0,1fr) 42px;
  align-items: end;
  gap: 10px;
  padding: 10px 12px 9px;
  background: rgba(255,255,255,.68);
  border: 1px solid rgba(23,23,23,.12);
  box-shadow: 0 8px 24px rgba(23,23,23,.06);
  backdrop-filter: blur(8px);
}

.book-edge-control {
  width: 42px;
  height: 38px;
  padding: 0;
  display: grid;
  place-items: center;
  color: var(--amg-charcoal);
  background: transparent;
  border: 1px solid rgba(23,23,23,.22);
  font-weight: 800;
  cursor: pointer;
  transition: 160ms ease;
}

.book-edge-control:hover:not(:disabled), .book-edge-control:focus-visible { color: #fff; background: var(--amg-charcoal); border-color: var(--amg-charcoal); }
.book-edge-control:disabled { opacity: .28; cursor: not-allowed; }
.book-scrubber { min-width: 0; display: grid; gap: 5px; }
.book-scrubber output { overflow: hidden; color: var(--amg-charcoal); font-size: .7rem; font-weight: 700; line-height: 1.35; text-align: center; text-overflow: ellipsis; white-space: nowrap; }
.book-scrubber input {
  --book-progress: 0%;
  width: 100%;
  height: 18px;
  margin: 0;
  appearance: none;
  -webkit-appearance: none;
  background: linear-gradient(to right,var(--amg-accent) 0 var(--book-progress),rgba(23,23,23,.16) var(--book-progress) 100%) center / 100% 4px no-repeat;
  cursor: pointer;
}
[dir="rtl"] .book-scrubber input { background-image: linear-gradient(to left,var(--amg-accent) 0 var(--book-progress),rgba(23,23,23,.16) var(--book-progress) 100%); }
.book-scrubber input:disabled { opacity: .42; cursor: wait; }
.book-scrubber input::-webkit-slider-thumb { width: 16px; height: 16px; appearance: none; -webkit-appearance: none; border: 3px solid #fff; border-radius: 50%; background: var(--amg-charcoal); box-shadow: 0 0 0 1px var(--amg-accent),0 3px 9px rgba(23,23,23,.2); }
.book-scrubber input::-moz-range-thumb { width: 12px; height: 12px; border: 3px solid #fff; border-radius: 50%; background: var(--amg-charcoal); box-shadow: 0 0 0 1px var(--amg-accent),0 3px 9px rgba(23,23,23,.2); }
.book-scrubber-scale { display: flex; justify-content: space-between; color: var(--amg-muted); font-size: .56rem; letter-spacing: .08em; }

.book-turn-layer {
  position: absolute;
  z-index: 30;
  top: 0;
  left: 0;
  width: calc(var(--page-screen-w) * 2);
  height: calc(var(--page-screen-w) * 1.4142857);
  direction: ltr;
  perspective: 2400px;
  pointer-events: none;
}

.book-turn-layer.is-single {
  left: 50%;
  width: var(--page-screen-w);
  transform: translateX(-50%);
}

.book-turn-base {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: repeat(2,var(--page-screen-w));
  filter: drop-shadow(0 22px 34px rgba(0,0,0,.18));
}

.book-turn-layer.is-single .book-turn-base { grid-template-columns: var(--page-screen-w); }
.book-turn-base > .profile-page { grid-row: 1; box-shadow: none; }
.book-turn-base > .profile-page:first-child { grid-column: 1; }
.book-turn-base > .profile-page:nth-child(2) { grid-column: 2; }

.book-turn-sheet {
  position: absolute;
  z-index: 3;
  top: 0;
  width: var(--page-screen-w);
  height: 100%;
  transform-style: preserve-3d;
  will-change: transform;
}

.book-turn-layer.turn-from-right .book-turn-sheet {
  left: 50%;
  transform-origin: left center;
}

.book-turn-layer.turn-from-left .book-turn-sheet {
  left: 0;
  transform-origin: right center;
}

.book-turn-layer.is-single .book-turn-sheet { left: 0; }
.book-turn-layer.is-single.turn-from-right .book-turn-sheet { transform-origin: left center; }
.book-turn-layer.is-single.turn-from-left .book-turn-sheet { transform-origin: right center; }

.book-turn-face {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background: var(--amg-paper);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.book-turn-face.is-front { box-shadow: -8px 0 20px rgba(0,0,0,.12); }
.book-turn-face.is-back { transform: rotateY(180deg); box-shadow: 8px 0 20px rgba(0,0,0,.15); }
.book-turn-face > .profile-page { width: 100%; height: 100%; box-shadow: none; }

.book-turn-layer.is-animating.turn-from-right .book-turn-sheet { animation: book-turn-from-right 580ms cubic-bezier(.35,.02,.16,1) forwards; }
.book-turn-layer.is-animating.turn-from-left .book-turn-sheet { animation: book-turn-from-left 580ms cubic-bezier(.35,.02,.16,1) forwards; }

@keyframes book-turn-from-right {
  0% { transform: rotateY(0deg); filter: brightness(1); }
  38% { transform: rotateY(-76deg) translateZ(5px); filter: brightness(.9); }
  62% { transform: rotateY(-112deg) translateZ(5px); filter: brightness(.94); }
  100% { transform: rotateY(-180deg); filter: brightness(1); }
}

@keyframes book-turn-from-left {
  0% { transform: rotateY(0deg); filter: brightness(1); }
  38% { transform: rotateY(76deg) translateZ(5px); filter: brightness(.9); }
  62% { transform: rotateY(112deg) translateZ(5px); filter: brightness(.94); }
  100% { transform: rotateY(180deg); filter: brightness(1); }
}

.book-stage > .spread.is-book-entering-next,
.book-stage > .spread.is-book-entering-previous {
  position: absolute;
  z-index: 1;
  top: 0;
  left: 50%;
  display: grid;
  margin: 0;
  transform: translateX(-50%);
  animation: book-spread-enter 500ms ease both;
}

.book-stage > .spread.is-book-leaving-next,
.book-stage > .spread.is-book-leaving-previous {
  position: relative;
  z-index: 2;
  animation: book-spread-leave 500ms ease both;
}

.book-stage > .spread.is-book-entering-previous { animation-direction: reverse; }
.book-stage > .spread.is-book-leaving-previous { animation-direction: reverse; }

@keyframes book-spread-enter {
  from { opacity: 0; transform: translateX(-46%) rotateY(8deg) scale(.985); }
  to { opacity: 1; transform: translateX(-50%) rotateY(0) scale(1); }
}

@keyframes book-spread-leave {
  from { opacity: 1; transform: rotateY(0) scale(1); }
  to { opacity: 0; transform: translateX(-4%) rotateY(-8deg) scale(.985); }
}

.book-stage > .spread.is-book-fast-target {
  position: absolute;
  z-index: 4;
  top: 0;
  left: 50%;
  display: grid;
  margin: 0;
  opacity: 0;
  transform: translateX(-50%) scale(1.012);
  will-change: opacity,transform;
  pointer-events: none;
}

.book-stage > .spread.is-book-fast-source {
  position: relative;
  z-index: 3;
  will-change: opacity,transform;
  pointer-events: none;
}

.book-stage > .spread.is-book-fast-target.is-book-fast-running { opacity: 1; transform: translateX(-50%) scale(1); transition: opacity 220ms ease-out,transform 220ms ease-out; }
.book-stage > .spread.is-book-fast-source.is-book-fast-running { opacity: 0; transform: scale(.988); transition: opacity 180ms ease-in,transform 220ms ease-in; }

.profile-page.is-book-jump-target { animation: book-jump-target 850ms ease-out; }
@keyframes book-jump-target {
  0%,100% { box-shadow: inset 0 0 0 0 rgba(201,150,100,0); }
  28% { box-shadow: inset 0 0 0 4px rgba(201,150,100,.78); }
}

body.single-page-mode .spread,
body.single-page-mode .spread.is-cover-spread {
  grid-template-columns: var(--page-screen-w);
  gap: 24px;
  filter: none;
}
body.single-page-mode .book-stage { width: min(var(--page-screen-w),100%); }
body.single-page-mode .profile-page { box-shadow: 0 18px 32px rgba(0,0,0,0.16); }
body.single-page-mode .blank-page { display: none; }

.profile-page {
  position: relative;
  isolation: isolate;
  container-type: inline-size;
  width: var(--page-screen-w);
  aspect-ratio: 210 / 297;
  overflow: hidden;
  background: var(--amg-paper);
  counter-increment: profile-page;
  --footer-zone: 8%;
}

.profile-page > .profile-page-inner {
  position: relative;
  z-index: 2;
  width: 100%;
  height: calc(100% - var(--footer-zone));
  padding: 7.2% 7.15% 2.5%;
}

.page-number {
  position: absolute;
  z-index: 5;
  bottom: 2.25%;
  inset-inline-end: 7.15%;
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--amg-muted);
  font-size: clamp(6px, 1.25vw, 9px);
  font-weight: 700;
  letter-spacing: 0.12em;
}
.page-number::before { content: ""; width: 22px; height: 1px; background: var(--amg-accent); }
.profile-page.hide-page-number .page-number { display: none; }

.profile-page-footer { position: absolute; z-index: 7; bottom: 1.8%; inset-inline: 7.15%; min-height: 4.2%; padding-top: 1.5%; display: flex; align-items: flex-start; border-top: 1px solid var(--amg-line); pointer-events: none; }
.profile-page-footer a { pointer-events: auto; display: inline-flex; align-items: center; gap: 4px; padding: 0; color: var(--amg-muted); background: transparent; border: 0; font-size: clamp(4.5px, 0.9vw, 6.5px); font-weight: 700; line-height: 1; letter-spacing: 0.02em; }
.profile-page-footer a:hover, .profile-page-footer a:focus-visible { color: var(--amg-accent-dark); text-decoration: underline; }
.profile-page-footer span { color: var(--amg-accent-dark); font-weight: 800; }
.profile-page.hide-page-number .profile-page-footer { inset-inline: 7.15%; }
.page-inside-cover .profile-page-footer a { color: rgba(255,255,255,0.68); }
.page-inside-cover .profile-page-footer span { color: var(--amg-accent); }
.page-inside-cover .profile-page-footer, .page-glance .profile-page-footer { border-top-color: rgba(255,255,255,0.18); }
.page-glance .profile-page-footer a { color: rgba(255,255,255,0.62); }

.page-kicker {
  margin: 0 0 3.5%;
  color: var(--amg-accent-dark);
  font-size: clamp(7px, 1.5vw, 11px);
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.page-title {
  margin: 0;
  color: var(--amg-charcoal);
  font-size: clamp(20px, 4.8vw, 38px);
  font-weight: 700;
  line-height: 1.16;
}

.page-rule { width: 54px; height: 3px; margin: 4% 0 6%; background: var(--amg-accent); }

.image-placeholder {
  position: relative;
  min-height: 120px;
  display: grid;
  place-content: center;
  gap: 6px;
  text-align: center;
  color: rgba(23,23,23,0.5);
  background:
    linear-gradient(135deg, transparent 49.7%, rgba(201,150,100,0.35) 50%, transparent 50.3%),
    linear-gradient(45deg, transparent 49.7%, rgba(201,150,100,0.35) 50%, transparent 50.3%),
    #f1eee8;
  border: 1px dashed rgba(23,23,23,0.24);
}
.image-placeholder strong { font-size: clamp(6px, 1.25vw, 9px); letter-spacing: 0.15em; }
.image-placeholder small { font-size: clamp(5px, 1vw, 8px); }

.asset-image { width: 100%; height: 100%; display: block; object-fit: cover; }

/* Cover */
.page-cover { background: #f5f2ec; color: var(--amg-charcoal); }
.page-cover::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent 0 73%, rgba(201,150,100,0.1) 73% 73.25%, transparent 73.25%);
  z-index: 1;
}
.cover-media { position: absolute; inset: 0; z-index: 0; overflow: hidden; }
.cover-media .asset-image { opacity: var(--cover-image-opacity, 1); filter: blur(var(--cover-image-blur, 0)); transform: scale(1.04); }
.cover-media::after { content: ""; position: absolute; inset: 0; opacity: var(--cover-overlay-opacity, 1); background: linear-gradient(180deg, rgba(255,255,255,0.1), rgba(245,242,236,0.18) 35%, rgba(245,242,236,0.92) 78%); }
.cover-media .image-placeholder { width: 100%; height: 100%; border: 0; }
.cover-content { height: 100%; padding-bottom: 10%; }
.cover-logo { position: absolute; z-index: 3; width: 42%; aspect-ratio: 1; display: grid; place-items: center; transition: 180ms ease; }
.cover-logo-center .cover-logo { top: 48%; left: 50%; transform: translate(-50%, -50%); }
.cover-logo-language .cover-logo { top: 8%; inset-inline-start: 7.15%; width: 30%; }
.cover-logo .image-placeholder { min-height: 0; width: 100%; height: 100%; background: rgba(255,255,255,0.72); }
.cover-logo .asset-image, .cover-system-logo { width: 100%; height: 100%; display: block; object-fit: contain; }
.cover-minimal-meta { position: absolute; z-index: 3; inset-inline: 7.15%; bottom: 9%; display: grid; justify-items: start; gap: 5px; }
.cover-minimal-meta::before { content: ""; width: 13%; height: 5px; background: var(--amg-accent); }
.cover-title { margin: 0; color: var(--amg-charcoal); font-weight: 800; line-height: 1.1; }
.cover-location { margin: 0; display: flex; align-items: center; gap: 7px; color: var(--amg-muted); font-weight: 700; letter-spacing: 0.05em; }
.cover-location span { color: var(--amg-accent-dark); }
.page-cover.is-full-cover-artwork::before,
.page-cover.is-full-cover-artwork .cover-media::after,
.page-cover.is-full-cover-artwork .cover-content,
.page-cover.is-full-cover-artwork .profile-page-footer { display: none; }
.page-cover.is-full-cover-artwork .cover-media .cover-artwork-image,
.page-back-cover.is-full-cover-artwork .back-cover-media .cover-artwork-image {
  opacity: 1;
  filter: none;
  transform: none !important;
  object-fit: cover;
  object-position: 50% 50% !important;
  image-orientation: from-image;
}

/* Inside cover */
.page-inside-cover { background: #1c1c1c; color: #fff; }
.page-inside-cover::before { content: ""; position: absolute; width: 62%; aspect-ratio: 1; border: 1px solid rgba(201,150,100,0.34); border-radius: 50%; top: -21%; inset-inline-end: -31%; }
.inside-cover-brand-media { position: absolute; z-index: 0; inset: 0 0 38%; overflow: hidden; opacity: 0.3; }
.inside-cover-brand-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(28,28,28,0.18), #1c1c1c 95%), linear-gradient(90deg, #1c1c1c 0%, transparent 65%); }
.inside-cover-brand-media .asset-image { filter: grayscale(0.2) contrast(0.9); }
.inside-cover-grid { height: 100%; display: grid; grid-template-rows: 1fr auto; }
.inside-cover-intro { align-self: center; max-width: 90%; }
.page-inside-cover .page-title { color: #fff; font-size: clamp(24px, 5.7vw, 44px); }
.inside-cover-statement { margin: 7% 0 0; color: rgba(255,255,255,0.72); font-size: clamp(8px, 1.65vw, 12px); line-height: 1.85; }
.contact-panel { padding-top: 7%; border-top: 1px solid rgba(255,255,255,0.16); display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 9%; }
.contact-list { min-width: 0; display: grid; gap: 4px; }
.contact-item small { display: block; color: var(--amg-accent); font-size: clamp(5px, 1vw, 7px); font-weight: 700; text-transform: uppercase; }
.contact-item span, .contact-item a { display: block; min-width: 0; overflow-wrap: anywhere; font-size: clamp(6px, 1.25vw, 9px); line-height: 1.4; }
.contact-link { text-decoration: underline; text-decoration-color: rgba(201,150,100,0.55); text-underline-offset: 2px; }
.contact-link:hover, .contact-link:focus-visible { color: var(--amg-accent); text-decoration-color: currentColor; }
.qr-placeholder { width: clamp(58px, 14vw, 96px); aspect-ratio: 1; border: 1px solid rgba(255,255,255,0.26); display: grid; place-content: center; color: var(--amg-accent); font-size: clamp(16px, 4vw, 28px); font-weight: 800; }
.qr-link { display: block; }
.qr-code-image { width: clamp(64px, 15vw, 104px); aspect-ratio: 1; padding: 3px; overflow: hidden; background: #fff; border: 1px solid rgba(201,150,100,0.58); }
.qr-code-image .asset-image { object-fit: contain; }
.qr-label { margin-top: 6px; max-width: clamp(58px, 14vw, 96px); text-align: center; color: rgba(255,255,255,0.66); font-size: clamp(5px, 1vw, 7px); }

/* Contents */
.page-contents::before { content: attr(data-page-label); position: absolute; top: 3%; inset-inline-end: 4%; color: rgba(201,150,100,0.12); font-size: clamp(72px, 20vw, 145px); font-weight: 800; line-height: 1; }
.contents-background { position: absolute; z-index: 0; inset: 0; opacity: 0.12; overflow: hidden; }
.contents-background::after { content: ""; position: absolute; inset: 0; background: rgba(251,250,247,0.42); }
.contents-background .asset-image { filter: grayscale(1) contrast(1.12); }
.contents-intro { max-width: 78%; margin: 3% 0 5%; color: var(--amg-muted); font-size: clamp(7px, 1.5vw, 11px); line-height: 1.55; }
.contents-list { display: grid; gap: 0; border-top: 1px solid var(--amg-line); }
.contents-list.is-two-column { grid-auto-flow: column; grid-template-rows: repeat(var(--toc-rows), minmax(0, auto)); grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 6%; border-top: 0; }
.contents-list.is-two-column::before, .contents-list.is-two-column::after { content: ""; position: absolute; }
.contents-item { min-height: clamp(31px, 7.3vw, 54px); display: grid; grid-template-columns: 30px 1fr auto; align-items: center; gap: 6px; border-bottom: 1px solid var(--amg-line); }
.contents-list.is-two-column .contents-item { border-top: 1px solid var(--amg-line); }
.page-contents.is-dense-toc .contents-intro { margin-bottom: 3%; font-size: clamp(6px, 1.2vw, 8.5px); }
.page-contents.is-dense-toc .contents-list.is-two-column .contents-item { min-height: min(7.3cqw, calc(88cqw / var(--toc-rows))); }
.page-contents.is-dense-toc .contents-item { grid-template-columns: 24px 1fr auto; gap: 4px; }
.page-contents.is-dense-toc .contents-item-number, .page-contents.is-dense-toc .contents-item-page { font-size: clamp(5.5px, 1.1vw, 8px); }
.page-contents.is-dense-toc .contents-item-title { font-size: clamp(6px, 1.25vw, 9px); line-height: 1.2; }
.contents-item-number { color: var(--amg-accent-dark); font-size: clamp(7px, 1.5vw, 11px); font-weight: 800; }
.contents-item-title { font-size: clamp(8px, 1.75vw, 13px); font-weight: 700; }
.contents-item-page { font-size: clamp(7px, 1.5vw, 11px); font-weight: 800; }
.contents-list.is-hierarchical { display: grid; gap: 0; border-top: 0; }
.contents-list.is-hierarchical.is-two-column { grid-auto-flow: row; grid-template-rows: none; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 6%; }
.contents-column { min-width: 0; border-top: 1px solid var(--amg-line); }
.contents-group { break-inside: avoid; page-break-inside: avoid; }
.contents-list.is-hierarchical .contents-item { grid-template-columns: 38px minmax(0, 1fr) 28px; }
.contents-list.is-hierarchical .contents-item.is-section { min-height: clamp(38px, 8.2vw, 58px); padding-inline: 3%; background: var(--amg-charcoal); color: #fff; border-bottom-color: rgba(255,255,255,0.12); }
.contents-list.is-hierarchical .is-section .contents-item-number { color: var(--amg-accent); font-size: clamp(4.5px, 0.85vw, 6.5px); letter-spacing: 0.08em; }
.contents-list.is-hierarchical .is-section .contents-item-title { color: #fff; font-weight: 800; }
.contents-list.is-hierarchical .is-section .contents-item-page { color: var(--amg-accent); }
.contents-list.is-hierarchical .contents-item.is-child { min-height: clamp(27px, 5.5vw, 40px); padding-inline-start: 8%; background: rgba(255,255,255,0.48); }
.contents-list.is-hierarchical .is-child .contents-item-number { position: relative; height: 100%; }
.contents-list.is-hierarchical .is-child .contents-item-number::before { content: ""; position: absolute; top: 50%; inset-inline-start: 0; width: 15px; height: 1px; background: var(--amg-accent); }
.contents-list.is-hierarchical .is-child .contents-item-title { font-size: clamp(6px, 1.25vw, 9px); font-weight: 600; }
.page-contents.is-dense-toc .contents-list.is-hierarchical .contents-item.is-section { min-height: min(7.4cqw, calc(88cqw / var(--toc-rows))); }
.page-contents.is-dense-toc .contents-list.is-hierarchical .contents-item.is-child { min-height: min(5.6cqw, calc(76cqw / var(--toc-rows))); }

/* Founder */
.page-founder { background: #f8f6f1; }
.founder-layout { height: 100%; display: grid; grid-template-rows: 39% 1fr; gap: 6%; }
.founder-media { position: relative; overflow: hidden; }
.founder-media .image-placeholder { height: 100%; }
.founder-media::after { content: ""; position: absolute; inset: auto 0 0; height: 32%; background: linear-gradient(transparent, rgba(23,23,23,0.26)); pointer-events: none; }
.founder-copy { display: flex; flex-direction: column; min-height: 0; }
.founder-copy .page-title { max-width: 95%; font-size: clamp(17px, 4.1vw, 31px); }
.founder-message { margin: 4% 0 0; color: #4d4a45; font-size: clamp(6.2px, 1.33vw, 9.7px); line-height: 1.72; }
.founder-credit { margin-top: auto; padding-top: 4%; border-top: 1px solid var(--amg-line); display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; }
.founder-name { display: block; font-size: clamp(7px, 1.55vw, 11px); font-weight: 800; }
.founder-role { display: block; color: var(--amg-muted); font-size: clamp(5.5px, 1.1vw, 8px); }
.signature-slot { width: 36%; min-height: 38px; display: flex; align-items: flex-end; justify-content: center; overflow: visible; }
.signature-text { display: block; color: #a62b27; font-family: Georgia, "Times New Roman", serif; font-style: italic; font-weight: 700; line-height: .9; white-space: nowrap; transform: rotate(-4deg); transform-origin: center bottom; }
[dir="rtl"] .signature-text { font-family: Tahoma, Arial, sans-serif; font-style: italic; font-weight: 700; line-height: 1; transform: rotate(-2deg); }

/* Who we are */
.page-who { background: #fbfaf7; }
.who-layout { height: 100%; display: grid; grid-template-columns: 44% 1fr; grid-template-rows: auto 34% 1fr; gap: 4% 6%; }
.who-heading { grid-column: 1 / -1; }
.who-heading .page-title { max-width: 78%; }
.who-media { grid-row: 2 / 4; position: relative; overflow: hidden; }
.who-media .image-placeholder { height: 100%; }
.who-media::after { content: "AMG"; position: absolute; inset-inline-end: 5%; bottom: 2%; color: rgba(255,255,255,0.65); font-size: clamp(20px, 6vw, 46px); font-weight: 800; }
.who-copy { min-height: 0; display: flex; flex-direction: column; }
.who-intro { margin: 0; color: #514e48; line-height: 1.56; }
.proof-list { margin-top: auto; border-top: 1px solid var(--amg-line); }
.proof-item { padding: 3% 0; display: grid; grid-template-columns: 25px 1fr; gap: 3%; border-bottom: 1px solid var(--amg-line); }
.proof-item > span { color: var(--amg-accent-dark); font-size: clamp(6px, 1.2vw, 9px); font-weight: 800; }
.proof-item h3, .proof-item p { margin: 0; }
.proof-item h3 { line-height: 1.3; }
.proof-item p { margin-top: 2px; color: var(--amg-muted); line-height: 1.55; }

/* AMG at a glance */
.page-glance { background: #191919; color: #fff; }
.page-glance::before { content: attr(data-page-label); position: absolute; inset-inline-end: 4%; top: 1%; color: rgba(201,150,100,0.08); font-size: clamp(78px, 21vw, 150px); font-weight: 800; }
.glance-background { position: absolute; inset: 0; opacity: 0.13; }
.glance-background::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(25,25,25,0.28), #191919 82%); }
.glance-background .asset-image { filter: grayscale(1); }
.glance-layout { height: 100%; display: grid; grid-template-rows: auto 1fr auto; gap: 5%; }
.glance-layout header { position: relative; max-width: 88%; }
.page-glance .page-title { color: #fff; }
.glance-intro { max-width: 84%; margin: 3% 0 0; color: rgba(255,255,255,0.66); line-height: 1.6; }
.stats-grid { position: relative; align-self: stretch; display: grid; grid-template-columns: repeat(2, 1fr); grid-auto-rows: 1fr; gap: 5% 12%; padding: 3% 2%; }
.stats-grid::before { content: ""; position: absolute; z-index: 0; inset: 8% 9% 9%; background: linear-gradient(to bottom right, transparent 49.7%, rgba(201,150,100,0.55) 49.9% 50.1%, transparent 50.3%); }
.stat-card { position: relative; z-index: 1; min-height: 74px; padding: 8% 9%; display: flex; flex-direction: column; justify-content: center; background: rgba(25,25,25,0.91); border-inline-start: 3px solid var(--amg-accent); }
.stat-card:nth-child(even) { transform: translateY(18%); }
.stat-card i { position: absolute; top: 8%; inset-inline-end: 8%; color: rgba(255,255,255,0.28); font-size: clamp(5px, 1vw, 7px); font-style: normal; font-weight: 800; }
.stat-card strong { width: fit-content; color: var(--amg-accent); line-height: 0.9; font-weight: 800; }
.stat-card strong span { font-size: 0.48em; vertical-align: top; }
.stat-card p { margin: 7px 0 0; color: rgba(255,255,255,0.78); font-weight: 700; text-transform: uppercase; letter-spacing: 0.07em; }
.glance-context { margin: 0; padding-top: 3%; max-width: 88%; color: rgba(255,255,255,0.58); border-top: 1px solid rgba(255,255,255,0.15); line-height: 1.55; }

/* Vision, mission and values */
.page-values { background: #f2eee7; }
.page-values::before { content: ""; position: absolute; inset: 0 58% 0 0; background: #1c1c1c; }
[dir="rtl"] .page-values::before { inset: 0 0 0 58%; }
.values-background { position: absolute; inset: 0; opacity: 0.06; }
.values-background .asset-image { filter: grayscale(1); }
.values-layout { height: 100%; display: grid; grid-template-rows: auto 1fr auto; gap: 5%; }
.values-layout header { position: relative; padding-inline-start: 47%; }
.values-layout .page-title { max-width: 92%; }
.purpose-path { position: relative; display: grid; align-content: center; gap: 5%; }
.purpose-path::before { content: ""; position: absolute; top: 12%; bottom: 12%; inset-inline-start: 39%; width: 1px; background: var(--amg-accent); }
.purpose-path article { position: relative; width: 78%; min-height: 122px; padding: 7% 8%; display: grid; grid-template-columns: 34px 1fr; gap: 7%; align-items: start; }
.purpose-path article > span { color: var(--amg-accent); font-size: clamp(7px, 1.35vw, 10px); font-weight: 800; }
.purpose-path h3 { margin: 0 0 5%; text-transform: uppercase; letter-spacing: 0.1em; }
.purpose-path p { margin: 0; line-height: 1.62; }
.vision-panel { justify-self: start; color: #fff; background: #1c1c1c; border-top: 4px solid var(--amg-accent); }
.vision-panel h3 { color: var(--amg-accent); }
.vision-panel p { color: rgba(255,255,255,0.82); }
.mission-panel { justify-self: end; color: var(--amg-charcoal); background: #fff; box-shadow: 0 14px 32px rgba(23,23,23,0.09); border-inline-end: 4px solid var(--amg-accent); }
.mission-panel h3 { color: var(--amg-accent-dark); }
.mission-panel p { color: #504c46; }
.values-rail { position: relative; padding: 3% 3.5%; background: rgba(255,255,255,0.96); box-shadow: 0 10px 28px rgba(23,23,23,0.08); }
.values-rail > small { display: block; margin-bottom: 2%; color: var(--amg-accent-dark); font-size: clamp(5px, 1vw, 7px); font-weight: 800; letter-spacing: 0.12em; }
.values-list { margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); list-style: none; border-top: 1px solid rgba(23,23,23,0.22); }
.values-list li { min-width: 0; min-height: 42px; padding: 8% 4%; display: grid; align-content: start; gap: 5px; }
.values-list span { color: var(--amg-accent-dark); font-size: clamp(5px, 0.9vw, 6.5px); }
.values-list strong { color: var(--amg-charcoal); line-height: 1.25; overflow-wrap: anywhere; }

/* Why AMG */
.page-why { background: #fbfaf7; }
.why-media { position: absolute; inset: 0 0 70%; overflow: hidden; }
.why-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(23,23,23,0.08), rgba(23,23,23,0.72)); }
.why-media .image-placeholder { height: 100%; }
.why-layout { height: 100%; padding-top: 26%; display: grid; grid-template-rows: auto 1fr; gap: 3%; }
.why-layout header { position: relative; z-index: 1; padding: 3.5% 6%; margin-inline: -6%; background: #fbfaf7; border-top: 4px solid var(--amg-accent); }
.why-layout .page-title { max-width: 82%; }
.why-intro { max-width: 82%; margin: 3% 0 0; color: var(--amg-muted); line-height: 1.6; }
.why-grid { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--amg-line); border-inline-start: 1px solid var(--amg-line); }
.why-item { position: relative; padding: 4.5% 7%; border-inline-end: 1px solid var(--amg-line); border-bottom: 1px solid var(--amg-line); }
.why-item > span { position: absolute; inset-inline-end: 7%; top: 10%; color: rgba(201,150,100,0.45); font-size: clamp(7px, 1.5vw, 11px); font-weight: 800; }
.why-item h3, .why-item p { margin: 0; max-width: 82%; }
.why-item h3 { line-height: 1.25; }
.why-item p { margin-top: 5px; color: var(--amg-muted); line-height: 1.5; }

/* Services opener */
.page-services { background: #f5f1ea; }
.page-services::before { content: attr(data-page-label); position: absolute; top: 1%; inset-inline-end: 3%; color: rgba(201,150,100,0.12); font-size: clamp(76px, 21vw, 150px); font-weight: 800; line-height: 1; }
.services-background { position: absolute; inset: 0; opacity: 0.08; }
.services-background::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(245,241,234,0.74), #f5f1ea 72%); }
.services-background .asset-image { filter: grayscale(1); }
.services-layout { display: grid; grid-template-rows: auto 1fr auto; gap: 4%; }
.services-layout header { position: relative; max-width: 88%; }
.services-layout .page-title { max-width: 82%; }
.services-intro { max-width: 86%; margin: 3% 0 0; color: #5d5952; line-height: 1.6; }
.services-grid { position: relative; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: repeat(4, minmax(0, 1fr)); border-top: 1px solid rgba(23,23,23,0.18); border-inline-start: 1px solid rgba(23,23,23,0.18); }
.service-card { position: relative; min-width: 0; padding: 6% 7%; display: grid; grid-template-columns: 42px 1fr; align-items: center; gap: 6%; background: rgba(255,255,255,0.52); border-inline-end: 1px solid rgba(23,23,23,0.18); border-bottom: 1px solid rgba(23,23,23,0.18); transition: 160ms ease; }
a.service-card:hover, a.service-card:focus-visible { background: #fff; box-shadow: inset 3px 0 0 var(--amg-accent); outline: 0; }
.service-card-number { position: absolute; top: 8%; inset-inline-end: 5%; color: rgba(159,109,62,0.55); font-size: clamp(5px, 0.95vw, 7px); font-weight: 800; }
.service-card-icon { width: 40px; aspect-ratio: 1; display: grid; place-items: center; color: var(--amg-accent-dark); border: 1px solid rgba(159,109,62,0.34); }
.service-card-icon svg { width: 58%; height: 58%; }
.service-card h3, .service-card p { margin: 0; }
.service-card h3 { max-width: 90%; line-height: 1.25; }
.service-card p { margin-top: 4px; color: var(--amg-muted); line-height: 1.4; }
.service-card i { position: absolute; bottom: 9%; inset-inline-end: 5%; color: var(--amg-accent-dark); font-size: clamp(7px, 1.4vw, 10px); font-style: normal; }
.services-closing { margin: 0; padding-inline-start: 3%; color: #5d5952; border-inline-start: 3px solid var(--amg-accent); line-height: 1.5; }

/* Shared service detail components */
.page-service-detail { background: #fbfaf7; }
.service-detail-heading { position: relative; }
.service-detail-heading .page-title { max-width: 86%; }
.service-detail-intro { margin: 0; color: #504c46; line-height: 1.6; }
.service-scope-list { border-top: 1px solid var(--amg-line); }
.service-scope-item { position: relative; min-width: 0; padding: 3.5% 0; display: grid; grid-template-columns: 26px 1fr; gap: 3%; border-bottom: 1px solid var(--amg-line); }
.service-scope-item > span { color: var(--amg-accent-dark); font-size: clamp(5.5px, 1.1vw, 8px); font-weight: 800; }
.service-scope-item h3, .service-scope-item p { margin: 0; }
.service-scope-item h3 { line-height: 1.25; }
.service-scope-item p { margin-top: 2px; color: var(--amg-muted); line-height: 1.4; }

/* General contracting */
.general-layout { display: grid; grid-template-columns: 52% 1fr; grid-template-rows: auto 1fr; gap: 4% 6%; }
.general-layout .service-detail-heading { grid-column: 1 / -1; }
.general-media { position: relative; min-height: 0; overflow: hidden; }
.general-media > .asset-image, .general-media > .image-placeholder { width: 100%; height: 100%; }
.general-detail-image { position: absolute; inset-inline-end: 5%; bottom: 5%; width: 46%; height: 24%; padding: 3px; background: #fff; box-shadow: 0 12px 28px rgba(23,23,23,0.18); }
.general-detail-image .asset-image, .general-detail-image .image-placeholder { width: 100%; height: 100%; min-height: 0; }
.general-copy { min-height: 0; display: flex; flex-direction: column; }
.general-copy blockquote { margin: 7% 0; padding: 6% 7%; color: var(--amg-charcoal); background: #f0e8de; border-inline-start: 3px solid var(--amg-accent); font-weight: 700; line-height: 1.45; }
.general-copy .service-scope-list { margin-top: auto; }

/* Industrial construction */
.page-industrial-construction { background: #1b1b1b; color: #fff; }
.industrial-hero { position: absolute; inset: 0 0 62%; overflow: hidden; }
.industrial-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20,20,20,0.1), #1b1b1b 94%), linear-gradient(90deg, rgba(20,20,20,0.76), transparent 72%); }
.industrial-hero .asset-image, .industrial-hero .image-placeholder { width: 100%; height: 100%; }
.industrial-layout { display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: 34% auto 1fr; gap: 3%; }
.industrial-layout.has-detail { grid-template-columns: minmax(0, 1fr) 34%; }
.industrial-heading { position: relative; z-index: 1; grid-column: 1 / -1; align-self: end; padding-bottom: 2%; }
.industrial-heading .page-kicker { color: var(--amg-accent); }
.industrial-heading .page-title { max-width: 78%; color: #fff; }
.industrial-copy { grid-column: 1 / -1; display: grid; grid-template-columns: 1.35fr 0.65fr; gap: 7%; align-items: start; }
.industrial-copy .service-detail-intro { color: rgba(255,255,255,0.68); }
.industrial-promise { margin: 0; padding-inline-start: 8%; color: #fff; border-inline-start: 3px solid var(--amg-accent); font-weight: 700; line-height: 1.48; }
.industrial-scope { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-content: stretch; border-top: 1px solid rgba(255,255,255,0.16); border-inline-start: 1px solid rgba(255,255,255,0.16); }
.industrial-layout.has-detail .industrial-scope { grid-column: 1; }
.service-scope-item.is-industrial { padding: 5% 6%; border-inline-end: 1px solid rgba(255,255,255,0.16); border-bottom: 1px solid rgba(255,255,255,0.16); }
.service-scope-item.is-industrial h3 { color: #fff; }
.service-scope-item.is-industrial p { color: rgba(255,255,255,0.56); }
.industrial-detail-image { min-height: 0; overflow: hidden; border: 1px solid rgba(201,150,100,0.4); }
.industrial-detail-image .asset-image, .industrial-detail-image .image-placeholder { width: 100%; height: 100%; min-height: 0; color: rgba(255,255,255,0.5); background-color: #242424; }
.page-industrial-construction .profile-page-footer { border-top-color: rgba(255,255,255,0.18); }
.page-industrial-construction .profile-page-footer a, .page-industrial-construction .page-number { color: rgba(255,255,255,0.62); }

/* Fit-out and finishing */
.page-fitout { background: #f7f4ef; }
.fitout-layout { display: grid; grid-template-columns: 54% 1fr; grid-template-rows: auto 1fr; gap: 4% 6%; }
.fitout-layout .service-detail-heading { grid-column: 1 / -1; }
.fitout-gallery { min-height: 0; display: grid; grid-template-columns: 1fr; grid-template-rows: 64% 1fr; gap: 3%; }
.fitout-gallery.has-three { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: 64% 1fr; }
.fitout-hero { grid-column: 1 / -1; overflow: hidden; }
.fitout-hero .asset-image, .fitout-hero .image-placeholder, .fitout-detail .asset-image, .fitout-detail .image-placeholder { width: 100%; height: 100%; min-height: 0; }
.fitout-detail { min-height: 0; overflow: hidden; }
.fitout-detail:empty { display: none; }
.fitout-copy { min-height: 0; display: flex; flex-direction: column; }
.fitout-promise { margin: 7% 0; padding: 6% 7%; color: #fff; background: var(--amg-charcoal); border-top: 3px solid var(--amg-accent); font-weight: 700; line-height: 1.48; }
.fitout-scope { margin-top: auto; }

/* MEP and technical works */
.page-mep { background: #f7f5f0; }
.mep-hero { position: absolute; inset: 0 0 64%; overflow: hidden; }
.mep-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20,20,20,0.16), rgba(20,20,20,0.84)); }
.mep-hero .asset-image, .mep-hero .image-placeholder { width: 100%; height: 100%; }
.mep-diagram { position: absolute; inset: 48% 0 8%; opacity: 0.055; }
.mep-diagram .asset-image { filter: grayscale(1) contrast(1.35); }
.mep-layout { display: grid; grid-template-rows: 34% auto 1fr; gap: 3.5%; }
.mep-layout header { position: relative; z-index: 1; align-self: end; padding-bottom: 2%; }
.mep-layout header .page-kicker { color: var(--amg-accent); }
.mep-layout header .page-title { max-width: 82%; color: #fff; }
.mep-copy { position: relative; z-index: 1; display: grid; grid-template-columns: 1.35fr 0.65fr; gap: 7%; align-items: start; }
.mep-promise { margin: 0; padding-inline-start: 8%; color: var(--amg-charcoal); border-inline-start: 3px solid var(--amg-accent); font-weight: 700; line-height: 1.48; }
.mep-systems { position: relative; z-index: 1; min-height: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-rows: 1fr; border-top: 1px solid var(--amg-line); border-inline-start: 1px solid var(--amg-line); }
.mep-system { position: relative; min-width: 0; padding: 8% 7%; display: grid; grid-template-columns: 24px 1fr; gap: 4%; align-content: start; background: rgba(255,255,255,0.76); border-inline-end: 1px solid var(--amg-line); border-bottom: 1px solid var(--amg-line); }
.mep-system > span { color: var(--amg-accent-dark); font-size: clamp(5px, 1vw, 7px); font-weight: 800; }
.mep-system h3, .mep-system p { margin: 0; }
.mep-system h3 { line-height: 1.25; }
.mep-system p { margin-top: 5px; color: var(--amg-muted); line-height: 1.42; }

/* Specialized solutions */
.page-specialized { background: #f3eee7; }
.specialized-layout { display: grid; grid-template-columns: 44% 1fr; grid-template-rows: auto 1fr; gap: 4% 6%; }
.specialized-layout > header { grid-column: 1 / -1; }
.specialized-layout > header .page-title { max-width: 82%; }
.specialized-media { position: relative; min-height: 0; overflow: hidden; }
.specialized-media > .asset-image, .specialized-media > .image-placeholder { width: 100%; height: 100%; }
.specialized-media::after { content: ""; position: absolute; inset: auto 0 0; height: 34%; background: linear-gradient(transparent, rgba(23,23,23,0.3)); pointer-events: none; }
.specialized-detail { position: absolute; z-index: 2; inset-inline-end: 5%; bottom: 5%; width: 48%; height: 25%; padding: 3px; background: #fff; box-shadow: 0 12px 28px rgba(23,23,23,0.2); }
.specialized-detail .asset-image, .specialized-detail .image-placeholder { width: 100%; height: 100%; min-height: 0; }
.specialized-copy { min-height: 0; display: flex; flex-direction: column; }
.specialized-promise { margin: 4% 0; padding: 4.5% 6%; color: #fff; background: var(--amg-charcoal); border-top: 3px solid var(--amg-accent); font-weight: 700; line-height: 1.42; }
.specialized-grid { margin-top: auto; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid rgba(23,23,23,0.18); border-inline-start: 1px solid rgba(23,23,23,0.18); }
.specialized-item { position: relative; min-width: 0; padding: 4.5% 6%; border-inline-end: 1px solid rgba(23,23,23,0.18); border-bottom: 1px solid rgba(23,23,23,0.18); }
.specialized-item:last-child:nth-child(odd) { grid-column: 1 / -1; }
.specialized-item > span { position: absolute; top: 7%; inset-inline-end: 7%; color: rgba(159,109,62,0.55); font-size: clamp(5px, 1vw, 7px); font-weight: 800; }
.specialized-item h3, .specialized-item p { margin: 0; max-width: 84%; }
.specialized-item h3 { line-height: 1.25; }
.specialized-item p { margin-top: 3px; color: var(--amg-muted); line-height: 1.32; }

/* Engineering, estimation and project management */
.page-engineering-management { background: #fbfaf7; }
.page-engineering-management::before { content: attr(data-page-label); position: absolute; top: 1%; inset-inline-end: 3%; color: rgba(201,150,100,0.1); font-size: clamp(76px, 21vw, 150px); font-weight: 800; line-height: 1; }
.engineering-background { position: absolute; inset: 0; opacity: 0.07; }
.engineering-background::after { content: ""; position: absolute; inset: 0; background: rgba(251,250,247,0.58); }
.engineering-background .asset-image { filter: grayscale(1); }
.engineering-layout { display: grid; grid-template-rows: auto 1fr auto; gap: 5%; }
.engineering-layout header { position: relative; max-width: 90%; }
.engineering-layout header .page-title { max-width: 88%; }
.engineering-intro { max-width: 86%; margin: 3% 0 0; color: var(--amg-muted); line-height: 1.6; }
.engineering-flow { position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4%; align-items: stretch; }
.engineering-flow::before { content: ""; position: absolute; top: 18%; inset-inline: 9%; height: 1px; background: var(--amg-accent); }
.engineering-flow:has(.engineering-pillar:nth-child(4)) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.engineering-pillar { position: relative; min-width: 0; padding: 10% 9%; background: rgba(255,255,255,0.9); border: 1px solid var(--amg-line); box-shadow: 0 14px 30px rgba(23,23,23,0.06); }
.engineering-pillar > span { position: absolute; top: 5%; inset-inline-end: 6%; color: var(--amg-accent-dark); font-size: clamp(6px, 1.2vw, 9px); font-weight: 800; }
.engineering-pillar-icon { position: relative; z-index: 1; width: 46px; aspect-ratio: 1; margin-bottom: 14%; display: grid; place-items: center; color: var(--amg-accent-dark); background: #fbfaf7; border: 1px solid rgba(159,109,62,0.42); }
.engineering-pillar-icon svg { width: 58%; height: 58%; }
.engineering-pillar h3, .engineering-pillar p { margin: 0; }
.engineering-pillar h3 { line-height: 1.25; }
.engineering-pillar p { margin-top: 8px; color: var(--amg-muted); line-height: 1.55; }
.engineering-closing { margin: 0; padding: 4% 5%; color: #fff; background: var(--amg-charcoal); border-inline-start: 4px solid var(--amg-accent); font-weight: 700; line-height: 1.5; }

/* How we work */
.page-how-we-work { background: #1c1c1c; color: #fff; }
.work-background { position: absolute; inset: 0; opacity: 0.11; }
.work-background::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(28,28,28,0.45), #1c1c1c 84%); }
.work-background .asset-image { filter: grayscale(1); }
.work-layout { display: grid; grid-template-rows: auto 1fr auto; gap: 5%; }
.work-layout header { position: relative; max-width: 90%; }
.work-layout .page-kicker { color: var(--amg-accent); }
.work-layout .page-title { max-width: 82%; color: #fff; }
.work-intro { max-width: 86%; margin: 3% 0 0; color: rgba(255,255,255,0.66); line-height: 1.6; }
.work-steps { position: relative; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 1fr; gap: 4% 8%; }
.work-steps::before { content: ""; position: absolute; top: 8%; bottom: 8%; left: 50%; width: 1px; background: rgba(201,150,100,0.48); }
.work-step { position: relative; min-width: 0; padding: 7% 8%; display: grid; grid-template-columns: 34px 1fr; gap: 5%; align-content: start; background: rgba(255,255,255,0.045); border-top: 2px solid rgba(201,150,100,0.72); }
.work-step > span { color: var(--amg-accent); font-size: clamp(7px, 1.4vw, 10px); font-weight: 800; }
.work-step h3, .work-step p { margin: 0; }
.work-step h3 { color: #fff; line-height: 1.25; }
.work-step p { margin-top: 5px; color: rgba(255,255,255,0.58); line-height: 1.45; }
.work-closing { margin: 0; padding-inline-start: 4%; color: #fff; border-inline-start: 3px solid var(--amg-accent); font-weight: 700; line-height: 1.5; }
.page-how-we-work .profile-page-footer { border-top-color: rgba(255,255,255,0.18); }
.page-how-we-work .profile-page-footer a, .page-how-we-work .page-number { color: rgba(255,255,255,0.62); }

/* Stage 5 · sectors, equipment and projects */
.page-sectors { background: #f4f0e9; }
.sectors-background { position: absolute; inset: 0; opacity: 0.07; }
.sectors-background::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(244,240,233,.5), #f4f0e9 84%); }
.sectors-background .asset-image { filter: grayscale(1); }
.sectors-layout { display: grid; grid-template-rows: auto 1fr auto; gap: 5%; }
.sectors-layout header { position: relative; max-width: 90%; }
.sectors-intro { max-width: 86%; margin: 3% 0 0; color: var(--amg-muted); line-height: 1.6; }
.sectors-grid { position: relative; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 1fr; gap: 3.5%; }
.sector-card { position: relative; min-width: 0; padding: 9%; display: flex; flex-direction: column; justify-content: flex-end; background: rgba(255,255,255,.86); border: 1px solid var(--amg-line); box-shadow: 0 12px 26px rgba(23,23,23,.05); }
.sector-card::before { content: ""; position: absolute; top: 0; inset-inline-start: 0; width: 35%; height: 3px; background: var(--amg-accent); }
.sector-index { position: absolute; top: 8%; inset-inline-end: 8%; color: rgba(159,109,62,.48); font-size: clamp(6px,1.15vw,8px); font-weight: 800; }
.sector-icon { width: 52px; aspect-ratio: 1; margin-bottom: 10%; display: grid; place-items: center; color: var(--amg-accent-dark); border: 1px solid rgba(159,109,62,.34); }
.sector-icon svg { width: 58%; height: 58%; }
.sector-card h3 { max-width: 86%; margin: 0; color: var(--amg-charcoal); font-size: clamp(10px,2.25vw,16px); line-height: 1.3; }
.sectors-closing { margin: 0; padding-inline-start: 4%; color: #59554e; border-inline-start: 3px solid var(--amg-accent); font-weight: 700; line-height: 1.5; }

.page-equipment { background: #fbfaf7; }
.equipment-layout { display: grid; grid-template-rows: auto 1fr; gap: 4.5%; }
.equipment-layout header { max-width: 90%; }
.equipment-intro { max-width: 86%; margin: 3% 0 0; color: var(--amg-muted); line-height: 1.55; }
.equipment-grid { min-height: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: repeat(3, minmax(0, 1fr)); gap: 3%; }
.equipment-card { min-width: 0; min-height: 0; display: grid; grid-template-columns: 42% 1fr; background: #fff; border: 1px solid var(--amg-line); overflow: hidden; }
.equipment-media { min-height: 0; overflow: hidden; background: #ece8e1; }
.equipment-media .asset-image, .equipment-media .image-placeholder { width: 100%; height: 100%; min-height: 0; }
.equipment-copy { min-width: 0; padding: 8%; align-self: center; }
.equipment-copy > span { color: var(--amg-accent-dark); font-size: clamp(5px,1vw,7px); font-weight: 800; }
.equipment-copy h3, .equipment-copy p { margin: 0; }
.equipment-copy h3 { margin-top: 5%; line-height: 1.3; }
.equipment-copy p { margin-top: 5px; color: var(--amg-muted); line-height: 1.4; }
.equipment-empty { grid-column: 1 / -1; align-self: center; margin: 0; padding: 8%; color: var(--amg-muted); text-align: center; border: 1px dashed rgba(159,109,62,.4); }

.page-projects-opener { background: #171717; color: #fff; }
.projects-opener-media { position: absolute; inset: 0; }
.projects-opener-media .asset-image, .projects-opener-media .image-placeholder { width: 100%; height: 100%; }
.projects-opener-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(15,15,15,.25), rgba(15,15,15,.58) 46%, rgba(15,15,15,.96)); }
.projects-opener-layout { display: flex; flex-direction: column; justify-content: flex-end; padding-bottom: 8% !important; }
.projects-opener-layout .page-kicker { color: var(--amg-accent); }
.projects-opener-layout .page-title { max-width: 84%; color: #fff; }
.projects-opener-intro { max-width: 82%; margin: 4% 0 0; color: rgba(255,255,255,.7); line-height: 1.6; }
.projects-opener-foot { margin-top: 10%; padding-top: 5%; display: grid; grid-template-columns: 28% 1fr; gap: 6%; align-items: end; border-top: 1px solid rgba(255,255,255,.3); }
.projects-opener-foot strong { color: var(--amg-accent); font-size: clamp(30px,8vw,58px); line-height: .85; }
.projects-opener-foot p { margin: 0; color: #fff; font-weight: 700; line-height: 1.45; }
.page-projects-opener .profile-page-footer { border-top-color: rgba(255,255,255,.2); }
.page-projects-opener .profile-page-footer a, .page-projects-opener .page-number { color: rgba(255,255,255,.66); }

.page-project-category { background: #f4f1eb; }
.project-category-layout { display: grid; grid-template-rows: auto 1fr; gap: 4%; }
.project-category-layout header { max-width: 92%; }
.project-category-intro { max-width: 88%; margin: 3% 0 0; color: var(--amg-muted); line-height: 1.5; }
.project-grid { min-height: 0; display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); grid-template-rows: repeat(2, minmax(0,1fr)); gap: 3.2%; }
.project-card { min-width: 0; min-height: 0; display: grid; grid-template-rows: 62% 1fr; background: #fff; border: 1px solid var(--amg-line); overflow: hidden; }
.project-card-media { position: relative; min-height: 0; overflow: hidden; }
.project-card-media::after { content: ""; position: absolute; inset: auto 0 0; height: 30%; background: linear-gradient(transparent,rgba(23,23,23,.24)); }
.project-card-media .asset-image, .project-card-media .image-placeholder { width: 100%; height: 100%; min-height: 0; }
.project-card-copy { position: relative; min-width: 0; padding: 6% 7%; }
.project-card-copy > span { position: absolute; top: 8%; inset-inline-end: 7%; color: rgba(159,109,62,.58); font-size: clamp(5px,1vw,7px); font-weight: 800; }
.project-card-copy h3, .project-card-copy p { margin: 0; max-width: 84%; }
.project-card-copy h3 { line-height: 1.25; }
.project-location { margin-top: 4px !important; color: var(--amg-accent-dark); font-weight: 700; }
.project-scope { margin-top: 4px !important; color: var(--amg-muted); line-height: 1.35; }

/* v5.1 editorial system · every facing pair gets a restrained shared accent */
.spread:not(.is-cover-spread) { position: relative; }
.spread:not(.is-cover-spread)::before { content: ""; position: absolute; z-index: 20; top: 0; left: 50%; width: 1px; height: 100%; background: rgba(23,23,23,.12); pointer-events: none; }
.spread-tone-warm .profile-page:first-child::after, .spread-tone-cool .profile-page:last-child::after { content: ""; position: absolute; z-index: 6; top: 0; inset-inline-start: 0; width: 18%; height: 3px; background: var(--amg-accent); opacity: .78; }

/* Hero-style AMG at a glance */
.page-glance { background: linear-gradient(150deg,#26231f,#171717); color: #fff; }
.glance-background { inset: 0; opacity: .58; }
.glance-background::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg,rgba(18,18,18,.18),rgba(18,18,18,.94) 76%); }
.glance-shade { position: absolute; inset: 0; background: radial-gradient(circle at 80% 18%,rgba(201,150,100,.25),transparent 34%), linear-gradient(120deg,rgba(15,15,15,.25),rgba(15,15,15,.76)); }
.glance-layout { display: grid; grid-template-rows: 1fr auto auto; gap: 4%; }
.glance-layout header { position: relative; align-self: center; max-width: 88%; }
.glance-mark { display: block; margin-bottom: 4%; color: rgba(201,150,100,.22); font-size: clamp(64px,18vw,128px); font-weight: 800; line-height: .75; letter-spacing: -.06em; }
.glance-layout .page-kicker { color: var(--amg-accent); }
.glance-layout .page-title { max-width: 90%; color: #fff; }
.glance-intro { max-width: 82%; color: rgba(255,255,255,.68); line-height: 1.6; }
.page-glance .stats-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 1px; background: rgba(255,255,255,.16); border: 0; }
.page-glance .stat-card { min-height: 0; padding: 10% 9%; background: rgba(20,20,20,.72); border: 0; }
.page-glance .stat-card i { color: rgba(201,150,100,.62); }
.page-glance .stat-card strong { color: #fff; }
.page-glance .stat-card p { color: rgba(255,255,255,.62); }
.glance-context { margin: 0; padding-inline-start: 4%; color: rgba(255,255,255,.72); border-inline-start: 3px solid var(--amg-accent); line-height: 1.5; }

/* Group companies */
.page-group-companies { background: #f0ebe3; }
.group-background { position: absolute; inset: 0; opacity: .055; }
.group-background .asset-image { filter: grayscale(1); }
.group-layout { display: grid; grid-template-rows: auto 1fr auto; gap: 4%; }
.group-layout header { max-width: 88%; }
.group-layout header > p:last-child { margin: 3% 0 0; color: var(--amg-muted); line-height: 1.55; }
.group-company-flow { position: relative; min-height: 0; display: grid; grid-template-columns: minmax(0,1fr) clamp(68px,20%,88px) minmax(0,1fr); gap: 3%; align-items: stretch; }
.group-company-flow::before { content: ""; position: absolute; top: 50%; inset-inline: 10%; height: 1px; background: linear-gradient(90deg,transparent,var(--amg-accent),transparent); }
.group-hub { position: relative; z-index: 3; grid-column: 2; grid-row: 1; width: 100%; max-width: 88px; aspect-ratio: .88; align-self: start; justify-self: center; margin-top: clamp(24px,7cqw,34px); padding: 10% 9% 8%; display: grid; grid-template-rows: minmax(0,1fr) auto; place-items: center; overflow: hidden; color: var(--amg-charcoal); background: #fff; border: clamp(3px,.8cqw,4px) solid #f0ebe3; border-radius: 14px; box-shadow: 0 10px 26px rgba(23,23,23,.18); }
.group-hub-logo { width: 100%; height: 100%; min-width: 0; min-height: 0; display: grid; place-items: center; overflow: hidden; }
.group-hub-logo-image { width: 100% !important; max-width: 100%; height: 100% !important; max-height: 100%; display: block; object-fit: contain !important; object-position: center center !important; }
.group-hub small { max-width: 100%; margin-top: 5px; color: var(--amg-accent-dark); font-size: clamp(4px,1cqw,5.5px); font-weight: 900; letter-spacing: .08em; text-align: center; white-space: nowrap; }
.group-company { position: relative; min-width: 0; padding: 9%; display: grid; grid-template-rows: 34% 1fr; gap: 7%; background: rgba(255,255,255,.82); box-shadow: 0 18px 36px rgba(23,23,23,.07); }
.group-company:nth-of-type(1) { grid-column: 1; grid-row: 1; }
.group-company:nth-of-type(2) { grid-column: 3; grid-row: 1; }
.group-company:nth-of-type(3) { margin-top: 12%; margin-bottom: -12%; }
.group-company-logo { min-height: 0; display: grid; place-items: center; }
.group-company-logo .asset-image { width: 82%; height: 100%; object-fit: contain; }
.group-company-copy > span { color: var(--amg-accent-dark); font-size: clamp(6px,1.2vw,9px); font-weight: 800; letter-spacing: .14em; }
.group-company h3, .group-company p { margin: 0; }
.group-company h3 { margin-top: 4%; line-height: 1.2; }
.group-company-location { margin-top: 3px !important; color: var(--amg-accent-dark); font-weight: 700; }
.group-company-description { margin-top: 7% !important; color: var(--amg-muted); line-height: 1.55; }
.group-company a { display: inline-block; margin-top: 8%; color: var(--amg-charcoal); font-size: clamp(5.5px,1.1vw,8px); font-weight: 800; border-bottom: 1px solid var(--amg-accent); }
.group-company-website { max-width: 100%; direction: ltr; unicode-bidi: isolate; overflow-wrap: anywhere; text-decoration: none; }
.group-closing { margin: 0; text-align: center; color: var(--amg-charcoal); font-weight: 800; letter-spacing: .04em; }

/* Website-inspired colourful service bento */
.page-services { background: #f3eee7; color: var(--amg-charcoal); }
.services-background { opacity: .045; }
.services-layout { grid-template-rows: auto 1fr auto; gap: 3.5%; }
.services-grid { grid-template-columns: repeat(2,minmax(0,1fr)); grid-template-rows: repeat(5,minmax(0,1fr)); gap: 2.5%; border: 0; background: transparent; }
.service-card { padding: 6% 7%; grid-template-columns: 40px 1fr; border: 0; color: #fff; background: linear-gradient(135deg,#29241f,#171717); box-shadow: 0 10px 24px rgba(23,23,23,.10); }
.service-card:first-child { grid-column: 1 / -1; grid-template-columns: 54px 1fr; }
.service-card:nth-child(4n+2) { background: linear-gradient(135deg,#315f73,#203743); }
.service-card:nth-child(4n+3) { background: linear-gradient(135deg,#a96032,#754124); }
.service-card:nth-child(4n+4) { background: linear-gradient(135deg,#496b59,#2d4739); }
.service-card:nth-child(4n+5) { background: linear-gradient(135deg,#69567a,#453650); }
.service-card-number { color: rgba(255,255,255,.5); }
.service-card-icon { color: #fff; border: 0; border-radius: 50%; background: rgba(255,255,255,.14); }
.service-card h3 { color: #fff; }
.service-card p { color: rgba(255,255,255,.65); }
.service-card i { color: #fff; }
a.service-card:hover, a.service-card:focus-visible { background: var(--amg-charcoal); box-shadow: inset 4px 0 0 var(--amg-accent); }

/* Tendering and estimation journey */
.page-engineering-management::before { content: attr(data-page-label); color: rgba(201,150,100,.08); }
.engineering-layout { grid-template-rows: auto auto 1fr auto; gap: 3%; }
.engineering-layout header { max-width: 94%; }
.engineering-intro { margin-top: 2%; }
.tender-entry { width: fit-content; padding: 2.5% 4%; display: flex; align-items: center; gap: 12px; color: #fff; background: var(--amg-charcoal); border-radius: 999px; font-size: clamp(5px,1vw,7px); font-weight: 800; letter-spacing: .06em; }
.tender-entry i { color: var(--amg-accent); font-style: normal; }
.engineering-flow { position: relative; display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); grid-auto-rows: 1fr; gap: 2.5% 7%; }
.engineering-flow::before { top: 4%; bottom: 4%; left: 50%; width: 1px; height: auto; background: linear-gradient(var(--amg-accent),rgba(201,150,100,.15)); }
.tender-step { position: relative; min-width: 0; padding: 5% 6%; display: grid; grid-template-columns: 26px 34px 1fr; gap: 4%; align-items: center; background: rgba(255,255,255,.9); box-shadow: 0 8px 20px rgba(23,23,23,.045); }
.tender-step:nth-child(even) { transform: translateY(9%); }
.tender-step > span { color: rgba(159,109,62,.55); font-size: clamp(5px,1vw,7px); font-weight: 800; }
.tender-step-icon { width: 34px; aspect-ratio: 1; display: grid; place-items: center; color: #fff; background: var(--amg-accent-dark); border-radius: 50%; }
.tender-step:nth-child(4n+2) .tender-step-icon { background: #315f73; }
.tender-step:nth-child(4n+3) .tender-step-icon { background: #496b59; }
.tender-step:nth-child(4n+4) .tender-step-icon { background: #69567a; }
.tender-step-icon svg { width: 54%; height: 54%; }
.tender-step h3, .tender-step p { margin: 0; }
.tender-step p { margin-top: 3px; color: var(--amg-muted); line-height: 1.35; }
.engineering-closing { padding: 2.8% 4%; }

/* v5.1.0 print-fit refinements */
.page-contents.is-dense-toc .contents-list.is-hierarchical .contents-item {
  min-height: 0;
  padding-block: 0;
}
.page-contents.is-dense-toc .contents-list.is-hierarchical .contents-item.is-section {
  min-height: 29px;
}
.page-contents.is-dense-toc .contents-list.is-hierarchical .contents-item.is-child {
  min-height: 27px;
}
.page-contents.is-dense-toc .contents-list.is-hierarchical .contents-item-title {
  font-size: clamp(5.5px,1.1vw,8px);
  line-height: 1.05;
}

/* v5.2 contents: give the title the line, keep the page number at its far end */
.contents-list.is-hierarchical.is-two-column { gap: 0 3%; }
.contents-list.is-hierarchical .contents-item,
.contents-list.is-hierarchical .contents-item.is-page,
.contents-list.is-hierarchical .contents-item.is-section,
.contents-list.is-hierarchical .contents-item.is-child { grid-template-columns: minmax(0,1fr) 30px; gap: 7px; }
.contents-list.is-hierarchical .contents-item .contents-item-number { display: none; }
.contents-list.is-hierarchical .contents-item.is-child { padding-inline-start: 3%; }
.contents-list.is-hierarchical .contents-item-title { min-width: 0; line-height: 1.15; }
.contents-list.is-hierarchical .contents-item-page { justify-self: end; text-align: end; }
[dir="rtl"] .contents-list.is-hierarchical .contents-item-page { justify-self: start; text-align: start; }

.services-layout { gap: 2.2%; }
.services-grid { gap: 1.6%; }
.service-card { padding: 4% 5%; grid-template-columns: 34px 1fr; }
.service-card:first-child { grid-template-columns: 42px 1fr; }
.service-card-icon { width: 32px; }
.service-card:first-child .service-card-icon { width: 40px; }
.service-card p { margin-top: 2px; line-height: 1.25; }
.services-closing { font-size: clamp(5.5px,1.05vw,7.5px); line-height: 1.35; }

/* v5.2 services: four photographic stories per page, two facing pages */
.services-background { opacity: .2; }
.services-background::after { background: linear-gradient(180deg,rgba(243,238,231,.72),rgba(243,238,231,.92)); }
.services-layout { grid-template-rows: auto 1fr auto; gap: 2.5%; }
.services-layout header { max-width: none; display: grid; grid-template-columns: 1fr auto; gap: 2% 6%; align-items: start; }
.services-layout header .services-intro { grid-column: 1 / -1; max-width: 88%; margin-top: 0; }
.services-part { position: relative; z-index: 2; padding-top: 6px; color: var(--amg-accent-dark); font-size: clamp(6px,1.25vw,9px); font-weight: 800; letter-spacing: .12em; }
.services-grid { grid-template-columns: repeat(2,minmax(0,1fr)); grid-template-rows: repeat(2,minmax(0,1fr)); gap: 3%; }
.service-card, .service-card:first-child { position: relative; isolation: isolate; min-height: 0; padding: 8%; display: grid; grid-column: auto; grid-template-columns: 38px 1fr; align-content: end; gap: 6%; overflow: hidden; color: #fff; border: 0; border-radius: 18px 3px 18px 3px; background: linear-gradient(145deg,#315f73,#1d313a); box-shadow: 0 12px 30px rgba(23,23,23,.12); }
.service-card:nth-child(4n+2) { background: linear-gradient(145deg,#a96032,#69391f); }
.service-card:nth-child(4n+3) { background: linear-gradient(145deg,#496b59,#2c4438); }
.service-card:nth-child(4n+4) { background: linear-gradient(145deg,#69567a,#40324d); }
.service-card-media, .service-card-shade { position: absolute; inset: 0; z-index: -2; }
.service-card-media .asset-image { width: 100%; height: 100%; }
.service-card-shade { z-index: -1; background: linear-gradient(180deg,rgba(12,12,12,.08),rgba(12,12,12,.9) 82%); }
.service-card:not(.has-image) .service-card-shade { background: linear-gradient(180deg,transparent,rgba(10,10,10,.18)); }
.service-card-number { z-index: 2; color: rgba(255,255,255,.72); }
.service-card-icon, .service-card:first-child .service-card-icon { position: relative; z-index: 2; width: 38px; color: #fff; border: 1px solid rgba(255,255,255,.4); background: rgba(255,255,255,.13); backdrop-filter: blur(4px); }
.service-card-copy { position: relative; z-index: 2; min-width: 0; }
.service-card h3 { color: #fff; }
.service-card p { color: rgba(255,255,255,.78); line-height: 1.35; }
.service-card i { z-index: 2; color: #fff; }
a.service-card:hover, a.service-card:focus-visible { background: var(--amg-charcoal); box-shadow: 0 12px 30px rgba(23,23,23,.18), inset 0 -4px 0 var(--amg-accent); }

.engineering-layout { gap: 2%; }
.engineering-intro { line-height: 1.35; }
.tender-entry { padding: 2% 3.5%; }
.engineering-flow { gap: 1.8% 7%; }
.tender-step { padding: 3.5% 5%; grid-template-columns: 22px 30px 1fr; }
.tender-step-icon { width: 30px; }
.tender-step p { margin-top: 2px; line-height: 1.25; }
.engineering-closing { padding: 2% 4%; font-size: clamp(5.5px,1.05vw,7.5px); line-height: 1.35; }

/* Organic sector ribbon, image or icon */
.sectors-layout { grid-template-rows: auto 1fr auto; gap: 3.5%; }
.sectors-grid { display: flex; flex-direction: column; gap: 0; }
.sector-card { position: relative; flex: 1; min-height: 0; padding: 2.5% 3%; display: grid; grid-template-columns: 28% 1fr auto; align-items: center; gap: 5%; background: transparent; border: 0; border-bottom: 1px solid rgba(23,23,23,.14); box-shadow: none; overflow: hidden; }
.sector-card::before { top: 50%; inset-inline-start: 10%; width: 46%; height: 70%; transform: translateY(-50%) skewX(-18deg); background: color-mix(in srgb,var(--sector-color) 16%,transparent); border-radius: 50%; }
.sector-card:nth-child(even) { grid-template-columns: auto 1fr 28%; text-align: end; }
.sector-card:nth-child(even) .sector-visual { order: 3; }
.sector-card:nth-child(even) .sector-index { order: 1; }
.sector-visual { position: relative; z-index: 1; height: 82%; min-height: 0; display: grid; place-items: center; border-radius: 999px; overflow: hidden; }
.sector-visual .asset-image { width: 100%; height: 100%; }
.sector-icon { width: 62px; margin: 0; color: #fff; background: var(--sector-color); border: 0; border-radius: 50%; }
.sector-index { position: static; color: var(--sector-color); font-size: clamp(7px,1.4vw,10px); }
.sector-card h3 { position: relative; z-index: 1; max-width: none; font-size: clamp(11px,2.4vw,17px); }

/* v5.2 sectors: stable editorial bands in both LTR and RTL */
.sectors-grid { gap: 2.2%; }
.sector-card, .sector-card:nth-child(even) { flex: 1; padding: 3% 4%; grid-template-columns: 68px minmax(0,1fr) 34px; gap: 5%; text-align: start; border: 0; border-radius: 999px 24px 24px 999px; background: color-mix(in srgb,var(--sector-color) 13%,#fff); box-shadow: inset 0 0 0 1px color-mix(in srgb,var(--sector-color) 24%,transparent); }
[dir="rtl"] .sector-card, [dir="rtl"] .sector-card:nth-child(even) { border-radius: 24px 999px 999px 24px; }
.sector-card::before { inset: 0 auto 0 0; width: 7px; height: 100%; transform: none; border-radius: 0; background: var(--sector-color); }
[dir="rtl"] .sector-card::before { inset: 0 0 0 auto; }
.sector-card:nth-child(even) .sector-visual, .sector-card:nth-child(even) .sector-index { order: initial; }
.sector-visual { width: 62px; height: 62px; }
.sector-icon { width: 62px; }
.sector-card h3 { justify-self: start; text-align: start; font-size: clamp(11px,2.2vw,16px); }
.sector-index { justify-self: end; font-weight: 800; }
[dir="rtl"] .sector-index { justify-self: start; }

/* Three long equipment stories per page */
.equipment-layout { grid-template-rows: auto 1fr; gap: 3.5%; }
.equipment-grid { display: grid; grid-template-columns: 1fr; grid-template-rows: repeat(3,minmax(0,1fr)); gap: 2.5%; }
.equipment-card { grid-template-columns: 46% 1fr; background: #f0ebe3; border: 0; border-radius: 0 70px 70px 0; }
[dir="rtl"] .equipment-card { border-radius: 70px 0 0 70px; }
.equipment-card:nth-child(even) { grid-template-columns: 1fr 46%; background: #e7ece9; }
.equipment-card:nth-child(even) .equipment-media { order: 2; }
.equipment-media { border-radius: 0 70px 70px 0; }
.equipment-card:nth-child(even) .equipment-media { border-radius: 70px 0 0 70px; }
.equipment-copy { padding: 8% 9%; }
.equipment-copy h3 { margin-top: 3%; }
.equipment-copy p { margin-top: 7px; line-height: 1.55; }

/* v5.2 equipment: consistent rounded container in both directions */
.equipment-grid.equipment-count-2 { grid-template-rows: repeat(2,minmax(0,1fr)); }
.equipment-card, [dir="rtl"] .equipment-card { border-radius: 42px; overflow: hidden; }
.equipment-card:nth-child(even) .equipment-media { order: 2; }
[dir="rtl"] .equipment-card:nth-child(even) .equipment-media { order: 2; }
.equipment-media, .equipment-card:nth-child(even) .equipment-media, [dir="rtl"] .equipment-media, [dir="rtl"] .equipment-card:nth-child(even) .equipment-media { border-radius: 0; overflow: hidden; }

/* v5.3 contents: uninterrupted sequence with one fixed row rhythm */
.contents-list.is-hierarchical.is-two-column { gap: 0 5%; }
.contents-column { display: grid; grid-auto-rows: 31px; align-content: start; }
.contents-list.is-hierarchical .contents-item,
.contents-list.is-hierarchical .contents-item.is-page,
.contents-list.is-hierarchical .contents-item.is-section,
.contents-list.is-hierarchical .contents-item.is-child,
.page-contents.is-dense-toc .contents-list.is-hierarchical .contents-item,
.page-contents.is-dense-toc .contents-list.is-hierarchical .contents-item.is-page,
.page-contents.is-dense-toc .contents-list.is-hierarchical .contents-item.is-section,
.page-contents.is-dense-toc .contents-list.is-hierarchical .contents-item.is-child { min-height: 31px; height: 31px; padding: 0 2%; grid-template-columns: minmax(0,1fr) 30px; gap: 8px; background: transparent; border-bottom: 1px solid var(--amg-line); }
.contents-list.is-hierarchical .contents-item-title,
.contents-list.is-hierarchical .is-child .contents-item-title,
.contents-list.is-hierarchical .is-section .contents-item-title,
.page-contents.is-dense-toc .contents-list.is-hierarchical .contents-item-title { color: var(--amg-charcoal); font-size: clamp(6px,1.22vw,8.8px); font-weight: 650; line-height: 1.1; }
.contents-list.is-hierarchical .is-section .contents-item-title,
.contents-list.is-hierarchical .is-section .contents-item-page { color: var(--amg-accent-dark); }
.contents-list.is-hierarchical .is-child .contents-item-title,
.contents-list.is-hierarchical .is-child .contents-item-page { color: #526d7a; }
.contents-list.is-hierarchical .contents-item-page { color: var(--amg-charcoal); font-size: clamp(6px,1.2vw,8.5px); }

/* v5.3 services spread: one composition across the facing pages */
.page-services { background: #efe9e0; }
.page-services::after { content: ""; position: absolute; z-index: 0; top: 17%; width: 42%; height: 1px; background: linear-gradient(90deg,transparent,var(--amg-accent)); }
.service-part-1::after { inset-inline-end: 0; }
.service-part-2::after { inset-inline-start: 0; transform: scaleX(-1); }
.services-background { opacity: .42; }
.services-background::after { background: linear-gradient(180deg,rgba(21,21,21,.08),rgba(239,233,224,.9) 78%); }
.services-background .asset-image { filter: saturate(.72) contrast(1.04); }
.service-part-1 .services-background .asset-image { object-position: 28% center; }
.service-part-2 .services-background .asset-image { object-position: 72% center; }
.services-layout { grid-template-rows: auto 1fr; gap: 3%; }
.service-part-2 .services-layout { grid-template-rows: 10% 1fr auto; }
.services-heading { position: relative; z-index: 2; max-width: 94%; }
.services-heading .page-title { max-width: 80%; }
.services-heading .services-intro { max-width: 88%; }
.services-continuation { position: relative; z-index: 2; max-width: none; display: flex; align-items: center; gap: 12px; color: var(--amg-accent-dark); }
.services-continuation span { font-size: clamp(14px,3vw,22px); font-weight: 800; letter-spacing: -.04em; }
.services-continuation i { flex: 1; height: 1px; background: linear-gradient(90deg,var(--amg-accent),transparent); }
.services-continuation small { font-size: clamp(6px,1.1vw,8px); font-weight: 800; letter-spacing: .1em; }
.service-part-1 .services-grid { grid-template-rows: 1.08fr .92fr; }
.service-part-2 .services-grid { grid-template-rows: .92fr 1.08fr; }
.service-part-1 .service-card:nth-child(2), .service-part-1 .service-card:nth-child(3),
.service-part-2 .service-card:nth-child(1), .service-part-2 .service-card:nth-child(4) { transform: translateY(3%); }
.service-card, .service-card:first-child { border-radius: 3px; box-shadow: 0 16px 34px rgba(23,23,23,.13); }
.service-card.has-image { background: #171717; }
.services-closing { position: relative; z-index: 2; }

/* v5.3 RFQ path: a single visible route from client to mobilisation */
.engineering-layout { grid-template-rows: auto auto 1fr auto; gap: 1.5%; }
.engineering-layout header { max-width: 88%; }
.rfq-application-note { position: relative; z-index: 2; padding: 2.2% 3%; display: grid; grid-template-columns: 36px 1fr; align-items: center; gap: 3%; color: #fff; background: linear-gradient(110deg,#a86636,#6f4327); box-shadow: 0 10px 24px rgba(23,23,23,.12); }
.rfq-application-note > span { width: 34px; aspect-ratio: 1; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.42); border-radius: 50%; }
.rfq-application-note svg { width: 54%; height: 54%; }
.rfq-application-note strong { font-size: clamp(6.5px,1.25vw,9px); letter-spacing: .12em; }
.rfq-application-note p { margin: 2px 0 0; color: rgba(255,255,255,.78); line-height: 1.3; }
.engineering-flow { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); grid-template-rows: repeat(4,minmax(0,1fr)); gap: 2% 8%; }
.engineering-flow::before { content: ""; position: absolute; top: 2%; bottom: 2%; left: 50%; width: 2px; height: auto; background: linear-gradient(var(--amg-accent),#315f73,#496b59,var(--amg-accent)); }
.tender-step { width: auto; min-height: 0; padding: 3% 4%; grid-template-columns: 18px 28px 1fr; gap: 3%; justify-self: stretch; box-shadow: 0 7px 18px rgba(23,23,23,.06); border-inline-end: 3px solid var(--amg-accent); }
.tender-step:nth-child(even) { justify-self: stretch; transform: none; border-inline-end: 0; border-inline-start: 3px solid #315f73; }
.tender-step::after { content: ""; position: absolute; top: 50%; inset-inline-end: -9%; width: 9%; height: 2px; background: var(--amg-accent); }
.tender-step:nth-child(even)::after { inset-inline: -9% auto; background: #315f73; }
.tender-step-icon { width: 28px; }
.tender-step h3 { line-height: 1.15; }
.tender-step p { line-height: 1.18; }
.engineering-closing { margin: 0; }

/* v5.3 equipment: one full-width page, square on one side and curved on the other */
.equipment-layout { grid-template-rows: auto 1fr auto; gap: 2%; }
.equipment-grid, .equipment-grid.equipment-count-2 { grid-template-columns: 1fr; grid-template-rows: repeat(var(--equipment-count),minmax(0,1fr)); gap: 1.4%; }
.equipment-card, [dir="rtl"] .equipment-card, .equipment-card:nth-child(even) { grid-template-columns: 34% 1fr; min-height: 0; border-radius: 0 30px 30px 0; background: #f0ebe3; overflow: hidden; }
[dir="rtl"] .equipment-card, [dir="rtl"] .equipment-card:nth-child(even) { border-radius: 30px 0 0 30px; }
.equipment-card:nth-child(even) .equipment-media, [dir="rtl"] .equipment-card:nth-child(even) .equipment-media { order: initial; }
.equipment-media { min-height: 0; }
.equipment-copy { padding: 3.5% 5%; align-self: center; }
.equipment-copy h3 { margin-top: 1%; }
.equipment-copy p { margin-top: 3px; line-height: 1.3; }
.equipment-website { padding: 2% 3%; display: flex; align-items: center; justify-content: space-between; color: #fff; background: var(--amg-charcoal); font-size: clamp(5.5px,1.05vw,7.5px); font-weight: 750; }
.equipment-website i { color: var(--amg-accent); font-style: normal; }

/* Editorial project stories · two projects, two to four images each */
.project-category-layout { gap: 3%; }
.project-grid { display: grid; grid-template-columns: 1fr; grid-template-rows: repeat(2,minmax(0,1fr)); gap: 3%; }
.project-card { display: grid; grid-template-columns: 59% 1fr; grid-template-rows: 1fr; background: transparent; border: 0; overflow: visible; }
.project-card:nth-child(even) { grid-template-columns: 1fr 59%; }
.project-card:nth-child(even) .project-card-media { order: 2; }
.project-card-media { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); grid-template-rows: repeat(2,minmax(0,1fr)); gap: 3px; overflow: hidden; }
.project-card-media::after { display: none; }
.project-image { min-height: 0; overflow: hidden; }
.project-image .asset-image, .project-image .image-placeholder { width: 100%; height: 100%; min-height: 0; }
.project-images-2 .image-1 { grid-row: 1 / -1; }
.project-images-2 .image-2 { grid-row: 1 / -1; }
.project-images-3 .image-1 { grid-row: 1 / -1; }
.project-images-3 .image-2, .project-images-3 .image-3 { grid-column: 2; }
.project-images-4 .project-image { grid-column: auto; grid-row: auto; }
.project-card-copy { padding: 8% 9%; align-self: stretch; display: flex; flex-direction: column; justify-content: center; background: #fff; border-inline-start: 4px solid var(--amg-accent); box-shadow: 0 10px 24px rgba(23,23,23,.055); }
.project-card:nth-child(even) .project-card-copy { border-inline-start: 0; border-inline-end: 4px solid var(--amg-accent); }
.project-card-copy > span { top: 7%; }
.project-meta { margin: 7% 0; display: grid; gap: 3px; }
.project-meta p { max-width: none; color: var(--amg-accent-dark); font-size: clamp(5.5px,1.05vw,7.5px); font-weight: 700; line-height: 1.3; }
.project-scope { max-width: none !important; }

.blank-page { background: #f3f0ea; }
.blank-page::after { content: "AMG"; position: absolute; inset: 0; display: grid; place-content: center; color: rgba(201,150,100,0.2); font-size: 3rem; font-weight: 800; }

/* v5.4 · rebuilt contents, services spread and equipment showcase */

/* Contents: equal rhythm, coloured parents, direction-aware children */
.contents-list.is-hierarchical .contents-item.is-page,
.contents-list.is-hierarchical .contents-item.is-section,
.contents-list.is-hierarchical .contents-item.is-child,
.page-contents.is-dense-toc .contents-list.is-hierarchical .contents-item { height: 32px; min-height: 32px; padding-block: 0; padding-inline: 10px; }
.contents-list.is-hierarchical .contents-item.is-section,
.page-contents.is-dense-toc .contents-list.is-hierarchical .contents-item.is-section { color: #fff; background: linear-gradient(90deg,#1c1c1c 0%,#292622 100%); border-bottom-color: #292622; }
.contents-list.is-hierarchical .contents-item.is-section .contents-item-title,
.contents-list.is-hierarchical .contents-item.is-section .contents-item-page { color: #fff; }
.contents-list.is-hierarchical .contents-item.is-section .contents-item-page { color: #e7b47e; }
.contents-list.is-hierarchical .contents-item.is-child,
.page-contents.is-dense-toc .contents-list.is-hierarchical .contents-item.is-child { position: relative; padding-inline-start: 25px; background: rgba(49,95,115,.055); }
.contents-list.is-hierarchical .contents-item.is-child::before { content: ""; position: absolute; inset-inline-start: 10px; width: 7px; height: 1px; background: #315f73; }
.contents-list.is-hierarchical .contents-item-title { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.contents-list.is-hierarchical .contents-item-page { justify-self: end; }
[dir="rtl"] .contents-list.is-hierarchical .contents-item-page { justify-self: start; }

/* v8.2 contents fit: preserve complete titles and compact only when density requires it */
.contents-list.is-hierarchical .contents-item-title,
.page-contents.is-dense-toc .contents-list.is-hierarchical .contents-item-title { min-width: 0; overflow: visible; text-overflow: clip; white-space: normal; overflow-wrap: anywhere; line-height: 1.12; }
.contents-column { grid-auto-rows: minmax(32px,auto); }
.page-contents.is-compact-toc .contents-intro { margin-top: 2%; margin-bottom: 2.5%; font-size: clamp(6px,1.12vw,8px) !important; line-height: 1.35; }
.page-contents.is-compact-toc .contents-column { grid-auto-rows: minmax(29px,auto); }
.page-contents.is-compact-toc .contents-list.is-hierarchical .contents-item,
.page-contents.is-compact-toc .contents-list.is-hierarchical .contents-item.is-page,
.page-contents.is-compact-toc .contents-list.is-hierarchical .contents-item.is-section,
.page-contents.is-compact-toc .contents-list.is-hierarchical .contents-item.is-child { height: auto; min-height: 29px; padding-block: 3px; }
.page-contents.is-compact-toc .contents-list.is-hierarchical .contents-item-title { font-size: clamp(5.5px,1.05vw,7.6px); }
.page-contents.has-long-toc-titles .contents-list.is-hierarchical .contents-item-title { font-size: clamp(5.2px,.98vw,7.1px); }
.page-contents.is-ultra-dense-toc .contents-intro { margin-bottom: 1.5%; }
.page-contents.is-ultra-dense-toc .contents-column { grid-auto-rows: minmax(26px,auto); }
.page-contents.is-ultra-dense-toc .contents-list.is-hierarchical .contents-item { min-height: 26px; padding-block: 2px; }
.page-contents.is-ultra-dense-toc .contents-list.is-hierarchical .contents-item-title { font-size: clamp(5px,.92vw,6.7px); line-height: 1.08; }

/* Services: one editorial composition across two facing pages */
.page-services { background: #eee9e1; }
.page-services::before { opacity: .55; font-size: clamp(58px,16vw,112px); }
.page-services::after { top: 25.5%; width: 32%; background: var(--amg-accent); opacity: .55; }
.page-services .services-background { inset: 0 0 69% 0; opacity: 1; overflow: hidden; }
.page-services .services-background::after { background: linear-gradient(90deg,rgba(12,12,12,.78),rgba(12,12,12,.22)),linear-gradient(180deg,rgba(12,12,12,.08),rgba(12,12,12,.58)); }
[dir="rtl"] .page-services .services-background::after { background: linear-gradient(-90deg,rgba(12,12,12,.78),rgba(12,12,12,.22)),linear-gradient(180deg,rgba(12,12,12,.08),rgba(12,12,12,.58)); }
.page-services .services-background .asset-image { position: absolute; top: 0; width: 200%; max-width: none; height: 100%; object-fit: cover; filter: saturate(.72) contrast(1.08); }
[dir="ltr"] .service-part-1 .services-background .asset-image,
[dir="rtl"] .service-part-2 .services-background .asset-image { left: 0; right: auto; }
[dir="ltr"] .service-part-2 .services-background .asset-image,
[dir="rtl"] .service-part-1 .services-background .asset-image { right: 0; left: auto; }
.page-services .services-layout,
.service-part-2 .services-layout { grid-template-rows: 24% minmax(0,1fr); gap: 3%; }
.page-services .services-heading { z-index: 3; max-width: 92%; align-self: center; display: block; }
.page-services .services-heading .page-title { max-width: 86%; margin-top: 1%; line-height: .94; letter-spacing: -.045em; }
[dir="ltr"] .page-services .services-heading { direction: ltr; text-align: left; }
[dir="rtl"] .page-services .services-heading { direction: rtl; text-align: right; margin-inline-start: auto; }
.page-services:has(.services-background) .services-heading .page-kicker,
.page-services:has(.services-background) .services-heading .page-title { color: #fff; }
.page-services .services-heading .services-intro { max-width: 84%; margin-top: 2.4%; line-height: 1.35; }
.page-services:has(.services-background) .services-heading .services-intro { color: rgba(255,255,255,.78); }
.page-services .services-continuation { z-index: 3; align-self: center; max-width: 100%; color: #1c1c1c; }
.page-services:has(.services-background) .services-continuation { color: #fff; }
.page-services .services-continuation span { font-size: clamp(20px,5vw,36px); }
.page-services .services-continuation i { background: linear-gradient(90deg,currentColor,transparent); opacity: .55; }
.page-services .services-continuation small { max-width: 48%; color: inherit; letter-spacing: .13em; line-height: 1.25; }
.page-services .services-grid,
.service-part-1 .services-grid,
.service-part-2 .services-grid { display: grid; grid-template-columns: 1.16fr .84fr; grid-template-rows: repeat(3,minmax(0,1fr)); gap: 6px; border: 0; }
.service-part-2 .services-grid { grid-template-columns: .84fr 1.16fr; }
.page-services .service-card,
.page-services .service-card:first-child { min-height: 0; padding: 5.5%; grid-column: 2; grid-template-columns: 31px minmax(0,1fr); align-content: end; gap: 4%; border: 0; border-radius: 0; box-shadow: none; transform: none !important; background: #1e1d1b; }
.page-services .service-card.is-featured { grid-column: 1; grid-row: 1 / -1; padding: 7%; grid-template-columns: 42px minmax(0,1fr); }
.service-part-2 .service-card { grid-column: 1; }
.service-part-2 .service-card.is-featured { grid-column: 2; }
.page-services .service-card:not(.has-image):nth-child(2) { background: #315f73; }
.page-services .service-card:not(.has-image):nth-child(3) { background: #a65f31; }
.page-services .service-card:not(.has-image):nth-child(4) { background: #496b59; }
.page-services .service-card-media .asset-image { width: 100%; height: 100%; }
.page-services .service-card-shade { background: linear-gradient(180deg,rgba(9,9,9,.03) 25%,rgba(9,9,9,.9) 100%); }
.page-services .service-card.is-featured .service-card-shade { background: linear-gradient(180deg,rgba(9,9,9,.02),rgba(9,9,9,.88) 86%); }
.page-services .service-card-icon,
.page-services .service-card:first-child .service-card-icon { width: 31px; border-radius: 0; backdrop-filter: none; }
.page-services .service-card.is-featured .service-card-icon { width: 42px; }
.page-services .service-card-copy p { display: block; margin-top: 3px; line-height: 1.25; }
.page-services .service-card.is-featured .service-card-copy p { max-width: 90%; font-size: clamp(6px,1.16vw,8.2px); line-height: 1.4; }
.page-services .service-card-number { top: 6%; inset-inline-end: 6%; }
.page-services .services-closing { display: none; }

/* Equipment: feature-led fleet showcase with readable descriptions */
.page-equipment { background: #f6f3ed; }
.equipment-layout { grid-template-rows: auto minmax(0,1fr) auto; gap: 2.4%; }
.equipment-layout > header { display: grid; grid-template-columns: .9fr 1.1fr; gap: 7%; align-items: end; max-width: none; }
.equipment-layout > header .page-title { margin-top: 2%; line-height: .98; }
.equipment-layout > header .equipment-intro { max-width: none; margin: 0; padding-inline-start: 8%; border-inline-start: 2px solid var(--amg-accent); line-height: 1.45; }
.equipment-showcase { min-height: 0; display: grid; grid-template-columns: 1.13fr .87fr; grid-template-rows: repeat(4,minmax(0,1fr)); gap: 5px; }
.equipment-showcase .equipment-card,
[dir="rtl"] .equipment-showcase .equipment-card,
.equipment-showcase .equipment-card:nth-child(even) { min-width: 0; min-height: 0; display: grid; grid-column: 2; grid-template-columns: 38% minmax(0,1fr); grid-template-rows: 1fr; color: #1b1b1b; background: #fff; border: 0; border-radius: 0; overflow: hidden; }
.equipment-showcase .equipment-card.is-featured { grid-column: 1; grid-row: 1 / -1; grid-template-columns: 1fr; grid-template-rows: 58% 42%; color: #fff; background: #1b1b1b; }
.equipment-showcase .equipment-card:nth-child(even) .equipment-media,
[dir="rtl"] .equipment-showcase .equipment-card:nth-child(even) .equipment-media { order: initial; }
.equipment-showcase .equipment-media { min-height: 0; border-radius: 0; overflow: hidden; }
.equipment-showcase .equipment-media .asset-image,
.equipment-showcase .equipment-media .image-placeholder { width: 100%; height: 100%; min-height: 0; }
.equipment-showcase .equipment-copy { min-width: 0; padding: 5% 7%; align-self: stretch; display: flex; flex-direction: column; justify-content: center; border-inline-start: 3px solid #d5a36f; }
.equipment-showcase .is-featured .equipment-copy { padding: 6% 7%; justify-content: flex-start; border-inline-start: 0; border-top: 4px solid #d5a36f; }
.equipment-index { display: flex; justify-content: space-between; align-items: baseline; color: #a76537; font-size: clamp(5.5px,1vw,7px); font-weight: 850; letter-spacing: .08em; }
.equipment-index small { font-size: inherit; color: #807a72; }
.equipment-showcase .is-featured .equipment-index { color: #e1ad76; }
.equipment-showcase .equipment-copy h3 { margin: 2px 0 0; color: inherit; line-height: 1.12; }
.equipment-showcase .equipment-copy p { display: block; margin: 4px 0 0; color: #68635c; line-height: 1.28; overflow: visible; }
.equipment-showcase .is-featured .equipment-copy p { margin-top: 6px; color: rgba(255,255,255,.68); line-height: 1.42; }
.equipment-website { padding: 2.2% 3%; border: 0; background: linear-gradient(90deg,#a86436,#7b4728); letter-spacing: .01em; }
.equipment-website i { color: #fff; }

/* Stage 6 · company-wide projects portfolio */
.page-project-story { background: #f4f0e9; }
.page-project-story.project-position-even { background: #ece8e1; }
.project-story-layout { display: grid; grid-template-rows: auto 51% minmax(0,1fr); gap: 2.5%; }
.project-story-layout > header { position: relative; min-width: 0; padding-inline-end: 13%; }
.project-story-layout > header::after { content: ""; position: absolute; inset-inline-end: 0; top: 0; bottom: 8%; width: 3px; background: var(--amg-accent); }
.project-story-layout > header > span { position: absolute; inset-inline-end: 3%; top: 0; color: rgba(159,109,62,.55); font-size: clamp(8px,1.5vw,11px); font-weight: 850; }
.project-story-layout > header h2 { max-width: 88%; margin: 1.2% 0 0; color: var(--amg-charcoal); line-height: 1.02; letter-spacing: -.03em; }
.project-story-gallery { min-height: 0; display: grid; gap: 4px; overflow: hidden; }
.project-story-gallery.project-images-2 { grid-template-columns: 1.55fr .75fr; }
.project-story-gallery.project-images-3 { grid-template-columns: 1.4fr .8fr; grid-template-rows: repeat(2,minmax(0,1fr)); }
.project-story-gallery.project-images-3 .image-1 { grid-row: 1 / -1; }
.project-story-gallery.project-images-4 { grid-template-columns: 1.25fr .75fr; grid-template-rows: repeat(3,minmax(0,1fr)); }
.project-story-gallery.project-images-4 .image-1 { grid-row: 1 / -1; }
.project-story-image { min-width: 0; min-height: 0; overflow: hidden; background: #ddd6cb; }
.project-story-image .asset-image,
.project-story-image .image-placeholder { width: 100%; height: 100%; min-height: 0; }
.project-story-details { min-height: 0; display: grid; grid-template-columns: 1.08fr .92fr; gap: 5%; align-items: stretch; }
.project-story-meta { min-width: 0; display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); align-content: start; border-top: 1px solid rgba(23,23,23,.19); border-inline-start: 1px solid rgba(23,23,23,.19); }
.project-story-meta > div { min-width: 0; padding: 5% 6%; border-inline-end: 1px solid rgba(23,23,23,.19); border-bottom: 1px solid rgba(23,23,23,.19); }
.project-story-meta span,
.project-story-scope > small { display: block; color: var(--amg-accent-dark); font-size: clamp(5px,.92vw,6.5px); font-weight: 850; letter-spacing: .07em; text-transform: uppercase; }
.project-story-meta strong { display: block; margin-top: 3px; color: var(--amg-charcoal); font-size: clamp(6px,1.18vw,8.5px); line-height: 1.22; }
.project-story-scope { min-width: 0; padding: 6% 7%; color: #fff; background: var(--amg-charcoal); border-top: 4px solid var(--amg-accent); }
.project-story-scope ul { margin: 7% 0 0; padding: 0; display: grid; gap: 5px; list-style: none; }
.project-story-scope li { position: relative; padding-inline-start: 12px; color: rgba(255,255,255,.82); line-height: 1.32; }
.project-story-scope li::before { content: ""; position: absolute; inset-inline-start: 0; top: .55em; width: 5px; height: 1px; background: var(--amg-accent); }

/* Odd final project receives the complete facing spread */
.page-project-story.is-full-spread { background: #171717; color: #fff; }
.project-full-primary { display: grid; grid-template-rows: auto 58% minmax(0,1fr); gap: 3%; }
.project-full-primary > header { position: relative; padding-inline-end: 13%; }
.project-full-primary > header > span { position: absolute; inset-inline-end: 0; top: 0; color: var(--amg-accent); font-weight: 850; }
.project-full-primary h2 { max-width: 88%; margin: 1% 0 0; color: #fff; line-height: 1; }
.project-full-hero { min-height: 0; overflow: hidden; }
.project-full-hero .asset-image,
.project-full-hero .image-placeholder { width: 100%; height: 100%; min-height: 0; }
.project-full-primary .project-story-meta { border-color: rgba(255,255,255,.16); }
.project-full-primary .project-story-meta > div { border-color: rgba(255,255,255,.16); }
.project-full-primary .project-story-meta strong { color: #fff; }
.project-full-secondary { display: grid; grid-template-rows: auto 62% minmax(0,1fr); gap: 3%; }
.project-full-secondary > header { padding-bottom: 3%; border-bottom: 1px solid rgba(255,255,255,.18); }
.project-full-secondary > header span { color: var(--amg-accent); font-size: clamp(5.5px,1vw,7px); font-weight: 850; letter-spacing: .12em; }
.project-full-secondary > header h2 { max-width: 86%; margin: 1% 0 0; color: #fff; line-height: 1.05; }
.project-full-secondary .project-story-gallery.project-images-1 { grid-template-columns: 1fr; }
.project-full-secondary .project-story-gallery.project-images-2 { grid-template-columns: repeat(2,minmax(0,1fr)); }
.project-full-secondary .project-story-gallery.project-images-3 { grid-template-columns: 1.25fr .75fr; grid-template-rows: repeat(2,minmax(0,1fr)); }
.project-full-secondary .project-story-gallery.project-images-3 .image-1 { grid-row: 1 / -1; }
.project-full-secondary .project-story-scope { padding: 4.5% 6%; background: #232323; }
.project-full-secondary .project-story-scope ul { margin-top: 4%; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 5px 8%; }
.page-project-story.is-full-spread .page-number { color: rgba(255,255,255,.72); }
.page-project-story.is-full-spread .profile-page-footer { color: rgba(255,255,255,.58); border-color: rgba(255,255,255,.15); }

/* Stage 8.1 · featured project storylines: one coordinated two-page spread per project */
.page-featured-projects,
.page-featured-story { background: #171717; }
.featured-projects-empty { min-height: 0; display: grid; place-content: center; justify-items: center; gap: 12px; text-align: center; border: 1px dashed rgba(255,255,255,.28); }
.featured-projects-empty span { color: var(--amg-accent); font-size: clamp(24px,8vw,56px); font-weight: 250; }
.featured-projects-empty p { max-width: 60%; margin: 0; color: rgba(255,255,255,.64); font-size: clamp(7px,1.2vw,9px); line-height: 1.5; }
.page-featured-projects .page-number { color: rgba(255,255,255,.7); }
.featured-story-marker { display: flex; justify-content: space-between; align-items: center; gap: 8%; color: var(--amg-accent); font-size: clamp(5.5px,.95vw,6.8px); font-weight: 850; letter-spacing: .11em; }
.featured-story-marker span,
.featured-story-marker strong { direction: ltr; unicode-bidi: isolate; }
.featured-story-marker strong { font-size: inherit; }
.featured-story-hero { position: absolute; inset: 0; }
.featured-story-hero .asset-image,
.featured-story-hero .image-placeholder { width: 100%; height: 100%; }
.featured-story-hero-shade { position: absolute; inset: 0; background: linear-gradient(to bottom,rgba(15,15,15,.18),rgba(15,15,15,.32) 38%,rgba(15,15,15,.96) 74%); }
.featured-story-overview-layout { display: grid; grid-template-rows: minmax(0,1fr) auto; gap: 4%; color: #fff; }
.featured-story-overview-layout > header { align-self: end; max-width: 88%; }
.featured-story-overview-layout > header .featured-story-marker { width: 42%; margin-bottom: 5%; }
.featured-story-overview-layout .page-kicker { margin-bottom: 2%; color: var(--amg-accent); }
.featured-story-overview-layout h2 { max-width: 90%; margin: 0; color: #fff; line-height: .94; letter-spacing: -.04em; }
.featured-story-intro { max-width: 78%; margin: 4% 0 0; color: rgba(255,255,255,.7); line-height: 1.55; }
.featured-story-overview-bottom { min-height: 0; padding: 4%; display: grid; grid-template-columns: 18% 38% minmax(0,1fr); gap: 4%; background: rgba(20,19,18,.88); border-top: 1px solid rgba(201,150,100,.62); backdrop-filter: blur(7px); }
.featured-story-first-stage { padding-inline-end: 8%; border-inline-end: 1px solid rgba(255,255,255,.18); }
.featured-story-first-stage span { display: block; color: var(--amg-accent); font-size: clamp(14px,3.4vw,24px); font-weight: 300; line-height: 1; }
.featured-story-first-stage strong { display: block; margin-top: 10%; color: #fff; font-size: clamp(5px,.85vw,6.2px); line-height: 1.3; }
.featured-story-overview-bottom dl { margin: 0; display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); align-content: start; gap: 5px 8%; }
.featured-story-overview-bottom dt { color: var(--amg-accent); font-size: clamp(4px,.68vw,5px); font-weight: 800; letter-spacing: .045em; text-transform: uppercase; }
.featured-story-overview-bottom dd { margin: 1px 0 0; color: rgba(255,255,255,.77); font-size: clamp(5px,.82vw,6px); line-height: 1.25; }
.featured-story-scope { min-width: 0; }
.featured-story-scope > b { display: block; color: var(--amg-accent); font-size: clamp(4.5px,.74vw,5.4px); font-weight: 850; letter-spacing: .055em; text-transform: uppercase; }
.featured-story-scope ul { margin: 5% 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 3px 8px; list-style: none; }
.featured-story-scope li { position: relative; padding-inline-start: 8px; color: rgba(255,255,255,.7); line-height: 1.25; }
.featured-story-scope li::before { content: ""; position: absolute; inset-inline-start: 0; top: .55em; width: 4px; height: 1px; background: var(--amg-accent); }
.page-featured-story-overview .profile-page-footer { color: rgba(255,255,255,.58); border-color: rgba(255,255,255,.18); }
.page-featured-story-overview .page-number { color: rgba(255,255,255,.72); }

.page-featured-story-journey { background: #eee9e1; color: var(--amg-charcoal); }
.featured-story-journey-layout { display: grid; grid-template-rows: auto auto minmax(0,1fr); gap: 2.8%; }
.featured-story-journey-layout > header { display: grid; grid-template-columns: minmax(0,1fr) auto; grid-template-areas: "kicker marker" "title title"; gap: 4px 8%; padding-bottom: 3%; border-bottom: 1px solid rgba(24,24,24,.22); }
.featured-story-journey-layout > header .featured-story-marker { grid-area: marker; min-width: 105px; color: var(--amg-accent-dark); }
.featured-story-journey-layout > header .page-kicker { grid-area: kicker; margin: 0; color: var(--amg-accent-dark); }
.featured-story-journey-layout > header h2 { grid-area: title; max-width: 86%; margin: 1% 0 0; font-size: clamp(13px,2.8vw,20px); line-height: 1; letter-spacing: -.03em; }
.featured-story-timeline { display: grid; grid-template-columns: auto minmax(0,1fr) auto; align-items: center; gap: 8px; color: var(--amg-accent-dark); font-size: clamp(4.5px,.75vw,5.5px); font-weight: 850; }
.featured-story-timeline > span { grid-column: 2; height: 2px; background: linear-gradient(90deg,var(--amg-accent),#6d4527); }
.featured-story-timeline small:first-of-type { grid-column: 1; grid-row: 1; }
.featured-story-timeline small:last-of-type { grid-column: 3; grid-row: 1; }
.featured-story-stages { min-height: 0; display: grid; gap: 5px; }
.featured-story-stage { position: relative; min-width: 0; min-height: 0; margin: 0; overflow: hidden; background: #d6cec3; }
.featured-story-stage > div { width: 100%; height: 100%; min-height: 0; }
.featured-story-stage .asset-image,
.featured-story-stage .image-placeholder { width: 100%; height: 100%; min-height: 0; }
.featured-story-stage figcaption { position: absolute; inset-inline: 0; bottom: 0; min-height: 22%; padding: 3% 4%; display: flex; align-items: center; gap: 4%; color: #fff; background: linear-gradient(transparent,rgba(15,15,15,.88)); }
.featured-story-stage figcaption span { color: var(--amg-accent); font-size: clamp(7px,1.35vw,9.5px); font-weight: 300; }
.featured-story-stage figcaption strong { font-size: clamp(5.5px,.95vw,6.8px); line-height: 1.25; }
.story-stage-count-1 .featured-story-stages { grid-template-columns: 1fr; }
.story-stage-count-2 .featured-story-stages { grid-template-rows: repeat(2,minmax(0,1fr)); }
.story-stage-count-3 .featured-story-stages { grid-template-columns: repeat(2,minmax(0,1fr)); grid-template-rows: 1.08fr .92fr; }
.story-stage-count-3 .featured-story-stage:first-child { grid-column: 1 / -1; }
.story-stage-count-4 .featured-story-stages { grid-template-columns: repeat(2,minmax(0,1fr)); grid-template-rows: repeat(2,minmax(0,1fr)); }
.story-stage-count-5 .featured-story-stages,
.story-stage-count-6 .featured-story-stages { grid-template-columns: repeat(2,minmax(0,1fr)); grid-template-rows: repeat(3,minmax(0,1fr)); }
.story-stage-count-7 .featured-story-stages,
.story-stage-count-8 .featured-story-stages,
.story-stage-count-9 .featured-story-stages { grid-template-columns: repeat(3,minmax(0,1fr)); grid-template-rows: repeat(3,minmax(0,1fr)); gap: 4px; }
.story-stage-count-7 .featured-story-stage figcaption,
.story-stage-count-8 .featured-story-stage figcaption,
.story-stage-count-9 .featured-story-stage figcaption { min-height: 27%; padding: 2.5% 3%; gap: 3%; }
.story-stage-count-7 .featured-story-stage figcaption span,
.story-stage-count-8 .featured-story-stage figcaption span,
.story-stage-count-9 .featured-story-stage figcaption span { font-size: clamp(5.5px,.9vw,6.6px); }
.story-stage-count-7 .featured-story-stage figcaption strong,
.story-stage-count-8 .featured-story-stage figcaption strong,
.story-stage-count-9 .featured-story-stage figcaption strong { font-size: clamp(4.3px,.68vw,5px); line-height: 1.15; }
.page-featured-story-journey .profile-page-footer { border-color: rgba(24,24,24,.22); }
[dir="rtl"] .featured-story-overview-bottom dt,
[dir="rtl"] .featured-story-scope > b { letter-spacing: 0; text-transform: none; }

/* Stage 6.1 · multi-project editorial masonry: 2 projects per page, or 3 when required */
.page-projects-portfolio { background: #f4f1eb; }
.projects-portfolio-layout { display: grid; grid-template-rows: auto minmax(0,1fr); gap: 2%; }
.projects-portfolio-header { display: flex; justify-content: space-between; align-items: center; padding-bottom: 1.6%; border-bottom: 1px solid rgba(24,24,24,.2); }
.projects-portfolio-header .page-kicker { margin: 0; }
.projects-portfolio-header > span { color: var(--amg-accent-dark); font-size: clamp(6px,1vw,7px); font-weight: 850; letter-spacing: .12em; }
.projects-portfolio-grid { min-height: 0; display: grid; gap: 1.8%; }
.projects-count-2 .projects-portfolio-grid { grid-template-rows: repeat(2,minmax(0,1fr)); }
.portfolio-project-card { min-width: 0; min-height: 0; display: grid; grid-template-columns: 57% minmax(0,1fr); grid-template-rows: auto minmax(0,1fr); grid-template-areas: "media heading" "media copy"; column-gap: 3.5%; padding: 1.2% 0 2%; border-bottom: 1px solid rgba(24,24,24,.18); overflow: hidden; }
.projects-count-2 .portfolio-project-card:nth-child(even) { grid-template-columns: minmax(0,1fr) 57%; grid-template-areas: "heading media" "copy media"; }
.portfolio-project-card > header { grid-area: heading; min-width: 0; display: flex; align-items: flex-start; gap: 7px; padding-bottom: 3%; }
.portfolio-project-card > header > span { flex: 0 0 auto; padding-top: 2px; color: var(--amg-accent-dark); font-size: clamp(6px,1vw,7px); font-weight: 850; letter-spacing: .08em; }
.portfolio-project-card > header h2 { min-width: 0; margin: 0; color: var(--amg-charcoal); line-height: 1.04; letter-spacing: -.025em; }
.portfolio-project-media { grid-area: media; min-width: 0; min-height: 0; display: grid; gap: 3px; overflow: hidden; background: #ddd7ce; }
.portfolio-project-image { min-width: 0; min-height: 0; overflow: hidden; }
.portfolio-project-image .asset-image,
.portfolio-project-image .image-placeholder { width: 100%; height: 100%; min-height: 0; }
.portfolio-project-card.image-count-2 .portfolio-project-media { grid-template-columns: 1.35fr .65fr; }
.portfolio-project-card.image-count-3 .portfolio-project-media { grid-template-columns: 1.22fr .78fr; grid-template-rows: repeat(2,minmax(0,1fr)); }
.portfolio-project-card.image-count-3 .portfolio-project-image.image-1 { grid-row: 1 / -1; }
.portfolio-project-card.image-count-4 .portfolio-project-media { grid-template-columns: 1.22fr .78fr; grid-template-rows: repeat(3,minmax(0,1fr)); }
.portfolio-project-card.image-count-4 .portfolio-project-image.image-1 { grid-row: 1 / -1; }
.portfolio-project-copy { grid-area: copy; min-width: 0; min-height: 0; display: flex; flex-direction: column; justify-content: flex-start; gap: 3%; }
.portfolio-project-facts { display: flex; flex-wrap: wrap; align-content: flex-start; gap: 4px 10px; }
.portfolio-project-facts span { min-width: calc(50% - 5px); color: #514d47; font-size: clamp(5px,.82vw,6px); line-height: 1.25; }
.portfolio-project-facts b,
.portfolio-project-scope > b { display: block; margin-bottom: 1px; color: var(--amg-accent-dark); font-size: .78em; font-weight: 850; letter-spacing: .055em; text-transform: uppercase; }
.portfolio-project-scope { margin-top: 2%; padding-top: 3%; border-top: 2px solid var(--amg-accent); }
.portfolio-project-scope ul { margin: 3% 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 3px 10px; list-style: none; }
.portfolio-project-scope li { position: relative; padding-inline-start: 8px; color: #4d4944; line-height: 1.25; }
.portfolio-project-scope li::before { content: ""; position: absolute; inset-inline-start: 0; top: .55em; width: 4px; height: 1px; background: var(--amg-accent); }

.projects-count-3 .projects-portfolio-grid { grid-template-columns: repeat(2,minmax(0,1fr)); grid-template-rows: 1.08fr .92fr; gap: 1.7% 2%; }
.projects-count-3 .portfolio-project-card:first-child { grid-column: 1 / -1; grid-template-columns: 59% minmax(0,1fr); grid-template-areas: "media heading" "media copy"; }
.projects-count-3 .portfolio-project-card:not(:first-child) { grid-template-columns: 1fr; grid-template-rows: auto 48% minmax(0,1fr); grid-template-areas: "heading" "media" "copy"; padding-top: 2%; }
.projects-count-3 .portfolio-project-card:not(:first-child) > header { padding-bottom: 2%; }
.projects-count-3 .portfolio-project-card:not(:first-child) .portfolio-project-media { min-height: 0; }
.projects-count-3 .portfolio-project-card:not(:first-child) .portfolio-project-copy { padding-top: 3%; gap: 2%; }
.projects-count-3 .portfolio-project-card:not(:first-child) .portfolio-project-facts { gap: 2px 7px; }
.projects-count-3 .portfolio-project-card:not(:first-child) .portfolio-project-facts span { min-width: calc(50% - 4px); font-size: clamp(4.5px,.7vw,5.3px); }
.projects-count-3 .portfolio-project-card:not(:first-child) .portfolio-project-scope { margin-top: 1%; padding-top: 2.5%; }
.projects-count-3 .portfolio-project-card:not(:first-child) .portfolio-project-scope ul { margin-top: 2%; gap: 2px 7px; }

[dir="rtl"] .projects-portfolio-header > span { direction: ltr; }

.page-transition { background: #f3f0ea; }
.page-transition::before { content: ""; position: absolute; inset: 8%; border: 1px solid rgba(201,150,100,0.28); }
.transition-content { display: grid; place-content: center; justify-items: center; text-align: center; }
.transition-content span { color: rgba(201,150,100,0.26); font-size: clamp(52px, 15vw, 110px); font-weight: 800; }
.transition-content p { margin: 10px 0 0; color: var(--amg-muted); font-size: clamp(7px, 1.4vw, 10px); font-weight: 700; letter-spacing: 0.12em; }

/* Stage 7 · quality, organization, clients and credentials */
.page-quality-hse { background: #171717; color: #fff; }
.qhse-background { position: absolute; inset: 0; opacity: .13; filter: grayscale(1); }
.qhse-background::after { content: ""; position: absolute; inset: 0; background: linear-gradient(145deg, rgba(23,23,23,.92), rgba(23,23,23,.68)); }
.qhse-background .asset-image { width: 100%; height: 100%; }
.qhse-layout { display: grid; grid-template-rows: auto minmax(0,1fr) auto; gap: 4%; }
.qhse-layout .page-title { max-width: 86%; color: #fff; }
.qhse-layout .page-intro { max-width: 84%; color: rgba(255,255,255,.7); }
.qhse-grid { min-height: 0; display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 3%; }
.qhse-card { position: relative; min-height: 0; padding: 8%; display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto 1fr; gap: 5% 7%; align-content: start; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.15); }
.qhse-card > span { color: var(--amg-accent); font-size: clamp(5px,.9vw,6.5px); font-weight: 850; letter-spacing: .12em; }
.qhse-icon { width: 23px; height: 23px; color: var(--amg-accent); justify-self: end; }
.qhse-icon svg { width: 100%; height: 100%; }
.qhse-card h3 { grid-column: 1 / -1; margin: 0; color: #fff; line-height: 1.05; }
.qhse-card p { grid-column: 1 / -1; margin: 0; color: rgba(255,255,255,.68); line-height: 1.55; }
.qhse-closing { margin: 0; padding-inline-start: 4%; border-inline-start: 3px solid var(--amg-accent); color: rgba(255,255,255,.82); line-height: 1.45; }
.page-quality-hse .profile-page-footer { border-top-color: rgba(255,255,255,.18); }
.page-quality-hse .profile-page-footer a, .page-quality-hse .page-number { color: rgba(255,255,255,.62); }

.page-org-leadership { background: #f4f0e9; }
.page-org-functions { background: #ece7df; }
.org-page-layout { display: grid; grid-template-rows: auto auto minmax(0,1fr); gap: 3.5%; }
.org-page-layout .page-title { max-width: 92%; }
.org-page-layout .page-intro { max-width: 88%; }
.org-summary { padding: 3% 4%; display: grid; grid-template-columns: auto 1fr auto; align-items: baseline; gap: 2%; background: #1e1e1e; color: #fff; }
.org-summary strong { color: var(--amg-accent); font-size: clamp(18px,4.5vw,32px); line-height: 1; }
.org-summary span { font-size: clamp(6px,1vw,7px); font-weight: 750; }
.org-summary small { color: rgba(255,255,255,.55); font-size: clamp(4.5px,.78vw,5.5px); }
.org-leadership-grid { min-height: 0; display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); grid-auto-rows: minmax(0,1fr); gap: 2.5%; }
.org-position { position: relative; padding: 7%; display: flex; flex-direction: column; justify-content: space-between; background: #fff; border: 1px solid rgba(24,24,24,.14); }
.org-position.depth-0 { grid-column: 1 / -1; min-height: 18%; background: #1d1d1d; color: #fff; border-color: #1d1d1d; }
.org-position.depth-1 { border-top: 3px solid var(--amg-accent); }
.org-position.depth-2 { background: rgba(255,255,255,.58); }
.org-position span { color: var(--amg-accent-dark); font-size: clamp(4.5px,.75vw,5.5px); font-weight: 850; letter-spacing: .09em; }
.org-position h3 { max-width: 92%; margin: 6% 0 0; font-size: clamp(8px,1.6vw,12px); line-height: 1.12; }
.org-position.depth-0 h3 { color: #fff; font-size: clamp(12px,2.4vw,18px); }
.org-functions-grid { min-height: 0; display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); grid-auto-rows: minmax(0,auto); gap: 2.2%; align-content: start; overflow: hidden; }
.org-function-group { min-width: 0; padding: 5%; background: rgba(255,255,255,.72); border: 1px solid rgba(24,24,24,.13); }
.org-function-group header { display: grid; grid-template-columns: 20px 1fr; align-items: center; gap: 7px; padding-bottom: 4%; border-bottom: 2px solid var(--amg-accent); }
.org-function-group header span { width: 20px; height: 20px; color: var(--amg-accent-dark); }
.org-function-group header svg { width: 100%; height: 100%; }
.org-function-group h3 { margin: 0; color: #222; font-size: clamp(7px,1.25vw,9px); line-height: 1.1; }
.org-function-group ul { margin: 4% 0 0; padding: 0; display: grid; gap: 3px; list-style: none; }
.org-function-group li { position: relative; padding-inline-start: calc(8px + var(--org-depth,0) * 4px); color: #555049; font-size: clamp(4.6px,.78vw,5.6px); line-height: 1.25; }
.org-function-group li::before { content: ""; position: absolute; inset-inline-start: calc(var(--org-depth,0) * 4px); top: .55em; width: 4px; height: 1px; background: var(--amg-accent-dark); }

.page-org-editorial, .page-org-chart { background: #fff; }
.org-editorial-layout { display: grid; grid-template-rows: auto minmax(0,1fr); gap: 3.5%; }
.org-editorial-heading { position: relative; padding-bottom: 2%; }
.org-editorial-heading .page-title { max-width: 90%; margin-bottom: 0; }
.org-editorial-heading > span { display: block; width: 42px; height: 4px; margin-top: 2.5%; background: linear-gradient(90deg,var(--amg-accent),#171717); }
.org-editorial-body { min-height: 0; display: grid; grid-template-columns: 44% minmax(0,1fr); overflow: hidden; background: #202020; border: 1px solid rgba(24,24,24,.18); box-shadow: 0 14px 32px rgba(24,24,24,.1); }
.org-editorial-copy { min-width: 0; min-height: 0; padding: 7.5% 8%; display: flex; flex-direction: column; justify-content: center; overflow: hidden; color: #fff; }
.org-editorial-copy > strong { display: block; margin-bottom: 5%; color: var(--amg-accent); font-size: clamp(6px,1.05vw,7.5px); line-height: 1.4; }
.org-editorial-paragraphs { min-height: 0; }
.org-editorial-copy p { margin: 0 0 5%; color: rgba(255,255,255,.9); font-size: clamp(5.2px,.88vw,6.3px); line-height: 1.48; }
.org-editorial-copy p:last-child { margin-bottom: 0; }
.org-editorial-image { position: relative; min-width: 0; min-height: 0; margin: 0; padding: 5%; display: grid; place-items: center; overflow: hidden; background: linear-gradient(145deg,#eeeae4,#d8d0c6); }
.org-editorial-image .asset-image, .org-editorial-image .image-placeholder { width: 100%; height: 100%; min-height: 0; }
.org-editorial-image .asset-image { object-fit: contain !important; object-position: center center !important; filter: none; }
.org-editorial-image .image-placeholder { border: 1px dashed rgba(43,39,35,.25); background: rgba(255,255,255,.35); color: #393939; }
.org-editorial-image figcaption { position: absolute; inset-inline: 5%; bottom: 3%; padding-top: 6px; color: #5d554c; border-top: 1px solid rgba(40,36,32,.2); font-size: clamp(4px,.68vw,5px); font-weight: 850; letter-spacing: .08em; text-align: center; }
.page-org-editorial.is-compact-copy .org-editorial-copy > strong { margin-bottom: 3.5%; font-size: clamp(5.3px,.9vw,6.5px) !important; }
.page-org-editorial.is-compact-copy .org-editorial-copy p { margin-bottom: 3%; font-size: clamp(4.7px,.78vw,5.7px) !important; line-height: 1.4; }
.page-org-editorial.is-dense-copy .org-editorial-copy { padding-block: 5%; }
.page-org-editorial.is-dense-copy .org-editorial-copy > strong { margin-bottom: 2.5%; font-size: clamp(4.8px,.8vw,5.8px) !important; }
.page-org-editorial.is-dense-copy .org-editorial-copy p { margin-bottom: 2.2%; font-size: clamp(4.1px,.68vw,5px) !important; line-height: 1.34; }
.page-org-editorial.is-ultra-dense-copy .org-editorial-copy { padding: 4% 6%; }
.page-org-editorial.is-ultra-dense-copy .org-editorial-copy > strong { margin-bottom: 2%; font-size: clamp(4.2px,.7vw,5px) !important; line-height: 1.25; }
.page-org-editorial.is-ultra-dense-copy .org-editorial-copy p { margin-bottom: 1.6%; font-size: clamp(3.6px,.58vw,4.4px) !important; line-height: 1.24; }

.org-chart-layout { position: relative; display: grid; grid-template-rows: auto minmax(0,1fr); gap: 6%; padding-top: 8% !important; }
.org-root-card, .org-executive-card, .org-flow-card { position: relative; z-index: 2; background: #fff; text-align: center; }
.org-root-card { width: 29%; min-height: 46px; margin-inline: auto; padding: 5px; display: grid; justify-items: center; align-content: center; gap: 4px; color: #fff; background: #1e2529; border-top: 3px solid var(--amg-accent); box-shadow: 0 5px 12px rgba(22,29,32,.14); }
.org-root-card::after { content: ""; position: absolute; top: 100%; left: 50%; height: 24px; border-left: 1px dotted #999; }
.org-root-card strong { font-size: clamp(7px,1.25vw,9px); font-weight: 900; text-transform: uppercase; }
.org-person-mark { position: relative; width: 12px; height: 14px; display: inline-block; }
.org-person-mark::before { content: ""; position: absolute; top: 0; left: 4px; width: 5px; height: 5px; border-radius: 50%; background: #171717; }
.org-person-mark::after { content: ""; position: absolute; left: 2px; bottom: 0; width: 9px; height: 8px; border-radius: 5px 5px 2px 2px; background: #171717; }
.org-person-mark.is-root { transform: scale(1.12); }
.org-root-card .org-person-mark::before, .org-root-card .org-person-mark::after { background: var(--amg-accent); }
.org-executive-grid { position: relative; min-height: 0; display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 7%; padding-top: 1px; }
.org-executive-grid::before { content: ""; position: absolute; z-index: 0; top: -24px; left: 24%; right: 24%; border-top: 1px dotted #999; }
.org-executive { position: relative; min-width: 0; min-height: 0; display: grid; grid-template-rows: auto minmax(0,1fr); gap: 6%; }
.org-executive::before { content: ""; position: absolute; z-index: 0; bottom: 100%; left: 50%; height: 25px; border-left: 1px dotted #999; }
.org-executive { --executive-accent: #a66a35; }
.org-executive:nth-child(2) { --executive-accent: #3f687f; }
.org-executive-card { width: 46%; min-height: 38px; margin-inline: auto; padding: 4px; display: grid; justify-items: center; align-content: center; gap: 3px; color: #fff; background: var(--executive-accent); box-shadow: 0 4px 10px rgba(25,25,25,.12); }
.org-executive-card strong { font-size: clamp(6px,1.05vw,7.5px); font-weight: 900; text-transform: uppercase; }
.org-executive-card .org-person-mark::before, .org-executive-card .org-person-mark::after { background: #fff; }
.org-executive-branches { position: relative; min-width: 0; min-height: 0; display: grid; grid-template-columns: repeat(var(--branch-count),minmax(0,1fr)); gap: 3px; align-items: start; padding-top: 12px; }
.org-executive-branches::before { content: ""; position: absolute; top: 0; left: calc(50% / var(--branch-count)); right: calc(50% / var(--branch-count)); border-top: 1px dotted #aaa; }
.org-branch-tree { position: relative; min-width: 0; --branch-accent: #6d746f; --branch-tint: #f2f3f1; }
.org-executive:nth-child(1) .org-branch-tree:nth-child(1) { --branch-accent: #167a76; --branch-tint: #e8f5f3; }
.org-executive:nth-child(1) .org-branch-tree:nth-child(2) { --branch-accent: #b57437; --branch-tint: #fbf0e5; }
.org-executive:nth-child(1) .org-branch-tree:nth-child(3) { --branch-accent: #65748c; --branch-tint: #edf0f5; }
.org-executive:nth-child(2) .org-branch-tree:nth-child(1) { --branch-accent: #745b83; --branch-tint: #f2edf5; }
.org-executive:nth-child(2) .org-branch-tree:nth-child(2) { --branch-accent: #557359; --branch-tint: #edf4ed; }
.org-executive:nth-child(2) .org-branch-tree:nth-child(3) { --branch-accent: #975454; --branch-tint: #f7eded; }
.org-branch-tree::before { content: ""; position: absolute; bottom: 100%; left: 50%; height: 12px; border-left: 1px dotted #aaa; }
.org-flow-node { position: relative; min-width: 0; }
.org-flow-card { min-width: 0; min-height: 27px; padding: 4px 2px; display: grid; grid-template-columns: 10px minmax(0,1fr); align-items: center; gap: 2px; color: var(--branch-accent); background: var(--branch-tint); border: 1px solid var(--branch-accent); box-shadow: 0 2px 5px rgba(25,25,25,.06); }
.org-flow-card .org-person-mark { width: 9px; height: 11px; transform: scale(.72); transform-origin: center; }
.org-flow-card .org-person-mark::before, .org-flow-card .org-person-mark::after { background: var(--branch-accent); }
.org-flow-card strong { min-width: 0; font-size: clamp(3.7px,.62vw,4.6px); font-weight: 800; line-height: 1.08; text-transform: uppercase; overflow-wrap: anywhere; }
.org-flow-children { position: relative; min-width: 0; display: grid; grid-template-columns: repeat(var(--child-count,1),minmax(0,1fr)); gap: 3px; padding-top: 11px; }
.org-flow-children.count-1 { --child-count: 1; }
.org-flow-children.count-2 { --child-count: 2; }
.org-flow-children.count-3 { --child-count: 3; }
.org-flow-children::before { content: ""; position: absolute; top: 0; left: calc(50% / var(--child-count,1)); right: calc(50% / var(--child-count,1)); border-top: 1px dotted #aaa; }
.org-flow-children > .org-flow-node::before { content: ""; position: absolute; bottom: 100%; left: 50%; height: 11px; border-left: 1px dotted #aaa; }
.page-org-chart .profile-page-footer, .page-org-editorial .profile-page-footer { border-top-color: rgba(23,23,23,.24); }
[dir="rtl"] .org-flow-card { grid-template-columns: minmax(0,1fr) 10px; }
[dir="rtl"] .org-flow-card .org-person-mark { order: 2; }

.page-clients-partners { background: #faf8f4; }
.page-documents { background: #f1ede6; }
.library-page-layout { display: grid; grid-template-rows: auto minmax(0,1fr); gap: 4%; }
.library-page-layout .page-title { max-width: 90%; }
.library-page-layout .page-intro { max-width: 86%; }
.clients-grid { min-height: 0; display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); grid-template-rows: repeat(4,minmax(0,1fr)); gap: 2%; }
.client-card { min-width: 0; min-height: 0; padding: 8%; display: grid; grid-template-rows: minmax(0,1fr) auto auto; place-items: center; text-align: center; background: #fff; border: 1px solid rgba(24,24,24,.12); }
.client-card img { width: 78%; height: 100%; max-height: 52px; object-fit: contain; filter: grayscale(1); }
.client-monogram { width: 44px; height: 44px; display: grid; place-content: center; color: var(--amg-accent-dark); background: #f0e8de; border: 1px solid #dbc9b7; font-size: clamp(9px,1.8vw,13px); font-weight: 850; letter-spacing: .05em; }
.client-card h3 { margin: 6% 0 0; font-size: clamp(6px,1.05vw,7.5px); line-height: 1.2; }
.client-card small { margin-top: 3%; color: var(--amg-accent-dark); font-size: clamp(4px,.7vw,5px); font-weight: 850; letter-spacing: .09em; }
.library-empty { grid-column: 1 / -1; align-self: center; margin: 0; padding: 10%; text-align: center; color: var(--amg-muted); background: rgba(255,255,255,.6); border: 1px dashed rgba(24,24,24,.2); font-size: clamp(7px,1.2vw,9px); }
.document-page-layout, .documents-grid { min-height: 0; height: 100%; }
.documents-grid { display: grid; grid-template-columns: minmax(0,1fr); grid-template-rows: minmax(0,1fr); }
.document-card { min-width: 0; min-height: 0; display: grid; grid-template-rows: auto auto minmax(0,1fr) auto; background: #fbf9f5; border: 1px solid rgba(24,24,24,.16); color: inherit; text-decoration: none; box-shadow: inset 0 0 0 5px #fbf9f5, inset 0 0 0 6px rgba(201,150,100,.58); }
.document-brand > span { display: block; padding: 4.5% 4% 3.7%; text-align: center; color: #756d63; font-size: clamp(6px,1.05vw,7.6px); font-weight: 650; letter-spacing: .025em; }
.document-band { position: relative; height: 68px; background: #202020; }
.document-logo-seal { position: absolute; z-index: 2; left: 50%; top: 50%; width: 82px; height: 82px; padding: 9px; display: grid; place-items: center; transform: translate(-50%,-50%); overflow: hidden; background: #fff; border: 3px solid #202020; border-radius: 50%; box-shadow: 0 0 0 3px #fbf9f5; }
.document-logo-seal img { width: 100%; height: 100%; object-fit: contain; }
.document-heading { padding: 8.5% 7% 3%; text-align: center; }
.document-heading h3 { margin: 0; font-size: clamp(9px,1.65vw,12px); font-weight: 760; line-height: 1.15; }
.document-heading i { width: 42%; max-width: 150px; height: 3px; margin: 1.4% auto 0; display: block; background: var(--amg-accent-dark); }
.document-heading p { margin: 1.2% 0 0; color: #413d38; font-size: clamp(5.5px,.94vw,6.8px); font-weight: 650; }
.document-frame { min-height: 0; margin: 0 5.5%; padding: 1.8%; display: grid; background: #fff; border: 1.5px solid var(--amg-accent-dark); box-shadow: 0 7px 18px rgba(25,22,18,.12); }
.document-preview { min-height: 0; display: grid; place-content: center; overflow: hidden; background: #eeeae3; border: 1px solid rgba(24,24,24,.16); }
.document-preview img { width: 100%; height: 100%; object-fit: contain; background: #fff; }
.document-preview > span { width: 28px; height: 28px; color: var(--amg-accent-dark); }
.document-preview svg { width: 100%; height: 100%; }
.document-meta { padding: 2.8% 7% 3.5%; display: flex; justify-content: space-between; gap: 4%; color: #766d63; font-size: clamp(4.5px,.75vw,5.5px); }
.document-card[href]:hover { border-color: var(--amg-accent-dark); }

/* Stage 8 · contact and closing covers */
.page-contact-rfq { background: #1a1918; color: #fff; }
.closing-page-background { position: absolute; inset: 0; opacity: .2; filter: grayscale(1); }
.closing-page-background::after { content: ""; position: absolute; inset: 0; background: linear-gradient(145deg,rgba(19,18,17,.82),rgba(19,18,17,.97)); }
.contact-rfq-shade { position: absolute; inset: 0; background: radial-gradient(circle at 85% 16%,rgba(201,150,100,.22),transparent 34%); }
.contact-rfq-layout { display: grid; grid-template-rows: auto minmax(0,1fr) auto; gap: 5%; }
.contact-rfq-layout > header { max-width: 88%; }
.contact-rfq-layout .page-kicker { color: var(--amg-accent); }
.contact-rfq-layout .page-title { max-width: 82%; color: #fff; line-height: .97; }
.contact-rfq-layout > header > p:last-child { max-width: 78%; margin: 3% 0 0; color: rgba(255,255,255,.67); line-height: 1.6; }
.contact-rfq-card { min-height: 0; display: grid; grid-template-columns: minmax(0,1fr) 35%; overflow: hidden; color: var(--amg-charcoal); background: #f3efe8; box-shadow: 0 16px 34px rgba(0,0,0,.22); }
.contact-rfq-details { min-width: 0; padding: 8%; display: grid; grid-template-rows: auto auto minmax(0,1fr); }
.contact-rfq-details > p { margin: 0 0 2%; color: var(--amg-accent-dark); font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }
.contact-rfq-details > h3 { margin: 0 0 8%; font-size: clamp(10px,2.1vw,15px); line-height: 1.05; }
.contact-rfq-details > div { display: grid; align-content: start; gap: 8px; }
.closing-contact-row { min-width: 0; display: grid; grid-template-columns: 24px minmax(0,1fr); gap: 4%; padding-bottom: 7px; border-bottom: 1px solid rgba(24,24,24,.12); }
.closing-contact-row > span { color: var(--amg-accent-dark); font-size: clamp(5px,.85vw,6px); font-weight: 850; }
.closing-contact-row small { display: block; margin-bottom: 1px; color: #8a8177; font-size: clamp(4.5px,.7vw,5.2px); font-weight: 800; letter-spacing: .05em; text-transform: uppercase; }
.closing-contact-row a,
.closing-contact-row div > span { display: block; color: #282522; font-size: clamp(6px,1.05vw,7.5px); line-height: 1.35; overflow-wrap: anywhere; }
.contact-rfq-qr { min-width: 0; padding: 13% 12%; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; color: #fff; background: linear-gradient(145deg,#a46c3b,#674024); text-decoration: none; }
.contact-rfq-qr > span { width: 100%; max-width: 120px; aspect-ratio: 1; padding: 6px; display: block; background: #fff; box-shadow: 0 8px 20px rgba(0,0,0,.2); }
.contact-rfq-qr img { width: 100%; height: 100%; object-fit: contain; }
.contact-rfq-qr strong { margin-top: 10%; font-size: clamp(8px,1.5vw,11px); letter-spacing: .14em; }
.contact-rfq-qr small { margin-top: 4%; color: rgba(255,255,255,.8); line-height: 1.4; }
.contact-rfq-closing { margin: 0; color: rgba(255,255,255,.72); }
.page-contact-rfq .profile-page-footer { color: rgba(255,255,255,.5); border-color: rgba(255,255,255,.16); }
.page-contact-rfq .page-number { color: rgba(255,255,255,.72); }

.page-inside-back-cover { overflow: hidden; background: #f1ede6; }
.inside-back-background { position: absolute; inset: 48% 0 0; opacity: .15; filter: grayscale(1); }
.inside-back-background::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to bottom,#f1ede6 0%,rgba(241,237,230,.65) 36%,#f1ede6 100%); }
.inside-back-layout { display: grid; grid-template-rows: minmax(0,1fr) auto; align-items: center; }
.inside-back-mark { position: absolute; inset-inline-end: 2%; top: 12%; color: rgba(201,150,100,.1); font-size: clamp(82px,24vw,170px); font-weight: 900; letter-spacing: -.1em; line-height: .75; }
.inside-back-layout > header { position: relative; z-index: 2; width: 78%; margin-top: 8%; }
.inside-back-logo { width: 90px; height: 50px; margin-bottom: 12%; }
.inside-back-logo-image { width: 100%; height: 100%; object-fit: contain; object-position: left center; }
[dir="rtl"] .inside-back-logo-image { object-position: right center; }
.inside-back-layout .page-title { max-width: 86%; margin-top: 2%; line-height: .98; }
.inside-back-layout > header > p:last-child { max-width: 82%; margin: 6% 0 0; color: #57514a; line-height: 1.75; }
.inside-back-layout > footer { position: relative; z-index: 2; padding-top: 4%; display: flex; justify-content: space-between; align-items: center; gap: 5%; color: #6a635b; border-top: 1px solid rgba(24,24,24,.18); }
.inside-back-layout > footer a { color: var(--amg-accent-dark); font-size: clamp(6px,1vw,7px); font-weight: 800; text-decoration: none; }

.page-back-cover { background: #171717; color: #fff; }
.back-cover-media { position: absolute; inset: 0; }
.back-cover-media .asset-image,
.back-cover-media .image-placeholder { width: 100%; height: 100%; }
.back-cover-shade { position: absolute; inset: 0; opacity: var(--back-cover-overlay-opacity, 1); background: linear-gradient(to bottom,rgba(15,15,15,.48),rgba(15,15,15,.82) 60%,rgba(15,15,15,.96)); }
.back-cover-layout { display: grid; grid-template-rows: minmax(0,1fr) auto; }
.back-cover-logo { width: 116px; height: 68px; padding: 9px 13px; display: grid; place-items: center; background: rgba(255,255,255,.93); }
.back-cover-logo-image { width: 100%; height: 100%; object-fit: contain; }
.back-cover-copy { align-self: end; max-width: 82%; padding-bottom: 12%; }
.back-cover-copy h2 { margin: 0; color: #fff; line-height: 1.02; letter-spacing: -.035em; }
.back-cover-copy p { margin: 4% 0 0; color: var(--amg-accent); font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.back-cover-layout > footer { padding-top: 4%; display: flex; justify-content: space-between; gap: 5%; color: rgba(255,255,255,.58); border-top: 1px solid rgba(255,255,255,.18); font-size: clamp(5px,.85vw,6px); font-weight: 700; letter-spacing: .08em; }
.back-cover-layout > footer a { color: inherit; text-decoration: none; }
.page-back-cover.is-full-cover-artwork .back-cover-shade,
.page-back-cover.is-full-cover-artwork .back-cover-layout { display: none; }

[dir="rtl"] .contact-rfq-details > p,
[dir="rtl"] .closing-contact-row small,
[dir="rtl"] .back-cover-copy p { letter-spacing: 0; text-transform: none; }

[dir="rtl"] .page-kicker { letter-spacing: 0; text-transform: none; }
[dir="rtl"] .cover-kicker, [dir="rtl"] .cover-meta { letter-spacing: 0; text-transform: none; }
[dir="rtl"] .contents-item { grid-template-columns: auto 1fr 38px; }
[dir="rtl"] .contents-item-number { order: 3; }
[dir="rtl"] .contents-item-page { order: 1; }

/* v9.0 contents: one readable column for screen and print */
.page-contents > .profile-page-inner { padding-top: 5.8%; }
.page-contents .contents-intro,
.page-contents.is-dense-toc .contents-intro,
.page-contents.is-compact-toc .contents-intro,
.page-contents.is-ultra-dense-toc .contents-intro { max-width: 100%; margin: 2% 0 2.5%; line-height: 1.35; }
.page-contents .contents-list.is-hierarchical.is-single-column { display: block; border-top: 1px solid var(--amg-line); }
.page-contents .contents-list.is-single-column .contents-column { display: grid; grid-template-columns: 1fr; grid-auto-rows: auto; border-top: 0; }
.page-contents .contents-list.is-single-column .contents-item,
.page-contents.is-dense-toc .contents-list.is-single-column .contents-item,
.page-contents.is-compact-toc .contents-list.is-single-column .contents-item,
.page-contents.is-ultra-dense-toc .contents-list.is-single-column .contents-item,
.page-contents .contents-list.is-single-column .contents-item.is-page,
.page-contents .contents-list.is-single-column .contents-item.is-child { height: auto !important; min-height: 2.65cqw !important; padding-block: .25cqw !important; padding-inline-end: 1.4cqw !important; grid-template-columns: minmax(0,1fr) 4.3cqw; gap: 1.25cqw; }
.page-contents .contents-list.is-single-column .contents-item.is-section,
.page-contents.is-dense-toc .contents-list.is-single-column .contents-item.is-section { height: auto !important; min-height: 3.15cqw !important; padding-block: .35cqw !important; }
.page-contents .contents-list.is-single-column .contents-item.is-child { padding-inline-start: 3.55cqw !important; }
.page-contents .contents-list.is-single-column .contents-item-title { overflow: visible; white-space: normal; overflow-wrap: normal; line-height: 1.18; }
.page-contents .contents-list.is-single-column .contents-item-page { align-self: center; justify-self: end; }
[dir="rtl"] .page-contents .contents-list.is-single-column .contents-item-page { justify-self: start; }

@media (max-width: 920px) {
  :root { --page-screen-w: min(520px, calc(100vw - 28px)); }
  .book-stage { width: min(var(--page-screen-w),100%); }
  .spread, .spread.is-cover-spread { grid-template-columns: var(--page-screen-w); gap: 22px; filter: none; }
  .profile-page { box-shadow: 0 16px 30px rgba(0,0,0,0.16); }
  .spread .profile-page + .profile-page { border-inline-start: 0; }
  .blank-page { display: none; }
  #view-toggle { display: none; }
}

@media (max-width: 620px) {
  :root { --toolbar-h: auto; }
  .viewer-toolbar { align-items: flex-start; flex-direction: column; gap: 8px; }
  .viewer-actions { width: 100%; display: grid; grid-template-columns: 1fr 1fr 42px; }
  .toolbar-button { justify-content: center; padding-inline: 8px; }
  .viewer-actions .toolbar-button span:not(.button-icon) { font-size: 0.65rem; }
  .preview-banner { top: 0; }
  .profile-shell { padding-inline: 10px; }
  .book-controls { width: 100%; gap: 10px; }
  .book-primary-controls { grid-template-columns: 52px minmax(0,1fr) 52px; gap: 8px; }
  .book-control { min-height: 44px; padding: 0; }
  .book-control > span:not(.book-control-icon) { display: none; }
  .book-position span { max-width: 190px; font-size: .6rem; line-height: 1.35; }
  .book-quick-nav { grid-template-columns: 38px minmax(0,1fr) 38px; gap: 8px; padding-inline: 8px; }
  .book-edge-control { width: 38px; height: 36px; }
  .book-scrubber output { font-size: .63rem; }
}

@page { size: A4 portrait; margin: 0; }

@media print {
  html, body { margin: 0; background: #fff; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .viewer-toolbar, .preview-banner, .book-controls, .book-turn-layer { display: none !important; }
  .book-stage { width: auto; min-height: 0; margin: 0; perspective: none; }
  .book-stage::after { display: none; }
  .spread:not(.is-cover-spread)::before { display: none !important; }
  .profile-shell { padding: 0; }
  .spread, .spread.is-cover-spread, body.single-page-mode .spread {
    display: block;
    width: auto;
    max-width: none;
    margin: 0;
    filter: none;
  }
  .book-stage > .spread {
    position: static !important;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
  }
  .book-stage .profile-page { visibility: visible !important; }
  .profile-page, body.single-page-mode .profile-page {
    width: var(--page-w);
    height: var(--page-h);
    aspect-ratio: auto;
    box-shadow: none;
    page-break-after: always;
    break-after: page;
  }
  .profile-page:last-child { page-break-after: auto; break-after: auto; }
  .blank-page { display: none; }
}

/* v9.1 · Featured Projects / Construction Stages Editorial */
.page-featured-stage {
  --stage-navy: #071e2b;
  --stage-navy-soft: #0c2a3a;
  --stage-copper: #d88946;
  --stage-ivory: #f4f1eb;
  --footer-zone: 7%;
  color: #fff;
  background: var(--stage-navy);
}
.page-featured-stage.is-light,
.page-featured-stage.is-opening.is-second-side { color: #171717; background: var(--stage-ivory); }
.stage-editorial-ambient { position: absolute; z-index: 0; inset: 0; overflow: hidden; pointer-events: none; }
.stage-editorial-ambient::before { content: ""; position: absolute; inset: 0; opacity: .28; background: radial-gradient(circle at 20% 18%,rgba(216,137,70,.22),transparent 32%),linear-gradient(135deg,transparent 0 48%,rgba(255,255,255,.035) 48% 49%,transparent 49% 100%); }
.page-featured-stage.is-light .stage-editorial-ambient::before,
.page-featured-stage.is-opening.is-second-side .stage-editorial-ambient::before { opacity: .45; background: radial-gradient(circle at 82% 12%,rgba(216,137,70,.13),transparent 28%),linear-gradient(135deg,transparent 0 48%,rgba(7,30,43,.04) 48% 49%,transparent 49% 100%); }
.page-featured-stage > .stage-editorial-layout { height: calc(100% - var(--footer-zone)); padding: 7.3% 7.1% 3.5%; display: grid; grid-template-rows: auto minmax(0,1fr) auto; gap: 3.1%; }
.stage-editorial-layout > header { position: relative; z-index: 4; min-width: 0; padding-inline-start: 4.2%; border-inline-start: .85cqw solid var(--stage-copper); }
.stage-editorial-marker { display: flex; align-items: center; justify-content: space-between; margin-bottom: 3.2%; color: var(--stage-copper); font-size: 1.65cqw; font-weight: 900; letter-spacing: .09em; direction: ltr; }
.stage-editorial-layout header .page-kicker { margin: 0 0 1.8%; color: var(--stage-copper); font-size: 1.48cqw; font-weight: 850; letter-spacing: .095em; text-transform: uppercase; }
.stage-editorial-layout header > small { display: block; margin-bottom: 1.1%; color: rgba(255,255,255,.58); font-size: 1.28cqw; font-weight: 700; }
.page-featured-stage.is-light .stage-editorial-layout header > small,
.page-featured-stage.is-opening.is-second-side .stage-editorial-layout header > small { color: rgba(23,23,23,.52); }
.stage-editorial-layout h2 { max-width: 92%; margin: 0; color: inherit; font-size: 5.7cqw; line-height: .96; letter-spacing: -.035em; }
.stage-editorial-layout h3 { margin: 1.6% 0 0; color: rgba(255,255,255,.72); font-size: 2.4cqw; font-weight: 450; line-height: 1.16; }
.page-featured-stage.is-light .stage-editorial-layout h3,
.page-featured-stage.is-opening.is-second-side .stage-editorial-layout h3 { color: rgba(23,23,23,.62); }
.stage-editorial-layout time { display: inline-block; margin-top: 2.5%; padding-top: 1.5%; color: #fff; border-top: .35cqw solid var(--stage-copper); font-size: 1.65cqw; font-weight: 780; }
.stage-editorial-continuation { padding-inline-start: 3% !important; }
.stage-editorial-continuation .stage-editorial-marker { margin-bottom: 2%; }
.stage-editorial-continuation .page-kicker { margin-bottom: .8% !important; }
.stage-editorial-continuation > small { margin: 0 !important; font-size: 1.18cqw !important; }
.page-featured-stage.is-light .stage-editorial-layout time,
.page-featured-stage.is-opening.is-second-side .stage-editorial-layout time { color: #171717; }
.stage-editorial-gallery { position: relative; z-index: 2; min-width: 0; min-height: 0; display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); grid-auto-rows: minmax(0,1fr); gap: 1.1cqw; overflow: hidden; }
.stage-editorial-image { position: relative; min-width: 0; min-height: 0; margin: 0; overflow: hidden; background: #b9b2a7; border: .32cqw solid rgba(255,255,255,.82); }
.stage-editorial-image-visual { position: absolute; inset: 0 0 17%; overflow: hidden; display: grid; place-items: center; background: #a9a298; }
.stage-editorial-image-visual .asset-image,
.stage-editorial-image-visual .image-placeholder { width: 100%; height: 100%; min-height: 0; }
.stage-editorial-image-visual .stage-editorial-fill-image { object-fit: cover; transform: scale(1.002); }
.stage-editorial-image figcaption { position: absolute; z-index: 2; inset-inline: 0; bottom: 0; min-height: 17%; padding: 2.5% 4%; display: flex; align-items: center; gap: 4%; color: #fff; background: rgba(5,25,36,.92); border-inline-start: .7cqw solid var(--stage-copper); }
.stage-editorial-image figcaption span { color: var(--stage-copper); font-size: 1.35cqw; font-weight: 900; }
.stage-editorial-image figcaption strong { min-width: 0; overflow: hidden; font-size: 1.6cqw; line-height: 1.15; text-overflow: ellipsis; white-space: nowrap; }
.stage-editorial-count-1 .stage-editorial-gallery { grid-template-columns: 1fr; }
.stage-editorial-count-1 .stage-editorial-image { grid-column: 1; grid-row: 1 / span 2; }
.stage-editorial-count-3 .stage-editorial-image:first-child,
.stage-editorial-count-5 .stage-editorial-image:first-child { grid-row: span 2; }
.stage-editorial-count-4 .stage-editorial-gallery,
.stage-editorial-count-5 .stage-editorial-gallery { grid-template-columns: repeat(2,minmax(0,1fr)); }
.page-featured-stage.has-portrait-lead.stage-editorial-count-3 .stage-editorial-gallery { grid-template-columns: .92fr 1.08fr; grid-template-rows: repeat(2,minmax(0,1fr)); grid-auto-flow: dense; }
.page-featured-stage.has-portrait-lead.stage-editorial-count-4 .stage-editorial-gallery { grid-template-columns: .92fr 1.08fr; grid-template-rows: repeat(3,minmax(0,1fr)); grid-auto-flow: dense; }
.page-featured-stage.has-portrait-lead.stage-editorial-count-5 .stage-editorial-gallery { grid-template-columns: .92fr 1.08fr; grid-template-rows: repeat(4,minmax(0,1fr)); grid-auto-flow: dense; }
.page-featured-stage.has-portrait-lead .stage-editorial-image.is-layout-lead { grid-column: 1; grid-row: 1 / -1; }
.page-featured-stage.has-portrait-lead.stage-editorial-count-3 .stage-editorial-image:not(.is-layout-lead),
.page-featured-stage.has-portrait-lead.stage-editorial-count-4 .stage-editorial-image:not(.is-layout-lead),
.page-featured-stage.has-portrait-lead.stage-editorial-count-5 .stage-editorial-image:not(.is-layout-lead) { grid-column: 2; }
.page-featured-stage.is-portrait-heavy .stage-editorial-gallery { grid-auto-flow: dense; }
.page-featured-stage.is-portrait-heavy.stage-editorial-count-2 .stage-editorial-gallery { grid-template-columns: repeat(2,minmax(0,1fr)); grid-template-rows: 1fr; }
.page-featured-stage.is-portrait-heavy.stage-editorial-count-3 .stage-editorial-gallery { grid-template-columns: repeat(2,minmax(0,1fr)); grid-template-rows: repeat(2,minmax(0,1fr)); }
.page-featured-stage.is-portrait-heavy.stage-editorial-count-3 .stage-editorial-image:first-child { grid-row: 1 / -1; }
.page-featured-stage.is-portrait-heavy.stage-editorial-count-4 .stage-editorial-gallery { grid-template-columns: repeat(2,minmax(0,1fr)); grid-template-rows: repeat(2,minmax(0,1fr)); }
.page-featured-stage.is-portrait-heavy.stage-editorial-count-5 .stage-editorial-gallery { grid-template-columns: repeat(6,minmax(0,1fr)); grid-template-rows: repeat(2,minmax(0,1fr)); }
.page-featured-stage.is-portrait-heavy.stage-editorial-count-5 .stage-editorial-image:nth-child(1) { grid-column: 1 / span 3; grid-row: 1; }
.page-featured-stage.is-portrait-heavy.stage-editorial-count-5 .stage-editorial-image:nth-child(2) { grid-column: 4 / span 3; grid-row: 1; }
.page-featured-stage.is-portrait-heavy.stage-editorial-count-5 .stage-editorial-image:nth-child(3) { grid-column: 1 / span 2; grid-row: 2; }
.page-featured-stage.is-portrait-heavy.stage-editorial-count-5 .stage-editorial-image:nth-child(4) { grid-column: 3 / span 2; grid-row: 2; }
.page-featured-stage.is-portrait-heavy.stage-editorial-count-5 .stage-editorial-image:nth-child(5) { grid-column: 5 / span 2; grid-row: 2; }
.stage-editorial-narrative { position: relative; z-index: 4; min-height: 7.4cqw; padding: 3% 4%; display: grid; grid-template-columns: auto minmax(0,1fr); align-items: start; gap: 4%; color: rgba(255,255,255,.76); background: rgba(3,20,30,.66); border-top: 1px solid rgba(216,137,70,.7); }
.stage-editorial-narrative > span { color: var(--stage-copper); font-size: 2.6cqw; font-weight: 300; line-height: 1; }
.stage-editorial-narrative p { max-height: 6.4em; margin: 0; overflow: hidden; font-size: 1.48cqw; line-height: 1.45; }
.page-featured-stage.is-light .stage-editorial-narrative,
.page-featured-stage.is-opening.is-second-side .stage-editorial-narrative { color: rgba(23,23,23,.72); background: rgba(255,255,255,.7); border-top-color: rgba(216,137,70,.85); }
.stage-editorial-empty { min-height: 0; display: grid; place-content: center; justify-items: center; color: rgba(255,255,255,.52); border: 1px dashed rgba(255,255,255,.25); }
.stage-editorial-empty span { color: var(--stage-copper); font-size: 10cqw; font-weight: 220; line-height: 1; }
.stage-editorial-empty p { margin: 3% 0 0; font-size: 2.2cqw; }
.page-featured-stage.is-light .stage-editorial-empty,
.page-featured-stage.is-opening.is-second-side .stage-editorial-empty { color: rgba(23,23,23,.52); border-color: rgba(23,23,23,.22); }
.page-featured-stage.is-opening.is-first-side > .stage-editorial-layout { padding: 7.3% 7.1% 3.5%; grid-template-rows: auto minmax(0,1fr) auto; }
.page-featured-stage.is-opening.is-first-side .stage-editorial-gallery { position: absolute; z-index: 1; inset: 0; display: block; }
.page-featured-stage.is-opening.is-first-side .stage-editorial-image { position: absolute; inset: 0; border: 0; }
.page-featured-stage.is-opening.is-first-side .stage-editorial-image-visual { inset: 0; }
.page-featured-stage.is-opening.is-first-side .stage-editorial-image figcaption { display: none; }
.page-featured-stage.is-opening.is-first-side .stage-editorial-gallery::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg,rgba(4,22,33,.22),rgba(4,22,33,.35) 38%,rgba(4,22,33,.96) 87%); }
.page-featured-stage.is-opening.is-first-side header { align-self: start; text-shadow: 0 2px 10px rgba(0,0,0,.34); }
.page-featured-stage.is-opening.is-first-side .stage-editorial-narrative { align-self: end; backdrop-filter: blur(5px); }
.page-featured-stage.is-finale { background: #061925; }
.page-featured-stage.is-finale .stage-editorial-image:first-child { border-color: var(--stage-copper); }
.page-featured-stage .profile-page-footer { color: rgba(255,255,255,.54); border-color: rgba(255,255,255,.18); }
.page-featured-stage .profile-page-footer a { color: inherit; }
.page-featured-stage .page-number { color: rgba(255,255,255,.68); }
.page-featured-stage.is-light .profile-page-footer,
.page-featured-stage.is-opening.is-second-side .profile-page-footer { color: rgba(23,23,23,.5); border-color: rgba(23,23,23,.18); }
.page-featured-stage.is-light .page-number,
.page-featured-stage.is-opening.is-second-side .page-number { color: rgba(23,23,23,.62); }

/* v9.2 · AMG three-stage project journey and one-project portfolio */
.page-featured-journey {
  --journey-accent: var(--amg-accent);
  --journey-accent-dark: var(--amg-accent-dark);
  color: #fff;
  background: var(--amg-charcoal);
}
.page-featured-journey .profile-page-footer { color: rgba(255,255,255,.68); border-color: rgba(255,255,255,.25); }
.page-featured-journey .profile-page-footer a { color: inherit; font-size: 1.18cqw; }
.page-featured-journey .page-number { color: rgba(255,255,255,.72); font-size: 1.18cqw; }
.journey-marker { display: flex; justify-content: space-between; align-items: center; color: var(--journey-accent); font-size: 1.45cqw; font-weight: 850; letter-spacing: .1em; direction: ltr; unicode-bidi: isolate; }
.journey-hero { position: absolute; inset: 0; background: #2e2b28; }
.journey-hero .asset-image, .journey-hero .image-placeholder { width: 100%; height: 100%; }
.journey-hero .journey-cover-image { object-fit: cover; }
.journey-hero-overlay { position: absolute; inset: 0; background: linear-gradient(180deg,rgba(15,15,15,.14),rgba(15,15,15,.28) 42%,rgba(15,15,15,.94) 86%); }
.journey-lead-layout { position: relative; z-index: 2; height: calc(100% - 7%); padding: 7.2% 7.15% 4.2%; display: grid; grid-template-rows: auto minmax(0,1fr) auto; }
.journey-lead-layout > header { max-width: 88%; padding-inline-start: 4%; border-inline-start: .75cqw solid var(--journey-accent); text-shadow: 0 2px 12px rgba(0,0,0,.35); }
.journey-lead-layout > header .journey-marker { margin-bottom: 3.5%; }
.journey-lead-layout .page-kicker { margin-bottom: 2%; color: var(--journey-accent); font-size: 1.5cqw; }
.journey-lead-layout header > small { display: block; margin-bottom: 1.2%; color: rgba(255,255,255,.72); font-size: 1.5cqw; font-weight: 700; }
.journey-lead-layout h2 { max-width: 94%; margin: 0; font-size: 5.55cqw; line-height: 1.02; letter-spacing: -.035em; }
.journey-lead-layout h3 { max-width: 82%; margin: 1.7% 0 0; color: rgba(255,255,255,.82); font-size: 2.35cqw; font-weight: 500; line-height: 1.25; }
.journey-lead-layout time { display: inline-block; margin-top: 2.4%; padding-top: 1.2%; color: #fff; border-top: .32cqw solid var(--journey-accent); font-size: 1.55cqw; font-weight: 750; }
.journey-lead-bottom { align-self: end; display: grid; grid-template-columns: minmax(0,1fr); gap: 2.4cqw; }
.journey-lead-bottom > p { max-width: 84%; margin: 0; padding: 2.8% 3.2%; color: rgba(255,255,255,.88); background: rgba(23,23,23,.72); border-inline-start: .55cqw solid var(--journey-accent); font-size: 1.55cqw; line-height: 1.55; backdrop-filter: blur(5px); }
.journey-lead-bottom > figure { display: none; }
.journey-stage-nav { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 1.4cqw; direction: ltr; unicode-bidi: isolate; }
.journey-stage-nav span { min-width: 0; padding-top: 1.1cqw; display: flex; align-items: center; gap: .75cqw; color: rgba(255,255,255,.5); border-top: 1px solid rgba(255,255,255,.25); font-size: 1.22cqw; font-weight: 700; }
.journey-stage-nav span.is-active { color: #fff; border-top: .38cqw solid var(--journey-accent); }
.journey-stage-nav i { color: var(--journey-accent); font-style: normal; font-weight: 900; }

.page-featured-journey.is-evidence { color: var(--amg-charcoal); background: var(--amg-paper); }
.page-featured-journey.is-evidence .profile-page-footer { color: var(--amg-muted); border-color: var(--amg-line); }
.page-featured-journey.is-evidence .page-number { color: var(--amg-muted); }
.journey-evidence-layout { height: calc(100% - 7%); padding: 6.8% 7.15% 3.8%; display: grid; grid-template-rows: auto minmax(0,1fr) auto; gap: 2.6%; }
.journey-evidence-layout > header { padding-bottom: 2.3%; display: grid; grid-template-columns: minmax(0,1fr) auto; grid-template-areas: "marker marker" "title period"; align-items: end; gap: 1.6cqw; border-bottom: 1px solid var(--amg-line); }
.journey-evidence-layout .journey-marker { grid-area: marker; margin-bottom: 1.2%; color: var(--journey-accent-dark); }
.journey-evidence-layout header > div { grid-area: title; }
.journey-evidence-layout .page-kicker { margin: 0 0 .65cqw; font-size: 1.35cqw; }
.journey-evidence-layout h2 { margin: 0; font-size: 3.45cqw; line-height: 1.05; letter-spacing: -.03em; }
.journey-evidence-layout time { grid-area: period; padding-bottom: .35cqw; color: var(--journey-accent-dark); font-size: 1.4cqw; font-weight: 800; }
.journey-support-gallery { min-height: 0; display: grid; gap: 1.25cqw; }
.journey-support-image { position: relative; min-width: 0; min-height: 0; margin: 0; overflow: hidden; background: #ded9d1; border: 1px solid rgba(23,23,23,.16); }
.journey-support-image > div { position: absolute; inset: 0 0 18%; }
.journey-support-image .asset-image, .journey-support-image .image-placeholder { width: 100%; height: 100%; min-height: 0; }
.journey-support-image .journey-cover-image { object-fit: cover; }
.journey-support-image figcaption { position: absolute; inset-inline: 0; bottom: 0; min-height: 18%; padding: 2.1% 3.2%; display: flex; align-items: center; gap: 3%; color: #fff; background: var(--amg-charcoal); border-inline-start: .55cqw solid var(--journey-accent); }
.journey-support-image figcaption span { flex: 0 0 auto; color: var(--journey-accent); font-size: 1.35cqw; font-weight: 900; }
.journey-support-image figcaption strong { min-width: 0; font-size: 1.52cqw; line-height: 1.25; overflow-wrap: anywhere; }
.support-count-1 .journey-support-gallery { grid-template-columns: 1fr; }
.support-count-2 .journey-support-gallery { grid-template-rows: repeat(2,minmax(0,1fr)); }
.support-count-3 .journey-support-gallery { grid-template-columns: repeat(2,minmax(0,1fr)); grid-template-rows: 1.08fr .92fr; }
.support-count-3 .journey-support-image:first-child { grid-column: 1 / -1; }
.support-count-4 .journey-support-gallery { grid-template-columns: repeat(2,minmax(0,1fr)); grid-template-rows: repeat(2,minmax(0,1fr)); }
.journey-support-empty { display: grid; place-content: center; justify-items: center; color: var(--amg-muted); border: 1px dashed rgba(23,23,23,.25); }
.journey-support-empty span { color: rgba(201,150,100,.55); font-size: 8cqw; font-weight: 250; }
.journey-support-empty p { max-width: 72%; margin: 1.5cqw 0 0; font-size: 1.65cqw; text-align: center; }
.journey-evidence-foot { display: grid; gap: 1.4cqw; }
.journey-evidence-foot .journey-stage-nav span { color: rgba(23,23,23,.48); border-top-color: rgba(23,23,23,.2); }
.journey-evidence-foot .journey-stage-nav span.is-active { color: var(--amg-charcoal); border-top-color: var(--journey-accent); }
.journey-evidence-foot > p { margin: 0; color: #4d4944; font-size: 1.5cqw; line-height: 1.45; }

.page-projects-portfolio .projects-portfolio-layout { grid-template-rows: auto minmax(0,1fr); gap: 2.2%; }
.page-projects-portfolio .projects-portfolio-grid { min-height: 0; display: block; }
.page-projects-portfolio .portfolio-project-card { height: 100%; padding: 0; display: grid; grid-template-columns: minmax(0,4fr) minmax(0,1fr); grid-template-rows: auto minmax(0,1fr); grid-template-areas: "heading heading" "media copy"; gap: 2.4% 2%; border: 0; overflow: visible; }
.page-projects-portfolio .portfolio-project-card > header { grid-area: heading; padding: 0 0 2.2%; align-items: flex-start; border-bottom: 1px solid var(--amg-line); }
.page-projects-portfolio .portfolio-project-card > header > span { min-width: 4.2cqw; padding-top: .4cqw; font-size: 1.5cqw; }
.page-projects-portfolio .portfolio-project-card > header p { margin: 0 0 .55cqw; color: var(--amg-accent-dark); font-size: 1.35cqw; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.page-projects-portfolio .portfolio-project-card > header h2 { max-width: 92%; line-height: 1.05; }
.page-projects-portfolio .portfolio-project-media { grid-area: media; gap: .75cqw; background: transparent; }
.page-projects-portfolio .portfolio-project-image { position: relative; min-width: 0; min-height: 0; margin: 0; display: grid; grid-template-rows: minmax(0,1fr) auto; overflow: hidden; background: #ded9d1; }
.page-projects-portfolio .portfolio-project-image > div { width: 100%; min-width: 0; min-height: 0; overflow: hidden; }
.page-projects-portfolio .portfolio-project-image .asset-image { width: 100%; height: 100%; min-height: 0; object-fit: contain; object-position: center !important; background: #ded9d1; }
.page-projects-portfolio .portfolio-project-image .image-placeholder { width: 100%; height: 100%; min-height: 0; }
.page-projects-portfolio .portfolio-project-image figcaption { position: static; min-height: 3.8cqw; padding: 1.2% 2.2%; display: flex; align-items: center; gap: 2%; color: #fff; background: var(--amg-charcoal); font-size: 1.35cqw; line-height: 1.25; }
.page-projects-portfolio .portfolio-project-image figcaption span { color: var(--amg-accent); font-weight: 900; }
.page-projects-portfolio .portfolio-project-card.image-count-2 .portfolio-project-media { grid-template-columns: 1fr; grid-template-rows: repeat(2,minmax(0,1fr)); }
.page-projects-portfolio .portfolio-project-card.image-count-3 .portfolio-project-media { grid-template-columns: 1fr; grid-template-rows: repeat(3,minmax(0,1fr)); }
.page-projects-portfolio .portfolio-project-card.image-count-3 .portfolio-project-image.image-1 { grid-column: auto; grid-row: auto; }
.page-projects-portfolio .portfolio-project-card.image-count-4 .portfolio-project-media { grid-template-columns: 1fr; grid-template-rows: repeat(4,minmax(0,1fr)); }
.page-projects-portfolio .portfolio-project-card.image-count-4 .portfolio-project-image.image-1 { grid-row: auto; }
.page-projects-portfolio .portfolio-project-copy { grid-area: copy; gap: 4%; }
.page-projects-portfolio .portfolio-project-facts { display: grid; grid-template-columns: 1fr; gap: 1.25cqw; }
.page-projects-portfolio .portfolio-project-facts span { min-width: 0; color: #403c37; font-size: 1.52cqw; line-height: 1.35; }
.page-projects-portfolio .portfolio-project-facts b, .page-projects-portfolio .portfolio-project-scope > b { margin-bottom: .25cqw; font-size: 1.28cqw; }
.page-projects-portfolio .portfolio-project-scope { margin-top: 0; padding-top: 4%; }
.page-projects-portfolio .portfolio-project-scope ul { margin-top: 4%; display: grid; grid-template-columns: 1fr; gap: .85cqw; }
.page-projects-portfolio .portfolio-project-scope li { padding-inline-start: 1.4cqw; color: #403c37; font-size: inherit; line-height: 1.38; }

/* Print-legibility floor for previously compressed supporting text. */
.profile-page-footer a { font-size: 1.18cqw; }
.page-number { font-size: 1.18cqw; }
.page-contents.is-compact-toc .contents-intro,
.page-contents.is-ultra-dense-toc .contents-intro { font-size: 1.5cqw !important; }
.page-contents .contents-list.is-single-column .contents-item-title { font-size: max(1.48cqw, 7px) !important; }
.document-meta { font-size: 1.34cqw; }
.document-heading p { font-size: 1.42cqw; }
.featured-story-first-stage strong,
.featured-story-overview-bottom dd,
.featured-story-scope > b,
.featured-story-stage figcaption strong { font-size: 1.42cqw; }
.contact-item small, .qr-label, .values-rail > small, .values-list span,
.service-card-number, .mep-system > span, .specialized-item > span,
.equipment-index, .equipment-website, .project-story-scope > small,
.project-story-meta strong, .featured-story-marker, .featured-story-timeline { font-size: 1.18cqw; }
.org-editorial-copy > strong,
.page-org-editorial.is-compact-copy .org-editorial-copy > strong,
.page-org-editorial.is-dense-copy .org-editorial-copy > strong,
.page-org-editorial.is-ultra-dense-copy .org-editorial-copy > strong { font-size: 1.5cqw !important; line-height: 1.4; }
.org-editorial-copy p,
.page-org-editorial.is-compact-copy .org-editorial-copy p,
.page-org-editorial.is-dense-copy .org-editorial-copy p,
.page-org-editorial.is-ultra-dense-copy .org-editorial-copy p { font-size: 1.42cqw !important; line-height: 1.45; }
.org-editorial-image figcaption, .org-summary small, .org-position span,
.org-function-group li, .org-flow-card strong { font-size: 1.12cqw; line-height: 1.18; }
.client-card h3 { font-size: 1.42cqw; }
.client-card small, .closing-contact-row > span, .closing-contact-row small,
.inside-back-layout > footer a, .back-cover-layout > footer { font-size: 1.18cqw; }
.closing-contact-row div > span { font-size: 1.42cqw; }
