.operation-main {
  display: block;
}

.operation-thesis {
  display: block;
}

.operation-thesis h2 {
  max-width: 940px;
  margin: 0;
  font-size: clamp(3rem, 5.7vw, 5.7rem);
  line-height: .98;
  letter-spacing: -.06em;
}

.architecture-stack {
  position: relative;
  display: grid;
  justify-items: center;
  margin: 48px 0 76px;
  padding: 34px clamp(20px, 5vw, 72px) 76px;
  overflow: visible;
  isolation: isolate;
}

.architecture-stack::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: 72px;
  bottom: 94px;
  left: 50%;
  width: 1px;
  background: linear-gradient(transparent, #347a80 18%, #870025 55%, #b6a294 82%, transparent);
  opacity: .28;
}

.stack-layer {
  --rest-x: 0px;
  position: relative;
  display: grid;
  grid-template-columns: minmax(120px, .6fr) minmax(180px, 1fr) minmax(190px, .95fr);
  align-items: center;
  width: min(790px, 82%);
  min-height: 96px;
  padding: 20px 30px;
  border: 1px solid #d2c5c2;
  background: #fffdfa;
  box-shadow: 0 18px 42px rgba(67, 34, 38, .075);
  transform: translate3d(var(--rest-x), 0, 0);
  will-change: transform, opacity;
}

.stack-layer + .stack-layer {
  margin-top: 13px;
}

.stack-layer::before,
.stack-layer::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 7px;
  height: 7px;
  border: 1px solid currentColor;
  background: inherit;
  transform: translateY(-50%) rotate(45deg);
  opacity: .65;
}

.stack-layer::before { left: 14px; }
.stack-layer::after { right: 14px; }

.stack-layer > span {
  color: #86656d;
  font: 600 .62rem/1.25 var(--mono);
  letter-spacing: .13em;
  text-transform: uppercase;
}

.stack-layer > strong {
  font: 500 clamp(1.35rem, 2.2vw, 2rem)/1.05 var(--serif);
  letter-spacing: -.035em;
}

.stack-layer > small {
  color: #655b5e;
  font: 600 .72rem/1.4 var(--sans);
  text-align: right;
}

.stack-models {
  z-index: 3;
  --rest-x: -56px;
  border-color: #8fb4b6;
  color: #347a80;
  background: linear-gradient(90deg, rgba(238, 246, 245, .96), rgba(255, 255, 255, .82));
}

