/* Light editorial treatment for the history chapters. */
.history-page .history-process {
  --history-paper:#f4f0e9;
  --history-ink:#222b26;
  --history-copy:#414b44;
  --history-copper:#a54520;
  --history-edge:#ded4c6;
  padding-block:clamp(33px,4.6vw,68px) clamp(54px,7vw,92px);
  color:var(--history-ink);
  background:var(--history-paper);
}
.history-process::before { content:none; }
.history-page .history-process .section-title {
  display:grid;
  align-content:center;
  isolation:isolate;
  overflow:hidden;
  max-width:none;
  min-height:clamp(145px,17vw,205px);
  margin-block-end:clamp(23px,3.2vw,38px);
  padding:clamp(23px,4.6vw,51px);
  border:1px solid #e1d8cc;
  border-radius:22px;
  background:#ebe5dc;
}
.history-process .section-title::before,
.history-process .section-title::after {
  content:"";
  position:absolute;
  pointer-events:none;
}
.history-process .section-title::before {
  z-index:-2;
  inset:-14px;
  background:url("images/current-production-hall.webp") center 52%/cover no-repeat;
  filter:grayscale(1) blur(8px);
  opacity:.40;
}
.history-process .section-title::after {
  z-index:-1;
  inset:0;
  background:linear-gradient(270deg,#f4f0e9 5%,#f4f0e9ed 36%,#f4f0e964 76%,#f4f0e94d);
}
.history-process .section-title h2 { color:var(--history-ink); }
.history-process .section-title .kicker { color:var(--history-copper); }

.history-page .history-process .route {
  color:var(--history-ink);
  border-color:var(--history-edge);
  background:#fcf9f3;
  box-shadow:0 10px 28px #3a2b1d12;
}
.history-process .route-items::before { background:#c8a58e; }
.history-process .stop { color:var(--history-copy); }
.history-process .stop:hover,
.history-process .stop[aria-current="step"] {
  color:#803518;
  background:#f1e4d8;
}
.history-process .number { color:var(--history-copper); }
.history-process .marker {
  color:#8d381a;
  border-color:#c58d71;
  background:#fffaf1;
}
.history-page .history-process .chapter.stage {
  color:var(--history-ink);
  border-color:#e4dacd;
  background:linear-gradient(135deg,#fffdf8,#fcf8f1);
  box-shadow:0 14px 34px #3a2b1d0d;
}
.history-page .history-process .chapter.stage:hover { border-color:#d9c1ae; }
.history-process .chapter .eyebrow,
.history-process .chapter .next { color:var(--history-copper); }
.history-process .history-chapter-number {
  color:#fff0de;
  border-color:#875942;
  background:#2a332e;
  box-shadow:0 0 0 4px #f0e7da;
}
.history-process .chapter h2 { color:var(--history-ink); }
.history-process .chapter-copy p:not(.eyebrow) { color:var(--history-copy); }
.history-process .chapter-copy > p:not(.eyebrow),
.history-process #today .chapter-copy > p:not(.eyebrow) {
  max-inline-size:68ch;
  font-size:clamp(.94rem,1.4vw,1.06rem);
  line-height:2.14;
  text-align:justify;
  text-align-last:right;
  text-justify:auto;
  word-spacing:normal;
}
.history-process a:focus-visible { outline:2px solid var(--history-copper); outline-offset:3px; }

.history-process .photos figure,
.history-process .welfare-single figure {
  padding:clamp(6px,1.1vw,11px) clamp(6px,1.1vw,11px) 0;
  color:#493a30;
  border:1px solid #dfd0c0;
  border-radius:16px;
  background:#fffdf8;
  box-shadow:0 11px 26px #3a2b1d16;
}
.history-process .photos img { border-radius:8px; }
.history-process .photos figcaption,
.history-process .welfare-single figcaption {
  padding:8px 4px 9px;
  color:#51463c;
  font-size:.84rem;
  line-height:1.65;
}
.history-process .journey-gallery.is-reached > figure {
  border-color:#b45e37;
  box-shadow:0 0 0 2px #c56b3936,0 11px 26px #3a2b1d18;
}

.history-process .history-trail-step {
  fill:#a94e29;
  filter:drop-shadow(0 1px 1px #fffaf4);
}
.history-process .history-trail-tread { stroke:#f9e8d9; }
.history-process .history-trail-print { fill:#a75b37; }
.history-process .history-trail-logo circle {
  stroke:#b16a46;
  stroke-width:1.65;
}

.history-page .history-process .welfare-zoom {
  margin-block:23px;
  padding:clamp(11px,2vw,21px);
  color:var(--history-ink);
  border-color:#decebe;
  border-radius:18px;
  background:linear-gradient(150deg,#f7efe4,#fdf9f2);
}
.welfare-single {
  width:min(100%,730px);
  margin-inline:auto;
}
.welfare-single figure { margin:0; }
.welfare-shot {
  position:relative;
  overflow:hidden;
  isolation:isolate;
  aspect-ratio:1671 / 941;
  border-radius:8px;
  background:#d8d3cb;
}
.welfare-scene {
  position:absolute;
  inset:0;
  display:block;
  width:100%;
  height:100%;
  transform-origin:0 0;
  transition:transform 1.35s cubic-bezier(.23,.61,.31,1);
}
.welfare-scene > img {
  position:absolute;
  inset:0;
  display:block;
  width:100%;
  height:100%;
  object-fit:cover;
}
.welfare-shot[data-close="true"] .welfare-scene {
  transform:translate(var(--welfare-x,-103.625%),var(--welfare-y,-106.49%)) scale(var(--welfare-scale,4.1775));
}
.welfare-locator {
  pointer-events:none;
  transition:opacity .38s ease;
}
.welfare-shot[data-close="true"] .welfare-locator { opacity:0; }

@media (max-width:540px) {
  .history-page .history-process .section-title { border-radius:17px; }
  .history-process .chapter-copy > p:not(.eyebrow),
  .history-process #today .chapter-copy > p:not(.eyebrow) {
    font-size:.91rem;
    line-height:2.05;
  }
  .history-process .photos figcaption,
  .history-process .welfare-single figcaption { font-size:.77rem; }
}
@media (prefers-reduced-motion:reduce), print {
  .welfare-scene,.welfare-locator { transition:none; }
}
@media print {
  .welfare-shot[data-close="true"] .welfare-scene { transform:none; }
  .welfare-shot[data-close="true"] .welfare-locator { opacity:1; }
}
.display-zoom-shot { aspect-ratio:1280 / 960; }
