/* ==== intro (see intro.js) ====
   Everything inside #intro. #intro itself (fixed, z 30) lives in style.css.
   The film is drawn in the app's own language: #eeedeb paper with a faint dot grid, white cards
   with a 5px frame, thin line icons, a white dock. */

.ic-root { overflow: hidden; touch-action: none; user-select: none; -webkit-user-select: none; cursor: default;
  --ink: #111; --g2: #6b6b6b; --g3: #a3a3a3; --paper: #eeedeb;
  --shadow: 0 1px 2px rgba(0,0,0,.05), 0 10px 30px rgba(0,0,0,.06);
  font-family: -apple-system, BlinkMacSystemFont, "Inter", system-ui, sans-serif; color: var(--ink); }
.ic-bg { position: absolute; inset: 0; background-color: var(--paper);
  background-image: radial-gradient(circle, rgba(0,0,0,.085) .6px, transparent 1px);
  background-size: 28px 28px; background-position: 14px 14px; }
.ic-stage { position: absolute; left: 0; top: 0; transform-origin: 0 0; }
.ic-stage > * { position: absolute; }

.ic-skip { position: absolute; right: max(18px, env(safe-area-inset-right, 0px) + 14px);
  bottom: max(16px, env(safe-area-inset-bottom, 0px) + 12px); z-index: 60;
  appearance: none; border: 0; background: transparent; padding: 6px 8px; border-radius: 8px;
  font: inherit; font-size: 12px; color: var(--g3); cursor: pointer; letter-spacing: .01em;
  transition: color .2s ease, background-color .2s ease; }
.ic-skip:hover { color: var(--ink); background: rgba(0,0,0,.04); }

/* wordmark + captions */
.ic-mark { left: 0; top: 0; margin: 0; font-weight: 600; letter-spacing: -.045em; line-height: 1; white-space: nowrap;
  transform-origin: 0 0; z-index: 40; will-change: transform; }
.ic-cap { left: 0; right: 0; margin: 0; text-align: center; color: var(--g2); font-weight: 450; letter-spacing: -.005em;
  line-height: 1.3; z-index: 40; pointer-events: none; }
.ic-cap em { font-style: italic; color: var(--ink); font-weight: 500; }

/* ---- browser window ---------------------------------------------------------------------- */
.ic-win { background: #fff; border-radius: 14px; overflow: hidden; z-index: 3;
  box-shadow: 0 0 0 1px rgba(0,0,0,.055), 0 1px 2px rgba(0,0,0,.04), 0 24px 70px rgba(0,0,0,.09);
  transform-origin: 50% 60%; }