.stack-models > span { color: #347a80; }

.stack-protection {
  z-index: 2;
  border-color: #6e1830;
  color: #f4dce2;
  background: linear-gradient(145deg, #870025, #5b1025 72%);
  box-shadow: 0 21px 42px rgba(91, 16, 37, .17);
}

.stack-protection > span,
.stack-protection > small { color: #edcbd3; }
.stack-protection > strong { color: #fff9f5; }

.stack-company {
  z-index: 1;
  --rest-x: 56px;
  color: #8a6d61;
  background: linear-gradient(90deg, rgba(238, 229, 218, .94), rgba(255, 252, 247, .9));
  border-color: #c4b29f;
}

.stack-company > span { color: #795d53; }
.stack-company > small { display: none; }
.stack-company > strong { grid-column: 2 / 4; }

.stack-maintenance {
  position: absolute;
  right: 4%;
  bottom: 22px;
  left: 4%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(12px, 2.5vw, 32px);
  padding-top: 16px;
  border-top: 1px solid #d8c5c7;
  color: var(--forest);
  font: 600 .65rem/1.2 var(--mono);
  letter-spacing: .08em;
  text-transform: uppercase;
}

.architecture-stack.stack-animated .stack-layer,
.architecture-stack.stack-animated .stack-maintenance {
  opacity: 0;
}

.architecture-stack.stack-animated .stack-layer {
  transform: translate3d(calc(var(--rest-x) - 110px), 14px, 0);
  transition:
    transform 900ms cubic-bezier(.16, 1, .3, 1),
    opacity 520ms ease;
}

.architecture-stack.stack-animated .stack-protection { transition-delay: 150ms; }
.architecture-stack.stack-animated .stack-company { transition-delay: 300ms; }

.architecture-stack.stack-animated .stack-maintenance {
  transform: translateY(10px);
  transition: transform 650ms cubic-bezier(.16, 1, .3, 1) 470ms, opacity 450ms ease 470ms;
}

.architecture-stack.stack-animated.is-visible .stack-layer {
  opacity: 1;
  transform: translate3d(var(--rest-x), 0, 0);
}

.architecture-stack.stack-animated.is-visible .stack-maintenance {
  opacity: 1;
  transform: translateY(0);
}

.stack-maintenance i {
  color: #a46a78;
  font-style: normal;
}

.operation-thesis h2 em {
  color: var(--forest);
  font-family: inherit;
  font-style: normal;
  font-weight: 500;
}

.system-map {
  position: relative;
  display: grid;
  grid-template-columns: minmax(160px, .78fr) minmax(340px, 1.38fr) minmax(160px, .78fr);
  gap: clamp(22px, 4vw, 58px);
  align-items: center;
  margin: 48px 0 76px;
  padding: 48px clamp(24px, 4vw, 54px) 76px;
  border: 1px solid #d7c9c8;
  background:
    linear-gradient(90deg, transparent 49.94%, rgba(128, 0, 32, .05) 50%, transparent 50.06%),
    #faf7f4;
  isolation: isolate;
}

.system-map::before,
.system-map::after {
  content: "";
  position: absolute;
  z-index: -1;
  top: 46%;
  width: 18%;
  height: 1px;
  background: repeating-linear-gradient(90deg, #a66875 0 6px, transparent 6px 12px);
}

.system-map::before { left: 21%; }
.system-map::after { right: 21%; }

.system-map-group {
  position: relative;
}

.map-label,
.core-eyebrow {
  display: block;
  margin-bottom: 15px;
  color: #86656d;
  font: 600 .62rem/1.2 var(--mono);
  letter-spacing: .13em;
  text-transform: uppercase;
}

.signal-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 7px 8px;
}

.signal-stack span {
  position: relative;
  padding: 0;
  color: #4f4245;
  font: 600 .78rem/1.4 var(--sans);
}

.signal-stack span:not(:last-child)::after {
  content: "·";
  margin-left: 8px;
  color: #a66875;
}

.system-map-outputs .signal-stack span:not(:last-child)::after {
  color: #347a80;
}

.system-map-core {
  position: relative;
  min-height: 222px;
  padding: 70px 38px 42px;
  overflow: hidden;
  border: 1px solid #6e1830;
  border-radius: 150px 150px 10px 10px / 62px 62px 10px 10px;
  background:
    radial-gradient(circle at 50% 0, #b14860 0 2px, transparent 3px),
    linear-gradient(145deg, #870025, #5b1025 70%);
  color: #fff9f5;
  box-shadow: 0 28px 56px rgba(91, 16, 37, .16), inset 0 1px rgba(255,255,255,.22);
}

.system-map-core::before {
  content: "";
  position: absolute;
  inset: 11px;
  border: 1px solid rgba(255,255,255,.19);
  border-radius: inherit;
  pointer-events: none;
}

.system-map-core .core-eyebrow {
  position: relative;
  margin-bottom: 9px;
  color: #edcbd3;
}

.system-map-core > strong {
  position: relative;
  display: block;
  margin-bottom: 0;
  font: 500 clamp(2rem, 3.4vw, 3.35rem)/.95 var(--serif);
  letter-spacing: -.045em;
}

.system-map-loop {
  position: absolute;
  right: 3.5%;
  bottom: 19px;
  left: 3.5%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(10px, 2vw, 27px);
  padding-top: 15px;
  border-top: 1px solid #d8c5c7;
  color: var(--forest);
  font: 600 .67rem/1.2 var(--mono);
  letter-spacing: .06em;
  text-transform: uppercase;
}

.system-map-loop i { color: #a46a78; font-style: normal; }

.process-heading {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 18px;
}

.process-heading span {
  font: 600 .68rem/1.2 var(--mono);
  letter-spacing: .13em;
  text-transform: uppercase;
}

.process-heading p {
  margin: 0;
  color: var(--muted);
  font-size: .82rem;
}

.process-visual {
  margin-top: 0;
}

.stage-scene {
  background-image: url("assets/operating-arches-integrate.png");
}

.stage-label {
  bottom: 2.1%;
}

.stage-label strong,
.stage-label small {
  display: block;
}

.stage-label strong {
  font-size: .72rem;
}

.stage-label small {
  max-width: 150px;
  margin: 4px auto 0;
  color: #74686b;
  font: 500 clamp(.48rem, .55vw, .6rem)/1.15 var(--sans);
}

.stage-label::before {
  margin-bottom: 5px;
}

.operation-trust {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 22px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.operation-trust span {
  position: relative;
  padding: 17px 25px 17px 32px;
  border-right: 1px solid var(--line);
  color: #4d4144;
  font: 600 .74rem/1.4 var(--sans);
}

.operation-trust span:last-child { border-right: 0; }
.operation-trust span::before {
  content: "";
  position: absolute;
  top: 23px;
  left: 12px;
  width: 7px;
  height: 7px;
  border: 1px solid #347a80;
  transform: rotate(45deg);
}

@media (max-width: 900px) {
  .system-map { grid-template-columns: 1fr 1.2fr 1fr; gap: 18px; padding-inline: 22px; }
  .system-map-core { padding-inline: 24px; }
  .system-map::before, .system-map::after { display: none; }

  .stack-layer {
    grid-template-columns: minmax(100px, .55fr) minmax(160px, 1fr);
  }

  .stack-layer > small {
    grid-column: 1 / -1;
    margin-top: 7px;
    text-align: left;
  }

  .stack-company > strong { grid-column: 2; }
}

@media (max-width: 700px) {
  .operation-thesis h2 { font-size: clamp(2.55rem, 12vw, 4rem); }
  .architecture-stack {
    margin: 40px 0 56px;
    padding: 24px 4px 72px;
  }
  .stack-layer,
  .stack-models,
  .stack-protection,
  .stack-company {
    width: 100%;
    --rest-x: 0px;
    min-height: 0;
    grid-template-columns: 1fr;
    gap: 5px;
    padding: 19px 28px;
    transform: none;
  }
  .stack-layer > small,
  .stack-company > strong { grid-column: 1; }
  .stack-layer > small { margin-top: 0; }
  .stack-layer::before { left: 10px; }
  .stack-layer::after { right: 10px; }
  .stack-maintenance { gap: 9px; font-size: .55rem; }
  .system-map {
    grid-template-columns: 1fr;
    margin: 44px 0 56px;
    padding: 24px 18px 76px;
  }
  .signal-stack { display: flex; justify-content: flex-start; gap: 5px 6px; }
  .signal-stack span { padding: 0; text-align: left; font-size: .65rem; }
  .signal-stack span:not(:last-child)::after { margin-left: 6px; }
  .system-map-core { min-height: 210px; padding: 62px 24px 30px; }
  .system-map-loop { gap: 7px; font-size: .52rem; }
  .process-heading { display: block; }
  .process-heading p { margin-top: 7px; }
  .stage-label small { display: none; }
  .stage-label { bottom: 3%; }
  .operation-trust { grid-template-columns: 1fr; }
  .operation-trust span { border-right: 0; border-bottom: 1px solid var(--line); }
  .operation-trust span:last-child { border-bottom: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .system-map * { scroll-behavior: auto; }
  .architecture-stack.stack-animated .stack-layer,
  .architecture-stack.stack-animated .stack-maintenance,
  .architecture-stack.stack-animated.is-visible .stack-layer,
  .architecture-stack.stack-animated.is-visible .stack-maintenance {
    opacity: 1;
    transform: translate3d(var(--rest-x, 0px), 0, 0);
    transition: none;
  }
}

/* The team proof is one centered statement followed by the institutions alone. */
.people-grid {
  display: flex !important;
  flex-direction: column;
  align-items: center;
  gap: 38px;
  text-align: center;
}

.people-grid h2 {
  max-width: 850px;
  margin: 0 auto;
}

.people-grid > div {
  display: block !important;
  width: 100%;
  padding: 0 !important;
}

.people-grid .affiliations {
  display: flex !important;
  align-items: center;
  justify-content: center;
  gap: clamp(34px, 7vw, 86px);
  width: auto;
  max-width: none;
  margin: 0 auto;
  overflow: visible;
  border: 0 !important;
  background: transparent;
}

.people-grid .affiliation {
  display: flex;
  flex: 0 0 112px;
  align-items: center;
  justify-content: center;
  width: 112px;
  min-height: 0 !important;
  height: 82px !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0;
  background: transparent !important;
  box-shadow: none !important;
}

.people-grid .affiliation img,
.people-grid .affiliation:first-child img {
  width: 100%;
  max-width: 104px;
  height: 72px;
  object-fit: contain;
}

@media (max-width: 700px) {
  .people-grid { gap: 28px; }
  .people-grid .affiliations { gap: 20px; }
  .people-grid .affiliation { flex-basis: 82px; width: 82px; height: 62px !important; }
  .people-grid .affiliation img,
  .people-grid .affiliation:first-child img { max-width: 80px; height: 58px; }
}
