/* joinr.space about page: a magazine spread. A living-room scene on a flickering tube TV, columns with drop caps and
   pull quotes, old-magazine ad cards from the back pages, a timeline of consoles, and the arenas as a card grid.
   Builds on site.css. Every screen shown on a tube TV flickers (.tube), with scanlines, a rolling band and glass. */
.mag { --paper: #f1e3c0; --ink2: #2a1d0e; }
/* ───────── the tube TV ───────── */
.crt { --bezel: #2b2420; position: relative; display: inline-block; padding: 5% 6% 7%; border-radius: 10px; background: linear-gradient(160deg, #4a3a2a, #241a12 60%, #1a120c); box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6), inset 0 2px 0 rgba(255, 255, 255, 0.08); }
.crt.wood { background: repeating-linear-gradient(95deg, #5a3a22 0 6px, #6a4628 6px 11px, #4e3220 11px 16px); }
.crt .screen { position: relative; overflow: hidden; border-radius: 10% / 12%; background: #050608; box-shadow: inset 0 0 40px #000, 0 0 0 6px #111, 0 0 0 9px #3a3a40; aspect-ratio: 4 / 3; }
.crt .screen > .tube { position: absolute; inset: 0; display: grid; place-items: center; animation: tubeFlicker 0.11s steps(2) infinite, tubeDrift 9s ease-in-out infinite; filter: contrast(1.15) saturate(1.25) brightness(1.05); }
.crt .screen > .tube img, .crt .screen > .tube svg, .crt .screen > .tube canvas { width: 100%; height: 100%; object-fit: cover; image-rendering: pixelated; }
.crt .scan { position: absolute; inset: 0; pointer-events: none; background: repeating-linear-gradient(180deg, rgba(0, 0, 0, 0.32) 0 1px, transparent 1px 3px); mix-blend-mode: multiply; }
.crt .band { position: absolute; left: 0; right: 0; height: 14%; top: -14%; pointer-events: none; background: linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.09) 50%, transparent); animation: tubeBand 4.5s linear infinite; }
.crt .glass { position: absolute; inset: 0; pointer-events: none; border-radius: inherit; background: radial-gradient(ellipse at 28% 22%, rgba(255, 255, 255, 0.16), transparent 42%), radial-gradient(ellipse at 50% 50%, transparent 55%, rgba(0, 0, 0, 0.55)); }
.crt .knobs { position: absolute; right: 2.2%; top: 14%; bottom: 16%; width: 3.2%; display: flex; flex-direction: column; gap: 10px; align-items: center; }
.crt .knobs i { width: 100%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #8a8a90, #2a2a30 70%); box-shadow: 0 1px 2px #000; }
.crt .knobs i:nth-child(3) { width: 60%; background: #c33; box-shadow: 0 0 8px #f44; animation: ledBlink 2s steps(1) infinite; }
.crt .speaker { position: absolute; right: 2%; bottom: 2.5%; width: 3.6%; height: 10%; background: repeating-linear-gradient(180deg, #111 0 2px, #3a2e26 2px 4px); border-radius: 3px; }
@keyframes tubeFlicker { 0% { opacity: 0.96; transform: translateY(0); } 50% { opacity: 1; transform: translateY(0.4px); } 100% { opacity: 0.93; transform: translateY(-0.3px); } }
@keyframes tubeDrift { 0%, 92%, 100% { filter: contrast(1.15) saturate(1.25) brightness(1.05); } 94% { filter: contrast(1.4) saturate(1.5) brightness(1.35); transform: translateY(2px) scaleY(1.01); } 96% { filter: contrast(1.1) saturate(1.1) brightness(0.9); transform: translateY(-3px); } }
@keyframes tubeBand { from { top: -14%; } to { top: 110%; } }
@keyframes ledBlink { 0%, 90% { opacity: 1; } 95% { opacity: 0.3; } }
@media (prefers-reduced-motion: reduce) { .crt .screen > .tube { animation: none; } .crt .band { display: none; } }

/* ───────── the hero: the living room ───────── */
.magHero { position: relative; overflow: hidden; padding: 90px var(--gut) 40px; border-bottom: 1px solid var(--line); isolation: isolate; }
.magHero::before { content: ''; position: absolute; inset: 0; z-index: -1; background: radial-gradient(ellipse at 70% 20%, rgba(255, 138, 61, 0.18), transparent 55%), radial-gradient(ellipse at 20% 90%, rgba(61, 139, 255, 0.2), transparent 55%); }
.magHero .wrap { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(20px, 4vw, 56px); align-items: center; }
.masthead { font-family: var(--px); font-size: 9px; letter-spacing: 2px; color: var(--gold); display: flex; gap: 14px; align-items: center; animation: rise .8s both; }
.masthead i { flex: 1; height: 1px; background: linear-gradient(90deg, var(--gold), transparent); }
.magHero h1 { font-family: Georgia, 'Times New Roman', serif; font-weight: 900; font-size: clamp(34px, 5.6vw, 72px); line-height: 1.02; margin: 18px 0 20px; letter-spacing: -1px; color: #fff; animation: drop .8s cubic-bezier(.2, 1.6, .4, 1) both; }
.magHero h1 em { font-style: italic; color: var(--gold); text-shadow: 0 0 24px rgba(255, 214, 51, 0.5); }
.magHero .standfirst { font-size: clamp(16px, 1.6vw, 20px); color: #cfd6ff; max-width: 540px; animation: rise 1s .25s both; }
.magHero .byline { font-family: var(--px); font-size: 8px; letter-spacing: 1px; color: var(--dim); margin-top: 18px; animation: rise 1s .4s both; }
@keyframes lampPulse { 0%, 100% { opacity: 0.55; } 50% { opacity: 0.8; } }
@keyframes sway { 0%, 100% { transform: skewX(0deg); } 50% { transform: skewX(1.6deg); } }
@keyframes invaderStep { 0% { transform: translateX(0); } 100% { transform: translateX(14px); } }
@keyframes shipSlide { 0%, 100% { transform: translateX(-22px); } 50% { transform: translateX(22px); } }
@keyframes shotUp { from { transform: translateY(0); opacity: 1; } to { transform: translateY(-60px); opacity: 0; } }
@keyframes kidBob { 0%, 100% { transform: translateY(0) rotate(0deg); } 50% { transform: translateY(-2px) rotate(-1deg); } }
@keyframes svgBand { from { transform: translateY(-40px); } to { transform: translateY(220px); } }
@keyframes twinkle { 0%, 100% { opacity: 0.3; } 50% { opacity: 1; } }
@media (max-width: 860px) { .magHero .wrap { grid-template-columns: 1fr; } .magHero { padding-top: 120px; } }

/* ───────── the spread: columns, drop caps, pull quotes, boxes ───────── */
.spread { padding: 60px var(--gut); }
.spread .wrap { display: grid; grid-template-columns: 1fr 1fr minmax(220px, 0.8fr); gap: clamp(22px, 4vw, 48px); align-items: start; }
.spread .wrap.two { grid-template-columns: 1fr 1fr; }
.col h2, .box h3 { font-family: var(--px); font-weight: normal; font-size: 11px; letter-spacing: 2px; color: var(--gold); margin: 0 0 14px; }
.col p { color: #d6dbff; margin: 0 0 16px; }
.col p.lead::first-letter { float: left; font-family: Georgia, serif; font-size: 4.4em; line-height: 0.8; padding: 6px 10px 0 0; color: var(--gold); font-weight: 900; }
.pull { margin: 20px 0; padding: 18px 0 18px 22px; border-left: 4px solid var(--pink); font-family: Georgia, serif; font-style: italic; font-size: clamp(20px, 2.2vw, 28px); line-height: 1.3; color: #fff; }
.pull small { display: block; font-family: var(--px); font-style: normal; font-size: 8px; letter-spacing: 1px; color: var(--dim); margin-top: 10px; }
.box { padding: 22px 20px; border-radius: 14px; background: linear-gradient(170deg, rgba(61, 139, 255, 0.14), rgba(11, 7, 48, 0.9) 60%); border: 1px solid var(--line); position: relative; overflow: hidden; }
.box::after { content: ''; position: absolute; inset: -2px; border-radius: inherit; z-index: -1; background: conic-gradient(from 0deg, transparent 0 70%, var(--cyan), transparent 85%); animation: spin 8s linear infinite; filter: blur(14px); opacity: .5; }
.box dl { display: grid; grid-template-columns: auto 1fr; gap: 10px 14px; margin: 0; align-items: baseline; }
.box dt { font-family: var(--px); font-size: 20px; color: var(--gold); text-shadow: 0 0 12px rgba(255, 214, 51, 0.6); }
.box dd { margin: 0; color: #d6dbff; font-size: 14px; }
.box + .box { margin-top: 18px; }
.box .mini { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.box .mini img { width: 100%; image-rendering: pixelated; border-radius: 6px; border: 1px solid var(--line); }
@media (max-width: 900px) { .spread .wrap, .spread .wrap.two { grid-template-columns: 1fr; } }

/* ───────── the back pages: old magazine ads ───────── */
.backpages { padding: 40px var(--gut) 80px; position: relative; overflow: hidden; }
.adRow { display: grid; grid-template-columns: repeat(2, 1fr); max-width: 820px; margin-left: auto; margin-right: auto; gap: clamp(18px, 3vw, 36px); margin-top: 40px; align-items: start; }
.ad { position: relative; border-radius: 6px; overflow: hidden; box-shadow: 0 24px 50px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.06); transition: transform .3s; }
.ad:hover { transform: rotate(0deg) scale(1.03) !important; z-index: 2; }
.ad:nth-child(1) { transform: rotate(-2.5deg); } .ad:nth-child(2) { transform: rotate(1.5deg); margin-top: 30px; } .ad:nth-child(3) { transform: rotate(-1deg); }
.ad .tag { position: absolute; left: 12px; top: 12px; font-family: var(--px); font-size: 7px; letter-spacing: 1px; padding: 5px 7px; border-radius: 3px; background: #000; color: var(--gold); z-index: 3; }
/* the seventies: yellowed paper, a sunburst, condensed shouting type, a wood-grain console */
.ad.seventies { background: var(--paper); color: var(--ink2); padding: 26px 22px 20px; text-align: center; }
.ad.seventies::before { content: ''; position: absolute; inset: 0; background: radial-gradient(circle, rgba(0, 0, 0, 0.14) 1px, transparent 1.4px) 0 0 / 5px 5px; opacity: .5; pointer-events: none; }
.ad.seventies .burst { position: absolute; right: -36px; top: -36px; width: 130px; height: 130px; background: conic-gradient(from 0deg, #e8402a 0 10deg, #f4c030 10deg 20deg, #e8402a 20deg 30deg, #f4c030 30deg 40deg, #e8402a 40deg 50deg, #f4c030 50deg 60deg, #e8402a 60deg 70deg, #f4c030 70deg 80deg, #e8402a 80deg 90deg, #f4c030 90deg 100deg, #e8402a 100deg 110deg, #f4c030 110deg 120deg, #e8402a 120deg 130deg, #f4c030 130deg 140deg, #e8402a 140deg 150deg, #f4c030 150deg 160deg, #e8402a 160deg 170deg, #f4c030 170deg 180deg, #e8402a 180deg 190deg, #f4c030 190deg 200deg, #e8402a 200deg 210deg, #f4c030 210deg 220deg, #e8402a 220deg 230deg, #f4c030 230deg 240deg, #e8402a 240deg 250deg, #f4c030 250deg 260deg, #e8402a 260deg 270deg, #f4c030 270deg 280deg, #e8402a 280deg 290deg, #f4c030 290deg 300deg, #e8402a 300deg 310deg, #f4c030 310deg 320deg, #e8402a 320deg 330deg, #f4c030 330deg 340deg, #e8402a 340deg 350deg, #f4c030 350deg 360deg); border-radius: 50%; animation: spin 24s linear infinite; }
.ad.seventies .burst b { position: absolute; inset: 0; display: grid; place-items: center; font: 900 22px/1 Impact, 'Arial Narrow', sans-serif; color: #fff; text-shadow: 2px 2px 0 #7a1a0a; transform: rotate(14deg); }
.ad.seventies h3 { font: 900 clamp(26px, 2.6vw, 34px)/1 Impact, 'Arial Narrow', sans-serif; letter-spacing: 1px; margin: 0 0 6px; color: #b8321c; text-transform: uppercase; text-shadow: 2px 2px 0 #f4c030; position: relative; }
.ad.seventies .sub { font: italic 700 16px/1.3 Georgia, serif; margin: 0 0 14px; position: relative; }
.ad.seventies svg { width: 100%; height: auto; display: block; position: relative; }
.ad.seventies .fine { font: 11px/1.4 Georgia, serif; margin: 12px 0 0; color: #5a4a30; position: relative; }
.ad.seventies .price { display: inline-block; margin-top: 10px; font: 900 18px/1 Impact, 'Arial Narrow', sans-serif; color: #fff; background: #b8321c; padding: 6px 12px; transform: rotate(-3deg); position: relative; }
/* the eighties: black, a neon grid, chrome type, a tube TV showing the game */
.ad.eighties { background: #07031c; color: #fff; padding: 22px 18px 18px; text-align: center; }
.ad.eighties::before { content: ''; position: absolute; left: -50%; right: -50%; bottom: 0; height: 45%; transform-origin: 50% 0; transform: perspective(240px) rotateX(62deg); background-image: linear-gradient(rgba(255, 61, 240, 0.55) 2px, transparent 2px), linear-gradient(90deg, rgba(61, 245, 255, 0.4) 2px, transparent 2px); background-size: 40px 40px; animation: gridRun 1.2s linear infinite; -webkit-mask-image: linear-gradient(transparent, #000 40%); mask-image: linear-gradient(transparent, #000 40%); }
.ad.eighties h3 { font: 900 clamp(22px, 2.3vw, 30px)/1.05 Impact, 'Arial Narrow', sans-serif; text-transform: uppercase; margin: 0 0 10px; letter-spacing: 1px; background: linear-gradient(180deg, #fff 0 40%, #9ad8ff 45%, #2a5aa8 55%, #e8f4ff 70%, #6a8ab8); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 2px 0 #1a0a40) drop-shadow(0 0 10px rgba(61, 245, 255, 0.5)); position: relative; }
.ad.eighties .crt { width: 92%; margin: 0 auto; position: relative; }
.ad.eighties .sub { font-family: var(--px); font-size: 8px; line-height: 1.9; color: var(--pink); text-shadow: 0 0 8px var(--pink); margin: 14px 0 0; position: relative; }
/* the strip: three comic panels, a phone with a clip-on pad, a burst */
@keyframes boomPop { 0%, 100% { transform: rotate(-4deg) scale(1); } 50% { transform: rotate(-2deg) scale(1.08); } }
@media (max-width: 900px) { .adRow { grid-template-columns: 1fr; max-width: 440px; margin-left: auto; margin-right: auto; } .ad:nth-child(2) { margin-top: 0; } }

/* ───────── the timeline of living rooms ───────── */
.eras { padding: 40px var(--gut) 70px; border-top: 1px solid var(--line); }
.eraRow { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 3vw, 36px); margin-top: 36px; }
.era { text-align: center; }
.era .crt { width: 100%; }
.era h4 { font-family: var(--px); font-weight: normal; font-size: 12px; color: var(--gold); margin: 18px 0 8px; letter-spacing: 1px; }
.era p { color: #d6dbff; font-size: 15px; margin: 0; }
.era svg { width: 100%; height: 100%; }
@media (max-width: 760px) { .eraRow { grid-template-columns: 1fr; max-width: 420px; margin-left: auto; margin-right: auto; } }

/* ───────── the arenas as cards ───────── */
.arenaGrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; margin-top: 30px; }
.arenaGrid a { --acc: var(--gold); display: grid; grid-template-columns: 56px 1fr; gap: 12px; align-items: center; padding: 12px; border-radius: 12px; background: rgba(255, 255, 255, 0.035); border: 1px solid color-mix(in srgb, var(--acc) 40%, transparent); text-decoration: none; color: var(--ink); transition: transform .2s, box-shadow .2s; }
.arenaGrid a:hover { transform: translateY(-3px); box-shadow: 0 12px 30px color-mix(in srgb, var(--acc) 30%, transparent); color: var(--ink); }
.arenaGrid img { width: 56px; height: 56px; image-rendering: pixelated; border-radius: 8px; }
.arenaGrid b { display: block; font-family: var(--px); font-weight: normal; font-size: 9px; color: var(--acc); margin-bottom: 6px; }
.arenaGrid span { font-size: 13px; color: #cfd4f5; }
.cta { text-align: center; padding: 20px var(--gut) 90px; }
.cta .btn { font-size: 12px; padding: 18px 28px; }

/* ───────── the photograph in the hero: its tube flickers ───────── */
.photo { margin: 0; position: relative; border-radius: 10px; overflow: hidden; box-shadow: 0 30px 60px rgba(0, 0, 0, 0.65), 0 0 0 1px rgba(255, 255, 255, 0.08); animation: rise 1.2s .2s both; transform: rotate(-1deg); }
.photo img { display: block; width: 100%; height: auto; filter: contrast(1.04) saturate(1.08); }
/* the screen's rectangle in the photo, as a copy of the photo clipped to it and animated like a tube */
.photoTube { position: absolute; left: 38.5%; top: 19.1%; width: 22.8%; height: 23.8%; border-radius: 7% / 10%; overflow: hidden;
  background: url(../img/retro/hero-livingroom.jpg) no-repeat; background-size: 438.6% auto; background-position: 49.9% 25.1%;
  animation: tubeFlicker 0.11s steps(2) infinite, photoDrift 7s ease-in-out infinite; box-shadow: 0 0 24px rgba(120, 255, 140, 0.35), inset 0 0 18px rgba(0, 0, 0, 0.5); }
.photoTube .scan { position: absolute; inset: 0; background: repeating-linear-gradient(180deg, rgba(0, 0, 0, 0.28) 0 1px, transparent 1px 3px); }
.photoTube .band { position: absolute; left: 0; right: 0; height: 18%; top: -18%; background: linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.12) 50%, transparent); animation: tubeBand 3.8s linear infinite; }
.photoTube .glass { position: absolute; inset: 0; background: radial-gradient(ellipse at 30% 25%, rgba(255, 255, 255, 0.14), transparent 45%); }
.photo figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 26px 14px 10px; font-family: var(--px); font-size: 8px; letter-spacing: 1px; color: #ffe9b0; text-shadow: 0 1px 0 #000; background: linear-gradient(transparent, rgba(0, 0, 0, 0.75)); }
@keyframes photoDrift { 0%, 90%, 100% { filter: brightness(1.1) contrast(1.15) saturate(1.3); } 93% { filter: brightness(1.5) contrast(1.3) saturate(1.5); transform: translateY(1px); } 96% { filter: brightness(0.85); } }
@media (prefers-reduced-motion: reduce) { .photoTube { animation: none; } .photoTube .band { display: none; } }

/* ───────── the full-bleed photograph with the pull quote ───────── */
.bleed { position: relative; overflow: hidden; min-height: 60vh; display: flex; align-items: flex-end; isolation: isolate; }
.bleed > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 60% 50%; z-index: -2; filter: contrast(1.05) saturate(1.1); }
.bleed::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(5, 3, 26, 0.55), transparent 35%, rgba(5, 3, 26, 0.85)); }
.bleed .wrap { padding: 90px var(--gut) 60px; }
.bleed .pull { max-width: 620px; border-left-color: var(--gold); font-size: clamp(24px, 3vw, 40px); text-shadow: 0 2px 20px rgba(0, 0, 0, 0.8); }
/* the tube at the photo's right edge, flickering: the screen is the top-right 10% × 61% of the frame */
.bleedTube { position: absolute; right: 0; top: 0; width: 9.8%; height: 61%; overflow: hidden; z-index: -1; background: url(../img/retro/hero-tvglow.jpg) no-repeat; background-size: 1020.4% auto; background-position: 100% 0; animation: tubeFlicker 0.11s steps(2) infinite, photoDrift 6s ease-in-out infinite; }
.bleedTube .scan { position: absolute; inset: 0; background: repeating-linear-gradient(180deg, rgba(0, 0, 0, 0.28) 0 1px, transparent 1px 3px); }
.bleedTube .band { position: absolute; left: 0; right: 0; height: 12%; top: -12%; background: linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.12) 50%, transparent); animation: tubeBand 4s linear infinite; }
@media (max-width: 860px) { .bleed { min-height: 70vh; } .bleed > img { object-position: 45% 50%; } .bleedTube { display: none; } }
@media (prefers-reduced-motion: reduce) { .bleedTube { animation: none; } }

/* ───────── an ad that is a photograph: the set in it flickers (its screen rectangle set per image) ───────── */
.ad.isPhoto { padding: 0; background: #000; }
.ad.isPhoto img { display: block; width: 100%; height: auto; }
.adTube { position: absolute; left: var(--l); top: var(--t); width: var(--w); height: var(--h); overflow: hidden; border-radius: 6% / 8%;
  background: var(--img) no-repeat; background-size: var(--bgs) auto; background-position: var(--bgp);
  animation: tubeFlicker 0.11s steps(2) infinite, photoDrift 6.5s ease-in-out infinite; box-shadow: 0 0 16px rgba(255, 255, 255, 0.18); }
.adTube .scan { position: absolute; inset: 0; background: repeating-linear-gradient(180deg, rgba(0, 0, 0, 0.28) 0 1px, transparent 1px 3px); }
.adTube .band { position: absolute; left: 0; right: 0; height: 16%; top: -16%; background: linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.14) 50%, transparent); animation: tubeBand 3.6s linear infinite; }
@media (prefers-reduced-motion: reduce) { .adTube { animation: none; } .adTube .band { display: none; } }

/* an era shown as a photograph rather than a drawn tube */
.eraPhoto { position: relative; border-radius: 10px; overflow: hidden; box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.08); }
.eraPhoto img { display: block; width: 100%; height: auto; }

/* ───────── the cover, leading the back pages ───────── */
.coverRow { display: grid; grid-template-columns: minmax(220px, 330px) 1fr; gap: clamp(24px, 4vw, 56px); align-items: center; }
.cover { position: relative; border-radius: 6px; overflow: hidden; background: #000; box-shadow: 0 30px 60px rgba(0, 0, 0, 0.65), 0 0 0 1px rgba(255, 255, 255, 0.08); transform: rotate(-2deg); transition: transform .3s; }
.cover:hover { transform: rotate(0deg) scale(1.03); }
.cover img { display: block; width: 100%; height: auto; }
@media (max-width: 760px) { .coverRow { grid-template-columns: 1fr; } .cover { max-width: 320px; margin: 0 auto 10px; } }
/* ───────── the arcade: a photograph with the pull quote beside it ───────── */
.arcade { padding: 40px var(--gut) 60px; border-top: 1px solid var(--line); }
.arcade .wrap { display: grid; grid-template-columns: 1.4fr 1fr; gap: clamp(22px, 4vw, 48px); align-items: center; }
.arcade .eraPhoto { transform: rotate(1deg); }
@media (max-width: 860px) { .arcade .wrap { grid-template-columns: 1fr; } }