.ic-chrome { position: absolute; left: 0; right: 0; top: 0; display: flex; align-items: center; gap: 14px;
  padding: 0 14px 0 16px; border-bottom: 1px solid #efeeec; background: #fbfbfa; }
.ic-lights { display: inline-flex; gap: 7px; }
.ic-lights i { width: 11px; height: 11px; border-radius: 50%; background: #e3e2df; }
.ic-nav { display: inline-flex; gap: 8px; color: #b9b8b5; }
.ic-nav svg { display: block; }
.ic-url { position: absolute; left: 50%; transform: translateX(-50%); display: inline-flex; align-items: center; gap: 6px;
  height: 28px; width: min(380px, 52%); justify-content: center; border-radius: 8px; background: #f1f0ee;
  font-size: 12.5px; color: #555; letter-spacing: -.005em; }
.ic-url svg { color: #9d9c99; }
.ic-tools { margin-left: auto; display: inline-flex; align-items: center; gap: 10px; }
.ic-ext { position: relative; width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; color: var(--ink); }
.ic-ext > span { position: absolute; inset: 0; display: grid; place-items: center; }
.ic-ext svg { display: block; }
.ic-ext.on { background: var(--ink); width: 24px; height: 24px; border-radius: 7px; }
.ic-hl { position: absolute; inset: 0; border-radius: inherit; background: rgba(0,0,0,.07); opacity: 0; pointer-events: none; }
.ic-avatar { width: 22px; height: 22px; border-radius: 50%; background: linear-gradient(135deg, #d9d4cc, #bcb4a8); }

.ic-page { position: absolute; left: 0; right: 0; bottom: 0; overflow: hidden; background: #fff; }
.pg-kick { position: absolute; left: 56px; top: 50px; font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--g3); }
.pg-h { position: absolute; left: 56px; top: 74px; width: 350px; margin: 0; font-size: 38px; line-height: 1.06; font-weight: 600; letter-spacing: -.03em; color: var(--ink); text-wrap: balance; }
.pg-p { position: absolute; left: 56px; top: 206px; width: 346px; margin: 0; font-size: 13.5px; line-height: 1.62; color: #5d5d5b; }
.pg-by { position: absolute; left: 56px; top: 348px; font-size: 11.5px; color: var(--g3); }
.pg-embed { position: absolute; left: 456px; top: 50px; width: 528px; height: 297px; border-radius: 10px; overflow: hidden; background: #1a1030; }
.pg-fig { position: absolute; left: 456px; top: 360px; font-size: 11.5px; color: var(--g3); }
.pg-rule { position: absolute; left: 56px; right: 56px; top: 408px; height: 1px; background: #efeeec; }
.pg-rel { position: absolute; left: 56px; right: 56px; top: 436px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.pg-rel div { display: flex; flex-direction: column; gap: 10px; }
.pg-rel img { display: block; width: 100%; height: 160px; object-fit: cover; border-radius: 8px; }
.pg-rel b { font-size: 13px; font-weight: 600; letter-spacing: -.01em; }

.ic-veil { position: absolute; inset: 0; background: rgba(238, 237, 235, .76); opacity: 0; z-index: 4; }
.ic-hint { position: absolute; right: 14px; display: inline-flex; align-items: center; gap: 8px; height: 30px; padding: 0 8px 0 11px;
  border-radius: 999px; background: var(--ink); color: #fff; font-size: 12px; letter-spacing: -.005em; z-index: 3;
  box-shadow: 0 6px 18px rgba(0,0,0,.14); }
.ic-hint svg { display: block; }
.ic-hint kbd { font: inherit; font-size: 10.5px; padding: 1px 6px; border-radius: 5px; background: rgba(255,255,255,.14); color: rgba(255,255,255,.75); }

/* the extension's selection */
.ic-sel { position: absolute; border: 1.5px solid var(--ink); border-radius: 8px; background: rgba(17,17,17,.025);
  pointer-events: none; opacity: 0; z-index: 2; }
.ic-sel-label { position: absolute; left: -1.5px; top: -27px; height: 21px;
  color: #fff; font-size: 11px; font-weight: 500; line-height: 21px; white-space: nowrap; letter-spacing: -.003em; }
.ic-sel-label .ic-ticker > span { justify-self: start; height: 21px; padding: 0 8px; border-radius: 6px; background: var(--ink); }
.ic-ticker { position: relative; display: inline-grid; }
.ic-ticker > span { grid-area: 1 / 1; white-space: nowrap; display: inline-flex; align-items: center; gap: 5px; }
.ic-live { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 0 2px rgba(34,197,94,.18); flex: none; }

/* ---- the playing clip --------------------------------------------------------------------- */
.ic-clip { position: absolute; inset: 0; overflow: hidden; container-type: size; isolation: isolate; }
.ic-blob { position: absolute; width: 90%; height: 130%; border-radius: 50%; mix-blend-mode: screen; opacity: .9; will-change: transform; }
.ic-wave { position: absolute; left: 12%; right: 12%; top: 34%; height: 32%; display: flex; align-items: center; gap: 1.2%; }
.ic-wave i { flex: 1; height: calc(var(--h) * 100%); border-radius: 99px; background: rgba(255,255,255,.82); transform-origin: 50% 50%; }
.ic-clip-top { position: absolute; left: 4.5cqw; top: 4.5cqw; display: flex; align-items: center; gap: 1.6cqw;
  font-size: clamp(6px, 2.6cqw, 13px); font-weight: 600; color: rgba(255,255,255,.92); letter-spacing: -.005em; }
.ic-clip-top b { width: 1.6cqw; height: 1.6cqw; min-width: 4px; min-height: 4px; border-radius: 50%; background: #fff; opacity: .9; }
.ic-clip-bar { position: absolute; left: 0; right: 0; bottom: 0; display: flex; align-items: center; gap: 2.4cqw;
  padding: 3cqw 4.5cqw 3.4cqw; background: linear-gradient(to top, rgba(0,0,0,.34), transparent);
  color: #fff; font-size: clamp(5px, 2.3cqw, 12px); font-variant-numeric: tabular-nums; }
.ic-clip-pp { display: inline-flex; }
.ic-clip-pp svg { width: clamp(6px, 2.8cqw, 14px); height: auto; display: block; }
.ic-clip-track { flex: 1; height: max(1.5px, .55cqw); border-radius: 9px; background: rgba(255,255,255,.3); overflow: hidden; }
.ic-clip-track i { display: block; height: 100%; background: #fff; transform-origin: 0 50%; }

/* ---- cards (as the app draws them) --------------------------------------------------------- */
.ic-card { position: absolute; display: inline-flex; flex-direction: column; transform-origin: 50% 50%; }
.ic-frame { position: relative; }
.ic-fbg { position: absolute; inset: 0; background: #fff; box-shadow: var(--shadow); }
.ic-flyer .ic-fbg { box-shadow: 0 2px 6px rgba(0,0,0,.06), 0 24px 60px rgba(0,0,0,.14); }
.ic-pic { position: relative; overflow: hidden; background: #e7e6e3; isolation: isolate; }
.ic-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.ic-meta { width: 0; min-width: 100%; display: flex; flex-direction: column; gap: .15em; padding: 0 .2em; line-height: 1.25; }
.ic-meta b { font-weight: 500; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ic-meta span { color: var(--g2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: flex; align-items: center; gap: .45em; }
.ic-meta .ic-live { width: .5em; height: .5em; box-shadow: 0 0 0 .18em rgba(34,197,94,.18); }
.ic-meta2 { position: absolute; left: 0; right: 0; bottom: 0; margin-top: 0 !important; opacity: 0; }
.ic-sheet { position: absolute; left: 7px; right: 7px; top: -8px; bottom: 8px; background: #fff; opacity: 0;
  box-shadow: 0 0 0 1px rgba(0,0,0,.05), 0 1px 2px rgba(0,0,0,.04); z-index: -1; }
.ic-sheet.on { opacity: 1; left: 3px; right: 3px; top: -5px; }
.ic-badge { position: absolute; top: 12px; right: 12px; padding: 1px 7px; border-radius: 999px; background: var(--ink); color: #fff;
  font-size: 10px; font-weight: 600; line-height: 16px; opacity: 0; z-index: 2; }
.m .ic-badge { top: 7px; right: 7px; font-size: 7px; line-height: 11px; padding: 0 5px; }

.ic-trace { position: absolute; inset: -5px; opacity: 0; pointer-events: none; }
.ic-trace svg { width: 100%; height: 100%; overflow: visible; display: block; }
.ic-trace rect { x: .75px; y: .75px; width: calc(100% - 1.5px); height: calc(100% - 1.5px); rx: 16px; fill: none; stroke: var(--ink);
  stroke-width: 1.5px; stroke-dasharray: 1 1; stroke-dashoffset: 1; stroke-linecap: round; }
.m .ic-trace { inset: -4px; }
.m .ic-trace rect { rx: 12px; }

/* ---- the board ------------------------------------------------------------------------------ */
.ic-board { background: #fff; z-index: 1; overflow: hidden; transform-origin: 0 0;
  box-shadow: 0 0 0 1px rgba(0,0,0,.06), 0 1px 2px rgba(0,0,0,.05), 0 24px 60px rgba(0,0,0,.08); }
.ic-wall { position: absolute; inset: 5px; border-radius: 12px; overflow: hidden; background-color: var(--paper);
  background-image: radial-gradient(circle, rgba(0,0,0,.09) .5px, transparent .9px); background-size: 40px 40px; }
.ic-world { position: absolute; transform-origin: 50% 50%; }
.ic-drop { position: absolute; inset: 10px; border-radius: 10px; border: 1.5px dashed rgba(17,17,17,.35); background: rgba(17,17,17,.025);
  display: grid; place-items: end center; padding-bottom: 76px; opacity: 0; pointer-events: none; }
.ic-drop span { font-size: 12px; color: var(--g2); background: #fff; padding: 5px 11px; border-radius: 999px; box-shadow: var(--shadow); }
.m .ic-drop { padding-bottom: 56px; }
.m .ic-drop span { font-size: 10px; padding: 4px 9px; }

.ic-dock { position: absolute; left: 50%; transform: translateX(-50%); display: flex; align-items: center; gap: 2px;
  padding: 0 6px; border-radius: 999px; background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.06), 0 8px 24px rgba(0,0,0,.07);
  white-space: nowrap; color: var(--ink); z-index: 3; }
.ic-search { display: inline-flex; align-items: center; gap: 7px; height: 28px; padding: 0 11px; border-radius: 999px;
  background: rgba(0,0,0,.045); color: var(--g3); font-size: 12px; margin-right: 4px; }
.ic-search svg { display: block; }
.ic-count { padding: 0 10px 0 6px; font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 12px; color: var(--g2); }
.ic-count i { font-style: normal; color: var(--g3); font-family: -apple-system, BlinkMacSystemFont, "Inter", system-ui, sans-serif; }
.ic-sep { width: 1px; height: 18px; background: rgba(0,0,0,.08); margin: 0 4px; }
.ic-dbtn { position: relative; display: inline-grid; place-items: center; border-radius: 999px; color: var(--ink); }
.ic-dbtn svg { display: block; }
.m .ic-dock { gap: 0; padding: 0 4px; }
.m .ic-count { font-size: 10px; padding: 0 6px 0 4px; }
.m .ic-count i { display: none; }
.m .ic-sep { height: 14px; margin: 0 2px; }

/* presentation, inside the board */
.ic-present { position: absolute; inset: 5px; border-radius: 12px; overflow: hidden; pointer-events: none; }
.ic-back { position: absolute; inset: 0; }
.ic-slide { position: absolute; border-radius: 10px; overflow: hidden; background: #e7e6e3;
  box-shadow: 0 2px 6px rgba(0,0,0,.05), 0 26px 60px rgba(0,0,0,.12); transform-origin: 50% 50%; }
.ic-pcount { position: absolute; left: 0; right: 0; bottom: 20px; display: flex; justify-content: center;
  font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 12px; color: rgba(17,17,17,.55); }
.m .ic-pcount { bottom: 12px; font-size: 10px; }

/* ---- mini window (another page), the file, keys ---------------------------------------------- */
.ic-mini { z-index: 4; transform-origin: 0 50%; }
.ic-mini .ic-chrome { gap: 10px; padding: 0 10px 0 12px; }
.ic-mini .ic-lights i { width: 9px; height: 9px; }
.ic-mini .ic-lights { gap: 5px; }
.ic-mini .ic-url { height: 22px; font-size: 11px; width: 58%; border-radius: 6px; }
.mini-img { position: absolute; left: 18px; top: 18px; border-radius: 6px; overflow: hidden; }
.mini-txt { position: absolute; top: 24px; right: 20px; }
.mini-t { font-size: 15px; font-weight: 600; letter-spacing: -.015em; }
.mini-s { margin-top: 4px; font-size: 11.5px; color: var(--g3); }
.mini-lines { margin-top: 18px; }
.mini-lines i { display: block; height: 6px; border-radius: 3px; background: #efeeec; margin-top: 9px; }
.mini-lines i:nth-child(2) { width: 88%; } .mini-lines i:nth-child(3) { width: 64%; }
.mini-btn { display: inline-block; margin-top: 20px; padding: 6px 13px; border-radius: 999px; background: #f1f0ee; color: var(--ink); font-size: 11px; font-weight: 500; }

.ic-flyer { z-index: 8; left: 0; top: 0; }
.ic-file { left: 0; top: 0; z-index: 9; display: flex; flex-direction: column; align-items: center; gap: 6px; width: 72px; transform-origin: 50% 40%; }
.ic-file-doc { width: 72px; height: 96px; padding: 4px; background: #fff; border-radius: 4px;
  box-shadow: 0 0 0 1px rgba(0,0,0,.06), 0 10px 26px rgba(0,0,0,.16); }
.ic-file-doc img { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: 2px; }
.ic-file span { font-size: 10.5px; font-weight: 500; color: #fff; background: #2f6bd8; padding: 2px 6px; border-radius: 4px; white-space: nowrap; }
.ic-file { isolation: isolate; }
.ic-file-doc.b { position: absolute; left: 0; top: 0; transform: translate(12px, -7px) rotate(8deg); z-index: -1; }
.ic-file-count { position: absolute; right: -10px; top: -9px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px; background: #e5484d; color: #fff;
  font-style: normal; font-size: 11px; font-weight: 700; display: grid; place-items: center; box-shadow: 0 0 0 1.5px #fff; }
.m .ic-file { width: 52px; }
.m .ic-file-doc { width: 52px; height: 70px; padding: 3px; }
.m .ic-file span { font-size: 8px; padding: 1px 4px; }
.m .ic-file-count { min-width: 15px; height: 15px; font-size: 8.5px; right: -7px; top: -7px; }
.ic-keys { left: 0; top: 0; z-index: 9; display: flex; gap: 4px; opacity: 0; }
.ic-keys kbd { min-width: 24px; height: 24px; padding: 0 6px; border-radius: 6px; background: #fff; display: grid; place-items: center;
  font: inherit; font-size: 12px; font-weight: 500; color: var(--ink); box-shadow: 0 0 0 1px rgba(0,0,0,.08), 0 2px 0 rgba(0,0,0,.08), 0 8px 18px rgba(0,0,0,.08); }

/* ---- phone ------------------------------------------------------------------------------------ */
.ic-phone { z-index: 3; border-radius: 44px; background: #fff; transform-origin: 0 0; isolation: isolate;
  box-shadow: 0 0 0 1px rgba(0,0,0,.06), 0 1px 2px rgba(0,0,0,.05), 0 24px 60px rgba(0,0,0,.08); }
.ic-phone::before { content: ""; position: absolute; inset: 4.2px; border-radius: 40px; background: #111; z-index: -1;
  box-shadow: inset 0 0 0 1px #2c2c2c; }
.ic-screen { position: relative; width: 100%; height: 100%; border-radius: 34px; overflow: hidden; background: #eeeeee; }
.ic-island { position: absolute; left: 50%; top: 7.5px; width: 84px; height: 24.5px; margin-left: -42px; border-radius: 12.5px; background: #000; z-index: 9; }
.ic-status { position: absolute; left: 0; right: 0; top: 0; height: 44px; display: flex; align-items: center; justify-content: space-between;
  padding: 2px 22px 0 30px; font-size: 13px; z-index: 5; color: var(--ink); }
.ic-status b { font-weight: 600; letter-spacing: -.01em; }
.ic-status span { display: inline-flex; align-items: center; gap: 5px; }
.ic-status svg { display: block; fill: currentColor; color: var(--ink); }
.ic-home { position: absolute; left: 50%; bottom: 7px; width: 96px; height: 4px; margin-left: -48px; border-radius: 2px; background: #111; z-index: 6; }

/* the iOS app (ios/Still/CanvasView.swift): Theme.bg, DotGrid, the tidy grid, the bar */
.ic-pbacks, .ic-pdots, .ic-pgrid, .ic-ppres { position: absolute; inset: 0; }
.ic-pdots { background-image: radial-gradient(circle, rgba(163,163,163,.35) .5px, transparent 1px); background-position: -1px -1px; }
.ic-pc { position: absolute; left: 0; top: 0; background: #fff; box-sizing: border-box; transform-origin: 50% 50%; }
.ic-pgrid > .ic-pc, .ic-pstack { transform-origin: 50% 50%; }
.ic-pcpic { position: relative; width: 100%; height: 100%; overflow: hidden; background: #fff; isolation: isolate; }
.ic-pctext { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; padding: 7px; text-align: center; }
.ic-pct { font-weight: 600; color: #6b6b6b; line-height: 1.25; letter-spacing: -.01em; }
.ic-pct span { font-size: 0; }
.ic-pch { color: #a3a3a3; }
.ic-pstack { position: absolute; left: 0; top: 0; }
.ic-pphoto { transform-origin: 50% 100%; }
.ic-pbadge { position: absolute; z-index: 5; border-radius: 999px; background: #111; color: #fff; font-weight: 600; line-height: 1; font-variant-numeric: tabular-nums; }
.ic-pulse { position: absolute; box-shadow: 0 0 0 1.5px var(--ink); opacity: 0; pointer-events: none; transform-origin: 50% 50%; }
.ic-pbar { position: absolute; left: 50%; transform: translateX(-50%); z-index: 7; border-radius: 999px; background: #fff;
  box-shadow: 0 0 0 .7px rgba(0,0,0,.08), 0 2.7px 8px rgba(0,0,0,.08); overflow: hidden; }
.ic-bset { position: absolute; top: 0; left: 50%; transform: translateX(-50%); display: flex; align-items: center; height: 100%; white-space: nowrap; }
.ic-bc { position: relative; display: inline-grid; place-items: center; color: #111; border-radius: 999px; }
.ic-bc svg { display: block; }
.ic-bdiv { display: block; width: .7px; background: rgba(0,0,0,.08); }
.ic-bcount { font-weight: 600; color: #6b6b6b; font-variant-numeric: tabular-nums; }
.ic-bbuild { font-weight: 500; color: #a3a3a3; font-variant-numeric: tabular-nums; }
.ic-bnum { font-weight: 500; color: #6b6b6b; font-variant-numeric: tabular-nums; }
.ic-bset .ic-ticker > span { justify-self: center; }

/* a slide: a 16:9 frame of the canvas, 1600 × 900 units, scaled to each screen */
.ic-sframe { position: absolute; width: 1600px; height: 900px; transform-origin: 0 0; }
.ic-slayer { position: absolute; inset: 0; }
.ic-scard { position: absolute; background: #fff; box-shadow: 0 8px 20px rgba(0,0,0,.08); transform-origin: 50% 50%; }
.ic-spic { position: relative; overflow: hidden; border-radius: 12px; background: #e7e6e3; isolation: isolate; }
.ic-stext { position: absolute; right: 96px; bottom: 96px; display: flex; flex-direction: column; align-items: flex-end; gap: 22px; text-align: right; }
.ic-stext b { font-size: 64px; font-weight: 600; letter-spacing: -.02em; line-height: 1.1; color: #111; }
.ic-stext span { font-size: 32px; color: #6b6b6b; line-height: 1.2; }

.ic-touches { position: absolute; inset: 0; pointer-events: none; z-index: 8; }
.ic-finger { position: absolute; left: -19px; top: -19px; width: 38px; height: 38px; border-radius: 50%; opacity: 0;
  background: rgba(140,140,140,.42); box-shadow: 0 0 0 1px rgba(255,255,255,.55), 0 2px 10px rgba(0,0,0,.12); }

/* ---- cursor + rings -------------------------------------------------------------------------- */
.ic-cursor { left: 0; top: 0; z-index: 50; pointer-events: none; will-change: transform; }
.ic-press { position: absolute; left: 0; top: 0; transform-origin: 0 0; }
.ic-shape { position: absolute; filter: drop-shadow(0 1px 1.5px rgba(0,0,0,.22)); }
.ic-shape svg { display: block; }
.ic-ripple { position: absolute; border-radius: 50%; border: 1.5px solid rgba(17,17,17,.28); opacity: 0; pointer-events: none; z-index: 49; }

/* ---- phone-sized story -------------------------------------------------------------------------- */
.m .ic-win { border-radius: 12px; }
.m .ic-chrome { gap: 8px; padding: 0 8px 0 12px; }
.m .ic-lights { gap: 5px; }
.m .ic-lights i { width: 8px; height: 8px; }
.m .ic-url { width: 56%; height: 24px; font-size: 10.5px; border-radius: 7px; }
.m .ic-ext { width: 26px; height: 26px; border-radius: 8px; }
.m .ic-avatar { display: none; }
.m .pg-kick { left: 18px; top: 22px; font-size: 9px; }
.m .pg-h { left: 18px; top: 40px; width: 300px; font-size: 24px; }
.m .pg-embed { left: 18px; top: 116px; width: 322px; height: 181px; border-radius: 8px; }
.m .pg-fig { left: 18px; top: 306px; font-size: 10px; width: 322px; }
.m .pg-p { left: 18px; top: 336px; width: 322px; font-size: 12.5px; line-height: 1.6; }
.m .pg-by { left: 18px; top: 470px; font-size: 10.5px; }
.m .pg-rule { left: 18px; right: 18px; top: 496px; }
.m .pg-rel { left: 18px; right: 18px; top: 516px; gap: 10px; }
.m .pg-rel img { height: 70px; }
.m .pg-rel b { font-size: 10px; }
.m .ic-hint { height: 26px; font-size: 10.5px; right: 10px; gap: 6px; }
.m .ic-sel-label { top: -23px; height: 18px; line-height: 18px; font-size: 9.5px; }
.m .ic-sel-label .ic-ticker > span { height: 18px; padding: 0 6px; }
.m .ic-mini .ic-url { width: 60%; font-size: 9.5px; height: 20px; }
.m .mini-img { left: 12px; top: 12px; }
.m .mini-txt { top: 14px; right: 12px; }
.m .mini-t { font-size: 11px; }
.m .mini-s { font-size: 9px; }
.m .mini-lines { margin-top: 12px; }
.m .mini-lines i { height: 5px; margin-top: 7px; }
.m .mini-btn { margin-top: 12px; font-size: 9px; padding: 4px 9px; }
.m .ic-wall { background-size: 26px 26px; border-radius: 12px; }
.m .ic-present { border-radius: 12px; }
.m .ic-slide { border-radius: 7px; }
.m .ic-search { display: none; }
.m .ic-keys kbd { min-width: 20px; height: 20px; font-size: 10px; border-radius: 5px; }

@media (prefers-reduced-motion: reduce) {
  .ic-cursor, .ic-pulse, .ic-ripple, .ic-keys { visibility: hidden; }
}

/* ---- opening lines, one at a time, before the film ---- */
.ic-line { position: absolute; left: 0; right: 0; top: 50%; margin: 0; padding: 0 24px; text-align: center;
  transform: translateY(calc(-50% + 10px)); opacity: 0; filter: blur(6px); z-index: 3;
  font-size: clamp(22px, 3.2vw, 40px); font-weight: 500; letter-spacing: -.025em; line-height: 1.2; color: #111;
  transition: opacity .7s cubic-bezier(.2,.8,.2,1), transform .8s cubic-bezier(.2,.8,.2,1), filter .7s cubic-bezier(.2,.8,.2,1); }
.ic-line em { font-style: italic; }
.ic-line.is-on { opacity: 1; filter: blur(0); transform: translateY(-50%); }
.ic-line.is-off { opacity: 0; filter: blur(4px); transform: translateY(calc(-50% - 6px)); transition-duration: .4s; }
@media (prefers-reduced-motion: reduce) { .ic-line { transition: opacity .4s linear; filter: none; transform: translateY(-50%); } }

/* ---- media: real footage over the generated art ----------------------------------------------- */
.ic-media { position: absolute; inset: 0; }
.ic-vid, .ic-real { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; z-index: 1; }
.ic-vid { opacity: 0; transition: opacity .3s ease; }
.ic-vid.on { opacity: 1; }
.ic-clip-top, .ic-clip-bar { z-index: 2; }
.ic-sound { position: absolute; right: 7px; bottom: 6px; z-index: 2; color: #fff; opacity: .85; display: inline-flex;
  filter: drop-shadow(0 0 2px rgba(0,0,0,.45)); }
.ic-sound svg { display: block; }
.m .ic-sound { right: 4px; bottom: 3px; }
.m .ic-sound svg { width: 8px; height: 8px; }

/* the GIF: a ball on a loop */
.ic-gif { position: absolute; inset: 0; overflow: hidden; background-color: #f4d34e;
  background-image: repeating-linear-gradient(135deg, rgba(255,255,255,.14) 0 8%, transparent 8% 16%); }
.ic-gif-ball { position: absolute; left: 38%; bottom: 20%; width: 24%; aspect-ratio: 1; border-radius: 50%; transform-origin: 50% 100%;
  background: radial-gradient(circle at 35% 30%, #ff8a6b, #e5482c 55%, #a52a17); }
.ic-gif-sh { position: absolute; left: 34%; bottom: 17%; width: 32%; height: 6%; border-radius: 50%; background: #3a2a05; opacity: .2; }
.ic-gif-tag { position: absolute; left: 6px; top: 6px; z-index: 2; padding: 1px 5px; border-radius: 4px; background: rgba(255,255,255,.92); color: var(--ink);
  font-size: 9px; font-weight: 700; letter-spacing: .04em; line-height: 13px; }
.m .ic-gif-tag { left: 3px; top: 3px; font-size: 6px; line-height: 9px; padding: 0 3px; border-radius: 3px; }

/* the video file: dusk over water */
.ic-reel { position: absolute; inset: 0; overflow: hidden;
  background: linear-gradient(to bottom, #1d2b4f 0%, #6a4a72 34%, #e2825a 55%, #f2b27a 58%); }
.ic-reel-sun { position: absolute; left: 32%; top: 40%; width: 36%; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle, #fff1d6 0%, #ffd9a4 45%, rgba(255,190,130,0) 72%); }
.ic-reel-sea { position: absolute; left: 0; right: 0; bottom: 0; height: 42%; background: linear-gradient(to bottom, #5a3550, #221629); }
.ic-reel-glint { position: absolute; left: 28%; width: 44%; top: 62%; height: 1.4%; border-radius: 9px; background: #ffd49c; }
.ic-reel-glint.b { top: 70%; left: 34%; width: 32%; }
.ic-reel-glint.c { top: 80%; left: 22%; width: 56%; height: 1%; }

/* a note: text on white */
.ic-note { position: relative; overflow: hidden; line-height: 1.42; color: var(--ink); font-weight: 450; letter-spacing: -.005em; }
.ic-note span { font-size: 0; }
.ic-caret { display: inline-block; width: 1.5px; height: 1.2em; vertical-align: -.25em; margin-left: 1px; }
.ic-caret i { display: block; width: 100%; height: 100%; background: var(--ink); }
.ic-k-note .ic-meta span { color: var(--g3); }

/* a link: its preview, then title and domain, inside the frame */
.ic-linkbody { position: relative; display: flex; flex-direction: column; gap: .35em; padding: .8em .3em .25em; line-height: 1.25; }
.ic-linkbody b { font-weight: 500; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ic-linkbody span { color: var(--g2); display: flex; align-items: center; gap: .5em; }
.ic-linkbody span i { width: .85em; height: .85em; border-radius: 50%; flex: none; }

/* ---- the frame that holds a word in each opening line, then opens into the film ---- */
.ic-wframe { position: absolute; left: 0; top: 0; z-index: 4; box-sizing: border-box; pointer-events: none;
  border: 6px solid #fff; border-radius: 16px; opacity: 0; transform: scale(.94);
  box-shadow: 0 1px 2px rgba(0,0,0,.05), 0 10px 30px rgba(0,0,0,.07), inset 0 1px 2px rgba(0,0,0,.06);
  /* across and down on different curves: the frame travels on a calm arc, not a straight hop */
  transition: left 1.1s cubic-bezier(.62,0,.28,1), top 1.1s cubic-bezier(.25,.1,.2,1), width 1s cubic-bezier(.65,0,.2,1),
    height 1s cubic-bezier(.65,0,.2,1), border-radius 1s cubic-bezier(.65,0,.2,1), border-width 1s cubic-bezier(.65,0,.2,1),
    opacity .6s cubic-bezier(.2,.8,.2,1), transform .7s cubic-bezier(.2,.8,.2,1); }
.ic-wframe.is-on { opacity: 1; transform: none; }
.ic-wframe.is-still { transition: none; }
.ic-wframe.is-gone { opacity: 0; transition: opacity .4s ease; }
@media (prefers-reduced-motion: reduce) { .ic-wframe { transition: opacity .3s linear; transform: none; } }

/* ---- the logo, bottom centre, for the whole story ---- */
.ic-brand { position: absolute; left: 50%; bottom: max(20px, env(safe-area-inset-bottom, 0px) + 14px); transform: translateX(-50%); z-index: 55;
  display: flex; align-items: center; gap: 8px; white-space: nowrap; pointer-events: none; color: #111; }
.ic-brand svg { display: block; }
.ic-brand b { font-size: 15px; font-weight: 600; letter-spacing: -.03em; }
.ic-brand i { width: 1px; height: 12px; background: rgba(0,0,0,.14); margin: 0 3px; }
.ic-brand span { font-size: 12.5px; color: #8a8a8a; letter-spacing: -.005em; }
@media (max-width: 640px) {
  .ic-brand { gap: 6px; bottom: max(16px, env(safe-area-inset-bottom, 0px) + 10px); }
  .ic-brand b { font-size: 13.5px; }
  .ic-brand span { font-size: 11.5px; }
}

/* frame border ≈ .14em; inside it .4em across and .22em up and down, and room outside too */
.ic-fw { display: inline-block; padding: .36em .54em; margin: 0 .22em; line-height: 1.1; }
.ic-fw.ic-fw-p { margin-right: .04em; }
.ic-line em .ic-fw, .ic-fw em { font-style: italic; }

.ic-line-first { font-size: clamp(30px, 4.4vw, 58px); letter-spacing: -.035em; font-weight: 600; }

/* sound on / off, bottom centre */
.ic-snd { position: absolute; left: 50%; bottom: max(14px, env(safe-area-inset-bottom, 0px) + 10px); transform: translateX(-50%); z-index: 60;
  appearance: none; border: 0; background: transparent; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center;
  color: #8a8a8a; cursor: pointer; transition: color .2s ease, background-color .2s ease; }
.ic-snd:hover { color: #111; background: rgba(0,0,0,.045); }
.ic-snd.on { color: #111; }
.ic-snd svg { display: block; }

/* ---- the iPhone home screen (the film opens here) ---- */
.ic-papp { position: absolute; inset: 0; overflow: hidden; }
.ic-phome { position: absolute; inset: 0; z-index: 8; background: #fbfbfa; }
.ic-widget { position: absolute; background-color: #ececea; overflow: hidden;
  background-image: radial-gradient(circle, rgba(163,163,163,.45) .5px, transparent 1px); background-size: 14px 14px; background-position: 6px 6px;
  box-shadow: inset 0 0 0 .5px rgba(0,0,0,.04); transform-origin: 50% 50%; }
.ic-wcard { position: absolute; background: #fff; border-radius: 9px; padding: 3.5px; box-sizing: border-box;
  box-shadow: 0 1px 1.5px rgba(0,0,0,.06), 0 3px 8px rgba(0,0,0,.07); }
.ic-wpic { position: relative; width: 100%; height: 100%; border-radius: 6px; overflow: hidden; }
.ic-hlabel { display: block; text-align: center; font-size: 7.6px; color: #333; letter-spacing: -.005em; margin-top: 4px; white-space: nowrap; }
.ic-wlabel { position: absolute; left: 0; right: 0; margin: 0; color: #555; }
.ic-appcell { position: absolute; width: 44px; display: flex; flex-direction: column; align-items: center; }
.ic-app { width: 44px; height: 44px; border-radius: 11px; overflow: hidden; display: grid; place-items: center;
  box-shadow: 0 0 0 .5px rgba(0,0,0,.05), 0 1px 3px rgba(0,0,0,.06); }
.ic-app svg { width: 100%; height: 100%; display: block; }
.ic-app-still { background: transparent; box-shadow: none; }
.ic-app-tide { background: linear-gradient(160deg, #7cc4d8, #2d6f9a); }
.ic-app-grain { background: linear-gradient(160deg, #f2b27a, #d9674a); }
.ic-app-atlas { background: #f6f5f2; }
.ic-app-loop { background: linear-gradient(160deg, #b9a7e8, #7d68c7); }
.ic-app-chat { background: linear-gradient(160deg, #a8d5b8, #5f9e7c); }
.ic-app-shape { background: linear-gradient(160deg, #3d3d3d, #151515); }
.ic-app-lines { background: #fff; }
.ic-hsearch { position: absolute; left: 50%; transform: translateX(-50%); padding: 3px 11px; border-radius: 999px; font-size: 7.5px; color: #8a8a8a;
  background: rgba(255,255,255,.9); box-shadow: 0 0 0 .5px rgba(0,0,0,.08); }
.ic-hdock { position: absolute; left: 9px; right: 9px; bottom: 9px; height: 62px; border-radius: 26px; display: flex; align-items: center; justify-content: center; gap: 16px;
  background: rgba(255,255,255,.7); box-shadow: 0 0 0 .5px rgba(0,0,0,.07); }

/* opening lines: the framed word at the exact centre, the rest flowing to either side */
.ic-line { display: grid; grid-template-columns: 1fr auto 1fr; align-items: baseline; padding: 0 16px; text-align: initial; }
.ic-pre { justify-self: end; text-align: right; padding-right: .24em; white-space: nowrap; }
.ic-post { justify-self: start; text-align: left; padding-left: .24em; white-space: nowrap; }
.ic-post.p { padding-left: .04em; }
.ic-line .ic-fw { margin: 0; }
