/* 2004 story — archival engineering editorial redesign */
.legacy-story {
  position: relative;
  isolation: isolate;
  display: block;
  padding: clamp(82px,9vw,138px) 7vw;
  background: #0c0f10;
  color: #fff;
  border-top: 1px solid #ffffff20;
  overflow: hidden;
}

.legacy-story::before {
  content: "";
  position: absolute;
  z-index: -2;
  inset: -5%;
  background: url("history-blueprint-v38.jpg") center / cover no-repeat;
  opacity: .62;
  transform: scale(1.04);
  animation: historyBlueprintDrift 28s ease-in-out infinite alternate;
}

.legacy-story::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background:
    linear-gradient(90deg,rgba(8,10,11,.97) 0%,rgba(8,10,11,.88) 44%,rgba(8,10,11,.64) 100%),
    linear-gradient(180deg,rgba(8,10,11,.3),rgba(8,10,11,.93));
}

.legacy-rail,
.legacy-content {
  width: min(1380px,100%);
  margin-inline: auto;
}

.legacy-rail {
  display: grid;
  grid-template-columns: auto auto 1fr auto;
  align-items: center;
  gap: 24px;
  min-height: 0;
  margin-bottom: clamp(42px,5vw,72px);
}

.legacy-rail .section-tag {
  color: #fff;
  font-size: 13px;
}

.legacy-rail strong {
  margin: 0;
  color: #d93439;
  font: 600 clamp(48px,5vw,76px)/.8 "Barlow Condensed";
  letter-spacing: -.045em;
  writing-mode: initial;
  transform: none;
}

.legacy-rail i {
  width: auto;
  height: 1px;
  min-height: 0;
  margin: 0;
  background: linear-gradient(90deg,#c52b2f,#ffffff52,transparent);
}

.legacy-rail b {
  margin: 0;
  color: #fff;
  font-size: 13px;
}

.legacy-content {
  padding: clamp(30px,4vw,58px);
  border: 1px solid #ffffff28;
  background: rgba(10,12,13,.79);
  box-shadow: 0 34px 100px #0007;
  backdrop-filter: blur(6px);
}

.legacy-content > header {
  grid-template-columns: minmax(150px,.34fr) minmax(0,1.66fr);
  gap: clamp(24px,4vw,64px);
  padding-bottom: clamp(32px,4vw,52px);
}

.legacy-kicker {
  color: #e45a5f;
  font-size: 13px;
  line-height: 1.6;
}

.legacy-content h2 {
  max-width: 920px;
  color: #fff;
  font: 600 clamp(48px,6vw,88px)/.94 "Barlow Condensed";
  letter-spacing: -.035em;
}

.legacy-content h2 em {
  color: #d93439;
  font-style: normal;
  -webkit-text-stroke: 0;
}

.legacy-lead {
  max-width: 960px;
  margin-top: 28px;
  color: #f1f2f2;
  font-size: clamp(18px,1.45vw,22px);
  font-weight: 500;
  line-height: 1.68;
}

.legacy-article {
  gap: clamp(28px,4vw,64px);
  margin-top: clamp(38px,4vw,58px);
}

.legacy-article > p {
  color: #d3d6d7;
  font-size: 17px;
  line-height: 1.85;
}

.legacy-story .story-emphasis {
  color: #fff;
  font-weight: 700;
  box-shadow: inset 0 -2px 0 #c52b2f;
}

.legacy-article blockquote {
  margin: 20px 0 22px;
  padding: 30px clamp(28px,4vw,48px);
  border-left: 5px solid #d93439;
  background: #ffffff0b;
  color: #fff;
  font-size: clamp(28px,3.4vw,48px);
  font-style: normal;
  line-height: 1.12;
}

.legacy-pillars {
  margin-top: 6px;
  background: #080a0ba8;
}

.legacy-pillars section {
  min-height: 250px;
  padding: clamp(26px,3vw,38px);
}

.legacy-pillars h3 {
  margin-top: 34px;
  color: #fff;
  font-size: clamp(26px,2.4vw,34px);
}

.legacy-pillars p,
.legacy-quality p,
.legacy-future p {
  color: #c3c8ca;
}

.legacy-quality {
  background: rgba(8,10,11,.78);
}

@keyframes historyBlueprintDrift {
  0% { transform: scale(1.04) translate3d(-1.2%,0,0); }
  100% { transform: scale(1.09) translate3d(1.2%,-1%,0); }
}

@media (max-width: 900px) {
  .legacy-story { padding: 82px 24px; }
  .legacy-story::before { inset: -2%; opacity: .52; background-position: 34% center; }
  .legacy-story::after { background: linear-gradient(180deg,rgba(8,10,11,.88),rgba(8,10,11,.97)); }
  .legacy-rail { grid-template-columns: auto auto 1fr auto; gap: 14px; }
  .legacy-rail .section-tag { grid-column: auto; }
  .legacy-rail strong { font-size: 54px; }
  .legacy-content { padding: 34px 28px; }
  .legacy-content > header { grid-template-columns: 1fr; }
  .legacy-lead { grid-column: 1; }
}

@media (max-width: 560px) {
  .legacy-story { padding: 68px 18px; }
  .legacy-rail { grid-template-columns: 1fr auto; row-gap: 18px; }
  .legacy-rail .section-tag { grid-column: 1; }
  .legacy-rail strong { grid-column: 1; grid-row: 2; font-size: 58px; }
  .legacy-rail i { grid-column: 1/-1; grid-row: 3; }
  .legacy-rail b { grid-column: 2; grid-row: 2; }
  .legacy-content { padding: 28px 20px; }
  .legacy-content h2 { font-size: clamp(40px,12vw,52px); }
  .legacy-article > p { font-size: 16px; line-height: 1.75; }
  .legacy-article blockquote { padding: 24px 20px; font-size: 27px; }
}

@media (prefers-reduced-motion: reduce) {
  .legacy-story::before { animation: none; transform: none; }
}
