/* "The RevThread" — two-week hero stage, shared by the homepage and every sector page.
   Sized in em against one cqw-derived font-size, so the composition scales as a unit.
   Two compositions share one DOM: desktop (640x640) and compact (360x540).
   This CSS with no JS is the complete static / reduced-motion design: the Week 2 frame. */

/* ---------- creative primitives (also used outside the stage) ---------- */
.art { position: absolute; inset: 0; container-type: inline-size; overflow: hidden; background: #1c2230; }
.art > img, .art > svg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; object-fit: cover; }
.art > img.is-top { object-position: top; }
.art__over {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 22cqw 6cqw 5.5cqw;
  font: 600 7.6cqw/1.08 var(--font-display); letter-spacing: -.01em; color: #fff;
  background: linear-gradient(to top, rgba(14,12,12,.82), rgba(14,12,12,0));
}
.tcard {
  position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; gap: 3.2cqw;
  padding: 8cqw; background: var(--bg); color: var(--fg); font-family: var(--font-ui);
}
.tcard::before { content: ""; width: 12cqw; height: .9cqw; min-height: 2px; border-radius: 2px; background: var(--ac); }
.tcard__k { font: 600 3.3cqw/1 var(--font-ui); letter-spacing: .14em; text-transform: uppercase; color: var(--ac); }
.tcard__h { margin: 0; font: 600 8.6cqw/1.1 var(--font-display); letter-spacing: -.015em; }
.tcard--list .tcard__h { font-size: 7cqw; }
.tcard ol { margin: 1cqw 0 0; padding: 0; list-style: none; counter-reset: t; display: grid; gap: 2.4cqw; }
.tcard li { counter-increment: t; display: grid; grid-template-columns: 7cqw 1fr; font: 500 4.1cqw/1.3 var(--font-ui); padding-top: 2.4cqw; border-top: 1px solid color-mix(in srgb, var(--fg) 22%, transparent); }
.tcard li::before { content: "0" counter(t); font: 600 3.4cqw/1.6 var(--font-display); color: var(--ac); }
.uim { position: absolute; inset: 0; display: flex; flex-direction: column; background: #0b3c49; color: #fff; font-family: var(--font-ui); }
.uim__top { display: flex; align-items: center; gap: 1.6cqw; padding: 3.4cqw 4.5cqw; background: rgba(255,255,255,.06); font-size: 3.3cqw; color: #b9d8d1; }
.uim__top i { width: 2.2cqw; height: 2.2cqw; border-radius: 50%; background: rgba(255,255,255,.25); }
.uim__top span { margin-left: 2.4cqw; }
.uim__body { flex: 1; padding: 5cqw; display: flex; flex-direction: column; gap: 4cqw; justify-content: center; }
.uim__kpi small { display: block; font-size: 3.3cqw; letter-spacing: .12em; text-transform: uppercase; color: #7be0c3; }
.uim__kpi b { font: 600 9cqw/1.1 var(--font-display); }
.uim__rows { margin: 0; padding: 0; list-style: none; display: grid; gap: 2.2cqw; }
.uim__rows li { display: flex; justify-content: space-between; align-items: center; padding: 2.8cqw 3.4cqw; border-radius: 2cqw; background: rgba(255,255,255,.08); font-size: 3.6cqw; }
.uim__rows em { font-style: normal; font-weight: 600; font-size: 3.2cqw; padding: 1.4cqw 2.8cqw; border-radius: 99px; background: #7be0c3; color: #0b3c49; }
.uim__rows .is-done em { background: transparent; color: #7be0c3; }

/* channel plan */
.plan { display: grid; gap: .5em; }
.plan__k { font: 600 .82em/1 var(--font-ui); letter-spacing: .12em; text-transform: uppercase; color: var(--rt-steel); }
.plan__bar { display: flex; height: .62em; border-radius: 99px; overflow: hidden; gap: 2px; }
.plan__bar i { display: block; min-width: 2px; background: var(--c); }
.p-soc { --c: #2f35a8; } .p-meta { --c: #7c83e6; } .p-goog { --c: #d98f1f; } .p-mail { --c: #15171e; }
.plan__lg { display: flex; flex-wrap: wrap; gap: .2em .9em; margin: 0; padding: 0; list-style: none; font: 500 .9em/1.3 var(--font-ui); color: var(--rt-graphite); }
.plan__lg li { display: inline-flex; align-items: center; gap: .35em; white-space: nowrap; }
.plan__lg li::before { content: ""; width: .55em; height: .55em; border-radius: 50%; background: var(--c); }
.plan__lg b { font-size: .72em; margin-left: .1em; color: var(--c); }
.plan__lg .is-changed { color: var(--rt-ink); font-weight: 600; }

/* ---------- stage ---------- */
.rt-stage { container: stage / inline-size; margin: 0; position: relative; }
.rt-stage__canvas { position: relative; aspect-ratio: 640 / 640; font-size: calc(100cqw / 64); font-family: var(--font-ui); color: var(--rt-ink); line-height: 1.3; }

.rt-thread { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; z-index: 0; }
.rt-thread--m { display: none; }
.rt-thread use { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.rt-thread .trk use { stroke: var(--rt-thread-soft); stroke-width: 2; }
.rt-thread .ln use { stroke: var(--rt-thread); stroke-width: 2.6; stroke-dasharray: 100 110; stroke-dashoffset: 0; }
.rt-thread .hd use { stroke: var(--rt-thread); stroke-width: 9; stroke-dasharray: 0.01 300; opacity: 0; }

.st { position: absolute; z-index: 2; }
.slot { position: absolute; z-index: 1; display: grid; place-items: center; border: 1px dashed #cdc8ba; border-radius: 1em; background: rgba(255,255,255,.35); }
.slot span { font-size: .95em; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: #a39f93; }
.st-ctx, .st-brief, .st-cr, .st-an { background: var(--rt-surface); border: 1px solid var(--rt-hairline); border-radius: 1em; box-shadow: 0 1px 2px rgba(21,23,30,.04), 0 1.2em 2.4em -1.4em rgba(21,23,30,.28); }

/* week labels */
.st-weeks { left: 1.6em; top: .5em; display: flex; gap: .3em; padding: .25em; border-radius: 99px; background: var(--rt-surface); border: 1px solid var(--rt-hairline); }
.st-weeks span { position: relative; font: 600 .92em/1 var(--font-ui); letter-spacing: .08em; text-transform: uppercase; padding: .5em .95em; border-radius: 99px; color: var(--rt-fog); }
.st-weeks span::before { content: ""; position: absolute; inset: 0; border-radius: 99px; background: var(--rt-indigo); opacity: 0; z-index: -1; }
.st-weeks { isolation: isolate; }
.st-weeks [data-wkpill="2"] { color: #fff; }
.st-weeks [data-wkpill="2"]::before { opacity: 1; }
.st-weeks span.is-on { color: #fff; }
.st-weeks span.is-on::before { opacity: 1; }

/* 1 · context */
.st-ctx { left: 1.6em; top: 4em; width: 22.6em; height: 14em; padding: 1.2em 1.4em; }
.ctx__id { display: flex; align-items: center; gap: .85em; }
.ctx__avatar { flex: none; width: 2.7em; height: 2.7em; border-radius: 50%; display: grid; place-items: center; font: 600 1.15em/1 var(--font-display); }
.ctx__name b { display: block; font-size: 1.25em; font-weight: 600; line-height: 1.15; }
.ctx__name small { display: block; font-size: .98em; color: var(--rt-steel); }
.ctx__label { margin: 1.1em 0 .6em; font-size: .86em; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--rt-steel); }
.ctx__chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .45em; }
.ctx__chips li { display: inline-flex; align-items: center; gap: .3em; font-size: 1em; font-weight: 500; padding: .3em .7em .3em .5em; border-radius: 99px; background: var(--rt-tint); color: var(--rt-indigo); white-space: nowrap; }
.ctx__chips svg { width: 1em; height: 1em; }

/* 2 · brief (two faces: week 1, week 2) */
.slot-brief, .st-brief { left: 29em; top: 3.6em; width: 32.2em; height: 16em; }
.brief__ring { position: absolute; inset: -2px; border: 2px solid var(--rt-indigo); border-radius: 1.1em; opacity: 0; pointer-events: none; }
.brief__face { position: absolute; inset: 0; padding: 1.2em 1.6em 1.1em; display: flex; flex-direction: column; }
.brief__face[data-face="1"] { opacity: 0; }
.brief__eyebrow { margin: 0; display: flex; align-items: center; gap: .5em; font-size: .9em; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--rt-indigo); }
.brief__dot { width: .6em; height: .6em; border-radius: 50%; background: var(--rt-indigo); flex: none; }
.brief__goal { margin: .35em 0 .3em; font: 600 1.8em/1.12 var(--font-display); letter-spacing: -.015em; }
.brief__why { margin: 0; font-size: .98em; line-height: 1.38; color: var(--rt-graphite); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.brief__face .plan { margin-top: auto; }
.brief__face .plan__k { display: none; }

/* 3 · creative (two faces each) */
.slot-post, .st-post { left: 1.6em; top: 23.6em; width: 18.4em; height: 14.8em; }
.slot-ad, .st-ad { left: 22.2em; top: 23.6em; width: 18.4em; height: 14.8em; }
.slot-email, .st-email { left: 42.8em; top: 23.6em; width: 18.4em; height: 14.8em; }
.st-cr { overflow: hidden; }
.cr__face { position: absolute; left: 0; right: 0; top: 0; bottom: 3.1em; display: flex; flex-direction: column; background: var(--rt-surface); }
.cr__face[data-face="1"] { opacity: 0; }
.cr__media { position: relative; margin: .5em .5em 0; flex: 1; border-radius: .6em; overflow: hidden; }
.cr__media--ad { flex: none; height: 5.6em; }
.cr__head { margin: .5em .9em 0; font: 600 1.14em/1.15 var(--font-display); letter-spacing: -.005em; }
.cr__cta { align-self: flex-start; margin: .45em 0 0 .9em; font-size: .9em; font-weight: 600; padding: .28em .75em; border-radius: .45em; background: var(--rt-ink); color: #fff; }
.gad { padding: 1em 1em 0; display: grid; gap: .4em; align-content: start; }
.gad__u { margin: 0; font-size: .85em; color: var(--rt-steel); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gad__u b { color: var(--rt-ink); margin-right: .5em; }
.gad__h { margin: 0; font: 500 1.08em/1.25 var(--font-ui); color: #1a3fb0; }
.gad__d { margin: 0; font-size: .92em; line-height: 1.38; color: var(--rt-graphite); }
.em { padding: .85em 1em 0; display: flex; flex-direction: column; flex: 1; min-height: 0; }
.em__from { margin: 0; font-size: .86em; color: var(--rt-steel); }
.em__subj { margin: .2em 0 .55em; font: 600 1.12em/1.18 var(--font-display); letter-spacing: -.005em; }
.em__img { position: relative; flex: 1; min-height: 2em; border-radius: .5em; overflow: hidden; }
.cr__meta { position: absolute; left: 0; right: 0; bottom: 0; height: 3.1em; display: flex; align-items: center; gap: .5em; padding: 0 .8em 0 .9em; background: var(--rt-surface); }
.cr__meta b { font-size: 1.05em; font-weight: 600; }
.cr__chs { position: relative; flex: 1; height: 1.2em; }
.cr__chs em { position: absolute; left: 0; top: 0; font-style: normal; font-size: .86em; line-height: 1.4; color: var(--rt-steel); white-space: nowrap; }
.cr__chs em[data-face="1"] { opacity: 0; }
.cr__status { position: relative; width: 1px; height: 2em; }
.s { position: absolute; right: 0; top: 50%; translate: 0 -50%; white-space: nowrap; font-style: normal; display: inline-flex; align-items: center; gap: .25em; font-size: .88em; font-weight: 600; padding: .28em .65em; border-radius: 99px; opacity: 0; }
.s svg { width: 1em; height: 1em; }
.s-draft { background: #f1eee6; color: var(--rt-steel); }
.s-ok { background: var(--rt-ok-tint); color: var(--rt-ok); }
.s-done { background: var(--rt-tint); color: var(--rt-indigo); }
.s-w2 { background: var(--rt-ink); color: #fff; opacity: 1; }

/* 4 · approval + the week */
.st-approve { left: 0; right: 0; top: 21.3em; margin: auto; width: max-content; z-index: 4; display: flex; align-items: center; gap: .6em; padding: .32em .9em .32em .32em; border-radius: 99px; background: var(--rt-ink); color: #fff; font-size: 1.05em; font-weight: 600; box-shadow: 0 .8em 1.6em -.8em rgba(21,23,30,.55); opacity: 0; }
.approve__av { display: grid; place-items: center; height: 1.9em; padding: 0 .6em; border-radius: 99px; background: #fff; color: var(--rt-ink); font-size: .82em; font-weight: 700; }
.st-week { left: 4.4em; top: 42em; width: 55.4em; --line: 3.8em; }
.week__items { display: grid; grid-template-columns: repeat(7, 1fr); height: 2.4em; align-items: center; }
.wk { grid-column: var(--d); grid-row: 1; justify-self: center; font-size: .92em; font-weight: 600; padding: .3em .9em; border-radius: 99px; background: var(--rt-indigo); color: #fff; border: 1px solid var(--rt-indigo); }
.wk--ad { background: var(--rt-surface); color: var(--rt-indigo); }
.wk--email { background: var(--rt-ink); border-color: var(--rt-ink); }
.wk[data-set="1"] { opacity: 0; }
.week__days { list-style: none; margin: 0; padding: 0; position: absolute; left: 0; right: 0; top: calc(var(--line) + .8em); display: grid; grid-template-columns: repeat(7, 1fr); text-align: center; }
.week__days li { position: relative; font-size: .95em; font-weight: 500; color: var(--rt-steel); }
.week__days li::before { content: ""; position: absolute; left: 50%; top: -.84em; width: .55em; height: .55em; translate: -50% -50%; border-radius: 50%; background: var(--rt-canvas); border: 1.5px solid var(--rt-indigo); }

/* 5 · analysis + finding */
.slot-an, .st-an { left: 1.6em; top: 50em; width: 59.6em; height: 12.6em; }
.st-an { padding: 1em 1.4em; display: flex; flex-direction: column; }
.an__k { margin: 0 0 .55em; display: flex; align-items: center; gap: .5em; font-size: .88em; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--rt-indigo); }
.an__rows { display: grid; gap: .4em; }
.an__row { display: grid; grid-template-columns: 14em 1fr 15.5em; align-items: center; gap: 1em; font-size: 1em; }
.an__l { font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.an__bar { display: block; height: .72em; border-radius: 99px; background: var(--rt-tint); overflow: hidden; }
.an__bar i { display: block; height: 100%; width: calc(var(--v) * 100%); min-width: .72em; border-radius: 99px; background: var(--rt-indigo); transform-origin: left; }
.an__v { font-weight: 600; white-space: nowrap; text-align: right; }
.an__find { margin: auto 0 0; display: flex; align-items: flex-start; gap: .7em; font-size: 1.02em; line-height: 1.35; font-weight: 500; }
.insight__tag { flex: none; font-size: .78em; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: .42em .75em; border-radius: 99px; background: var(--rt-indigo); color: #fff; }

/* ---------- caption / controls ---------- */
.rt-stage__cap { display: grid; grid-template-columns: 1fr auto; align-items: start; gap: 6px 16px; margin-top: 10px; padding-top: 14px; border-top: 1px solid var(--rt-hairline); }
.rt-steps { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 16px; grid-column: 1 / -1; }
.rt-steps li { position: relative; font-size: 10.5px; font-weight: 600; letter-spacing: .13em; text-transform: uppercase; color: var(--rt-graphite); }
.rt-steps li + li::before { content: ""; position: absolute; left: -11px; top: 50%; width: 6px; height: 1px; background: #bdb8aa; }
.rt-stage__lines { position: relative; min-height: 2.9em; font-size: 14px; line-height: 1.45; color: var(--rt-graphite); }
.rt-stage__line { margin: 0; position: absolute; inset: 0 0 auto 0; }
.rt-stage__line[data-line] { opacity: 0; }
.rt-stage:not([data-state="static"]) .rt-stage__line--static { opacity: 0; }
.rt-stage__pause { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px 0 10px; border: 1px solid var(--rt-hairline); border-radius: 99px; background: var(--rt-surface); color: var(--rt-graphite); font: 600 12px/1 var(--font-ui); cursor: pointer; }
.rt-stage__pause[hidden] { display: none; }
.rt-stage__pause:hover { border-color: #c9c4b6; color: var(--rt-ink); }
.rt-stage__pause:focus-visible { outline: 2px solid var(--rt-indigo); outline-offset: 2px; }
.rt-stage__pause svg { width: 12px; height: 12px; }
.rt-stage__pause .ic-play, .rt-stage__pause[aria-pressed="true"] .ic-pause { display: none; }
.rt-stage__pause[aria-pressed="true"] .ic-play { display: block; }

/* ---------- compact composition ---------- */
@container stage (max-width: 480px) {
  .rt-stage__canvas { aspect-ratio: 360 / 540; font-size: calc(100cqw / 36); }
  .rt-thread--d { display: none; }
  .rt-thread--m { display: block; }
  .rt-thread .trk use { stroke-width: 1.6; }
  .rt-thread .ln use { stroke-width: 2.1; }
  .rt-thread .hd use { stroke-width: 7; }

  .st-weeks { left: 1em; top: .2em; }
  .st-weeks span { font-size: .85em; padding: .42em .8em; }
  .st-ctx { left: 1em; top: 3.2em; width: 34em; height: 4em; padding: 0 .8em; display: flex; align-items: center; justify-content: space-between; gap: .6em; }
  .ctx__avatar { font-size: 1em; width: 2.3em; height: 2.3em; }
  .ctx__id { gap: .55em; min-width: 0; }
  .ctx__name b { font-size: 1.08em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 11.5em; }
  .ctx__name small, .ctx__label, .ctx__chips li:nth-child(n+3) { display: none; }
  .ctx__chips { flex-wrap: nowrap; gap: .3em; }
  .ctx__chips li { font-size: .9em; padding: .28em .55em .28em .4em; }

  .slot-brief, .st-brief { left: 1em; top: 8.4em; width: 31.8em; height: 9.4em; }
  .brief__face { padding: .85em 1.1em .8em; }
  .brief__goal { font-size: 1.45em; margin: .3em 0 0; }
  .brief__why { display: none; }
  .plan__lg { font-size: .84em; gap: .15em .7em; }

  .slot-post, .st-post { left: 1em; top: 20em; width: 10em; height: 11.6em; }
  .slot-ad, .st-ad { left: 11.9em; top: 20em; width: 10em; height: 11.6em; }
  .slot-email, .st-email { left: 22.8em; top: 20em; width: 10em; height: 11.6em; }
  .cr__face { bottom: 3.6em; }
  .cr__media { margin: .4em .4em 0; }
  .cr__media--ad { height: 3.6em; }
  .cr__head { margin: .4em .6em 0; font-size: .98em; }
  .cr__cta { display: none; }
  .gad { padding: .7em .6em 0; gap: .25em; }
  .gad__h { font-size: .95em; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
  .gad__d { display: none; }
  .em { padding: .55em .6em 0; }
  .em__from { display: none; }
  .em__subj { font-size: .98em; margin: 0 0 .4em; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
  .cr__meta { height: 3.6em; flex-wrap: wrap; align-content: center; gap: 0 .4em; padding: 0 .55em; }
  .cr__meta b { font-size: .95em; }
  .cr__chs { flex: 1 1 4em; }
  .cr__chs em { font-size: .8em; }
  .cr__status { flex: 0 0 100%; width: auto; height: 1.6em; }
  .s { right: auto; left: 0; font-size: .8em; padding: .2em .5em; }

  .st-approve { top: 17.9em; font-size: .98em; }
  .st-week { left: 3em; top: 33.4em; width: 28.6em; }
  .wk { font-size: .84em; padding: .28em .55em; }
  .week__days li { font-size: .9em; }

  .slot-an, .st-an { left: 1em; top: 40.6em; width: 31.8em; height: 12.8em; }
  .st-an { padding: .8em 1em; }
  .an__row { grid-template-columns: 1fr auto; gap: .15em .6em; font-size: .92em; }
  .an__bar { grid-column: 1 / -1; grid-row: 2; height: .5em; }
  .an__v { font-size: .95em; }
  .an__find { font-size: .94em; gap: .5em; }

  .rt-steps { gap: 4px 13px; }
  .rt-steps li { font-size: 9.5px; letter-spacing: .08em; }
  .rt-steps li + li::before { left: -9px; width: 5px; }
  .rt-stage__lines { min-height: 4.4em; font-size: 13.5px; }
}

@media (prefers-reduced-motion: reduce) {
  .rt-stage__pause { display: none; }
}

/* ---------- refinement pass, 9 October ---------- */
.rt-demo { position: absolute; z-index: 2; right: 1.7em; top: 1.75em; font: 600 .8em/1 var(--font-ui); letter-spacing: .12em; text-transform: uppercase; color: var(--rt-steel); opacity: .85; }
.an__rows { gap: .32em; }
.an__row { grid-template-columns: 15em 1fr 17em; }
@container stage (max-width: 480px) {
  .rt-demo { right: 1.2em; top: .75em; font-size: .78em; }
  /* overlay text on the post was about 6px tall on a phone: larger type, shorter gradient */
  .st-cr .art__over { font-size: 10cqw; line-height: 1.1; padding: 12cqw 6cqw 5cqw; }
  .an__row { grid-template-columns: 1fr auto; }
  .an__rows { gap: .28em; }
  .an__find { font-size: .92em; }
}
@container stage (max-width: 480px) {
  /* typographic cards inside the three small creative tiles: drop the kicker, enlarge the line */
  .st-cr .tcard { padding: 6cqw; gap: 2cqw; }
  .st-cr .tcard::before, .st-cr .tcard__k { display: none; }
  .st-cr .tcard__h { font-size: 10.4cqw; line-height: 1.12; }
}
