/* Selected refinements retained after visual review. */

/* Calmer, two-row route navigation on laptop and desktop widths. */
.site-nav { background: #191c1a; backdrop-filter: none; border-bottom-color: #686b60; }
.nav-links a {
  font-family: Arial, sans-serif;
  font-size: .76rem;
  letter-spacing: .015em;
  text-transform: none;
}
.nav-links a[aria-current="page"]::after { background: var(--gold); box-shadow: none; }
.platform-picker { background: transparent; }
.platform-picker > span { font-size: .72rem; }
.platform-picker button { font-size: .72rem; }

/* Keep the opening artwork clear beneath the taller two-row navigation. */
body[data-page="history"] .hero::before {
  inset: 1.5rem 0 0;
  background-position: center top;
  transform: none;
}

/* Programming opening selected during review. */
body[data-page="technology"] .page-masthead {
  min-height: 460px;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
  align-items: center;
  gap: 3rem;
  padding: 3rem max(2.5rem, calc((100vw - var(--max)) / 2));
  color: #242522;
  background-color: #dde3d8;
  background-image:
    linear-gradient(#233b2710 1px, transparent 1px),
    linear-gradient(90deg, #233b2710 1px, transparent 1px);
  background-size: 24px 24px;
  border-bottom: 1px solid #b9b8ab;
}
body[data-page="technology"] .page-masthead::before,
body[data-page="technology"] .page-masthead::after { display: none; }
body[data-page="technology"] .page-masthead-inner { width: 100%; padding: 0; }
body[data-page="technology"] .page-masthead h1 {
  font-family: var(--display);
  line-height: 1;
  letter-spacing: -.06em;
  text-shadow: none;
  text-wrap: initial;
}
body[data-page="technology"] .page-masthead .eyebrow { color: #943b29; letter-spacing: .06em; }
body[data-page="technology"] .page-masthead .eyebrow::before { display: none; }
body[data-page="technology"] .page-masthead-inner > p:not(.eyebrow) {
  max-width: 34rem;
  color: #55554d;
}
body[data-page="technology"] .page-cue {
  color: #943b29;
  border-bottom: 1px solid;
  padding-bottom: .45rem;
}
body[data-page="technology"] .page-cue:hover { color: #242522; }
body[data-page="technology"] .editorial-plate { display: block; margin: 0; min-width: 0; }
body[data-page="technology"] .editorial-plate-button {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  color: inherit;
  background: transparent;
  cursor: zoom-in;
}
body[data-page="technology"] .editorial-plate-button:focus-visible { outline: 3px solid #943b29; outline-offset: 4px; }
body[data-page="technology"] .editorial-plate img {
  display: block;
  width: 100%;
  max-height: 330px;
  object-fit: contain;
}
body[data-page="technology"] .editorial-plate figcaption {
  margin-top: .8rem;
  padding-top: .6rem;
  border-top: 1px solid;
  font: .65rem/1.5 var(--mono);
}

/* Shorter route navigation. */
.page-pagination { border-top: 1px solid rgba(212,154,46,.34); }
.page-pagination a {
  min-height: 6.25rem;
  padding-top: 1.25rem;
  padding-bottom: 1.25rem;
}
.page-pagination strong { font-size: clamp(1.55rem, 2.6vw, 2.55rem); }

/* Compact closing colophon; the seal shares the title row instead of adding height. */
.site-footer {
  position: relative;
  display: block;
  padding-top: 1.35rem;
  padding-bottom: 1.25rem;
}
.site-footer > div:first-child { padding-right: 0; }
.site-footer strong,
.site-footer strong + p,
.site-footer strong + p + p { max-width: calc(100% - 6.5rem); }
.site-footer strong { font-size: clamp(2rem, 3vw, 3rem); }
.site-footer strong + p { margin: .4rem 0 0; }
.site-footer p + p { margin: .22rem 0 0; }
.site-footer .project-credit { max-width: none; margin-top: .65rem; margin-bottom: 0; }
.site-footer .technical-reviewers { margin-top: .15rem; }
.footer-labyrinth {
  position: absolute;
  top: 1rem;
  right: max(1rem, calc((100vw - var(--max)) / 2));
  width: 5.25rem;
}

/* The builders as a four-stage construction dossier. */
body[data-page="history"] .creator-grid {
  grid-template-columns: minmax(0, 1.22fr) minmax(18rem, .78fr);
  align-items: start;
}
body[data-page="history"] .creator-cards {
  position: relative;
  gap: 1.2rem;
  padding-left: 2.6rem;
}
body[data-page="history"] .creator-cards::before {
  content: "";
  position: absolute;
  left: 1.05rem;
  top: 1.3rem;
  bottom: 1.3rem;
  width: 2px;
  background: repeating-linear-gradient(to bottom, var(--red) 0 8px, transparent 8px 15px);
  opacity: .55;
}
body[data-page="history"] .creator-card {
  position: relative;
  padding: 1.45rem 1.65rem 1.25rem;
  overflow: visible;
  background:
    linear-gradient(90deg, rgba(163,45,39,.08), transparent 22%),
    rgba(255,252,243,.66);
  border: 0;
  border-left: 3px solid var(--red);
  box-shadow: 0 8px 22px rgba(55,38,20,.1);
}
body[data-page="history"] .creator-card:nth-child(even) { margin-left: 1.4rem; }
body[data-page="history"] .creator-card::before {
  content: attr(data-stage);
  position: absolute;
  left: -3.25rem;
  top: 1.1rem;
  display: grid;
  width: 2.15rem;
  aspect-ratio: 1;
  place-items: center;
  color: var(--paper-light);
  background: var(--red);
  border: 4px solid var(--paper);
  border-radius: 50%;
  box-shadow: 0 0 0 1px var(--red);
  font: 700 .66rem/1 var(--mono);
  letter-spacing: .04em;
}
body[data-page="history"] .creator-card h3 {
  max-width: 46rem;
  margin-bottom: .65rem;
  font-size: clamp(1.75rem, 2.25vw, 2.55rem);
  line-height: 1.02;
}
body[data-page="history"] .creator-card > p:not(.creator-role, .creator-fact) {
  margin-top: 0;
  color: var(--ink-soft);
}
body[data-page="history"] .creator-fact {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin: 1rem 0 0;
  padding-top: .72rem;
  border-top: 1px dashed rgba(76,68,56,.35);
  font-family: var(--mono);
}
body[data-page="history"] .creator-fact strong {
  color: var(--red);
  font-size: .88rem;
  letter-spacing: .04em;
  text-transform: uppercase;
}
body[data-page="history"] .creator-fact span {
  color: var(--ink-soft);
  font-size: .62rem;
  letter-spacing: .07em;
  text-align: right;
  text-transform: uppercase;
}
body[data-page="history"] .magazine-photo {
  position: sticky;
  top: 9.5rem;
  padding: .8rem .8rem 2rem;
  transform: rotate(1deg);
}
body[data-page="history"] .magazine-photo::before {
  content: "ARCHIVO · 1988";
  position: absolute;
  z-index: 2;
  top: -.7rem;
  left: 50%;
  padding: .35rem 1.1rem;
  color: #5a4932;
  background: rgba(225,202,154,.88);
  box-shadow: 0 2px 5px rgba(55,38,20,.16);
  transform: translateX(-50%) rotate(-2deg);
  font: 700 .57rem/1 var(--mono);
  letter-spacing: .08em;
  white-space: nowrap;
}
html[lang="en"] body[data-page="history"] .magazine-photo::before { content: "ARCHIVE · 1988"; }
body[data-page="history"] .magazine-photo button {
  aspect-ratio: 945 / 1300;
  overflow: hidden;
  background: #efe1bd;
}
body[data-page="history"] .magazine-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.09);
  transition: transform .35s ease;
}
body[data-page="history"] .magazine-photo button:hover img,
body[data-page="history"] .magazine-photo button:focus-visible img { transform: scale(1.115); }

@media (max-width: 1320px) and (min-width: 761px) {
  .site-nav { grid-template-columns: 1fr auto; row-gap: .75rem; }
  .nav-toggle { display: none; }
  .nav-actions { grid-column: 2; grid-row: 1; }
  .nav-links,
  .nav-links.is-open {
    position: static;
    display: flex;
    flex-direction: row;
    grid-column: 1 / -1;
    justify-content: flex-start;
    justify-self: stretch;
    gap: 2rem;
    padding: .65rem 0 .3rem;
    border: 0;
    border-top: 1px solid #464c42;
    background: transparent;
  }
  .nav-links a[aria-current="page"]::after {
    top: auto;
    left: 0;
    right: 0;
    bottom: -.35rem;
    width: auto;
    height: 2px;
  }
  html { scroll-padding-top: 8rem; }
}

@media (max-width: 760px) {
  .site-nav { grid-template-columns: 1fr auto; row-gap: .5rem; }
  .nav-mark span { display: inline; white-space: normal; max-width: 16rem; }
  .nav-mark::before { width: 2.3rem; }
  .nav-toggle { grid-column: 2; grid-row: 1; }
  .nav-actions {
    grid-column: 1 / -1;
    justify-content: space-between;
    justify-self: stretch;
  }
  .nav-links { position: absolute; top: 100%; }
  html { scroll-padding-top: 8.5rem; }
  body[data-page="technology"] .page-masthead {
    grid-template-columns: 1fr;
    min-height: 0;
    gap: 2rem;
    padding: 2.5rem 1.25rem;
  }
  body[data-page="technology"] .editorial-plate { width: 100%; max-width: 34rem; }
  body[data-page="technology"] .editorial-plate img { max-height: 290px; }
  body[data-page="history"] .creator-grid { grid-template-columns: 1fr; gap: 2.75rem; }
  body[data-page="history"] .creator-cards { padding-left: 2.15rem; }
  body[data-page="history"] .creator-card,
  body[data-page="history"] .creator-card:nth-child(even) { margin-left: 0; }
  body[data-page="history"] .creator-card::before { left: -2.8rem; }
  body[data-page="history"] .magazine-photo {
    position: relative;
    top: auto;
    width: min(100%, 30rem);
    margin: 0 auto;
  }
  .page-pagination a {
    min-height: 5.5rem;
    padding-top: 1rem;
    padding-bottom: 1rem;
  }
  .site-footer {
    padding-top: 1rem;
    padding-bottom: 1rem;
  }
  .site-footer strong,
  .site-footer strong + p,
  .site-footer strong + p + p { max-width: calc(100% - 4.6rem); }
  .site-footer strong { font-size: 2.2rem; }
  .site-footer strong + p { margin-top: .3rem; }
  .site-footer .project-credit { margin-top: .55rem; }
  .site-footer .project-credit {
    font-size: .56rem !important;
    line-height: 1.25 !important;
    letter-spacing: .045em;
  }
  .footer-labyrinth {
    display: grid;
    top: .8rem;
    right: 1rem;
    width: 3.75rem;
  }
}

@media (max-width: 480px) {
  body[data-page="history"] .creator-card { padding: 1.25rem 1.1rem 1.1rem; }
  body[data-page="history"] .creator-card h3 { font-size: 1.85rem; }
  body[data-page="history"] .creator-fact { align-items: flex-start; flex-direction: column; gap: .3rem; }
  body[data-page="history"] .creator-fact span { text-align: left; }
}
