/* Track record and illustrated experiment workbench. */

.record__eyebrow,
.section-kicker {
  margin: 0 0 12px;
  color: var(--accent-ink);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.record__intro {
  max-width: 18ch;
  font-size: clamp(2.1rem, 4vw, 3.45rem);
  letter-spacing: -.035em;
  line-height: 1.07;
}
.record__context {
  max-width: 72ch;
  margin: 16px 0 0;
  color: var(--ink-2);
  font-size: 16px;
}
.record__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 36px;
}
.record-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: clamp(24px, 3.2vw, 38px);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  background: var(--surface);
  box-shadow: var(--shadow-rest);
}
.record-card__platform {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  color: var(--ink);
  font-size: 15px;
  font-weight: 700;
}
.record-card__platform svg {
  width: 21px;
  height: 21px;
  flex: none;
}
.record-card__platform span {
  margin-left: auto;
  color: var(--ink-3);
  font-size: 13px;
  font-weight: 500;
  text-align: right;
}
.record-card__figure {
  margin: 32px 0 0;
  color: var(--ok);
  font-size: clamp(2.9rem, 5.1vw, 4.6rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -.05em;
  font-variant-numeric: tabular-nums;
}
.record-card__figure span {
  display: block;
  margin-top: 8px;
  color: var(--ink);
  font-size: clamp(1.3rem, 2vw, 1.75rem);
  font-weight: 600;
  letter-spacing: -.02em;
}
.record-card__support {
  max-width: 40ch;
  min-height: 3.2em;
  margin: 18px 0 0;
  color: var(--ink-2);
  font-size: 16px;
  line-height: 1.5;
}
.record-card__period {
  margin: auto 0 0;
  padding-top: 20px;
  color: var(--ink-3);
  font-size: 14px;
}
.record-card__detail {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  margin-top: 20px;
  padding: 14px 0 0;
  border: 0;
  border-top: 1px solid var(--hair);
  background: none;
  color: var(--accent-ink);
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
}
.record-card__detail span {
  font-size: 18px;
  transition: transform var(--t-mid) var(--ease);
}
.record-card__detail:hover span,
.record-card__detail[aria-expanded="true"] span {
  transform: translate(2px, -2px);
}
.record-card .proof {
  max-width: none;
  margin: 14px 0 0;
  padding: 16px;
  background: var(--mist);
  box-shadow: none;
}
.record-card .proof p:last-child {
  margin-top: 6px;
  color: var(--ink-2);
  font-size: 14px;
  line-height: 1.5;
}

.loop-map__artifacts {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 7px;
  border: 1px solid var(--hair);
  border-radius: var(--r-md);
  background: var(--mist);
}
.loop-map__source, .loop-map__thumbs, .loop-map__result {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--ink-2);
  font-size: 11.5px;
  font-weight: 600;
  white-space: nowrap;
}
.loop-map__source svg { width: 17px; height: 17px; }
.loop-map__thumbs img { width: 25px; height: 25px; border-radius: 5px; object-fit: cover; }
.loop-map__result > span { color: var(--accent); font-size: 22px; line-height: 1; }
.loop-map__arrow { color: var(--accent); font-size: 18px; }

.board--memory { overflow: visible; }
.memory-flow {
  position: relative;
  display: grid;
  gap: 16px;
  padding: 24px;
}
.memory-flow::before {
  content: "";
  position: absolute;
  top: 42px;
  bottom: 42px;
  left: 43px;
  width: 2px;
  background: linear-gradient(var(--a3), var(--ok));
}
.memory-flow__item {
  position: relative;
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
}
.memory-flow__marker {
  z-index: 1;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 2px solid var(--a3);
  border-radius: 50%;
  background: var(--surface);
  color: var(--accent-ink);
  font-size: 13px;
  font-weight: 700;
}
.memory-flow__item:last-child .memory-flow__marker {
  border-color: var(--ok);
  color: var(--ok);
}
.memory-flow__content {
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--mist);
}
.memory-flow__eyebrow {
  margin: 0 0 8px;
  color: var(--accent-ink);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.memory-flow__content > p:not(.memory-flow__eyebrow) {
  margin: 0;
  color: var(--ink-2);
  font-size: 14px;
  line-height: 1.5;
}
.memory-flow__creative {
  display: flex;
  align-items: center;
  gap: 8px;
}
.memory-flow__creative img {
  width: 50px;
  height: 50px;
  flex: none;
  border-radius: 8px;
  object-fit: cover;
}
.memory-flow__creative p {
  margin: 0 0 0 5px;
  color: var(--ink-2);
  font-size: 13px;
  line-height: 1.35;
}
.memory-flow__creative strong { color: var(--accent-ink); }
.memory-flow__chip {
  display: inline-block;
  margin-top: 12px;
  padding: 5px 11px;
  border-radius: var(--r-pill);
  background: var(--ok-soft);
  color: var(--ok);
  font-size: 12px;
  font-weight: 700;
  transition: transform var(--t-slow) var(--ease), box-shadow var(--t-slow) var(--ease);
}
.board--memory:hover .memory-flow__chip {
  transform: translateX(5px);
  box-shadow: 0 0 0 6px color-mix(in srgb, var(--ok) 14%, transparent);
}

@media (max-width: 900px) {
  .record__grid { grid-template-columns: 1fr; }
  .record-card__support { min-height: 0; }
}
@media (max-width: 1080px) {
  .loop-map {
    display: block;
    position: static;
    padding: 16px;
  }
}
@media (max-width: 650px) {
  .memory-flow { padding: 18px 14px; }
  .memory-flow::before { left: 32px; }
  .memory-flow__item { gap: 10px; }
  .memory-flow__creative img { width: 39px; height: 39px; }
  .memory-flow__creative p { font-size: 12px; }
  .loop-map > svg { display: none; }
  .loop-map__source span, .loop-map__thumbs span { display: none; }
  .loop-map__artifacts { gap: 13px; }
  .loop-map__caption { margin: 10px 3px 0; }
}
@media (prefers-reduced-motion: reduce) {
  .record-card__detail span, .memory-flow__chip { transition: none; }
}
