/* Jodagráfica case study: Venezuelan broadcast, inside the fuelorfool service station. */
.jg {
  --j-ink: #0d0b14; --j-ink2: #16121f; --j-ink3: #241c33; --paper: #f4ecdb; --muted: #b3a891;
  --j-r: #e5352b; --j-o: #f28a1e; --j-y: #f7d02c; --j-g: #36a845; --j-b: #1e64c8; --phos: #7dff9a;
  --rainbow: linear-gradient(90deg, var(--j-r) 0 20%, var(--j-o) 20% 40%, var(--j-y) 40% 60%, var(--j-g) 60% 80%, var(--j-b) 80% 100%);
  --g: clamp(16px, 4vw, 56px); --max: 1320px; --e-out: cubic-bezier(.16, 1, .3, 1);
  background: var(--j-ink); color: var(--paper);
}
.jg main { display: block; background: var(--j-ink); overflow-x: clip; }
.jg main section { padding: clamp(72px, 11vw, 150px) var(--g); max-width: calc(var(--max) + 2 * var(--g)); margin: 0 auto; }
.jg main::after { content: ''; position: fixed; inset: 0; pointer-events: none; z-index: 40; background: repeating-linear-gradient(0deg, rgba(0,0,0,.18) 0 1px, transparent 1px 3px); opacity: .5; }
.jg .osd { font-family: VT323, ui-monospace, monospace; font-size: 1.2rem; letter-spacing: .05em; color: var(--phos); text-shadow: 0 0 8px rgba(125,255,154,.4); margin: 0 0 14px; line-height: 1.1; }
.jg .big { font-weight: 900; font-variation-settings: "wdth" 72, "wght" 900; font-size: clamp(2.4rem, 6vw, 5.8rem); line-height: .92; letter-spacing: -.005em; text-wrap: balance; max-width: 17ch; text-shadow: -1px 0 rgba(255,40,80,.3), 1px 0 rgba(0,210,255,.3); }
.jg .sub { color: var(--muted); max-width: 58ch; margin-top: 20px; font-size: clamp(1rem, .6vw + .8rem, 1.2rem); }
.jg .note { color: var(--muted); font-size: .9rem; margin-top: 18px; max-width: 60ch; }
.jg .sec-h { margin-bottom: clamp(32px, 5vw, 64px); }
.jg em { font-style: normal; color: var(--j-y); }
.jg code { font-family: VT323, monospace; font-size: 1.15em; color: var(--phos); }

/* TV frame */
.tv { margin: 0; }
.tv-glass { position: relative; aspect-ratio: 16 / 9; border-radius: 26px / 30px; overflow: hidden; background: #000;
  box-shadow: 0 0 0 10px #1d1826, 0 0 0 12px #2c2538, 0 0 0 24px #120f18, 0 30px 80px rgba(0,0,0,.6); }
.tv-glass::after { content: ''; position: absolute; inset: 0; pointer-events: none; border-radius: inherit;
  background: radial-gradient(130% 100% at 30% 8%, rgba(255,255,255,.1), transparent 40%), radial-gradient(120% 110% at 50% 50%, transparent 60%, rgba(0,0,0,.5)), repeating-linear-gradient(0deg, rgba(0,0,0,.25) 0 1px, transparent 1px 3px); }
.tv-glass video, .tv-glass img { width: 100%; height: 100%; object-fit: cover; }
.tv figcaption { margin-top: 34px; text-align: center; }
.jg .tv .soundbtn { z-index: 2; left: 18px; right: auto; top: 18px; bottom: auto; }

/* hero */
.hero { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.25fr); gap: clamp(28px, 5vw, 72px); align-items: center; min-height: calc(100svh - 76px); padding-block: clamp(32px, 6vw, 80px) !important; }
.ident { margin: 0 0 22px; }
.ident-v { display: block; }
.ident .l1, .ident .l2 { display: block; font-weight: 900; line-height: .9; font-size: clamp(2.6rem, 5.2vw, 5.6rem); }
.ident .wd { display: inline-block; white-space: nowrap; }
.js-rise .ident .l1 { background: none; color: var(--paper); }
.ident .l1 { font-variation-settings: "wdth" 125, "wght" 900; background: var(--rainbow); -webkit-background-clip: text; background-clip: text; color: transparent; }
.ident .l2 { font-variation-settings: "wdth" 72, "wght" 900; color: transparent; -webkit-text-stroke: 2px var(--paper); }
.ident .ch { display: inline-block; }
.lede { font-size: clamp(1.05rem, .7vw + .8rem, 1.3rem); max-width: 40ch; color: var(--paper); }
.lede b { color: var(--j-y); }
.facts { margin: 28px 0 0; display: grid; gap: 0; border-top: 1px solid rgba(244,236,219,.18); max-width: 440px; }
.facts div { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px solid rgba(244,236,219,.18); }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; font-weight: 700; }
.facts a { color: var(--j-y); }

