.archive-detail {
  z-index: 30;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  overflow: hidden;
  visibility: hidden;
  opacity: 0;
  transform: translateY(16px);
  background: var(--paper-soft);
  transition: opacity 300ms ease, transform 360ms cubic-bezier(.22, .8, .25, 1), visibility 300ms;
}

.archive-detail.is-visible {
  visibility: visible;
  opacity: 1;
  transform: none;
}

.detail-header {
  position: relative;
  z-index: 4;
  display: grid;
  grid-template-columns: minmax(110px, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 18px;
  min-height: 82px;
  padding: 14px clamp(20px, 4vw, 68px);
  border-bottom: 1px solid var(--line);
  background: rgba(251, 250, 246, .94);
  backdrop-filter: blur(18px);
}

.detail-home {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  border: 0;
  padding: 10px 0;
  background: transparent;
  color: var(--green);
  cursor: pointer;
  font-weight: 700;
}

.detail-home span:first-child {
  font-size: 23px;
  line-height: 1;
  transition: transform 180ms ease;
}

.detail-home:hover span:first-child { transform: translateX(-4px); }

.detail-brand {
  display: grid;
  justify-items: center;
  line-height: 1.1;
}

.detail-brand strong {
  font-family: var(--serif);
  font-size: 18px;
  letter-spacing: .08em;
}

.detail-brand span {
  margin-top: 6px;
  color: var(--muted);
  font-size: 9px;
  letter-spacing: .2em;
}

.detail-nav {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 4px;
}

.detail-nav button {
  position: relative;
  border: 0;
  padding: 11px 12px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  white-space: nowrap;
}

.detail-nav button::after {
  position: absolute;
  right: 12px;
  bottom: 2px;
  left: 12px;
  height: 2px;
  content: "";
  background: var(--green);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 200ms ease;
}

.detail-nav button:hover,
.detail-nav button.is-active {
  color: var(--ink);
}

.detail-nav button.is-active::after { transform: scaleX(1); }

.detail-scroll {
  overflow-x: hidden;
  overflow-y: auto;
  scroll-behavior: smooth;
  scrollbar-color: var(--green) transparent;
  outline: none;
}

.detail-content {
  width: min(1320px, 100%);
  min-height: 100%;
  margin: 0 auto;
  background: var(--paper-soft);
}

.detail-hero {
  min-height: 350px;
  padding: clamp(70px, 10vh, 112px) clamp(24px, 7vw, 96px) 54px;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(circle at 88% 14%, rgba(198, 220, 205, .78) 0, transparent 29%),
    linear-gradient(180deg, #fbfaf6, #f5f3ec);
}

.eyebrow {
  display: block;
  margin-bottom: 12px;
  color: var(--green);
  font-size: 12px;
  letter-spacing: .17em;
  text-transform: uppercase;
}

.detail-hero h1 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(50px, 8vw, 92px);
  letter-spacing: -.055em;
}

.detail-hero p {
  max-width: 830px;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: clamp(16px, 2vw, 21px);
  line-height: 1.85;
}

.records { padding: 0 clamp(24px, 6vw, 84px) 34px; }
.record { padding: 58px 0; border-top: 1px solid var(--line); }
.record:first-child { border-top: 0; }
.record-header { display: flex; justify-content: space-between; gap: 30px; align-items: flex-start; }
.record-time { display: block; margin-bottom: 10px; color: var(--green); font-size: 13px; letter-spacing: .07em; }
.record h2 { max-width: 820px; margin: 0; font-family: var(--serif); font-size: clamp(28px, 4vw, 46px); line-height: 1.3; }
.record-role { margin: 10px 0 0; color: var(--muted); }
.record-summary { max-width: 940px; margin: 24px 0 0; color: #4f5a54; line-height: 1.9; }
.record-columns { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 27px; }
.record-columns section { padding: 24px; border-left: 3px solid var(--green); background: rgba(255, 255, 255, .68); }
.record-columns h3 { margin: 0 0 12px; font-size: 15px; }
.record ul { margin: 18px 0 0; padding-left: 1.2em; color: #53605a; line-height: 1.8; }
.record-columns ul { margin-top: 0; }
.record li + li { margin-top: 7px; }
.tag-list { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 7px; max-width: 320px; }
.tag-list span { border: 1px solid var(--line); border-radius: 999px; padding: 7px 11px; color: var(--muted); font-size: 12px; background: rgba(255, 255, 255, .74); }
.archive-note { padding: 26px clamp(24px, 6vw, 84px); border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; }
.metric-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(145px, 1fr)); gap: 10px; margin-top: 24px; }
.metric { padding: 18px; border: 1px solid var(--line); border-radius: 18px; background: rgba(255, 255, 255, .7); }
.metric strong { display: block; color: var(--green); font-family: var(--serif); font-size: 25px; }
.metric span { display: block; margin-top: 5px; color: var(--muted); font-size: 12px; }

@media (max-width: 1200px) {
  .detail-header {
    grid-template-columns: auto 1fr;
    gap: 10px 18px;
    padding-block: 11px;
  }
  .detail-brand { justify-self: end; align-items: end; }
  .detail-brand span { display: none; }
  .detail-nav {
    grid-column: 1 / -1;
    justify-self: stretch;
    overflow-x: auto;
    padding-top: 2px;
  }
  .detail-nav button { flex: 1 0 auto; }
}

@media (max-width: 760px) {
  .detail-header { min-height: 104px; padding-inline: 16px; }
  .detail-home { font-size: 14px; }
  .detail-brand strong { font-size: 16px; }
  .detail-nav { margin-inline: -4px; }
  .detail-nav button { padding: 9px 10px; font-size: 13px; }
  .detail-hero { min-height: 300px; padding: 64px 20px 34px; }
  .detail-hero h1 { font-size: clamp(46px, 17vw, 72px); }
  .records { padding-inline: 18px; }
  .record { padding-block: 42px; }
}
