/* =========================================================================
   SEVEN.LEGEND // Time Capsule — early-2000s sites in an era browser
   ========================================================================= */
.tc-intro { max-width: 820px; color: var(--text); font-size: 16.5px; margin: -6px 0 34px; }

/* ---------- stage ---------- */
.tc-stage { scroll-margin-top: calc(var(--nav-h) + 20px); display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 34px; align-items: start; margin-bottom: 46px; }
.tc-monitor { position: relative; padding: 18px 18px 0; border-radius: 22px 22px 14px 14px;
  background: linear-gradient(160deg, #1a2547, #0b1230 55%, #080d24);
  border: 1px solid var(--line-2);
  box-shadow: 0 0 0 1px rgba(0,0,0,.6) inset, 0 30px 80px -30px rgba(0,0,0,.9), 0 0 60px -10px rgba(51,214,255,.25); }
.tc-monitor::before { content: ''; position: absolute; inset: -1px; border-radius: inherit; pointer-events: none;
  background: linear-gradient(120deg, rgba(51,214,255,.6), transparent 30%, transparent 70%, rgba(123,92,255,.6)) border-box;
  -webkit-mask: linear-gradient(#000 0 0) padding-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude;
  border: 1px solid transparent; opacity: .7; }
.tc-base { display: flex; align-items: center; justify-content: center; gap: 10px; height: 34px; font: 600 10px var(--f-m); letter-spacing: 3px; color: #6f83ad; }
.tc-base .led { width: 7px; height: 7px; border-radius: 50%; background: var(--phos); box-shadow: 0 0 10px var(--phos); animation: tcLed 2.4s ease-in-out infinite; }
@keyframes tcLed { 50% { opacity: .45; } }

/* ---------- Windows 2000 / IE6 chrome ---------- */
.tc-win { background: #d4d0c8; border: 2px solid; border-color: #fff #404040 #404040 #fff; border-radius: 3px; overflow: hidden;
  font: 11px/1.2 Tahoma, 'Segoe UI', Verdana, sans-serif; color: #000; user-select: none; }
.tc-title { display: flex; align-items: center; gap: 6px; height: 22px; padding: 0 3px 0 5px; color: #fff; font-weight: 700;
  background: linear-gradient(90deg, #0a246a, #3a6ea5 60%, #a6caf0); }
.tc-title span:first-of-type { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tc-ie { width: 14px; height: 14px; }
.tc-ctl { display: flex; gap: 2px; }
.tc-ctl i { width: 16px; height: 14px; display: grid; place-items: center; font: 700 10px/1 Tahoma, sans-serif; color: #000; background: #d4d0c8;
  border: 1px solid; border-color: #fff #404040 #404040 #fff; font-style: normal; }
.tc-ctl i:last-child { margin-left: 2px; }
.tc-menu, .tc-tools { display: flex; gap: 2px; padding: 2px 4px; border-bottom: 1px solid #808080; box-shadow: 0 1px 0 #fff; }
.tc-menu span { padding: 2px 6px; }
.tc-tools { gap: 4px; padding: 3px 4px; flex-wrap: nowrap; overflow: hidden; }
.tc-tools .tb { padding: 3px 6px; white-space: nowrap; color: #222; }
.tc-tools .sep { width: 1px; margin: 0 2px; background: #808080; box-shadow: 1px 0 0 #fff; }
.tc-addr { display: flex; align-items: center; gap: 6px; padding: 3px 4px; border-bottom: 1px solid #808080; box-shadow: 0 1px 0 #fff; }
.tc-addr .lab { color: #444; }
.tc-addr .field { flex: 1; min-width: 0; display: flex; align-items: center; gap: 4px; height: 20px; padding: 0 4px; background: #fff;
  border: 2px solid; border-color: #808080 #fff #fff #808080; white-space: nowrap; overflow: hidden; }
.tc-addr .field svg { width: 14px; height: 14px; }
.tc-addr .go { padding: 2px 10px; border: 1px solid; border-color: #fff #404040 #404040 #fff; }

.tc-view { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: #fff; border: 2px solid; border-color: #808080 #fff #fff #808080; }
.tc-view iframe { position: absolute; top: 0; left: 0; width: 1024px; height: calc(768px + var(--tcx, 0px)); border: 0; transform-origin: 0 0; transform: scale(var(--tcs, .7)); background: #fff; }
.tc-scan { position: absolute; inset: 0; pointer-events: none; mix-blend-mode: multiply; opacity: .5;
  background: repeating-linear-gradient(0deg, rgba(0,0,0,.08) 0 1px, transparent 1px 3px), radial-gradient(120% 100% at 50% 50%, transparent 60%, rgba(0,20,60,.35)); }
.tc-view::after { content: ''; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(115deg, rgba(255,255,255,.08), transparent 35%); }

/* page "painting" in, like a slow connection */
.tc-veil { position: absolute; inset: 0; background: #fff; transform: translateY(100%); pointer-events: none; }
.tc-veil::before { content: ''; position: absolute; left: 0; right: 0; top: -14px; height: 14px; background: linear-gradient(transparent, rgba(255,255,255,.9)); }
.tc-stage.loading .tc-veil { transform: translateY(0); }
.tc-stage.painting .tc-veil { animation: tcPaint var(--tcpaint, 2.4s) steps(16, end) forwards; }
@keyframes tcPaint { from { transform: translateY(0); } to { transform: translateY(100%); } }

/* dial-up dialog */
.tc-dial { position: absolute; inset: 0; display: grid; place-items: center; background: #3a6ea5; opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s; }
.tc-dial::before { content: ''; position: absolute; inset: 0; background: radial-gradient(circle at 50% 40%, #4b82bd, #22528a 70%); }
.tc-stage.dialing .tc-dial { opacity: 1; visibility: visible; }
.dlg { position: relative; width: min(340px, 82%); background: #d4d0c8; border: 2px solid; border-color: #fff #404040 #404040 #fff; box-shadow: 2px 2px 0 #000; font: 11px Tahoma, sans-serif; }
.dlg-t { padding: 3px 6px; color: #fff; font-weight: 700; background: linear-gradient(90deg, #0a246a, #a6caf0); }
.dlg-b { display: flex; gap: 12px; padding: 12px; align-items: flex-start; }
.modem { width: 64px; flex: none; }
.modem .led { fill: #2a3a2a; }
.tc-stage.dialing .modem .led { animation: tcBlink .18s steps(2) infinite; }
.tc-stage.dialing .modem .l2 { animation-delay: .07s; }
.tc-stage.dialing .modem .l3 { animation-duration: .31s; }
@keyframes tcBlink { 0% { fill: #2a3a2a; } 50% { fill: #39ff6a; } }
#tc-steps { list-style: none; display: grid; gap: 4px; min-height: 64px; }
#tc-steps li { opacity: 0; transform: translateX(-4px); transition: opacity .2s, transform .2s; }
#tc-steps li.on { opacity: 1; transform: none; }
#tc-steps li.on::before { content: '✓ '; color: #0a6a1a; font-weight: 700; }
#tc-steps li.cur::before { content: '› '; color: #0a246a; }
.dlg-bar, .tc-status .pg { height: 12px; margin: 0 12px 12px; border: 1px solid; border-color: #808080 #fff #fff #808080; background: #fff; padding: 1px; }
.dlg-bar i, .tc-status .pg i { display: block; height: 100%; width: 0; background: repeating-linear-gradient(90deg, #0a246a 0 8px, transparent 8px 10px); transition: width .25s linear; }

.tc-status { display: flex; align-items: center; gap: 4px; padding: 2px 3px; }
.tc-status > span { border: 1px solid; border-color: #808080 #fff #fff #808080; height: 18px; display: flex; align-items: center; padding: 0 5px; }
.tc-status .st { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tc-status .pg { flex: none; width: 110px; margin: 0; height: 18px; }
.tc-status .zone { gap: 4px; width: 110px; }
.tc-status .zone svg { width: 14px; height: 14px; }

/* ---------- info panel ---------- */
.tc-info { position: sticky; top: calc(var(--nav-h) + 24px); display: grid; gap: 14px; }
.tc-year { font: 700 64px/1 var(--f-h); letter-spacing: -2px; background: linear-gradient(100deg, var(--ice), var(--cyan) 45%, var(--violet)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.tc-name { font: 700 28px/1.15 var(--f-h); color: var(--white); }
.tc-name em { display: block; font: 500 13px var(--f-m); font-style: normal; color: var(--amber); letter-spacing: 1.5px; margin-top: 6px; }
.tc-blurb { color: var(--text); font-size: 15px; }
.tc-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tc-tags span { font: 600 10.5px var(--f-m); letter-spacing: 1.4px; text-transform: uppercase; padding: 5px 9px; border-radius: 8px; color: var(--ice); border: 1px solid var(--line-2); background: rgba(51,214,255,.06); }
.tc-act { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 4px; }
.tc-links { display: grid; gap: 6px; font: 500 13px var(--f-m); }
.tc-links a { color: var(--cyan); }
.tc-links a:hover { color: var(--ice); text-decoration: underline; }
.tc-note { font: 12px var(--f-m); color: var(--muted); }
.tc-info.swap > * { animation: tcIn .6s var(--ease) both; }
.tc-info.swap > *:nth-child(2) { animation-delay: .05s; } .tc-info.swap > *:nth-child(3) { animation-delay: .1s; } .tc-info.swap > *:nth-child(4) { animation-delay: .15s; }
@keyframes tcIn { from { opacity: 0; transform: translateY(10px); filter: blur(4px); } }

/* ---------- timeline + shelf ---------- */
.tc-line { position: relative; display: flex; justify-content: space-between; margin: 0 6px 18px; font: 600 12px var(--f-m); color: var(--muted); letter-spacing: 2px; }
.tc-line::before { content: ''; position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: linear-gradient(90deg, var(--amber), var(--cyan), var(--violet)); opacity: .5; }
.tc-line span { position: relative; padding: 2px 10px; background: var(--void); border: 1px solid var(--line); border-radius: 99px; }
.tc-shelf { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(196px, 1fr); gap: 14px; overflow-x: auto; padding: 4px 4px 14px; margin: 0 -4px; scroll-snap-type: x proximity; scrollbar-width: thin; scrollbar-color: var(--cyan) transparent; }
.tc-shelf > .tc-card { scroll-snap-align: start; }
.tc-card { padding: 0; gap: 0; cursor: pointer; }
.tc-card.on { border-color: var(--cyan); box-shadow: 0 0 0 1px var(--cyan), 0 0 34px -8px rgba(51,214,255,.55); }
.tc-card.mine { border-color: rgba(255,155,61,.45); }
.tc-card.mine.on { border-color: var(--amber); box-shadow: 0 0 0 1px var(--amber), 0 0 34px -8px rgba(255,155,61,.5); }
.tc-shot { position: relative; display: block; aspect-ratio: 4 / 3; overflow: hidden; background: #0b1230; border-bottom: 1px solid var(--line); }
.tc-shot img { width: 100%; height: auto; min-height: 100%; object-fit: cover; object-position: top; transition: transform 5s linear; filter: saturate(.85); }
.tc-card:hover .tc-shot img, .tc-card:focus-visible .tc-shot img { transform: translateY(calc(-100% + var(--sh, 0px))); filter: none; }
.tc-shot::after { content: ''; position: absolute; inset: 0; background: repeating-linear-gradient(0deg, rgba(0,0,0,.12) 0 1px, transparent 1px 3px); pointer-events: none; }
.tc-meta { display: grid; gap: 4px; padding: 14px 14px 16px; }
.tc-cy { display: flex; align-items: center; justify-content: space-between; gap: 8px; font: 700 12px var(--f-m); color: var(--amber); letter-spacing: 2px; }
.tc-cy img { width: 66px; height: auto; image-rendering: pixelated; border-radius: 2px; }
.tc-meta b { font: 700 16px/1.2 var(--f-h); color: var(--white); }
.tc-meta b em { font: 500 11.5px var(--f-m); font-style: normal; color: var(--muted); }
.tc-u { font: 12px var(--f-m); color: var(--cyan); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tc-credit { margin-top: 26px; }
.tc-credit a { color: var(--cyan); }

html.rm .tc-shot img { transition: none; }
html.rm .tc-card:hover .tc-shot img { transform: none; }

@media (max-width: 960px) {
  .tc-stage { grid-template-columns: 1fr; }
  .tc-info { position: static; }
  .tc-year { font-size: 48px; }
}
@media (max-width: 640px) {
  .tc-monitor { padding: 8px 8px 0; border-radius: 14px; }
  .tc-tools, .tc-menu { display: none; }
  .tc-shelf { grid-auto-columns: 46%; gap: 12px; }
  .tc-status .zone { display: none; }
  .tc-status .pg { width: 70px; }
}