/* ticker */
.ticker { overflow: hidden; border-block: 2px solid var(--paper); background: var(--j-ink2); }
.ticker p { display: inline-block; white-space: nowrap; margin: 0; padding: 12px 0; font-weight: 800; font-variation-settings: "wdth" 90; animation: jg-tick 50s linear infinite; }
.ticker i { font-style: normal; color: var(--j-y); margin: 0 18px; font-size: .7em; vertical-align: middle; }
@keyframes jg-tick { to { transform: translateX(-50%); } }

/* brief */
.asks { list-style: none; padding: 0; margin: clamp(32px, 5vw, 64px) 0 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 3vw, 40px); }
.asks li { border-top: 2px solid var(--paper); padding-top: 16px; }
.asks b { font-family: VT323, monospace; font-weight: 400; font-size: 2.4rem; color: var(--j-y); display: block; line-height: 1; margin-bottom: 8px; }
.asks p { color: var(--muted); }

/* cast */
.cast-grid { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(12px, 2vw, 28px); }
.cast-grid li:nth-child(even) { margin-top: clamp(24px, 5vw, 70px); }
.poster { position: relative; display: block; width: 100%; padding: 0; border: 0; background: #000; cursor: pointer; overflow: hidden; box-shadow: 0 0 0 2px var(--c), 0 24px 60px rgba(0,0,0,.6), 0 0 60px -10px var(--c); transition: transform .4s var(--e-out); }
.poster:hover { transform: translateY(-6px) rotate(-.8deg); }
.poster:focus-visible { outline: 3px solid var(--paper); outline-offset: 4px; }
.poster img { width: 100%; aspect-ratio: 9 / 16; object-fit: cover; }
.poster canvas { position: absolute; inset: 0; width: 100%; height: 100%; image-rendering: pixelated; opacity: 0; pointer-events: none; mix-blend-mode: screen; }
.poster .ch { position: absolute; top: 10px; right: 12px; margin: 0; background: rgba(0,0,0,.6); padding: 0 8px; }
.cast-grid h3 { margin: 18px 0 6px; font-weight: 900; font-variation-settings: "wdth" 80, "wght" 900; text-transform: uppercase; font-size: clamp(1.1rem, 1.6vw, 1.6rem); line-height: 1; border-left: 6px solid var(--c); padding-left: 10px; }
.cast-grid p { color: var(--muted); font-size: .95rem; padding-left: 16px; }
.cast-grid p b { color: var(--paper); }

/* rules */
.rules { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
.rules-h { position: sticky; top: 100px; }
.rule-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.rule-list li { background: var(--paper); color: var(--j-ink); padding: clamp(20px, 2.6vw, 32px); box-shadow: 10px 10px 0 var(--j-r); }
.rule-list li:nth-child(2) { box-shadow: 10px 10px 0 var(--j-y); }
.rule-list li:nth-child(3) { box-shadow: 10px 10px 0 var(--j-g); }
.rule-list li:nth-child(4) { box-shadow: 10px 10px 0 var(--j-b); }
.rule-list .osd { color: #1c6b31; text-shadow: none; margin-bottom: 6px; }
.rule-list b { display: block; font-weight: 900; font-variation-settings: "wdth" 80, "wght" 900; font-size: clamp(1.4rem, 2.2vw, 2rem); line-height: 1; margin-bottom: 10px; text-transform: uppercase; }
.rule-list p { color: #4a4436; }

/* analog strip */
.analog { max-width: none !important; padding-inline: 0 !important; }
.analog .sec-h, .analog .note { padding-inline: var(--g); max-width: calc(var(--max) + 2 * var(--g)); margin-inline: auto; }
.strip { overflow: hidden; }
.strip-row { display: flex; gap: 12px; width: max-content; animation: jg-strip 70s linear infinite; }
.strip:hover .strip-row { animation-play-state: paused; }
.strip-row img { width: clamp(180px, 17vw, 260px); aspect-ratio: 9 / 16; object-fit: cover; filter: sepia(.08); }
@keyframes jg-strip { to { transform: translateX(calc(-50% - 6px)); } }

/* intro breakdown */
.ib { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: clamp(28px, 4vw, 56px); align-items: center; }
.ib-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 4px; }
.ib-list li { padding: 12px 14px; border-left: 4px solid rgba(244,236,219,.15); cursor: pointer; transition: background .2s, border-color .2s; }
.ib-list li .osd { margin: 0 0 4px; }
.ib-list li b { display: block; font-weight: 800; font-size: 1.05rem; }
.ib-list li p { color: var(--muted); font-size: .9rem; display: none; margin-top: 4px; }
.ib-list li.on { background: var(--j-ink2); border-color: var(--j-y); }
.ib-list li.on p { display: block; }
.ib-bar { height: 6px; background: var(--j-ink3); margin-top: clamp(40px, 5vw, 60px); position: relative; }
.ib-bar i { position: absolute; inset: 0 auto 0 0; width: 0; background: var(--rainbow); background-size: 100vw 100%; }

/* glass */
.glass { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.glass-img { margin: 0; }
.glass-img img { width: 100%; border-radius: 18px / 22px; box-shadow: 0 0 0 8px #1d1826, 0 30px 60px rgba(0,0,0,.6); }
.glass-txt p:not(.osd) { color: var(--muted); max-width: 56ch; }
.glass-txt .big { margin-bottom: 22px; }

/* channels */
.zap { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, .6fr); gap: clamp(28px, 4vw, 56px); align-items: center; }
.tv-zap .tv-glass { aspect-ratio: 16 / 10; }
.tv-zap img { object-position: top; }
.tv-zap canvas { position: absolute; inset: 0; width: 100%; height: 100%; image-rendering: pixelated; opacity: 0; pointer-events: none; }
.tv-zap .ch { position: absolute; top: 14px; right: 18px; margin: 0; font-size: 2rem; background: rgba(0,0,0,.6); padding: 0 10px; z-index: 1; }
.zap-dial { display: grid; gap: 6px; }
.zap-dial button { text-align: left; min-height: 44px; padding: 8px 14px; background: none; border: 1px solid rgba(244,236,219,.2); color: var(--paper); font-family: VT323, monospace; font-size: 1.3rem; cursor: pointer; }
.zap-dial button:hover { border-color: var(--phos); color: var(--phos); }
.zap-dial button[aria-pressed="true"] { background: var(--phos); color: #000; border-color: var(--phos); }
.phones { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(12px, 2vw, 24px); margin-top: clamp(48px, 7vw, 96px); }
.phones img { width: 100%; border-radius: 22px; box-shadow: 0 0 0 6px #1d1826, 0 20px 40px rgba(0,0,0,.5); }

/* shop */
.dio { width: 100%; border: 2px solid var(--paper); box-shadow: 14px 14px 0 var(--j-r); }
.ovals-txt { color: var(--muted); font-size: 1.05rem; padding-right: 12px; }
.ovals-txt b { color: var(--paper); }

/* seo */
.seo { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.seo-txt p:not(.osd) { color: var(--muted); max-width: 54ch; margin-top: 22px; }
.code { margin: 0; padding: clamp(18px, 2.5vw, 32px); background: #07060c; border: 1px solid rgba(125,255,154,.25); font-family: VT323, monospace; font-size: clamp(1rem, 1.1vw, 1.25rem); line-height: 1.25; color: var(--phos); overflow-x: auto; box-shadow: 0 0 40px rgba(125,255,154,.07) inset; }
.code code { font-size: inherit; }

/* live */
.log { list-style: none; padding: 0; margin: 0; display: grid; gap: 0; max-width: 900px; }
.log li { display: grid; grid-template-columns: 7.5em minmax(0, 1fr); gap: 20px; padding: 18px 0; border-top: 1px solid rgba(244,236,219,.18); }
.log .osd { margin: 0; font-size: 1.4rem; }
.log p { color: var(--muted); }
.log b { color: var(--paper); }
.arcade { margin: clamp(40px, 5vw, 64px) 0 0; }
.arcade img { width: 100%; border: 2px solid var(--paper); box-shadow: 14px 14px 0 var(--j-y); }
.qa { margin-top: 40px; display: inline-flex; align-items: center; gap: 12px; padding: 14px 18px; border: 1px solid rgba(244,236,219,.2); background: var(--j-ink2); max-width: 70ch; }
.rec { flex: none; width: 10px; height: 10px; border-radius: 50%; background: var(--j-r); box-shadow: 0 0 10px var(--j-r); animation: jg-blink 1.2s steps(2) infinite; }
@keyframes jg-blink { 50% { opacity: .2; } }

/* crew */
.crew { text-align: left; }
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin: clamp(32px, 5vw, 56px) 0; }
.stats div { border-top: 2px solid var(--paper); padding-top: 12px; }
.stats dt { color: var(--muted); font-size: .95rem; order: 2; }
.stats dd { margin: 0; font-weight: 900; font-variation-settings: "wdth" 120, "wght" 900; font-size: clamp(2.6rem, 6vw, 5rem); line-height: 1; color: var(--j-y); font-variant-numeric: tabular-nums; }
.stats div { display: flex; flex-direction: column-reverse; }
.crew-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(16px, 2.4vw, 32px); }
.crew-grid h3 { font-weight: 900; font-variation-settings: "wdth" 90, "wght" 900; font-size: 1.25rem; margin-bottom: 8px; color: var(--paper); }
.crew-grid p { color: var(--muted); font-size: .95rem; }
.watch { display: inline-flex; align-items: center; gap: 18px; margin-top: clamp(48px, 6vw, 80px); padding: 18px 26px; background: var(--j-y); color: var(--j-ink); text-decoration: none; font-weight: 900; font-variation-settings: "wdth" 120, "wght" 900; font-size: clamp(1.1rem, 2vw, 1.6rem); text-transform: uppercase; box-shadow: 8px 8px 0 var(--j-r); transition: transform .2s var(--e-out), box-shadow .2s var(--e-out); }
.watch .osd { margin: 0; color: var(--j-ink); text-shadow: none; }
.watch:hover { transform: translate(-3px, -3px); box-shadow: 11px 11px 0 var(--j-r); }

/* reveals */
.js-rise [data-rise] { opacity: 0; transform: translateY(32px); transition: opacity .8s var(--e-out), transform .8s var(--e-out); }
.js-rise [data-rise].in { opacity: 1; transform: none; }

/* responsive */
@media (max-width: 1000px) {
  .hero, .ib, .glass, .seo, .rules, .zap { grid-template-columns: 1fr; }
  .rules-h { position: static; }
  .cast-grid, .phones, .stats, .crew-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .asks { grid-template-columns: 1fr; }
  .zap-dial { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero { min-height: auto; }
}
@media (max-width: 560px) {
  .tv-glass { box-shadow: 0 0 0 6px #1d1826, 0 0 0 8px #2c2538, 0 0 0 14px #120f18, 0 20px 50px rgba(0,0,0,.6); }
  .log li { grid-template-columns: 1fr; gap: 4px; }
  .ib-list li p { display: none !important; }
}
@media (prefers-reduced-motion: reduce) {
  .ticker p, .strip-row, .rec { animation: none; }
  .js-rise [data-rise] { opacity: 1; transform: none; transition: none; }
  .strip { overflow-x: auto; }
}

/* images keep their own shape */
.jg main img { height: auto; }

/* shop gallery: small thumbs that open in a viewer */
.thumb { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; position: relative; }
.thumb:focus-visible { outline: 3px solid var(--paper); outline-offset: 4px; }
.thumb img { transition: transform .35s var(--e-out), filter .35s; }
.thumb:hover img { transform: translateY(-4px); filter: brightness(1.08); }
.thumb-dio { max-width: 980px; }
.gal { margin-top: clamp(40px, 5vw, 64px); }
.gal-h { margin: 0 0 12px; color: var(--phos); }
.gal-row { list-style: none; padding: 0; margin: 0 0 clamp(28px, 4vw, 44px); display: flex; flex-wrap: wrap; gap: clamp(10px, 1.4vw, 18px); align-items: flex-end; }
.gal-row li { width: clamp(130px, 14vw, 200px); }
.gal-row img { width: 100%; background: #1d1826; }
.ovals-txt { max-width: 46ch; margin: 0 0 16px; }

/* the 404 story */
.story { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(24px, 4vw, 64px); align-items: center; margin-top: clamp(48px, 6vw, 80px); }
.story h3 { font-weight: 900; font-variation-settings: "wdth" 80, "wght" 900; font-size: clamp(1.8rem, 3vw, 2.8rem); line-height: .95; margin: 6px 0 16px; }
.story-txt p:not(.osd) { color: var(--muted); margin: 0 0 12px; max-width: 52ch; }
.story-txt .osd { color: var(--phos); margin: 0; }
.story .arcade { margin: 0; }
.ext { display: inline-block; margin-top: 6px; color: var(--j-y); font-weight: 700; }

/* viewer */
.lb { border: 0; padding: 0; background: transparent; max-width: 100vw; max-height: 100vh; width: 100vw; height: 100vh; overflow: hidden; }
.lb::backdrop { background: rgba(6, 5, 10, .92); }
.lb[open] { display: grid; place-items: center; }
.lb img { max-width: min(92vw, 1400px); max-height: 84vh; width: auto; height: auto; object-fit: contain; box-shadow: 0 30px 80px rgba(0,0,0,.7); animation: lb-in .3s var(--e-out); }
@keyframes lb-in { from { opacity: 0; transform: scale(.96); } }
.lb button { position: fixed; background: rgba(0,0,0,.6); color: var(--paper); border: 1px solid rgba(255,255,255,.25); font-size: 2rem; line-height: 1; width: 52px; height: 52px; cursor: pointer; }
.lb button:hover { background: var(--j-y); color: #000; }
.lb-x { top: 16px; right: 16px; }
.lb-p { left: 16px; top: 50%; translate: 0 -50%; }
.lb-n { right: 16px; top: 50%; translate: 0 -50%; }
.lb-c { position: fixed; bottom: 14px; left: 0; right: 0; text-align: center; color: var(--phos); margin: 0; padding: 0 70px; }
@media (max-width: 1000px) { .story { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .gal-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; } .gal-row li { width: auto; } .lb-p, .lb-n { top: auto; bottom: 50px; translate: none; } }
@media (prefers-reduced-motion: reduce) { .lb img { animation: none; } }
