/* ==========================================================================
   Case study: 1983 Media  (cs_media1983.py)
   Signature: "cinematic ember", a REC-light red-orange. Film reel hero, clapperboard
   slate, a 3-layer pipeline map of the live site and "the visitor's cut" frame strip.
   The ember is decoration only (heading accents, kickers, eyebrow dots, glows, borders);
   data marks use the chart tokens, and the shared CTA band keeps ZidTech blue.
   ========================================================================== */

.cs--media1983 {
  --m83-rec: #ff5a36;                      /* REC light: dots, viewfinder corners, glows */
  --m83-ink: #ff7a59;                      /* ember as small text: 7.8:1 on --bg */
  --m83-grad: linear-gradient(115deg, #ff7a59 0%, #ff5a36 45%, #ff3b30 100%);
  --m83-glow: rgba(255, 90, 54, .18);
  --m83-halo: rgba(255, 90, 54, .75);
  --m83-line: rgba(255, 106, 69, .36);
  --m83-tint: rgba(255, 90, 54, .1);
  --m83-print: rgba(255, 176, 0, .66);     /* film edge print, the one amber touch: 5:1 on the film base */
  --m83-film: #0c0b0a;
  --m83-frame: #16130f;
  --m83-holes: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='30' height='30'><rect x='9' y='9.5' width='12' height='11' rx='2.5' fill='%23ffffff' fill-opacity='.14'/></svg>");
  --m83-stripe-a: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 24' width='40' height='24' preserveAspectRatio='none'><rect width='40' height='24' fill='%23221d18'/><path d='M2 24 16 0h20L22 24z' fill='%23f3eee4'/></svg>");
  --m83-stripe-b: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 24' width='40' height='24' preserveAspectRatio='none'><rect width='40' height='24' fill='%23221d18'/><path d='M2 0 16 24h20L22 0z' fill='%23f3eee4'/></svg>");
  --m83-clap-edge: rgba(255, 255, 255, .16);
  --m83-grain: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='g'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 .86  0 0 0 0 .6  0 0 0 .7 0'/></filter><rect width='100%' height='100%' filter='url(%23g)'/></svg>");
}
[data-theme="light"] .cs--media1983 {
  --m83-rec: #e2401f;
  --m83-ink: #b4301c;                      /* 5.7:1 on --bg, 6.2:1 on white */
  --m83-grad: linear-gradient(115deg, #c7321a 0%, #b02a1c 50%, #96202a 100%);
  --m83-glow: rgba(255, 90, 54, .13);
  --m83-halo: rgba(226, 64, 31, .45);
  --m83-line: rgba(192, 48, 26, .3);
  --m83-tint: rgba(226, 64, 31, .07);
  --m83-stripe-a: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 24' width='40' height='24' preserveAspectRatio='none'><rect width='40' height='24' fill='%231d1915'/><path d='M2 24 16 0h20L22 24z' fill='%23fffaf0'/></svg>");
  --m83-stripe-b: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 24' width='40' height='24' preserveAspectRatio='none'><rect width='40' height='24' fill='%231d1915'/><path d='M2 0 16 24h20L22 0z' fill='%23fffaf0'/></svg>");
  --m83-clap-edge: rgba(0, 0, 0, .25);
}

/* ---------- Page-wide accent (never inside the shared CTA band) ---------- */
.cs--media1983 .grad-text:not(.cta-final *) { background-image: var(--m83-grad); }
.cs--media1983 .eyebrow:not(.cta-final *)::before { border-radius: 50%; background: var(--m83-rec); box-shadow: 0 0 10px var(--m83-halo); }
.cs--media1983 .m83-k { font-family: var(--font-mono); font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--m83-ink); }
.cs--media1983 .m83-k::before { display: none; }

@keyframes m83blink { 0%, 100% { opacity: 1; } 50% { opacity: .25; } }
@keyframes m83dash { from { stroke-dashoffset: 48; } to { stroke-dashoffset: 0; } }
@keyframes m83edge { to { transform: translateX(-16.6667%); } }
@keyframes m83grain { 0% { transform: translate(0, 0); } 25% { transform: translate(-3%, 2%); } 50% { transform: translate(2%, -3%); } 75% { transform: translate(-2%, -1%); } 100% { transform: translate(1%, 3%); } }
.cs--media1983 .m83-dot { display: inline-block; flex: none; width: 7px; height: 7px; border-radius: 50%; background: #ff4a2e; box-shadow: 0 0 10px #ff4a2e; animation: m83blink 1.6s steps(2, jump-none) infinite; }

/* ---------- Hero ---------- */
.cs--media1983 .page-hero::before { background: conic-gradient(from 200deg, rgba(255, 90, 54, 0), rgba(255, 90, 54, .26), rgba(255, 59, 48, .16), rgba(155, 123, 255, .22), rgba(255, 90, 54, 0)); opacity: .55; }
[data-theme="light"] .cs--media1983 .page-hero::before { opacity: .34; }
.cs--media1983 .m83-beam { position: absolute; z-index: -1; top: -12%; right: -6%; width: 78%; height: 115%; pointer-events: none; background: conic-gradient(from 198deg at 100% 0%, transparent 0deg, rgba(255, 170, 140, .1) 10deg, rgba(255, 110, 70, .06) 24deg, transparent 40deg); filter: blur(14px); -webkit-mask-image: linear-gradient(to bottom, #000 50%, transparent 88%); mask-image: linear-gradient(to bottom, #000 50%, transparent 88%); }
[data-theme="light"] .cs--media1983 .m83-beam { background: conic-gradient(from 198deg at 100% 0%, transparent 0deg, rgba(255, 120, 80, .12) 10deg, rgba(255, 90, 54, .05) 24deg, transparent 40deg); }
.cs--media1983 .m83-meta { display: flex; flex-wrap: wrap; gap: 8px; }

.cs--media1983 .m83-reel { position: relative; margin-top: clamp(48px, 6vw, 84px); padding-bottom: clamp(36px, 5vw, 64px); }
.cs--media1983 .m83-frame { position: relative; border-radius: var(--r-l); overflow: hidden; background: var(--m83-film); border: 1px solid rgba(255, 255, 255, .08); box-shadow: 0 50px 120px -40px rgba(0, 0, 0, .85), 0 40px 140px -60px rgba(255, 80, 40, .45); color: #eef2fa; }
[data-theme="light"] .cs--media1983 .m83-frame { box-shadow: 0 24px 60px -30px rgba(40, 20, 10, .35), 0 30px 80px -50px rgba(255, 80, 40, .32); }
.cs--media1983 .m83-strip { position: relative; display: flex; align-items: center; gap: 14px; height: 34px; padding-inline: clamp(16px, 1.8vw, 22px); }
.cs--media1983 .m83-holes { flex: 1 1 auto; align-self: stretch; min-width: 0; background: var(--m83-holes) repeat-x left center / 30px 30px; }
.cs--media1983 .m83-hud { display: inline-flex; align-items: center; gap: 8px; flex: none; font: 500 12px/1 var(--font-mono); letter-spacing: .14em; text-transform: uppercase; color: rgba(255, 255, 255, .78); white-space: nowrap; }
.cs--media1983 .m83-hud b { display: inline-block; min-width: 11ch; font-weight: 500; color: #ff8a6b; font-variant-numeric: tabular-nums; letter-spacing: .1em; }
.cs--media1983 .m83-hud--r { color: rgba(255, 255, 255, .55); }
.cs--media1983 .m83-strip--b { height: 46px; flex-direction: column; align-items: stretch; justify-content: flex-end; gap: 0; padding-inline: 0; }
.cs--media1983 .m83-strip--b .m83-holes { flex: 0 0 30px; }
.cs--media1983 .m83-edge { position: absolute; top: 5px; left: 0; white-space: nowrap; font: 500 12px/1 var(--font-mono); letter-spacing: .24em; color: var(--m83-print); animation: m83edge 46s linear infinite; }
.cs--media1983 .m83-screen { position: relative; aspect-ratio: 16 / 10; margin-inline: clamp(8px, 1.2vw, 14px); border-radius: 6px; overflow: hidden; background: #0d0b08; isolation: isolate; }
.cs--media1983 .m83-screen > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.cs--media1983 .m83-screen::before { content: ""; position: absolute; inset: -40%; z-index: 1; pointer-events: none; background: var(--m83-grain); opacity: .16; mix-blend-mode: overlay; animation: m83grain 2.4s steps(3) infinite; }
.cs--media1983 .m83-screen::after { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; background: radial-gradient(120% 90% at 50% 45%, transparent 55%, rgba(0, 0, 0, .55)), repeating-linear-gradient(0deg, rgba(0, 0, 0, .07) 0 1px, transparent 1px 3px); }
.cs--media1983 .m83-corners { position: absolute; inset: clamp(8px, 1.4vw, 16px); z-index: 2; pointer-events: none; }
/* hero dolly-in (JS sets --m83-p from 0 to 1 as the hero scrolls away; stays 0 under reduced motion) */
html:not(.no-anim) .cs--media1983 .m83-screen > img { transform: scale(calc(1 + var(--m83-p, 0) * .08)); transform-origin: 50% 20%; will-change: transform; }
html:not(.no-anim) .cs--media1983 .m83-corners { transform: scale(calc(1 - var(--m83-p, 0) * .06)); }
.cs--media1983 .m83-corner { position: absolute; width: clamp(14px, 2vw, 26px); height: clamp(14px, 2vw, 26px); border: 0 solid #ff5a36; opacity: .95; }
.cs--media1983 .m83-corner--tl { top: 0; left: 0; border-top-width: 2px; border-left-width: 2px; }
.cs--media1983 .m83-corner--tr { top: 0; right: 0; border-top-width: 2px; border-right-width: 2px; }
.cs--media1983 .m83-corner--bl { bottom: 0; left: 0; border-bottom-width: 2px; border-left-width: 2px; }
.cs--media1983 .m83-corner--br { bottom: 0; right: 0; border-bottom-width: 2px; border-right-width: 2px; }
.cs--media1983 .m83-phone { position: absolute; z-index: 3; right: clamp(4px, 1.2vw, 18px); bottom: 0; width: clamp(104px, 16vw, 224px); margin: 0; transform: rotate(3deg); transform-origin: bottom right; }
.cs--media1983 .m83-phone .phone { max-width: none; box-shadow: 0 40px 80px -24px rgba(0, 0, 0, .9), 0 0 60px -10px rgba(255, 90, 54, .32), inset 0 0 0 1px rgba(255, 255, 255, .12), 0 0 0 1px rgba(0, 0, 0, .6); }
.cs--media1983 .m83-badge { right: clamp(120px, 18.5vw, 262px); bottom: 2px; z-index: 4; }
.cs--media1983 .m83-badge-ico { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: rgba(255, 90, 54, .18); color: #ff8a6b; }
.cs--media1983 .m83-badge-ico svg { width: 16px; height: 16px; }
.cs--media1983 .m83-cap { display: none; margin-top: 10px; font: 500 12px/1.3 var(--font-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--text-3); }
@media (min-width: 900px) and (max-width: 1199px) {
  .cs--media1983 .m83-reel { margin-top: clamp(32px, 4vw, 56px); }
  .cs--media1983 .m83-screen { aspect-ratio: 16 / 8.2; }
}
/* Split hero from 1200px: text left, reel right, so the first viewport carries the visual */
@media (min-width: 1200px) {
  .cs--media1983 .m83-hero { padding-bottom: clamp(48px, 5vw, 80px); }
  .cs--media1983 .m83-hero > .container { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.16fr); grid-template-rows: auto auto auto auto auto 1fr; column-gap: clamp(40px, 4.4vw, 76px); }
  .cs--media1983 .m83-hero > .container > * { grid-column: 1; }
  .cs--media1983 .m83-hero .display { font-size: clamp(3.5rem, 1rem + 3.4vw, 5.1rem); }
  .cs--media1983 .m83-hero .m83-reel { grid-column: 2; grid-row: 1 / -1; align-self: center; margin-top: 0; padding-bottom: 44px; }
  .cs--media1983 .m83-phone { width: clamp(132px, 10.8vw, 158px); right: -14px; }
  .cs--media1983 .m83-badge { right: clamp(140px, 12vw, 176px); }
}
@media (max-width: 760px) {
  .cs--media1983 .m83-hud--r { display: none; }
  .cs--media1983 .m83-badge { display: none; }
  .cs--media1983 .m83-cap { display: block; }
  .cs--media1983 .m83-strip { height: 30px; }
  .cs--media1983 .m83-holes { background-size: 24px 24px; }
  .cs--media1983 .m83-strip--b { height: 40px; }
  .cs--media1983 .m83-strip--b .m83-holes { flex-basis: 24px; }
  .cs--media1983 .m83-edge { top: 4px; left: 14px; font-size: 12px; letter-spacing: .2em; }
  .cs--media1983 .m83-phone { right: 2px; }
}

/* ---------- Slate (results) ---------- */
.cs--media1983 .m83-slate-wrap { position: relative; padding-top: clamp(52px, 5.4vw, 74px); }
.cs--media1983 .m83-clap { position: relative; z-index: 1; width: min(calc(100% - 72px), 520px); height: 24px; margin: 0 0 -1px 36px; }
.cs--media1983 .m83-clap-base, .cs--media1983 .m83-clap-arm { position: absolute; left: 0; width: 100%; height: 24px; border: 1px solid var(--m83-clap-edge); background: var(--m83-stripe-a) left top / 40px 100% repeat-x; }
.cs--media1983 .m83-clap-base { bottom: 0; border-bottom: 0; border-radius: 6px 6px 0 0; }
.cs--media1983 .m83-clap-arm { bottom: calc(100% + 3px); border-radius: 6px; background-image: var(--m83-stripe-b); box-shadow: 0 12px 22px -12px rgba(0, 0, 0, .65); transform: rotate(-5deg); transform-origin: 6px 100%; }
.cs--media1983 .m83-clap-hinge { position: absolute; z-index: 1; left: 0; top: -9px; width: 12px; height: 12px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #ffffff, #bdb6aa 45%, #57514a); box-shadow: 0 0 0 1px rgba(0, 0, 0, .45), 0 2px 6px rgba(0, 0, 0, .4); }
.cs--media1983 .m83-slate { position: relative; border-radius: var(--r-xl); overflow: hidden; border: 1px solid var(--line); background: radial-gradient(60% 120% at 0% 0%, var(--m83-glow), transparent 55%), linear-gradient(180deg, var(--card-a), var(--card-b)); }
/* the slate's "PROD." field: the card's visible title */
.cs--media1983 .m83-slate-top { display: flex; align-items: baseline; flex-wrap: wrap; column-gap: 12px; row-gap: 6px; padding: clamp(18px, 2vw, 24px) clamp(18px, 2.6vw, 34px); border-bottom: 1px solid var(--line); }
.cs--media1983 .m83-slate-t { margin: 0; font-size: clamp(1.3rem, 1.05rem + 1.2vw, 2.1rem); font-weight: 600; line-height: 1.1; letter-spacing: -.03em; }
.cs--media1983 .m83-slate-t .serif { font-weight: 400; letter-spacing: -.01em; padding-right: .06em; }
.cs--media1983 .m83-slate-head { display: grid; grid-template-columns: 1fr; margin: 0; }
.cs--media1983 .m83-slate-head > div { display: flex; flex-direction: column; gap: 7px; padding: 16px clamp(18px, 2.6vw, 34px); min-width: 0; }
.cs--media1983 .m83-slate-head > div + div { border-top: 1px solid var(--line); }
.cs--media1983 .m83-slate-head dt { font: 500 12px/1 var(--font-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--m83-ink); }
.cs--media1983 .m83-slate-head dd { margin: 0; font-size: 16px; line-height: 1.45; font-weight: 550; color: var(--text); text-wrap: pretty; }
@media (min-width: 700px) and (max-width: 1099px) {
  .cs--media1983 .m83-slate-head { grid-template-columns: repeat(2, 1fr); }
  .cs--media1983 .m83-slate-head > div { padding-block: 20px; }
  .cs--media1983 .m83-slate-head > div + div { border-top: 0; }
  .cs--media1983 .m83-slate-head > div:nth-child(2n) { border-left: 1px solid var(--line); }
  .cs--media1983 .m83-slate-head > div:nth-child(n + 3) { border-top: 1px solid var(--line); }
}
@media (min-width: 1100px) {
  .cs--media1983 .m83-slate-head { grid-template-columns: repeat(4, 1fr); }
  .cs--media1983 .m83-slate-head > div { padding-block: 22px; }
  .cs--media1983 .m83-slate-head > div + div { border-top: 0; border-left: 1px solid var(--line); }
}
/* REC strip: one "measured" stamp for the four counts under it */
.cs--media1983 .m83-slate-rec { display: flex; flex-wrap: wrap; align-items: center; column-gap: 10px; row-gap: 2px; margin: 0; padding: 12px clamp(18px, 2.6vw, 34px); border-top: 1px solid var(--line); background: var(--m83-tint); font: 500 12px/1.4 var(--font-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--text-2); }
.cs--media1983 .m83-rec-dot { flex: none; width: 7px; height: 7px; border-radius: 50%; background: var(--m83-rec); box-shadow: 0 0 10px var(--m83-halo); }
/* wrapping lists with separators: each item carries its separator in front, and the one that starts
   a line is clipped off, so no line ever begins (or ends) on a stray dot or arrow */
.cs--media1983 .m83-sep { --sep: 24px; display: block; min-width: 0; overflow: hidden; }
.cs--media1983 .m83-sep-in { display: flex; flex-wrap: wrap; row-gap: 4px; margin: 0 0 0 calc(var(--sep) * -1); padding: 0; list-style: none; }
.cs--media1983 .m83-sep-in > * { position: relative; padding-left: var(--sep); white-space: nowrap; }
.cs--media1983 .m83-sep-in > *::before { content: "\00b7"; position: absolute; left: 0; top: 0; width: var(--sep); text-align: center; }
.cs--media1983 .m83-slate-rec .m83-sep { flex: 1 1 0; }
/* ZidTech scope, printed like a film edge */
.cs--media1983 .m83-slate-scope { display: flex; flex-wrap: wrap; align-items: baseline; column-gap: 16px; row-gap: 8px; padding: 16px clamp(18px, 2.6vw, 34px) 18px; border-top: 1px solid var(--line); }
.cs--media1983 .m83-slate-scope .m83-sep { flex: 1 1 320px; --sep: 30px; }
.cs--media1983 .m83-slate-scope .m83-sep-in { row-gap: 6px; }
.cs--media1983 .m83-slate-scope li { font: 500 12px/1.4 var(--font-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--text-2); }
.cs--media1983 .m83-slate-scope li::before { content: "\25B8"; color: var(--m83-ink); }
.cs--media1983 .m83-slate-grid { display: grid; grid-template-columns: 1fr; }
.cs--media1983 .m83-cell { display: flex; flex-direction: column; gap: 10px; padding: clamp(22px, 2.6vw, 34px); border-top: 1px solid var(--line); min-width: 0; }
.cs--media1983 .m83-cell small { font-family: var(--font-mono); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--m83-ink); }
.cs--media1983 .m83-cell > b { display: block; font-size: clamp(2.7rem, 1.7rem + 2.6vw, 4.3rem); font-weight: 500; letter-spacing: -.05em; line-height: 1; font-variant-numeric: tabular-nums; white-space: nowrap; }
.cs--media1983 .m83-of { font-size: .42em; letter-spacing: -.01em; margin-left: .12em; color: var(--text-3); }
.cs--media1983 .m83-of--w { margin-left: .28em; }
.cs--media1983 .m83-cell > span { color: var(--text-2); font-size: 16px; line-height: 1.45; }
@media (min-width: 360px) {
  .cs--media1983 .m83-slate-grid { grid-template-columns: repeat(2, 1fr); }
  .cs--media1983 .m83-cell:nth-child(2n) { border-left: 1px solid var(--line); }
}
@media (min-width: 1100px) {
  .cs--media1983 .m83-slate-grid { grid-template-columns: repeat(4, 1fr); }
  .cs--media1983 .m83-cell + .m83-cell { border-left: 1px solid var(--line); }
}

/* ---------- Pipeline map ---------- */
.cs--media1983 .m83-pipe { position: relative; }
.cs--media1983 .m83-tier { display: grid; gap: 18px; grid-template-columns: 1fr; }
.cs--media1983 .m83-tier-label h3 { margin-top: 8px; font-family: var(--font-serif); font-style: italic; font-weight: 400; font-size: clamp(2.2rem, 1.5rem + 2vw, 3.2rem); line-height: 1; letter-spacing: -.02em; background: var(--m83-grad); -webkit-background-clip: text; background-clip: text; color: transparent; padding-right: .08em; width: fit-content; }
.cs--media1983 .m83-tier-label p { margin-top: 8px; color: var(--text-2); font-size: 16px; }
.cs--media1983 .m83-pills { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.cs--media1983 .m83-pages { display: inline-flex; white-space: nowrap; padding: 6px 11px; border-radius: 999px; border: 1px solid var(--m83-line); font: 500 12px/1.2 var(--font-mono); letter-spacing: .06em; color: var(--m83-ink); background: var(--m83-tint); }
.cs--media1983 .m83-wire { position: relative; display: grid; grid-template-columns: 1fr; height: 56px; }
.cs--media1983 .m83-wire > span { display: none; }
.cs--media1983 .m83-wire svg { display: none; width: 100%; height: 100%; overflow: visible; }
.cs--media1983 .m83-wire path { fill: none; stroke: var(--m83-line); stroke-width: 1.6; stroke-dasharray: 5 7; vector-effect: non-scaling-stroke; }
.cs--media1983 .m83-wire.is-on path { animation: m83dash 2.4s var(--ease) 1 both; }
.cs--media1983 .m83-rail { justify-self: center; width: 0; height: 100%; border-left: 1.6px dashed var(--m83-line); position: relative; }
.cs--media1983 .m83-rail::after { content: ""; position: absolute; left: -5px; bottom: 0; width: 8px; height: 8px; border-right: 1.6px solid var(--m83-rec); border-bottom: 1.6px solid var(--m83-rec); transform: rotate(45deg); }
@media (min-width: 900px) {
  .cs--media1983 .m83-tier, .cs--media1983 .m83-wire { grid-template-columns: 210px 1fr; column-gap: 32px; }
  .cs--media1983 .m83-tier-label { align-self: center; }
  .cs--media1983 .m83-wire { height: 88px; }
  .cs--media1983 .m83-wire > span { display: block; }
  .cs--media1983 .m83-wire svg { display: block; }
  .cs--media1983 .m83-rail { display: none; }
}
@media (min-width: 1200px) {
  .cs--media1983 .m83-tier, .cs--media1983 .m83-wire { grid-template-columns: 240px 1fr; column-gap: 48px; }
}

.cs--media1983 .m83-node { padding: clamp(18px, 2.2vw, 26px); min-width: 0; }
.cs--media1983 .m83-nodes { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 900px) { .cs--media1983 .m83-nodes { grid-template-columns: repeat(3, 1fr); } }
.cs--media1983 .m83-node-top { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }
.cs--media1983 .m83-node-ico { display: grid; place-items: center; flex: none; width: 36px; height: 36px; border-radius: var(--r-s); background: var(--m83-tint); border: 1px solid var(--m83-line); color: var(--m83-ink); }
.cs--media1983 .m83-node-ico svg { width: 17px; height: 17px; }
.cs--media1983 .m83-node-top > h4 { margin: 0; font-size: 1.08rem; font-weight: 600; letter-spacing: -.01em; }
.cs--media1983 .m83-node-note { margin-left: auto; font-size: 14px; color: var(--text-3); }
.cs--media1983 .m83-big { display: block; margin-top: 18px; font-size: clamp(2.6rem, 2rem + 1.6vw, 3.6rem); font-weight: 500; letter-spacing: -.05em; line-height: 1; font-variant-numeric: tabular-nums; }
.cs--media1983 .m83-node h4 { margin: 6px 0 0; font-size: 1.05rem; font-weight: 600; letter-spacing: -.01em; }
.cs--media1983 .m83-node p { margin-top: 10px; color: var(--text-2); font-size: 16px; line-height: 1.5; }
.cs--media1983 .m83-node .tags { margin-top: 14px; gap: 6px; }
.cs--media1983 .m83-node .tag { font-size: 12px; }

.cs--media1983 .m83-board { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 12px; grid-template-columns: 1fr; }
@media (min-width: 520px) { .cs--media1983 .m83-board { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .cs--media1983 .m83-board { grid-template-columns: repeat(4, 1fr); gap: 20px; } }
.cs--media1983 .m83-board li { position: relative; display: flex; flex-direction: column; gap: 5px; padding: 14px 16px 16px; border-radius: var(--r-s); border: 1px solid var(--line); background: var(--surface); }
.cs--media1983 .m83-board li > b { font-weight: 600; font-size: 16px; }
.cs--media1983 .m83-board li > span:last-child { font-size: 16px; line-height: 1.45; color: var(--text-2); }
.cs--media1983 .m83-fr { font: 500 12px/1 var(--font-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--m83-ink); }
@media (min-width: 1100px) {
  .cs--media1983 .m83-board li + li::before { content: ""; position: absolute; left: -15px; top: 50%; width: 8px; height: 8px; border-top: 1.6px solid var(--m83-line); border-right: 1.6px solid var(--m83-line); transform: translateY(-50%) rotate(45deg); }
}

.cs--media1983 .m83-node--goal { border-color: var(--m83-line); background: radial-gradient(120% 160% at 50% 0%, var(--m83-glow), transparent 62%), linear-gradient(180deg, var(--card-a), var(--card-b)); }
.cs--media1983 .m83-chs { display: grid; gap: 12px; margin-top: 18px; grid-template-columns: 1fr; }
@media (min-width: 1200px) { .cs--media1983 .m83-chs { grid-template-columns: repeat(3, 1fr); } }
.cs--media1983 .m83-ch { display: grid; grid-template-columns: auto 1fr; column-gap: 14px; row-gap: 3px; align-items: center; align-content: center; padding: 14px 16px; border-radius: var(--r-s); background: var(--surface); border: 1px solid var(--line); }
.cs--media1983 .m83-ch-ico { grid-row: span 2; display: grid; place-items: center; width: 40px; height: 40px; border-radius: var(--r-s); background: var(--m83-tint); border: 1px solid var(--m83-line); color: var(--m83-ink); }
.cs--media1983 .m83-ch-ico svg { width: 18px; height: 18px; }
.cs--media1983 .m83-ch > b { font-size: 1.12rem; font-weight: 600; letter-spacing: -.02em; line-height: 1.2; }
.cs--media1983 .m83-ch > span:last-child { font-size: 16px; line-height: 1.45; color: var(--text-2); }

.cs--media1983 .m83-src { margin-top: 20px; font-size: 14px; line-height: 1.5; color: var(--text-3); }
.cs--media1983 .m83-cta-split { margin-top: clamp(64px, 8vw, 110px); }
.cs--media1983 .m83-p { color: var(--text-2); max-width: 46ch; }
.cs--media1983 .m83-chart-card { border-color: var(--line); }

/* ---------- The visitor's cut: one real path, as a strip of captured frames ---------- */
.cs--media1983 .m83-cut { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr; row-gap: 36px; }
.cs--media1983 .m83-scene { display: flex; flex-direction: column; min-width: 0; }
.cs--media1983 .m83-scene-film { position: relative; display: flex; flex-direction: column; padding-inline: 10px; background: var(--m83-film); border: 1px solid rgba(255, 255, 255, .08); border-radius: var(--r-l); overflow: hidden; box-shadow: 0 30px 60px -36px rgba(0, 0, 0, .8); }
[data-theme="light"] .cs--media1983 .m83-scene-film { box-shadow: 0 26px 50px -30px rgba(40, 20, 10, .45); }
.cs--media1983 .m83-scene-film > .m83-holes { position: relative; display: block; flex: none; height: 26px; background-size: 26px 26px; background-repeat: round no-repeat; }
/* the row ends on a whole hole (round), so a 28px tag covers exactly the last one: no sliver either side */
.cs--media1983 .m83-scene-no { position: absolute; right: 0; top: 0; bottom: 0; display: grid; place-items: center; width: 28px; font: 500 12px/1 var(--font-mono); font-style: normal; letter-spacing: .06em; color: var(--m83-print); background: var(--m83-film); }
.cs--media1983 .m83-scene-img { position: relative; aspect-ratio: 16 / 10; border-radius: 4px; overflow: hidden; background: #0d0b08; isolation: isolate; }
.cs--media1983 .m83-scene-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
/* lens settle: the frame starts slightly zoomed and eases to rest as it scrolls in (touch and mouse alike; JS adds .m83-lens) */
html:not(.no-anim) .cs--media1983 .m83-lens .m83-scene-img img { transform: scale(1.16); transition: transform 1.6s cubic-bezier(.16, 1, .3, 1); }
html:not(.no-anim) .cs--media1983 .m83-lens.is-in .m83-scene-img img { transform: none; }
.cs--media1983 .m83-scene-img::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(130% 100% at 50% 40%, transparent 60%, rgba(0, 0, 0, .35)); }
@media (hover: hover) { html:not(.no-anim) .cs--media1983 .m83-scene:hover .m83-scene-img img { transform: scale(1.03); transition-duration: .8s; } }
.cs--media1983 .m83-scene-cap { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; padding: 20px 4px 0; }
.cs--media1983 .m83-scene-cap h3 { font-size: 1.2rem; font-weight: 600; letter-spacing: -.02em; line-height: 1.25; }
.cs--media1983 .m83-scene-cap p { color: var(--text-2); font-size: 16px; line-height: 1.5; max-width: 36ch; }
.cs--media1983 .m83-tap { display: inline-flex; align-items: center; gap: 8px; margin-top: 6px; padding: 7px 12px 7px 10px; border-radius: 999px; border: 1px solid var(--m83-line); background: var(--m83-tint); font-size: 14px; line-height: 1.3; color: var(--text); }
.cs--media1983 .m83-tap svg { width: 15px; height: 15px; flex: none; color: var(--m83-ink); }
.cs--media1983 .m83-tap b { font: 500 12px/1 var(--font-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--m83-ink); margin-right: 2px; }
.cs--media1983 .m83-tap--end { border-style: dashed; background: transparent; }
.cs--media1983 .m83-swipe { display: none; align-items: center; gap: 8px; margin-top: 16px; font: 500 12px/1 var(--font-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--text-3); }
.cs--media1983 .m83-swipe svg { width: 16px; height: 16px; color: var(--m83-ink); }
/* Phone: one continuous strip you swipe through (native scroll + snap, no page overflow, nothing pinned) */
@media (max-width: 699px) {
  .cs--media1983 .m83-cut { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: min(84%, 360px); row-gap: 0; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); scroll-padding-inline: var(--gutter); overflow-x: auto; overflow-y: hidden; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .cs--media1983 .m83-cut::-webkit-scrollbar { display: none; }
  .cs--media1983 .m83-scene { scroll-snap-align: start; }
  .cs--media1983 .m83-scene .m83-scene-film { border-radius: 0; border-width: 1px 0; padding-inline: 8px; }
  .cs--media1983 .m83-scene:first-child .m83-scene-film { border-radius: var(--r-l) 0 0 var(--r-l); border-left-width: 1px; padding-left: 7px; }
  .cs--media1983 .m83-scene:last-child .m83-scene-film { border-radius: 0 var(--r-l) var(--r-l) 0; border-right-width: 1px; padding-right: 7px; }
  .cs--media1983 .m83-scene-cap { padding: 18px 18px 0 2px; }
  .cs--media1983 .m83-swipe { display: flex; }
}
/* 2 x 2 contact sheet */
@media (min-width: 700px) {
  .cs--media1983 .m83-cut { grid-template-columns: repeat(2, 1fr); column-gap: 0; row-gap: 40px; }
  .cs--media1983 .m83-scene-cap { padding-inline: 4px 28px; }
}
@media (min-width: 700px) and (max-width: 1099px) {
  .cs--media1983 .m83-scene:nth-child(odd) .m83-scene-film { border-radius: var(--r-l) 0 0 var(--r-l); border-right-width: 0; }
  .cs--media1983 .m83-scene:nth-child(even) .m83-scene-film { border-radius: 0 var(--r-l) var(--r-l) 0; border-left-width: 0; }
}
/* One continuous strip of four frames */
@media (min-width: 1100px) {
  .cs--media1983 .m83-cut { grid-template-columns: repeat(4, 1fr); }
  .cs--media1983 .m83-scene .m83-scene-film { border-radius: 0; border-width: 1px 0; padding-inline: 7px; }
  .cs--media1983 .m83-scene:first-child .m83-scene-film { border-radius: var(--r-l) 0 0 var(--r-l); border-left-width: 1px; padding-left: 6px; }
  .cs--media1983 .m83-scene:last-child .m83-scene-film { border-radius: 0 var(--r-l) var(--r-l) 0; border-right-width: 1px; padding-right: 6px; }
}

/* ---------- Final outcome + live check ---------- */
.cs--media1983 .m83-band { position: relative; overflow: hidden; display: grid; gap: 32px; grid-template-columns: 1fr; background: radial-gradient(80% 140% at 0% 0%, var(--m83-glow), transparent 60%), linear-gradient(180deg, var(--card-a), var(--card-b)); border-color: var(--m83-line); }
.cs--media1983 .m83-band p { margin-top: 12px; font-size: clamp(1.15rem, 1rem + .6vw, 1.45rem); max-width: 34ch; }
@media (min-width: 992px) { .cs--media1983 .m83-band { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); align-items: center; gap: 48px; } }
.cs--media1983 .m83-check { padding: 22px; border-radius: var(--r-l); border: 1px solid var(--line-2); background: var(--glass); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.cs--media1983 .m83-check-h { position: relative; display: block; padding-left: 22px; font-size: 12px; line-height: 1.5; letter-spacing: .1em; text-transform: uppercase; color: var(--text-3); }
.cs--media1983 .m83-ck { display: block; overflow: hidden; }
.cs--media1983 .m83-ck-in { display: flex; flex-wrap: wrap; margin-left: -1.6em; }
.cs--media1983 .m83-ck-in > span { position: relative; padding-left: 1.6em; }
.cs--media1983 .m83-ck-in > span::before { content: "\00b7"; position: absolute; left: 0; top: 0; width: 1.6em; text-align: center; }
.cs--media1983 .m83-ck-in > span:last-child { white-space: nowrap; }
.cs--media1983 .m83-check-h svg { position: absolute; left: 0; top: 2px; width: 14px; height: 14px; color: var(--ok); }
.cs--media1983 .m83-check ul { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 2px; }
.cs--media1983 .m83-check li { display: flex; gap: 12px; align-items: flex-start; padding: 10px 0; border-top: 1px solid var(--line); }
.cs--media1983 .m83-check li:first-child { border-top: 0; }
.cs--media1983 .m83-check li > svg { width: 18px; height: 18px; margin-top: 2px; flex: none; color: var(--ok); }
.cs--media1983 .m83-check li b { display: block; font-size: 16px; font-weight: 600; text-wrap: balance; }
.cs--media1983 .m83-check li span { display: block; font-size: 16px; line-height: 1.45; color: var(--text-2); }

/* ---------- Phone: tighter slate, storyboard and nodes ---------- */
@media (max-width: 619px) {
  .cs--media1983 .m83-cell { padding: 20px 16px; }
  .cs--media1983 .m83-cell small { font-size: 12px; letter-spacing: .08em; }
  .cs--media1983 .m83-cell > b { font-size: 2.5rem; }
  .cs--media1983 .m83-board li { padding: 12px 14px 14px; }
  .cs--media1983 .m83-band { padding: 26px 20px; gap: 26px; }
  .cs--media1983 .m83-check { padding: 18px 16px 8px; }
}
/* Phone: the home storyboard reads as a compact shot list */
@media (max-width: 519px) {
  .cs--media1983 .m83-board { gap: 8px; margin-top: 14px; }
  .cs--media1983 .m83-board li { display: grid; grid-template-columns: 4.4em minmax(0, 1fr); column-gap: 10px; row-gap: 2px; align-items: baseline; padding: 11px 14px 12px; }
  .cs--media1983 .m83-board li > .m83-fr { grid-row: 1 / span 2; }
  .cs--media1983 .m83-board li > b, .cs--media1983 .m83-board li > span:last-child { grid-column: 2; }
}
@media (max-width: 899px) {
  .cs--media1983 .m83-nodes .m83-node { display: grid; grid-template-columns: auto 1fr; column-gap: 18px; align-items: start; }
  .cs--media1983 .m83-nodes .m83-node-top { display: none; }
  .cs--media1983 .m83-nodes .m83-big { grid-column: 1; grid-row: 1 / span 3; margin-top: 0; min-width: 1.1ch; }
  .cs--media1983 .m83-nodes .m83-node h4 { margin-top: 4px; }
  .cs--media1983 .m83-nodes .m83-node > p, .cs--media1983 .m83-nodes .m83-node > .tags { grid-column: 2; }
}
