/* Marktic · Social V2 · "One idea. Made for each channel." · polish v6
   One window per scene, homepage-tab tokens, official Marktic tile, graded Oakline photos.
   Desktop stage 640 x 480 (iframe 4:3); phone stage 400 x 540 (iframe 480px wide or less), as in Ivan's embed contract.
   Motion: claude/marktic-motion-rules-v1.md (body rules). */

@font-face{font-family:Inter;font-weight:400;font-display:swap;src:url(fonts/inter-400.woff2) format("woff2")}
@font-face{font-family:Inter;font-weight:500;font-display:swap;src:url(fonts/inter-500.woff2) format("woff2")}
@font-face{font-family:Inter;font-weight:600;font-display:swap;src:url(fonts/inter-600.woff2) format("woff2")}

html,body{margin:0;height:100%;background:transparent;overflow:hidden}
.stx{
  --ink:#252943; --ink2:#5F6377; --ink3:#6B7085; --line:#DEE6F7; --lav:#E6ECFA; --lav-ink:#3D4A7A; --soft:#F4F7FD;
  --btn:#111226; --mk:var(--mk-green,#34D399); --ok-bg:#D7F7E8; --ok-ink:#06603F; --grey-bg:#E9EDF5; --grey-ink:#5B6274;
  /* BACKGROUND: placeholder, same as the hero. The page colourway will change; it keeps white in the mix. */
  --bg-1:#9FDEE5; --bg-2:#D2FBEB; --bg-3:#FFFFFF; --bg-deep:#70B6D0;
  position:relative;width:100%;height:100%;overflow:hidden;isolation:isolate;
  font:14px/1.4 Inter,ui-sans-serif,system-ui,sans-serif;color:var(--ink);-webkit-font-smoothing:antialiased;
  background:linear-gradient(150deg,var(--bg-1),var(--bg-2) 45%,var(--bg-3) 72%,var(--bg-2));
}
.stx *,.stx *::before,.stx *::after{box-sizing:border-box}
:where(.stx) p{margin:0}
.stx-glow{position:absolute;inset:0;z-index:0;pointer-events:none;
  background:radial-gradient(55% 60% at 50% 52%,#ffffffd9 0%,#ffffff00 70%),radial-gradient(45% 55% at 100% 0%,color-mix(in oklab,var(--bg-deep) 45%,transparent),transparent 70%)}
.stx-grain{position:absolute;inset:0;z-index:3;pointer-events:none;opacity:.06;mix-blend-mode:multiply;background-size:180px 180px;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)'/%3E%3C/svg%3E")}

/* stage: fixed coordinates, scaled to the frame and centred */
.stx-st{position:absolute;left:50%;top:50%;width:640px;height:480px;z-index:1;transform-origin:0 0}
.stx.is-phone .stx-st{width:400px;height:540px}

/* the one window */
.stx-win{position:absolute;left:40px;right:40px;top:50%;transform:translateY(-50%);background:#fff;border-radius:20px;
  box-shadow:0 26px 60px -30px #1d3f5a5c,0 8px 18px -12px #1d3f5a29}
.stx.is-phone .stx-win{left:20px;right:20px;border-radius:18px;top:calc(50% - 16px)}
.stx-hd{display:flex;align-items:center;gap:10px;height:52px;padding:0 16px 0 14px;border-bottom:1px solid var(--line)}
.stx-mk{width:28px;height:28px;border-radius:8px;flex:none;display:inline-grid;place-items:center;background:var(--mk-logo-bg,#7EEFA9)}
.stx-mk svg{width:23.5px;height:23.5px;display:block}
.stx-ttl{font-size:14px;font-weight:600;white-space:nowrap}
.stx-bd{padding:16px}
.stx.is-phone .stx-bd{padding:14px}

.stx-lab{font-size:12px;color:var(--ink3);line-height:1.3}
.stx-tag{display:inline-grid;align-items:center;height:24px;padding:0 9px;border-radius:7px;font-size:12px;font-weight:500;white-space:nowrap;background:var(--lav);color:var(--lav-ink);flex:none}
.stx-tag>span{grid-area:1/1;text-align:center}
.stx-hd .stx-tag{margin-left:auto}
.stx-tag.grey{background:var(--grey-bg);color:var(--grey-ink)}
.stx-tag.ok{background:var(--ok-bg);color:var(--ok-ink)}
.stx-tag .b{color:var(--ok-ink)}
.stx-ph{display:block;position:relative;overflow:hidden;border-radius:12px;background:#EEF2FA}
.stx-ph img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;display:block}
.stx-chips{display:flex;flex-wrap:wrap;gap:6px}


/* typed text: a hidden ghost of the full line holds the space, so nothing reflows while it is written */
.tyw{display:inline-grid}
.tyw>*{grid-area:1/1}
.tyw .gh{visibility:hidden}
.caret{display:inline-block;width:1.5px;height:1.05em;margin-left:1px;vertical-align:-.15em;background:currentColor;opacity:0}
.ck{display:grid;place-items:center;width:16px;height:16px;border-radius:50%;background:var(--ok-bg);color:var(--ok-ink);opacity:0}
.ck svg{width:10px;height:10px;display:block}
.stx-lab.mt{margin-top:14px}


/* ---------- F · One idea. Made for each channel. ---------- */
.f .idea{padding:9px 13px 10px;border-radius:12px;background:var(--soft)}
.f .it{font-size:17px;font-weight:600;letter-spacing:-.01em;margin-top:1px}
.f .surf{margin-top:12px;padding:10px;border-radius:14px;background:#E9EEF7}
.f .posts{display:grid;grid-template-columns:repeat(3,1fr);gap:10px}
.f .col{display:flex;flex-direction:column;align-items:center;gap:8px}
.f .post{width:100%;border-radius:12px;background:#fff;box-shadow:0 1px 2px #1d3f5a1a,0 8px 20px -14px #1d3f5a59;
  -webkit-mask-image:linear-gradient(#000 0%,#000 42%,transparent 58%,transparent 100%);mask-image:linear-gradient(#000 0%,#000 42%,transparent 58%,transparent 100%);
  -webkit-mask-size:100% 300%;mask-size:100% 300%;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;-webkit-mask-position:0% 100%;mask-position:0% 100%}
.f .ph-hd{display:flex;align-items:center;gap:6px;height:32px;padding:0 8px}
.f .av{width:20px;height:20px;border-radius:50%;flex:none;background:#E9DCC8;color:#6C4D28;font:600 11px/20px Inter,sans-serif;text-align:center;font-style:normal}
.f .ph-hd b{font-size:12px;font-weight:600;flex:1;min-width:0;white-space:nowrap}
.f .lg{width:15px;height:15px;object-fit:contain;flex:none}
.f .pic{height:126px;margin:0 8px;border-radius:8px;background:#E4E9F2;box-shadow:inset 0 0 0 1px #1d3f5a14}
.f .dots{position:absolute;left:0;right:0;bottom:7px;z-index:1;display:flex;justify-content:center;gap:4px;opacity:0}
.f .dots i{width:5px;height:5px;border-radius:50%;background:#ffffff99}.f .dots i:first-child{background:#fff}
.f .cap{padding:8px 9px 10px;font-size:12.5px;line-height:1.45}
.f .cap .w{display:inline-block;white-space:pre}
.f .fmt{opacity:0;background:#fff;color:var(--ink2);box-shadow:0 1px 2px #1d3f5a14}
.stx.is-phone .f .it{font-size:15.5px}
.stx.is-phone .f .surf{padding:8px;margin-top:10px}
.stx.is-phone .f .posts{grid-template-columns:1fr;gap:8px}
.stx.is-phone .f .col{display:block}
.stx.is-phone .f .post{display:grid;grid-template-columns:86px 1fr;grid-template-rows:auto 1fr auto;column-gap:10px;padding:8px}
.stx.is-phone .f .pic{grid-column:1;grid-row:1/4;height:86px;margin:0}
.stx.is-phone .f .ph-hd{grid-column:2;height:22px;padding:0}
.stx.is-phone .f .cap{grid-column:2;padding:2px 0 0}
.stx.is-phone .f .fmt{display:none}
.stx.is-phone .f .ph-hd b{font-size:12.5px}

/* control */
.stx-ctl{position:absolute;right:12px;bottom:12px;z-index:4;width:30px;height:30px;border-radius:50%;border:0;padding:0;display:grid;place-items:center;
  background:#ffffffd9;color:var(--ink);box-shadow:0 2px 8px #1d3f5a26;cursor:pointer}
.stx-ctl svg{width:11px;height:11px;display:block}
.stx-ctl .i-play,.stx-ctl .i-replay{display:none}
.stx.is-paused .stx-ctl .i-pause{display:none}.stx.is-paused .stx-ctl .i-play{display:block}
.stx.is-done .stx-ctl .i-pause,.stx.is-done .stx-ctl .i-play{display:none}.stx.is-done .stx-ctl .i-replay{display:block}


.stx.is-phone .stx-lab,.stx.is-phone .stx-tag,.stx.is-phone .f .cap,.stx.is-phone .f .av{font-size:12.5px}
.stx.is-phone .f .av{line-height:20px}
.stx.is-phone .stx-ctl{width:26px;height:26px;right:8px;bottom:8px}

/* the formats strip: one bar under the posts, its three names aligned with the columns; unrolls left to right */
.f .strip{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin-top:9px;height:28px;align-items:center;border-radius:999px;background:#fff;box-shadow:0 1px 2px #1d3f5a14;
  font-size:12px;font-weight:500;color:var(--ink2);text-align:center;white-space:nowrap;
  -webkit-mask-image:linear-gradient(90deg,#000 0%,#000 42%,transparent 58%,transparent 100%);mask-image:linear-gradient(90deg,#000 0%,#000 42%,transparent 58%,transparent 100%);
  -webkit-mask-size:300% 100%;mask-size:300% 100%;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;-webkit-mask-position:100% 0%;mask-position:100% 0%}
.f .col{gap:0}
.stx.is-phone .f .strip{display:none}
