/* Kolonka by layers: the scroll story at the top of the landing. Every rule sits inside #tour,
   so the story's app-like class names (.app, .btn, .card, .pop) never reach the rest of the page.
   The screens copy the app's look (apps/web/src); each is laid out in app px, 1280x720, and scaled whole. */
@keyframes dash-march { to { stroke-dashoffset: 0; } }
@keyframes live { 50% { box-shadow: 0 0 0 8px rgba(48,209,88,0); } }
@keyframes led { 50% { opacity: .35; } }
@keyframes press { 40% { transform: translateY(5px); box-shadow: inset 0 1px 0 rgba(255,255,255,.12), 0 1px 0 #0d0d0e, 0 0 0 3px var(--accent), 0 0 40px rgba(48,209,88,.45); } }
@keyframes ly-pulse { to { stroke-dashoffset: 0; } }
@keyframes drop { from { opacity: 0; transform: translateY(-1.2em) rotate(var(--r)); filter: blur(6px); } 60% { opacity: 1; filter: none; } to { opacity: 1; transform: none; } }

/* the site header tucks away while the story scrolls down (story.js) */
.site-header { transition: padding-top .32s ease, transform .45s cubic-bezier(.2,.75,.25,1); }
.site-header.is-tucked { transform: translateY(calc(-100% - 12px)); }

#tour {
  --bg: #0a0a0b; --text: #f5f5f7; --muted: #86868b; --quiet: #6e6e73; --accent: #30d158; --card: #242426;
  --ui: 'IBM Plex Sans', system-ui, sans-serif; --serif: 'IBM Plex Serif', Georgia, serif;
  --ease: cubic-bezier(.3, .7, .2, 1);
  position: relative; color: var(--text); font-family: "Onest", system-ui, sans-serif;
  *, *::before, *::after { box-sizing: border-box; }
/* Kolonka scroll story. The screens copy the app's look (apps/web/src, klnka.app, Oct 2026);
   every screen is laid out in app px, 1280×720, and scaled as a whole. */

.ic { width: 14px; height: 14px; flex: none; }

/* ---------- Story stage ---------- */
.story { position: relative; }
.sticky { position: sticky; top: 0; height: 100vh; overflow: hidden; }
.world { position: absolute; inset: 0; perspective: 2600px; perspective-origin: 50% 45%; }
.screen { position: absolute; left: 50%; top: 50%; width: 1280px; height: 720px; margin: -360px 0 0 -640px; transform-origin: 50% 50%; will-change: transform, opacity; }
.app { position: absolute; inset: 0; border-radius: 26px; overflow: hidden; background: var(--bg); font: 400 13px/1.35 var(--ui); color: var(--text);
  box-shadow: 0 0 0 1.5px rgba(255,255,255,.07), 0 50px 120px rgba(0,0,0,.7); }
.app * { transition-timing-function: var(--ease); }

.tag { position: absolute; left: 0; top: 0; display: flex; align-items: center; gap: 10px; margin-top: -10px; font: 500 17px "Onest", sans-serif; white-space: nowrap; pointer-events: none; z-index: 300; }
.tag i { position: relative; width: 36px; height: 1px; background: linear-gradient(90deg, rgba(245,245,247,.7), rgba(245,245,247,.15)); }
.tag i::before { content: ""; position: absolute; left: -4px; top: -3.5px; width: 8px; height: 8px; border-radius: 50%; background: var(--text); box-shadow: 0 0 0 4px rgba(245,245,247,.14); }
.tag span { color: var(--quiet); font-size: 13px; }

.copy { position: absolute; left: max(32px, 6vw); top: 50%; width: min(380px, 28vw); z-index: 200; }
.chapter { position: absolute; left: 0; top: 0; transform: translateY(calc(-50% + 14px)); opacity: 0; transition: opacity .4s ease, transform .4s ease; pointer-events: none; }
.chapter.on { opacity: 1; transform: translateY(-50%); }
.chapter small { color: var(--accent); font: 500 14px "Onest", sans-serif; }
.chapter h2 { margin: 10px 0 14px; font: 500 clamp(30px, 3vw, 44px)/1.08 "Source Serif 4", Georgia, serif; letter-spacing: -.01em; }
.chapter p { margin: 0; color: var(--muted); font-size: 17px; line-height: 27px; }

.keycap { position: absolute; z-index: 250; width: 96px; height: 96px; border-radius: 26px; display: grid; place-items: center; background: linear-gradient(#2c2c2e, #1c1c1e);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.12), 0 6px 0 #0d0d0e, 0 24px 50px rgba(0,0,0,.6); font: 600 42px/1 var(--ui); color: var(--text);
  opacity: 0; transform: translateY(20px) scale(.9); transition: opacity .3s, transform .3s, box-shadow .2s; pointer-events: none; }
.keycap.on { opacity: 1; transform: none; }
.keycap.press { transform: translateY(5px); box-shadow: inset 0 1px 0 rgba(255,255,255,.12), 0 1px 0 #0d0d0e, 0 0 0 3px var(--accent), 0 0 40px rgba(48,209,88,.45); }


/* ---------- App chrome ---------- */
.avatar { display: inline-grid; place-items: center; flex: none; border-radius: 50%; color: #000; font: 500 9px/1 var(--serif); }
.island { position: absolute; left: 16px; top: 12px; width: 1248px; height: 48px; display: flex; align-items: center; gap: 8px; padding: 0 10px 0 14px; border-radius: 22px;
  background: rgba(22,22,24,.82); box-shadow: inset 0 1px 0 rgba(255,255,255,.06), 0 10px 30px rgba(0,0,0,.35); z-index: 5; }
.logo { width: 22px; height: 26px; color: #edf2f6; margin-right: 2px; }
.ws { display: inline-flex; align-items: center; gap: 8px; padding: 0 6px 0 4px; font: 500 14px/1 var(--ui); color: rgba(245,245,247,.9); white-space: nowrap; }
.ws .chev, .btn .chev { width: 12px; height: 12px; color: var(--muted); }
.ws-ava { width: 22px; height: 22px; border-radius: 50%; background: url(neverland.webp) 70% 50% / 300px auto; }
.grp { position: relative; display: inline-flex; align-items: center; height: 28px; padding: 2px; border-radius: 16px; background: rgba(10,10,11,.5); }
.btn { position: relative; z-index: 1; display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 10px; border-radius: 14px; color: var(--muted); font: 500 12px/1 var(--ui); white-space: nowrap; transition: color .3s, background .3s; }
.btn.ico { padding: 0 6px; }
.btn.on { color: var(--text); background: rgba(48,209,88,.2); }
.btn.on .ic { color: var(--accent); }
.btn.solo { height: 28px; }
.plus { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: #000; }
.sp { flex: 1; }
.search { display: inline-flex; align-items: center; gap: 8px; height: 28px; padding: 0 6px 0 8px; border-radius: 16px; background: rgba(10,10,11,.5); color: rgba(158,158,163,.6); }
.search kbd { font: 400 10px/14px ui-monospace, Menlo, monospace; color: var(--muted); background: rgba(255,255,255,.08); border-radius: 8px; padding: 0 5px; }
.lc { color: #64d2ff; }

/* ---------- Popovers, toast ---------- */
.pop { position: absolute; z-index: 20; padding: 6px; border-radius: 18px; background: rgba(36,36,38,.94); backdrop-filter: blur(28px) saturate(1.6);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.07), 0 24px 70px rgba(0,0,0,.6); opacity: 0; transform: translateY(-8px) scale(.96); transform-origin: 30% 0; transition: opacity .25s, transform .35s; pointer-events: none; }
.pop.on { opacity: 1; transform: none; }
.pop-item { position: relative; display: flex; align-items: center; gap: 10px; height: 32px; padding: 0 12px; border-radius: 11px; font: 500 13px/1 var(--ui); white-space: nowrap; transition: background .25s, color .25s; }
.pop-item .ic { color: var(--muted); }
.pop-item .pm { margin-left: auto; color: var(--quiet); font-size: 11.5px; }
.pop-item.hi { background: rgba(255,255,255,.08); }
.pop-item.sel, .pop-item.sel .ic { color: var(--accent); }
.pop-item .ck { margin-left: auto; color: var(--accent); opacity: 0; transition: opacity .2s; }
.pop-item.sel .ck { opacity: 1; }
.pop-sec { padding: 9px 12px 5px; color: #8e8e93; font: 500 11px/1 var(--ui); }
.pop-tabs { display: flex; gap: 2px; padding: 3px; border-radius: 14px; background: rgba(10,10,11,.45); margin-bottom: 8px; }
.pop-tab { flex: 1; height: 26px; display: grid; place-items: center; border-radius: 13px; color: #a1a1a6; font: 500 12px/1 var(--ui); transition: box-shadow .25s, color .25s; }
.pop-tab.on { color: var(--text); box-shadow: inset 0 0 0 1.5px var(--accent); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--c); flex: none; }
.toast { position: absolute; left: 50%; bottom: 22px; z-index: 30; display: flex; align-items: center; gap: 10px; padding: 11px 16px; border-radius: 16px; background: rgba(44,44,46,.96);
  box-shadow: 0 20px 50px rgba(0,0,0,.55); font: 500 13px/1 var(--ui); white-space: nowrap; opacity: 0; transform: translate(-50%, 16px); transition: opacity .3s, transform .4s; }
.toast .ic { color: var(--accent); }
.toast.on { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Space ---------- */
.cover { position: absolute; left: 16px; top: 70px; width: 1248px; height: 200px; border-radius: 22px; overflow: hidden; background: url(neverland.webp) center / cover; transition: height .6s, opacity .5s; }
.cover::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.05), rgba(0,0,0,.25)); }
.cover > b { position: absolute; left: 0; right: 0; top: 50%; transform: translateY(-50%); z-index: 1; text-align: center; font: 700 56px/1 var(--serif); letter-spacing: .42em; text-indent: .42em; text-shadow: 0 4px 30px rgba(0,0,0,.6); }
.members { position: absolute; right: 16px; bottom: 14px; z-index: 2; display: flex; gap: 10px; }
.member { display: flex; align-items: center; gap: 8px; height: 42px; padding: 0 14px 0 6px; border-radius: 21px; background: rgba(10,10,11,.55); backdrop-filter: blur(10px); white-space: nowrap; }
.member b { display: block; font: 600 12.5px/1.2 var(--ui); }
.member small { display: block; color: rgba(245,245,247,.6); font-size: 11px; }
.cards { position: absolute; left: 16px; top: 286px; display: grid; grid-template-columns: repeat(4, 302px); gap: 13px; transition: opacity .4s, transform .5s; }
.pcard { position: relative; height: 138px; transition: opacity .35s, filter .35s; }
.pcard > svg { position: absolute; inset: 0; }
.pcard > svg path { fill: var(--card); }
.pcard .notch { position: absolute; right: 12px; top: 7px; display: flex; gap: 14px; color: var(--quiet); }
.pcard .chip-st { position: absolute; left: 18px; top: 18px; height: 22px; padding: 0 10px; border-radius: 11px; background: color-mix(in srgb, var(--s) 16%, transparent); color: var(--s); font: 600 11px/22px var(--ui); }
.pcard .name { position: absolute; left: 18px; top: 54px; display: flex; align-items: center; gap: 12px; font: 600 16px/1.2 var(--serif); white-space: nowrap; }
.pic { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; background: color-mix(in srgb, var(--c) 18%, #1c1c1e); color: var(--c); }
.pic .ic { width: 16px; height: 16px; }
.pcard .foot { position: absolute; left: 18px; right: 14px; bottom: 14px; display: flex; align-items: center; justify-content: space-between; }
.pcard .meta { color: var(--muted); font-size: 11.5px; margin-left: 14px; }
.avs { display: flex; align-items: center; }
.avs .avatar { box-shadow: 0 0 0 2px var(--card); margin-right: -6px; }
.gear { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: #3a3a3c; color: #a1a1a6; }
.space.s1 .pcard.out { opacity: .22; filter: saturate(.3); }
.timeline .cards { opacity: 0; transform: translateY(-20px); }

/* Roles: the space settings window, «Доступ» tab, next to the page */
.roles { position: absolute; left: 566px; top: 74px; width: 690px; z-index: 40; padding: 22px 24px 18px; border-radius: 22px; background: #262628;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.06), 0 40px 110px rgba(0,0,0,.75); opacity: 0; transform: translateX(40px) scale(.97); transition: opacity .35s, transform .5s; pointer-events: none; }
.roles.on { opacity: 1; transform: none; }
.roles .crumbs { display: flex; align-items: center; gap: 8px; font: 500 15px/1 var(--ui); color: var(--muted); }
.roles .crumbs b { color: var(--text); font-weight: 600; }
.roles .crumbs .sl { color: #48484a; }
.roles .x { position: absolute; right: 22px; top: 22px; color: var(--muted); }
.seg { display: inline-flex; gap: 2px; margin-top: 16px; padding: 3px; border-radius: 15px; background: rgba(10,10,11,.5); }
.seg span { padding: 0 12px; height: 26px; display: grid; place-items: center; border-radius: 12px; color: #a1a1a6; font: 500 12.5px/1 var(--ui); }
.seg .on { background: rgba(48,209,88,.2); color: var(--text); }
.roles .rbar { display: flex; gap: 8px; margin: 16px 0 12px; }
.roles .find { flex: 1; height: 34px; border-radius: 17px; background: rgba(10,10,11,.5); color: var(--quiet); font: 400 13px/34px var(--ui); padding: 0 14px; }
.roles .new { height: 34px; padding: 0 14px; border-radius: 17px; background: var(--accent); color: #000; font: 600 13px/34px var(--ui); display: flex; align-items: center; gap: 6px; }
.owner { display: flex; align-items: center; gap: 12px; height: 46px; padding: 0 14px 0 34px; font-size: 13.5px; }
.owner small { display: block; color: var(--muted); font-size: 11.5px; }
.owner .r { margin-left: auto; color: var(--muted); font-size: 12.5px; }
.role { display: flex; align-items: center; gap: 12px; height: 54px; margin-top: 6px; padding: 0 10px 0 12px; border-radius: 16px; background: rgba(255,255,255,.035); transition: background .3s, box-shadow .3s; }
.role .chev { width: 12px; height: 12px; color: var(--quiet); transform: rotate(-90deg); }
.role .sq { width: 22px; height: 22px; border-radius: 7px; background: var(--c); flex: none; }
.role b { font: 600 14px/1.2 var(--ui); }
.role b em { margin-left: 6px; color: var(--quiet); font-style: normal; font-weight: 500; }
.role small { display: flex; gap: 10px; margin-top: 3px; color: var(--muted); font-size: 12px; white-space: nowrap; }
.role small span { display: inline-flex; align-items: center; gap: 5px; }
.role .inv { margin-left: auto; display: flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px; border-radius: 15px; background: #18181a; font: 600 12.5px/1 var(--ui); transition: background .25s, color .25s; }
.role .more { width: 26px; text-align: center; color: var(--muted); }
.role.hi { background: rgba(255,255,255,.08); box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--c) 70%, transparent); }
.role .inv.press { background: var(--accent); color: #000; }

/* Timelines (space and project) */
.tl { position: absolute; left: 0; top: 0; width: 1280px; height: 720px; opacity: 0; transition: opacity .5s; pointer-events: none; }
.timeline .tl { opacity: 1; }
.tl-wk { position: absolute; background: #121214; }
.tl-day { position: absolute; text-align: center; font: 400 11px/1 var(--ui); color: #a1a1a6; }
.tl-day.wk { color: #5a5a5e; }
.tl-mon { position: absolute; font: 400 10.5px/1 var(--ui); color: var(--muted); }
.tl-today { position: absolute; width: 1px; background: rgba(48,209,88,.75); }
.tl-scale { position: absolute; display: flex; gap: 2px; padding: 2px; border-radius: 12px; background: rgba(10,10,11,.5); font: 500 10.5px/20px var(--ui); color: var(--muted); }
.tl-scale span { padding: 0 8px; border-radius: 10px; }
.tl-scale .on { background: #2c2c2e; color: var(--text); }
.tl-ph, .tl-lh { position: absolute; display: flex; align-items: center; gap: 8px; white-space: nowrap; }
.tl-ph { font: 600 14px/1 var(--ui); }
.tl-ph .ic { color: #d1d1d6; width: 16px; height: 16px; }
.tl-lh { font: 600 12.5px/1 var(--ui); }
.tl-lh .ic { color: #d1d1d6; }
.tl-lh em, .tl-ph em { color: var(--muted); font-style: normal; font-weight: 500; }
.tl-lh .g, .tl-ph .g { width: 12px; height: 12px; color: var(--quiet); }
.tl-frame { position: absolute; border-radius: 14px; background: color-mix(in srgb, var(--c) 14%, transparent); }
.bar { position: absolute; height: 24px; padding: 0 10px; border-radius: 12px; overflow: hidden; background: var(--c); color: var(--t); font: 600 12px/24px var(--ui); white-space: nowrap;
  transform-origin: 0 50%; transition: transform .6s, opacity .4s, box-shadow .3s; }
.bar i { position: absolute; top: 0; bottom: 0; background: repeating-linear-gradient(-45deg, rgba(0,0,0,.2) 0 3px, transparent 3px 7px); }
.bar span { position: relative; }
.bar.hot { box-shadow: 0 0 0 2px rgba(248,113,113,.9); }
.tl-svg { position: absolute; left: 0; top: 0; overflow: visible; pointer-events: none; }
.rel path.line { fill: none; stroke-width: 1.5; opacity: .5; transition: opacity .3s, stroke-width .3s; }
.rel.blocks path.line { stroke: #f87171; stroke-dasharray: 6 4; stroke-dashoffset: 20; }
.rel.related path.line { stroke: #71717a; }
.rel .halo { fill: none; stroke-width: 6; opacity: 0; stroke-linecap: round; transition: opacity .3s; }
.rel.blocks .halo { stroke: #f87171; }
.rel .cap { opacity: .6; transition: opacity .3s; }
.rel.focus path.line { opacity: .95; stroke-width: 2; animation: dash-march 1.5s linear infinite; }
.rel.focus .halo { opacity: .25; }
.rel.focus .cap { opacity: 1; }
/* bars grow in when a timeline appears */
.tl .bar { transform: scaleX(.04); opacity: 0; }
.timeline .tl .bar { transform: none; opacity: 1; transition-delay: calc(var(--k) * 40ms); }
.tl .rel { opacity: 0; transition: opacity .4s .5s; }
.timeline .tl .rel { opacity: 1; }

/* ---------- Project: «Все локации» list ---------- */
.list { position: absolute; left: 0; top: 0; width: 1280px; height: 720px; transition: opacity .4s; }
.timeline .list { opacity: 0; }
.lsec { position: absolute; left: 16px; width: 1248px; border-radius: 18px; background: color-mix(in srgb, var(--c) 8%, #0f0f11); }
.lsec-h { position: absolute; left: 16px; top: 12px; display: flex; align-items: center; gap: 9px; font: 600 14px/1 var(--ui); white-space: nowrap; }
.lsec-h .ic { color: var(--c); }
.lsec-h em { color: var(--c); font-style: normal; }
.lsec-h small { margin-left: 4px; color: var(--muted); font: 500 12px/1 var(--ui); }
.lsec-h .metric { display: inline-flex; align-items: center; gap: 6px; margin-left: 8px; height: 22px; padding: 0 9px; border-radius: 11px; background: rgba(100,210,255,.12); color: #64d2ff; font: 600 11px/1 var(--ui); }
.lhead { position: absolute; top: 76px; left: 16px; width: 1248px; height: 20px; font: 500 11px/1 var(--ui); color: var(--muted); }
.lhead span, .lrow > span { position: absolute; }
.lrow { position: absolute; left: 16px; width: 1248px; height: 32px; font-size: 13px; }
.lrow > span { top: 0; height: 32px; display: flex; align-items: center; gap: 8px; white-space: nowrap; }
.lrow .k { left: 28px; color: var(--quiet); font-size: 11px; }
.lrow .t { left: 96px; font-weight: 500; }
.lrow .p { left: 820px; font-size: 12px; }
.lrow .p .ic { color: var(--c); }
.lrow .u { left: 990px; font-size: 12.5px; font-weight: 500; }
.lrow .s { left: 1150px; }
.st { height: 20px; padding: 0 9px; border-radius: 7px; background: color-mix(in srgb, var(--c) 22%, #161618); color: color-mix(in srgb, var(--c) 85%, #fff); font: 600 11px/20px var(--ui); }
.bchip { display: inline-flex; align-items: center; gap: 5px; height: 22px; padding: 0 8px; border-radius: 8px; background: color-mix(in srgb, var(--c) 18%, transparent); font: 600 11px/1 var(--ui); white-space: nowrap; }
.bchip .ic { width: 12px; height: 12px; color: var(--c); }
.nobody { width: 20px; height: 20px; border-radius: 50%; background: #2c2c2e; }

/* ---------- Board ---------- */
.board { position: absolute; left: 16px; top: 72px; width: 1248px; height: 640px; }
.col { position: absolute; top: 0; width: 302px; height: 640px; border-radius: 20px; background: color-mix(in srgb, var(--c) 9%, #0e0e10); transition: background .5s; }
.col-h { position: absolute; left: 16px; top: 14px; display: flex; align-items: center; gap: 8px; font: 600 12.5px/1 var(--ui); white-space: nowrap; }
.col-h em { color: var(--quiet); font-style: normal; font-weight: 500; }
.lanes .col { background: transparent; }
.lane { position: absolute; left: 0; width: 1248px; border-radius: 18px; background: color-mix(in srgb, var(--c) 7%, rgba(16,16,18,.7)); opacity: 0; transition: opacity .4s, top .6s, height .6s; }
.lanes .lane { opacity: 1; }
.lane-h { position: absolute; left: 12px; top: 8px; display: flex; align-items: center; gap: 8px; font: 600 12.5px/1 var(--ui); white-space: nowrap; }
.lane-h em { color: var(--muted); font-style: normal; font-weight: 500; }
.btile { width: 18px; height: 18px; border-radius: 6px; display: grid; place-items: center; background: color-mix(in srgb, var(--c) 25%, transparent); color: var(--c); }
.btile .ic { width: 11px; height: 11px; }
.card { position: absolute; width: 282px; height: 76px; padding: 10px 13px; border-radius: 16px; background: var(--card); transition: left .6s, top .6s, opacity .35s, transform .45s, background .5s; }
.card .k { font: 500 11px/1 var(--ui); color: #86868b; }
.card .t { margin-top: 6px; font: 500 13.5px/1.2 var(--ui); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card .m { position: absolute; left: 13px; right: 13px; bottom: 10px; display: flex; align-items: center; gap: 6px; }
.card .m .avatar { margin-left: auto; }
.chip { display: inline-flex; align-items: center; gap: 5px; height: 20px; padding: 0 7px; border-radius: 7px; background: rgba(255,255,255,.07); font: 600 10.5px/1 var(--ui); white-space: nowrap; transition: opacity .3s, width .3s; }
.chip .ic { width: 11px; height: 11px; }
.flag { width: 13px; height: 13px; color: var(--c); flex: none; }
.card.new { opacity: 0; transform: scale(1.15) rotate(-3deg); }
.card.new.in { opacity: 1; transform: none; box-shadow: inset 0 0 0 2px var(--accent); }
.caret { display: inline-block; width: 1.5px; height: 14px; margin-left: 1px; vertical-align: -2px; background: var(--accent); }

/* ---------- Task window ---------- */
.dim { position: absolute; inset: 0; background: rgba(0,0,0,.55); }
.tdlg { position: absolute; left: 60px; top: 40px; width: 1160px; height: 650px; display: flex; border-radius: 22px; overflow: hidden; background: #242426; box-shadow: 0 40px 120px rgba(0,0,0,.7); z-index: 6; }
.td-main { position: relative; width: 700px; padding: 22px 24px; }
.td-top { display: flex; align-items: center; gap: 6px; color: var(--muted); font: 500 14px/20px var(--ui); }
.td-top .ic { margin-left: 4px; }
.td-acts { position: absolute; right: 24px; top: 16px; display: flex; align-items: center; gap: 14px; }
.td-more { color: var(--muted); font: 600 14px/1 var(--ui); letter-spacing: .05em; }
.td-status { display: inline-flex; align-items: center; gap: 8px; height: 32px; padding: 0 14px; border-radius: 14px; background: var(--c); color: #000; font: 600 14px/1 var(--ui); transition: background .3s; }
.td-status .d { width: 8px; height: 8px; border-radius: 50%; background: rgba(0,0,0,.75); }
.td-title { margin: 30px 0 12px; font: 600 24px/1.4 var(--serif); }
.td-f { display: flex; align-items: center; gap: 10px; height: 36px; font: 400 14px/1 var(--ui); }
.td-f > .ic { color: var(--muted); }
.td-f .fl { width: 118px; color: var(--muted); }
.td-f .pr { background: rgba(255,159,10,.15); color: #ff9f0a; height: 24px; font-size: 12px; }
.td-hidden { display: inline-block; margin: 10px 0 18px; height: 24px; padding: 0 9px; border-radius: 8px; background: #2c2c2e; color: var(--muted); font: 400 11px/24px var(--ui); }
.td-desc { font: 400 14px/1.55 var(--ui); max-width: 620px; }
.td-rel { margin-top: 22px; display: flex; flex-direction: column; gap: 8px; font: 400 13px/1 var(--ui); }
.td-rel .h { color: var(--muted); font-weight: 500; }
.td-rel div { display: flex; align-items: center; gap: 8px; }
.td-rel .arr { color: #f87171; }
.td-side { position: relative; flex: 1; background: #131315; }
.td-tabs { position: absolute; left: 16px; top: 16px; display: flex; gap: 2px; padding: 2px; border-radius: 16px; background: rgba(10,10,11,.5); }
.td-tabs span { display: flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px; border-radius: 14px; color: var(--muted); font: 500 12px/1 var(--ui); white-space: nowrap; transition: background .3s, color .3s; }
.td-tabs span.on { background: rgba(48,209,88,.2); color: var(--text); }
.td-tabs span.on .ic { color: var(--accent); }
.td-x { position: absolute; right: 18px; top: 22px; color: var(--muted); }
.pane { position: absolute; left: 20px; right: 20px; top: 66px; bottom: 16px; opacity: 0; transform: translateY(8px); transition: opacity .3s, transform .4s; }
.pane.on { opacity: 1; transform: none; }
.ev { font: 400 12px/1.4 var(--ui); color: var(--muted); margin-bottom: 14px; }
.ev b { color: var(--text); font-weight: 500; }
.msg { display: flex; gap: 10px; margin-bottom: 12px; opacity: 0; transform: translateY(10px) scale(.96); transform-origin: 0 0; transition: opacity .35s, transform .45s; }
.msg.in { opacity: 1; transform: none; }
.msg div { padding: 9px 12px; border-radius: 16px; background: #242426; font: 400 13px/1.4 var(--ui); color: #e5e5ea; }
.msg div b { display: block; font-weight: 600; color: var(--text); margin-bottom: 2px; }
.msg .ref { display: inline-flex; align-items: center; gap: 4px; padding: 0 6px; border-radius: 6px; background: rgba(10,132,255,.18); color: #64a8ff; font-weight: 500; }
.input { position: absolute; left: 0; right: 0; bottom: 0; height: 38px; border-radius: 14px; background: rgba(10,10,11,.5); color: var(--quiet); font: 400 13.5px/38px var(--ui); padding: 0 14px; }
.file { display: flex; align-items: center; gap: 12px; height: 54px; padding: 0 12px; margin-bottom: 8px; border-radius: 14px; background: #1c1c1e; font: 500 13px/1.3 var(--ui); }
.file small { display: block; color: var(--muted); font-weight: 400; font-size: 11.5px; }
.thumb { width: 36px; height: 36px; border-radius: 9px; display: grid; place-items: center; background: color-mix(in srgb, var(--c) 22%, #2c2c2e); color: var(--c); font: 700 10px/1 var(--ui); }
.act { position: relative; padding: 0 0 16px 22px; font: 400 12.5px/1.45 var(--ui); color: var(--muted); }
.act::before { content: ""; position: absolute; left: 5px; top: 5px; width: 8px; height: 8px; border-radius: 50%; background: var(--c, #48484a); }
.act::after { content: ""; position: absolute; left: 8.5px; top: 17px; bottom: 2px; width: 1px; background: #2c2c2e; }
.act b { color: var(--text); font-weight: 500; }
.act .st { display: inline-block; margin: 0 2px; height: 18px; line-height: 18px; }
.dev { padding: 12px; margin-bottom: 8px; border-radius: 14px; background: #1c1c1e; font: 500 13px/1.35 var(--ui); }
.dev .row { display: flex; align-items: center; gap: 8px; }
.dev small { display: block; margin-top: 4px; color: var(--muted); font: 400 11.5px/1.3 ui-monospace, Menlo, monospace; }
.dev .pill { margin-left: auto; height: 20px; padding: 0 8px; border-radius: 10px; background: rgba(191,90,242,.2); color: #bf5af2; font: 600 11px/20px var(--ui); }
.dev .pill.open { background: rgba(48,209,88,.18); color: var(--accent); }

/* ---------- Card settings ---------- */
.cset .card { width: 282px; }
.toggles { display: flex; flex-wrap: wrap; gap: 6px; padding: 4px 6px 8px; }
.tog { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 10px; border-radius: 14px; background: rgba(255,255,255,.06); color: var(--muted); font: 500 12px/1 var(--ui); transition: background .3s, color .3s, box-shadow .3s; }
.tog.on { background: rgba(48,209,88,.16); color: var(--text); box-shadow: inset 0 0 0 1.5px rgba(48,209,88,.6); }
.swatches { display: flex; gap: 6px; padding: 4px 6px 6px; }
.sw { height: 28px; padding: 0 10px; border-radius: 14px; display: grid; place-items: center; background: rgba(255,255,255,.06); color: var(--muted); font: 500 12px/1 var(--ui); transition: background .3s, color .3s, box-shadow .3s; }
.sw.on { color: var(--text); box-shadow: inset 0 0 0 1.5px var(--accent); }
.card .est { display: none; }
.f-est .card .est { display: inline-flex; }
.cset.f-nodue .card .due { display: none; }
.cset.c-bundle .card[data-b] { background: color-mix(in srgb, var(--bc) 24%, #242426); }
.cset.c-own .card.own { background: color-mix(in srgb, #ff375f 30%, #242426); }

@media (prefers-reduced-motion: reduce) { .app *, .chapter, .pop, .roles { transition: none !important; } }

/* ---------- Space list view ---------- */
.slist { position: absolute; inset: 0; opacity: 0; transition: opacity .4s; pointer-events: none; }
.v-list .slist { opacity: 1; }
.v-list .cover, .timeline .cover { height: 96px; }
.v-list .cover > b, .timeline .cover > b { font-size: 34px; }
.v-list .members, .timeline .members { opacity: 0; }
.members { transition: opacity .3s; }
.cover > b { transition: font-size .5s; }
.slist .lsec { background: rgba(255,255,255,.03); }
.slist .lsec-h .ic { color: #d1d1d6; width: 16px; height: 16px; }
.slist .lsec-h .g { width: 12px; height: 12px; color: var(--quiet); }
.slist .lsec-h em { color: var(--muted); }
.v-list .cards { opacity: 0; transform: translateY(-20px); }
.sl-in { opacity: 0; transform: translateY(12px); transition: opacity .4s, transform .5s; }
.v-list .sl-in { opacity: 1; transform: none; transition-delay: calc(var(--d) * 35ms); }
.sloc { position: absolute; left: 40px; height: 28px; display: flex; align-items: center; gap: 8px; font: 600 12.5px/1 var(--ui); white-space: nowrap; }
.sloc .ic { color: var(--c); }
.sloc em { color: var(--muted); font-style: normal; font-weight: 500; }
.lsec-h .pic .ic { width: 13px; height: 13px; }

/* who sees what: the timeline dims what a role does not reach */
.tl [data-p] { transition: opacity .4s, transform .6s, box-shadow .3s; }
.timeline .tl .out { opacity: .1; }
.tl-svg { transition: opacity .4s; }
.tl-svg.out { opacity: .1; }

/* ---------- Roles: list and editor share one window ---------- */
.roles { display: grid; }
.rl-list, .rl-edit { grid-area: 1 / 1; transition: opacity .35s, transform .5s; }
.rl-edit { opacity: 0; transform: translateX(24px); }
.roles.edit .rl-list { opacity: 0; transform: translateX(-24px); }
.roles.edit .rl-edit { opacity: 1; transform: none; }
.re-head { display: flex; align-items: center; gap: 12px; margin: 16px 0 4px; }
.re-head .sq { width: 26px; height: 26px; border-radius: 8px; background: var(--c); }
.re-name { font: 600 18px/1 var(--ui); }
.re-head .seg { margin: 0 0 0 auto; }
.re-sec { margin: 16px 0 8px; color: var(--muted); font: 500 12px/1 var(--ui); }
.re-proj { display: flex; align-items: center; gap: 10px; height: 38px; margin-bottom: 4px; padding: 0 10px; border-radius: 12px; background: rgba(255,255,255,.035); font: 500 13px/1 var(--ui); }
.re-proj .nm { width: 180px; }
.re-locs { display: flex; gap: 6px; opacity: .3; transition: opacity .3s; transition-delay: calc(var(--w) * 90ms); }
.lchip { display: inline-flex; align-items: center; gap: 5px; height: 22px; padding: 0 8px; border-radius: 8px; background: rgba(255,255,255,.07); font: 600 11px/1 var(--ui); }
.lchip .ic { width: 12px; height: 12px; color: #64d2ff; }
.re-locs .none { color: var(--quiet); font-size: 12px; }
.tg { position: relative; margin-left: auto; width: 34px; height: 20px; border-radius: 10px; background: #3a3a3c; transition: background .3s; transition-delay: calc(var(--w) * 90ms); }
.tg::after { content: ""; position: absolute; left: 2px; top: 2px; width: 16px; height: 16px; border-radius: 50%; background: #d1d1d6; transition: transform .35s; transition-delay: calc(var(--w) * 90ms); }
.roles.grant .re-proj.g .tg { background: var(--accent); }
.roles.grant .re-proj.g .tg::after { transform: translateX(14px); background: #fff; }
.roles.grant .re-proj.g .re-locs { opacity: 1; }
.re-ops { display: grid; grid-template-columns: 1fr 1fr; gap: 2px 22px; }
.re-gh { margin: 6px 0 4px; font: 600 12.5px/1 var(--ui); }
.re-op { display: flex; align-items: center; gap: 9px; height: 25px; font: 400 12.5px/1 var(--ui); color: #d1d1d6; }
.cb { width: 16px; height: 16px; border-radius: 5px; display: grid; place-items: center; box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.25); transition: background .25s, box-shadow .25s; transition-delay: calc((var(--w) - 4) * 55ms); }
.cb::after { content: ""; width: 8px; height: 4px; border-left: 2px solid #000; border-bottom: 2px solid #000; transform: rotate(-45deg) translate(1px, -1px); opacity: 0; transition: opacity .2s; transition-delay: calc((var(--w) - 4) * 55ms); }
.roles.perm .re-op.y .cb { background: var(--accent); box-shadow: none; }
.roles.perm .re-op.y .cb::after { opacity: 1; }

/* ---------- Text moves around the stage ---------- */
.copy { inset: 0; top: 0; left: 0; width: auto; pointer-events: none; }
.chapter { width: min(380px, 28vw); }
.chapter[data-side="L"] { left: max(32px, 6vw); transform: translate(-36px, -50%); }
.chapter[data-side="R"] { left: auto; right: max(32px, 6vw); transform: translate(36px, -50%); }
.chapter.on { transform: translate(0, -50%); }
/* small captions in the margin while a screen stands in the middle */
.chapter[data-side="C"] { left: max(24px, 3vw); width: 150px; transform: translate(-20px, -50%); }
.chapter[data-side="C"].on { transform: translate(0, -50%); }
.chapter[data-side="C"] small { font-size: 12px; }
.chapter[data-side="C"] h2 { margin: 6px 0 8px; font-size: 24px; }
.chapter[data-side="C"] p { font-size: 13.5px; line-height: 20px; }

/* ================= v3: centred compositions and morphing ================= */
/* the headline stands over the screen, in the middle */
.copy { position: absolute; left: 0; right: 0; top: 0; bottom: auto; height: var(--head, 160px); width: auto; z-index: 200; pointer-events: none; }
.chapter, .chapter[data-side] { left: 50%; right: auto; top: 54%; width: min(760px, 92vw); text-align: center; transform: translate(-50%, calc(-50% + 14px)); }
.chapter.on, .chapter[data-side].on { transform: translate(-50%, -50%); }
.chapter h2 { margin: 8px 0 8px; font-size: clamp(28px, 2.6vw, 40px); }
.chapter p { max-width: 560px; margin: 0 auto; font-size: 16px; line-height: 24px; }
.chapter small { font-size: 13px; }

/* morph actors */
.mx { position: absolute; overflow: hidden; }
.face { position: absolute; left: 0; top: 0; }
.chrome { position: absolute; inset: 0; pointer-events: none; }
.pbox .cbg { position: absolute; left: 0; top: 0; }
.pbox .cbg path { fill: var(--card); }
.pbox .notch { position: absolute; left: 244px; top: 7px; display: flex; gap: 14px; color: var(--quiet); }
.pbox .chip-st { position: absolute; left: 18px; top: 18px; height: 22px; padding: 0 10px; border-radius: 11px; background: color-mix(in srgb, var(--s) 16%, transparent); color: var(--s); font: 600 11px/22px var(--ui); white-space: nowrap; }
.pbox .name { position: absolute; left: 18px; top: 54px; display: flex; align-items: center; gap: 12px; font: 600 16px/1.2 var(--serif); white-space: nowrap; }
.pbox .foot { position: absolute; left: 18px; top: 96px; width: 270px; display: flex; align-items: center; justify-content: space-between; }
.pbox .meta { color: var(--muted); font-size: 11.5px; margin-left: 14px; }
.headf, .locf, .shf, .lanef { display: flex; align-items: center; gap: 8px; white-space: nowrap; }
.headf { position: absolute; left: 14px; top: 10px; font: 600 14px/20px var(--ui); }
.headf .ic { color: #d1d1d6; width: 16px; height: 16px; }
.headf .g { width: 12px; height: 12px; color: var(--quiet); }
.locf { height: 26px; padding-left: 2px; font: 600 12.5px/1 var(--ui); }
.locf .ic { color: var(--c); }
.locf em, .shf em, .lanef em { color: var(--muted); font-style: normal; font-weight: 500; }
.shf { position: absolute; left: 16px; top: 13px; font: 600 12.5px/1 var(--ui); }
.lanef { position: absolute; left: 12px; top: 8px; font: 600 12.5px/1 var(--ui); }
.rowf { position: relative; width: 1248px; height: 32px; font-size: 13px; }
.rowf > span { position: absolute; top: 0; height: 100%; display: flex; align-items: center; gap: 8px; white-space: nowrap; }
.rowf .k { left: 28px; color: var(--quiet); font-size: 11px; }
.rowf .t { left: 96px; font-weight: 500; }
.rowf .p { left: 820px; font-size: 12px; }
.rowf .p .ic { color: var(--c); }
.rowf .u { left: 990px; font-size: 12.5px; font-weight: 500; }
.rowf .s { left: 1150px; }
.space .rowf .u { left: 980px; }
.barf { position: absolute; left: 0; top: 0; width: 900px; height: 24px; padding: 0 10px; font: 600 12px/24px var(--ui); white-space: nowrap; }
.barf i { position: absolute; top: 0; bottom: 0; background: repeating-linear-gradient(-45deg, rgba(0,0,0,.2) 0 3px, transparent 3px 7px); }
.barf span { position: relative; }
.cardf { position: relative; width: 282px; height: 76px; padding: 10px 13px; }
.cardf .k { font: 500 11px/1 var(--ui); color: #86868b; }
.cardf .t { margin-top: 6px; font: 500 13.5px/1.2 var(--ui); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cardf .m { position: absolute; left: 13px; right: 13px; bottom: 10px; display: flex; align-items: center; gap: 6px; }
.cardf .m .avatar { margin-left: auto; }
.cardf .est { display: none; }
.mx.task.ring { box-shadow: inset 0 0 0 2px var(--accent); }
.mx.bar.hot { box-shadow: 0 0 0 2px rgba(248,113,113,.9); }

/* roles on their own: the list, then the editor of one role beside it */
.screen .app { transition: opacity .5s, transform .6s; }
.screen.solo .app { opacity: 0; transform: scale(.96); }
.roles.ls, .roles.ed { left: auto; display: block; }
.roles.ls { left: 330px; top: 70px; width: 620px; transition: opacity .4s, transform .6s, left .6s; }
.roles.ls.shift { left: 0; }
.roles.ed { left: 650px; top: 30px; width: 630px; opacity: 0; transform: translateX(60px) scale(.97); transition: opacity .4s, transform .6s; }
.roles.ed.on { opacity: 1; transform: none; }
.roles.ed.grant .re-proj.g .tg { background: var(--accent); }
.roles.ed.grant .re-proj.g .tg::after { transform: translateX(14px); background: #fff; }
.roles.ed.grant .re-proj.g .re-locs { opacity: 1; }
.roles.ed.perm .re-op.y .cb { background: var(--accent); box-shadow: none; }
.roles.ed.perm .re-op.y .cb::after { opacity: 1; }
.rtoast { bottom: 40px; z-index: 50; }

/* project documents */
.list { transition: opacity .4s, transform .5s; }
.docs .list { opacity: 0; transform: translateY(-16px); }
.docs-grid { position: absolute; left: 16px; top: 84px; display: grid; grid-template-columns: 200px repeat(4, 1fr); gap: 14px; width: 1248px; opacity: 0; transition: opacity .4s; pointer-events: none; }
.docs .docs-grid { opacity: 1; }
.page .docs-grid { opacity: 0; }
.dnew { display: grid; justify-items: center; align-content: center; gap: 12px; height: 200px; color: var(--muted); font: 500 13px/1 var(--ui); }
.dnew span { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; background: rgba(48,209,88,.16); color: var(--accent); }
.dnew .ic { width: 22px; height: 22px; }
.dcard { height: 200px; padding: 18px; border-radius: 22px; background: #262628; transform: translateY(18px); opacity: 0; transition: transform .5s, opacity .4s; transition-delay: calc(var(--j) * 70ms); }
.docs .dcard { transform: none; opacity: 1; }
.dcard .dic { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; background: color-mix(in srgb, var(--c) 22%, #1c1c1e); color: var(--c); }
.dcard .dic .ic { width: 24px; height: 24px; }
.dcard b { display: block; margin: 22px 0 18px; font: 600 15px/1.2 var(--ui); }
.dcard small { color: var(--muted); font-size: 12px; line-height: 1.6; }
.page .dcard.pick { transform: scale(1.04); box-shadow: inset 0 0 0 2px var(--accent); }
.doc-page { position: absolute; left: 16px; top: 72px; width: 1248px; height: 636px; display: flex; border-radius: 20px; overflow: hidden; background: #1f1f21; opacity: 0; transform: translateY(24px) scale(.98); transition: opacity .45s, transform .6s; }
.page .doc-page { opacity: 1; transform: none; }
.dtree { width: 250px; padding: 18px 12px; background: #19191b; font: 500 13px/1 var(--ui); }
.dtree .back { color: var(--muted); padding: 4px 8px 18px; }
.dparent { display: flex; align-items: center; gap: 8px; padding: 8px; font-weight: 600; }
.dparent .ic { color: var(--accent); }
.dleaf { display: flex; align-items: center; gap: 8px; height: 34px; padding: 0 12px 0 22px; border-radius: 17px; color: #e5e5ea; }
.dleaf .ic { color: var(--muted); }
.dleaf.on { background: rgba(48,209,88,.16); color: var(--accent); }
.dleaf.on .ic { color: var(--accent); }
.dbody { flex: 1; padding: 20px 60px; font: 400 14px/1.6 var(--ui); color: #e5e5ea; }
.dhint { color: var(--muted); font-size: 12.5px; }
.dbody h1 { margin: 26px 0 16px; font: 700 30px/1.2 var(--ui); color: var(--text); }
.dbody h3 { margin: 18px 0 6px; font: 600 18px/1.3 var(--ui); color: var(--text); }
.dbody p { margin: 0; }
.callout { display: flex; gap: 12px; padding: 14px 18px; border-radius: 16px; background: #2a2a2c; }
.mdate { color: var(--muted); }
.mper, .mtask, .mdoc { display: inline-flex; align-items: center; gap: 5px; padding: 0 6px; border-radius: 7px; transition: background .4s, box-shadow .4s; }
.mtask i { width: 7px; height: 7px; border-radius: 50%; background: #ff9f0a; }
.mdoc { color: #64a8ff; text-decoration: underline; }
.page .mper, .page .mtask, .page .mdoc { background: rgba(255,255,255,.07); }
.chk { display: flex; align-items: center; gap: 10px; height: 30px; }
.cb2 { width: 16px; height: 16px; border-radius: 4px; box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.3); }
.chk.done { color: var(--muted); text-decoration: line-through; }
.chk.done .cb2 { background: #64a8ff; box-shadow: none; }

/* server and backups */
.inf { position: absolute; inset: 0; background: radial-gradient(900px 500px at 50% 40%, #121418, #0a0a0b 75%); font: 400 13px/1.4 var(--ui); }
.inf-top { position: absolute; left: 24px; right: 24px; top: 18px; height: 44px; display: flex; align-items: center; gap: 10px; padding: 0 16px; border-radius: 22px; background: rgba(22,22,24,.82); font: 600 14px/1 var(--ui); }
.inf-top .okp { margin-left: auto; height: 26px; padding: 0 12px; border-radius: 13px; background: rgba(48,209,88,.16); color: var(--accent); font: 600 12px/26px var(--ui); transition: background .4s, color .4s; }
.live { width: 9px; height: 9px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px rgba(48,209,88,.18); animation: live 1.6s ease-in-out infinite; }
.rack { position: absolute; left: 60px; top: 110px; width: 560px; display: grid; gap: 14px; }
.unit { display: flex; align-items: center; gap: 18px; height: 108px; padding: 0 24px; border-radius: 20px; background: linear-gradient(#1f1f22, #18181a); box-shadow: inset 0 1px 0 rgba(255,255,255,.07), 0 20px 40px rgba(0,0,0,.4); }
.unit b { display: block; font: 600 17px/1.2 var(--ui); }
.unit small { color: var(--muted); font-size: 12.5px; }
.leds { display: grid; gap: 6px; }
.leds i { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); animation: led 1.2s steps(2) infinite; animation-delay: calc(var(--i) * 180ms); }
.leds i:nth-child(2) { animation-delay: calc(var(--i) * 180ms + 300ms); }
.leds i:nth-child(3) { background: #0a84ff; animation-delay: calc(var(--i) * 180ms + 600ms); }
.slots { margin-left: auto; display: grid; gap: 7px; }
.slots i { display: block; width: 120px; height: 4px; border-radius: 2px; background: rgba(255,255,255,.08); }
.guard { display: flex; align-items: center; gap: 10px; height: 46px; padding: 0 18px; border-radius: 16px; background: rgba(10,132,255,.12); color: #64a8ff; font: 600 13.5px/1 var(--ui); }
.icards { position: absolute; left: 660px; top: 110px; width: 560px; display: grid; gap: 14px; }
.icard { padding: 18px 22px; border-radius: 20px; background: #1c1c1e; }
.icard h4 { margin: 0 0 4px; font: 600 16px/1.2 var(--ui); }
.icard p { margin: 0; color: var(--muted); }
.spark { width: 100%; height: 70px; margin-top: 10px; }
.spark path { fill: none; stroke: var(--accent); stroke-width: 2.5; stroke-linejoin: round; }
.relr { display: flex; align-items: center; gap: 10px; height: 38px; margin-top: 6px; padding: 0 12px; border-radius: 12px; background: rgba(255,255,255,.035); font: 600 13px/1 var(--ui); transition: opacity .4s, transform .5s, background .4s; }
.relr em { margin-left: auto; color: var(--muted); font: 400 12px/1 var(--ui); font-style: normal; }
.dotc { width: 9px; height: 9px; border-radius: 50%; background: var(--accent); }
.relr.bad .dotc { background: #ff453a; }
.relr.bad { background: rgba(255,69,58,.12); }
.relr.back { background: rgba(48,209,88,.12); }
.relr.bad, .relr.back { opacity: 0; transform: translateY(10px); }
.fail .relr.bad { opacity: 1; transform: none; }
.fail .relr.back { opacity: 1; transform: none; transition-delay: .6s; }
.bk-db { position: absolute; left: 70px; top: 230px; display: grid; justify-items: center; gap: 6px; text-align: center; }
.bk-db b { font: 600 16px/1.2 var(--ui); }
.bk-db small { color: var(--muted); }
.cyl { width: 96px; height: 120px; border-radius: 50% / 16%; background: linear-gradient(#1e4b70, #132a3e); box-shadow: inset 0 -10px 0 rgba(0,0,0,.2), inset 0 0 0 1.5px rgba(0,172,255,.45); margin-bottom: 8px; }
.cyl.sm { width: 58px; height: 70px; background: linear-gradient(#1d4d3c, #11281f); box-shadow: inset 0 0 0 1.5px rgba(0,255,168,.45); }
.bk-axis { position: absolute; left: 290px; top: 230px; width: 920px; display: flex; justify-content: space-between; }
.bk-line { position: absolute; left: -60px; right: 30px; top: 35px; height: 2px; background: linear-gradient(90deg, rgba(0,172,255,.6), rgba(0,255,168,.4)); z-index: -1; transform-origin: 0 50%; transform: scaleX(0); transition: transform 1.2s; }
.snaps .bk-line { transform: none; }
.snap { display: grid; justify-items: center; gap: 4px; text-align: center; opacity: 0; transform: translateY(16px); transition: opacity .4s, transform .5s; transition-delay: calc(var(--i) * 220ms + 200ms); }
.snaps .snap { opacity: 1; transform: none; }
.snap b { font: 600 14px/1 var(--ui); }
.snap small { color: var(--muted); font-size: 11.5px; }
.bk-off { position: absolute; left: 470px; top: 548px; width: 340px; display: grid; justify-items: center; gap: 4px; padding: 20px; border-radius: 20px; background: #17362c; box-shadow: inset 0 0 0 1.5px rgba(0,255,168,.35); text-align: center; opacity: 0; transform: translateY(20px); transition: opacity .4s .5s, transform .6s .5s; }
.off .bk-off { opacity: 1; transform: none; }
.bk-off b { font: 600 16px/1.2 var(--ui); }
.bk-off small { color: rgba(245,245,247,.6); }
.lock { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: rgba(0,255,168,.18); color: #00ffa8; margin-bottom: 4px; }
.bk-path { position: absolute; left: 0; top: 0; pointer-events: none; }
.bk-path path { fill: none; stroke: rgba(0,255,168,.6); stroke-width: 2; stroke-dasharray: 6 6; opacity: 0; transition: opacity .4s; }
.off .bk-path path { opacity: 1; animation: dash-march 1.2s linear infinite; }

/* the end: everything folds into the button */
.cta { position: absolute; left: 50%; top: 50%; z-index: 300; display: grid; justify-items: center; gap: 22px; opacity: 0; pointer-events: none; text-align: center; }
.cta h2 { margin: 0; font: 500 clamp(32px, 3.4vw, 52px)/1.05 "Source Serif 4", Georgia, serif; }

/* ================= v4: centre, left, right; features lifted over a blurred page ================= */
.chapter[data-side="L"], .chapter[data-side="R"] { top: calc(50vh); width: min(360px, 26vw); text-align: left; }
.chapter[data-side="L"] { left: max(32px, 5vw); transform: translate(-30px, -50%); }
.chapter[data-side="R"] { left: auto; right: max(32px, 5vw); transform: translate(30px, -50%); }
.chapter[data-side="L"].on, .chapter[data-side="R"].on { transform: translate(0, -50%); }
.chapter[data-side="L"] p, .chapter[data-side="R"] p { margin: 0; }
.screen .app { transition: opacity .5s, transform .6s, filter .5s; }
.screen.blur .app { filter: blur(7px) brightness(.5) saturate(.8); transform: scale(.97); }
.lift { position: absolute; z-index: 60; opacity: 0; transform: translateY(26px) scale(.94); transition: opacity .4s, transform .6s cubic-bezier(.2,.8,.2,1); pointer-events: none;
  filter: drop-shadow(0 40px 60px rgba(0,0,0,.6)); }
.lift.on { opacity: 1; transform: none; }
.pop.big { z-index: 60; transform-origin: 100% 0; }
.pop.big.on { transform: scale(1.22); }
.l-sprint { left: 330px; top: 120px; width: 620px; }
.sprint-card { padding: 22px 24px; border-radius: 24px; background: #262628; box-shadow: inset 0 1px 0 rgba(255,255,255,.07); font: 400 13px/1.4 var(--ui); }
.sc-h { display: flex; align-items: center; gap: 10px; font: 600 18px/1 var(--ui); }
.sc-h span { color: var(--muted); font: 500 13px/1 var(--ui); }
.sc-h .sc-pill { margin-left: auto; height: 24px; padding: 0 10px; border-radius: 12px; background: rgba(100,210,255,.16); color: #64d2ff; font: 600 12px/24px var(--ui); }
.sc-prog { margin: 20px 0 16px; }
.sc-bar { height: 8px; border-radius: 4px; background: rgba(255,255,255,.08); overflow: hidden; margin-bottom: 8px; }
.sc-bar i { display: block; height: 100%; background: #64d2ff; border-radius: 4px; transform-origin: 0 50%; transform: scaleX(0); transition: transform 1s .3s; }
.l-sprint.on .sc-bar i { transform: none; }
.sc-prog span { color: var(--muted); }
.sc-prog b { color: var(--text); }
.sc-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.sc-tiles div { padding: 12px 14px; border-radius: 14px; background: rgba(255,255,255,.04); }
.sc-tiles b { display: block; font: 600 20px/1.2 var(--ui); }
.sc-tiles small { color: var(--muted); font-size: 11.5px; }
.sc-burn { margin-top: 14px; padding: 12px 14px; border-radius: 14px; background: rgba(255,255,255,.04); }
.sc-burn small { color: var(--muted); }
.sc-burn svg { display: block; width: 100%; height: 110px; margin-top: 6px; }
.sc-burn .ideal { fill: none; stroke: rgba(255,255,255,.25); stroke-width: 2; stroke-dasharray: 6 6; }
.sc-burn .real { fill: none; stroke: #64d2ff; stroke-width: 3; stroke-linejoin: round; stroke-dasharray: 600; stroke-dashoffset: 600; transition: stroke-dashoffset 1.2s .4s; }
.l-sprint.on .sc-burn .real { stroke-dashoffset: 0; }
.l-doc { left: 90px; top: 50px; }
.l-doc .doc-page { position: relative; left: 0; top: 0; width: 1100px; height: 620px; opacity: 1; transform: none; box-shadow: inset 0 1px 0 rgba(255,255,255,.06); }
.l-doc.on .mper, .l-doc.on .mtask, .l-doc.on .mdoc { background: rgba(255,255,255,.08); }
.l-side { left: 660px; top: 30px; width: 560px; height: 660px; }
.l-side .td-side { position: absolute; inset: 0; border-radius: 24px; overflow: hidden; background: #161618; box-shadow: inset 0 1px 0 rgba(255,255,255,.06); }
.l-side .pane { left: 24px; right: 24px; top: 72px; }
.l-side .msg div, .l-side .file, .l-side .act, .l-side .dev { font-size: 14px; }
.l-rel { left: 640px; top: 170px; width: 560px; }
.l-rel .icard { padding: 24px 26px; background: #232325; border-radius: 24px; }
.l-rel .relr { height: 46px; font-size: 15px; }
/* card settings on the morphing board */
.f-est .cardf .est { display: inline-flex; }
.f-nodue .cardf .due { display: none; }
.mx.task::before { content: ""; position: absolute; inset: 0; border-radius: inherit; background: transparent; transition: background .5s; pointer-events: none; }
.c-bundle .mx.task[data-b]::before { background: color-mix(in srgb, var(--bc) 24%, transparent); }
.c-own .mx.task.own::before { background: color-mix(in srgb, #ff375f 32%, transparent); }

/* ================= v5: hero, rail, words, the mark ================= */
.w { display: inline-block; }
.wi { display: inline-block; will-change: transform, opacity, filter; transition: opacity .18s linear, transform .18s linear, filter .18s linear; }
.rail { position: absolute; left: 18px; top: 50%; z-index: 240; display: grid; gap: 2px; transform: translateY(-50%); transition: opacity .4s; }
.rail a { display: flex; align-items: center; gap: 8px; height: 26px; color: var(--quiet); font: 500 12px/1 "Onest", sans-serif; text-decoration: none; }
.rail i { width: 14px; height: 2px; border-radius: 1px; background: currentColor; transition: width .3s, background .3s; }
.rail span { width: 16px; }
.rail b { font-weight: 500; opacity: 0; transform: translateX(-6px); transition: opacity .3s, transform .3s; white-space: nowrap; }
.rail:hover b, .rail a.on b { opacity: 1; transform: none; }
.rail a.past { color: #8e8e93; }
.rail a.on { color: var(--text); }
.rail a.on i { width: 26px; background: var(--accent); }
.cta-logo { position: absolute; left: 50%; z-index: 290; width: auto; color: #edf2f6; transform: translate(-50%, -50%); opacity: 0; pointer-events: none; }
.cta { top: 60%; transform: translate(-50%, 16px); gap: 18px; }

@media (max-width: 767px) {
  .rail, .tag { display: none; }
  .screen.blur .app { filter: none; opacity: .18; transform: none; }
  .chapter h2 { font-size: 24px; }
  .chapter p { font-size: 14px; line-height: 20px; }
}
.chapter[data-side="L"] { left: max(84px, 6vw); }
.rail a.on b { opacity: 0; }
.rail:hover a b { opacity: 1; transform: none; }
/* the focused role reads as a hovered row, like in the app: lighter, no coloured ring */
.role.hi { background: rgba(255,255,255,.09); box-shadow: none; }
.roles.ed { top: 70px; }
/* documents layer */
.page .docs-grid { opacity: 1; }
.dbody { padding: 18px 56px; font-size: 13.5px; }
.dhint { display: flex; align-items: center; gap: 6px; }
.dhint .avatar { margin-left: -2px; }
.dbody h1 { margin: 16px 0 12px; font-size: 26px; }
.dbody h3 { margin: 14px 0 4px; font-size: 16px; }
.chk { height: 28px; }
.chk.done { text-decoration: none; }
.chk.done .mtask { text-decoration: line-through; }
.mtask em { color: var(--muted); font-style: normal; font-size: 12px; }
.mdate { display: inline-flex; align-items: center; gap: 4px; }
.mdate .ic { width: 12px; height: 12px; }
.dtbl { border-collapse: collapse; margin-top: 6px; font-size: 13px; }
.dtbl th, .dtbl td { padding: 6px 14px; border: 1px solid rgba(255,255,255,.12); text-align: left; }
.dtbl th { font-weight: 600; background: rgba(255,255,255,.04); }
.peek .mtask { box-shadow: inset 0 0 0 1.5px rgba(48,209,88,.7); background: rgba(48,209,88,.12); }
/* menu tabs size to their words, so the ring keeps air around «Группировка» */
.pop-tab { flex: 1 1 auto; padding: 0 12px; white-space: nowrap; }
/* the task's four tabs fanned out */
.l-fan { left: 0; top: 0; width: 1280px; height: 720px; filter: none; transform: none; }
.l-fan.on { transform: none; }
.fanp { position: absolute; left: 700px; top: 60px; width: 300px; height: 540px; border-radius: 22px; background: #161618; overflow: hidden;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.07), 0 30px 70px rgba(0,0,0,.6); opacity: 0; transform: rotate(0deg);
  transition: left .7s cubic-bezier(.2,.8,.2,1), top .7s cubic-bezier(.2,.8,.2,1), transform .7s cubic-bezier(.2,.8,.2,1), opacity .4s; transition-delay: calc(var(--i) * 70ms); }
.l-fan.on .fanp { left: var(--x); top: calc(70px + var(--y)); transform: rotate(var(--r)); opacity: 1; }
.fan-h { position: absolute; left: 14px; top: 14px; }
.fan-h span { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 12px; border-radius: 14px; background: rgba(48,209,88,.2); font: 600 12.5px/1 var(--ui); }
.fan-h .ic { color: var(--accent); }
.fanp .pane { left: 14px; right: 14px; top: 58px; bottom: 14px; opacity: 1; transform: none; }
/* the card carries the panel's own tab row and close button, sized to fit all four tabs */
.fanp { width: 320px; }
.fanp .td-tabs { left: 10px; top: 14px; }
.fanp .td-tabs span { gap: 4px; padding: 0 6px; font-size: 10.5px; }
.fanp .td-tabs .ic { width: 12px; height: 12px; }
.fanp .msg { opacity: 1; transform: none; }
.fanp .dev .pill { display: none; }
/* role windows without the breadcrumb line */
.roles.ls .crumbs, .roles.ed .crumbs { display: none; }
.roles.ls > .seg { margin-top: 0; }
.roles.ed .re-head { margin-top: 0; padding-right: 30px; }
/* command palette */
.l-pal { left: 320px; top: 96px; width: 640px; }
.palette { padding: 10px; border-radius: 24px; background: rgba(36,36,38,.97); box-shadow: inset 0 1px 0 rgba(255,255,255,.07); font: 400 14px/1 var(--ui); }
.pl-in { display: flex; align-items: center; gap: 10px; height: 48px; padding: 0 14px; border-radius: 16px; background: rgba(10,10,11,.5); font-size: 16px; margin-bottom: 6px; }
.pl-in .ic { width: 16px; height: 16px; color: var(--muted); }
.pl-in .typed:empty::after { content: "Найти задачу или команду…"; color: var(--quiet); }
.pl-sec { padding: 12px 12px 6px; color: var(--muted); font: 500 12px/1 var(--ui); }
.pl-row { display: flex; align-items: center; gap: 10px; height: 40px; padding: 0 12px; border-radius: 12px; transition: background .2s; }
.pl-row em { color: var(--muted); font-style: normal; font-size: 12.5px; width: 52px; }
.pl-row .ic { color: var(--muted); }
.pl-row.hi { background: rgba(255,255,255,.09); box-shadow: inset 2px 0 0 var(--accent); }
.pl-r { margin-left: auto; }
.palette kbd { display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 7px; background: rgba(255,255,255,.09); color: var(--text); font: 500 12px/1 var(--ui); }
.pl-foot { display: flex; gap: 18px; margin-top: 8px; padding: 12px 12px 4px; border-top: 1px solid rgba(255,255,255,.06); color: var(--muted); font-size: 12.5px; }
.pl-foot span { display: inline-flex; align-items: center; gap: 5px; }
.l-keys { left: 120px; top: 110px; display: flex; gap: 12px; }
.l-keys .keycap { position: relative; left: 0; top: 0; }
.l-keys.on .keycap { animation: press .5s .3s both; }
.l-keys.on .keycap + .keycap { animation-delay: .42s; }
.pop.big.from-left { transform-origin: 0 0; }
/* subgroups: an outlined band per assignee inside each bundle lane, cards compact */
.mx.sub-a { box-shadow: inset 0 0 0 1px rgba(255,255,255,.1); }
.subf { position: absolute; left: 10px; top: 4px; display: flex; align-items: center; gap: 7px; font: 500 12px/18px var(--ui); white-space: nowrap; }
.subf em { color: var(--muted); font-style: normal; }
.subs .cardf .m { opacity: 0; }
.cardf .m { transition: opacity .3s; }
.subs .cardf { padding-top: 7px; } .subs .cardf .t { margin-top: 4px; }
/* no green kicker over the headlines */
.chapter small { display: none; }
.chapter h2 { margin-top: 0; }

/* command palette, as the app draws it: full-bleed input over a hairline, sections, hints on the right */
.l-pal { left: 320px; top: 70px; width: 640px; }
.rpal { border-radius: 14px; overflow: hidden; background: rgba(36,36,38,.96); box-shadow: inset 0 1px 0 rgba(255,255,255,.07); font: 400 14px/1 var(--ui); }
.rp-in { display: flex; align-items: center; height: 58px; padding: 0 20px; border-bottom: 1px solid rgba(255,255,255,.08); font-size: 16px; }
.rp-in .typed:empty::after { content: "Найти задачу или команду…"; color: var(--muted); }
.rp-list { position: relative; padding: 4px; height: 452px; }
.rp-cmds, .rp-res { position: absolute; left: 4px; right: 4px; top: 4px; transition: opacity .3s, transform .4s; }
.rp-res { opacity: 0; transform: translateY(8px); }
.searching .rp-cmds { opacity: 0; transform: translateY(-8px); }
.searching .rp-res { opacity: 1; transform: none; }
.rp-sec { padding: 10px 12px 6px; color: var(--muted); font-size: 11px; }
.rp-row { display: flex; align-items: center; gap: 12px; height: 38px; padding: 0 12px; border-radius: 8px; transition: background .2s; }
.rp-row.sel { background: rgba(255,255,255,.08); }
.rp-ic { width: 16px; height: 16px; display: grid; place-items: center; color: var(--muted); flex: none; }
.rp-l em { color: var(--muted); font-style: normal; margin-right: 8px; }
.rp-h { margin-left: auto; color: var(--muted); font-size: 11px; }
.l-keys { left: 120px; top: 90px; }
/* the shortcut sheet behind «?» */
.l-help { left: 150px; top: 60px; width: 980px; }
.rhelp { padding: 22px 26px; border-radius: 18px; background: rgba(36,36,38,.96); box-shadow: inset 0 1px 0 rgba(255,255,255,.07); font: 400 13.5px/1 var(--ui); }
.rh-t { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; font: 600 18px/1 var(--ui); }
.rh-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.rh-gh { margin-bottom: 8px; color: var(--muted); font-size: 12px; }
.rh-row { display: flex; align-items: center; gap: 12px; height: 34px; }
.rh-k { display: inline-flex; gap: 4px; min-width: 64px; }
.rhelp kbd, .rh-t kbd { display: inline-grid; place-items: center; min-width: 24px; height: 24px; padding: 0 6px; border-radius: 7px; background: rgba(255,255,255,.1); box-shadow: inset 0 -1px 0 rgba(0,0,0,.4); color: var(--text); font: 500 12px/1 var(--ui); }
.l-help .rh-row { opacity: 0; transform: translateX(-8px); transition: opacity .3s, transform .4s; }
.l-help.on .rh-row { opacity: 1; transform: none; }
.l-help.on .rh-g:nth-child(2) .rh-row { transition-delay: .15s; }
.l-help.on .rh-g:nth-child(3) .rh-row { transition-delay: .3s; }
/* all seven sprint metrics */
.l-sprint { top: 70px; width: 680px; left: 300px; }
.sc-tiles { grid-template-columns: repeat(3, 1fr); }
.sc-tiles small { display: block; color: var(--muted); font-size: 11.5px; margin-bottom: 6px; }
.sc-tiles b { font-size: 19px; }
.sc-tiles b.warn { color: #ff9f0a; }
.sc-tiles i { display: block; margin-top: 4px; color: var(--quiet); font-style: normal; font-size: 11px; }
.sc-prog { margin: 16px 0 12px; }
.sc-burn { position: relative; }
.sc-burn svg { height: 96px; }
.sc-leg { position: absolute; right: 14px; top: 12px; display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: 11px; }
.sc-leg i { width: 14px; height: 2px; margin-left: 8px; }
.sc-leg .r { background: #64d2ff; }
.sc-leg .d { background: repeating-linear-gradient(90deg, rgba(255,255,255,.4) 0 4px, transparent 4px 7px); }
.c-status .mx.task::before { background: color-mix(in srgb, var(--sc) 26%, transparent); }

/* the layers figure, from the landing */
  .ly-svg { display: block; width: 100%; height: auto; overflow: visible; }
  .ly-svg polygon, .ly-svg ellipse, .ly-svg path.ly-l { stroke: rgba(255,255,255,.08); stroke-width: 1; stroke-linejoin: round; }
  /* Layers are frosted glass on an opaque base: a faint white sheen on top, a lit rim on the far edges. */
  .ly-slab polygon { stroke: rgba(255,255,255,.1); }
  .ly-slab .ly-t { fill: #141416; } .ly-slab .ly-l { fill: #111113; } .ly-slab .ly-r { fill: #0d0d0f; }
  .ly-svg .ly-sheen { fill: url(#ly-glass); stroke: none; }
  .ly-rim { fill: none; stroke: rgba(255,255,255,.28); stroke-width: 1.2; stroke-linejoin: round; }
  .ly-block .ly-t { fill: #27272b; } .ly-block .ly-l { fill: #1a1a1d; } .ly-block .ly-r { fill: #131315; }
  .ly-block.ly-green .ly-t { fill: #17362c; stroke: rgba(0,255,168,.4); }
  .ly-bar .ly-t { fill: #2a2a2e; } .ly-bar .ly-l, .ly-bar .ly-r { fill: #1a1a1d; }
  .ly-dotw { fill: #5c5c62; }
  .ly-col .ly-t { fill: #1f1f23; } .ly-col .ly-l, .ly-col .ly-r { fill: #151517; }
  .ly-col.ly-blue .ly-t { fill: #12253a; } .ly-col.ly-green .ly-t { fill: #11291f; }
  .ly-card .ly-t { fill: #3a3a40; } .ly-card .ly-l { fill: #26262a; } .ly-card .ly-r { fill: #1d1d20; }
  .ly-card.ly-blue .ly-t { fill: #245a8c; } .ly-card.ly-blue .ly-l { fill: #173c5e; } .ly-card.ly-blue .ly-r { fill: #123049; }
  .ly-card.ly-green .ly-t { fill: #23704f; } .ly-card.ly-green .ly-l { fill: #174a35; } .ly-card.ly-green .ly-r { fill: #123a2a; }
  .ly-slot { stroke: rgba(255,255,255,.14); stroke-width: 1.2; }
  .ly-led { fill: #30d158; }
  .ly-db .ly-l { fill: #132a3e; } .ly-db .ly-t { fill: #1e4b70; stroke: rgba(0,172,255,.5); }
  .ly-copy .ly-l { fill: #11281f; } .ly-copy .ly-t { fill: #1d4d3c; stroke: rgba(0,255,168,.45); }
  .ly-seam { fill: none; stroke: rgba(255,255,255,.2); stroke-width: 1; }
  .ly-lock { fill: none; stroke: #b9ffe4; stroke-width: 1.6; stroke-linejoin: round; }
  .ly-lock rect { fill: rgba(0,255,168,.16); }
  .ly-link { fill: none; stroke: rgba(255,255,255,.14); stroke-width: 1.4; }
  .ly-pulse {
    fill: none; stroke: #3ff0b4; stroke-width: 2.2; stroke-linecap: round;
    stroke-dasharray: 12 160; stroke-dashoffset: 172;
    filter: drop-shadow(0 0 4px rgba(0,255,168,.85));
    animation: ly-pulse 2.6s linear infinite;
  }
  @media (prefers-reduced-motion: reduce) { .ly-pulse { display: none; } }
/* the layers figure fills its screen; one slab is lit at a time */
.inf .ly-wrap { position: absolute; left: 50%; top: 24px; height: 672px; transform: translateX(-50%); aspect-ratio: 400 / 539; }
.inf .ly-svg { height: 100%; width: auto; }
.lyg { transition: opacity .5s; }
.app[data-focus] .lyg { opacity: .22; }
.app[data-focus="mid"] .lyg[data-g="mid"], .app[data-focus="low"] .lyg[data-g="low"] { opacity: 1; }
/* the infra layer is the figure itself, no app frame around it */
.screen.infra .app { background: transparent; box-shadow: none; overflow: visible; }
.screen.infra .inf { background: none; }
.screen.infra .ly-wrap { top: -40px; height: 800px; }
/* the roles list starts right at the search; the close cross keeps its corner */
.roles.ls > .seg { display: none; }
.roles.ls .rbar { margin-top: 0; padding-right: 30px; }
/* burnup: done work climbs towards the scope line */
.sc-burn .scope { fill: none; stroke: rgba(255,255,255,.45); stroke-width: 2; stroke-linejoin: round; }
.sc-burn .fore { fill: none; stroke: rgba(100,210,255,.5); stroke-width: 2; stroke-dasharray: 6 6; }
.sc-leg .sc { background: rgba(255,255,255,.45); }
.sc-leg .d { background: repeating-linear-gradient(90deg, rgba(100,210,255,.6) 0 4px, transparent 4px 7px); }
/* compact subgroup cards keep their due date, priority and assignee on the key line */
.subs .cardf .m { opacity: 1; top: 7px; bottom: auto; left: auto; right: 10px; gap: 5px; transform: scale(.88); transform-origin: right top; }
.subs .cardf .bchip { display: none; }
/* all three slabs at once, each with its note, like the landing figure */
.screen.infra .ly-wrap { left: 300px; transform: none; }
.ly-note { position: absolute; left: 640px; display: flex; align-items: center; gap: 18px; width: 600px; transform: translateY(-50%); opacity: 0; transition: opacity .5s, transform .6s; transition-delay: calc(var(--i) * 160ms); }
.notes .ly-note { opacity: 1; }
.ly-note i { position: relative; flex: none; width: 90px; height: 0; border-top: 1px dashed rgba(255,255,255,.25); }
.ly-note i::after { content: ""; position: absolute; right: -3px; top: -3.5px; width: 6px; height: 6px; border-radius: 50%; background: #3ff0b4; }
.ly-note b { display: block; margin-bottom: 6px; font: 600 22px/1.2 var(--ui); }
.ly-note span { display: block; color: var(--muted); font: 400 16px/1.5 var(--ui); }
.screen.infra .ly-wrap { top: -20px; height: 740px; }
/* stack labels: name, number, a leader to the layer; they become the rail */
.tag { flex-direction: row; transform-origin: 100% 50%; z-index: 260; margin-top: 0; top: 0; }
.tag b { font-weight: 500; opacity: var(--name, 1); }
.tag span { color: var(--quiet); font-size: 13px; }
/* the leader is the rail's dash drawn longer, so the label already looks like the chapter it becomes */
.tag i { width: 28px; height: 2px; border-radius: 1px; background: rgba(245,245,247,.55); }
.tag i::before { display: none; }
.rail { transition: none; }
/* the island, full or compact, in the chosen accent */
.screen.look { --acc: #30d158; }
.screen.look .btn.on { background: color-mix(in srgb, var(--acc) 20%, transparent); transition: background .4s, color .3s; }
.screen.look .btn.on .ic { color: var(--acc); transition: color .4s; }
.screen.look .plus { background: var(--acc); transition: background .4s; }
.isl-x .lbl { display: inline-block; max-width: 140px; overflow: hidden; white-space: nowrap; vertical-align: middle; transition: max-width .45s, opacity .3s; }
/* every part of the island is always there; compact only drops the names next to the icons */
.cl-loc .isl-x .locs .lbl, .cl-vm .isl-x .vms .lbl, .cl-tb .isl-x .tb-in .lbl { max-width: 0; opacity: 0; }
.isl-x .grp .btn, .isl-x .tb-in .btn { transition: color .3s, background .3s, gap .45s, padding .45s; }
.cl-loc .isl-x .locs .btn, .cl-vm .isl-x .vms .btn, .cl-tb .isl-x .tb-in .btn { gap: 0; padding: 0 7px; }
.isl-x .tb-in { display: inline-flex; align-items: center; }
.tb-row { position: absolute; left: 16px; top: 68px; width: 1248px; height: 36px; display: flex; align-items: center; gap: 6px; padding: 0 10px; border-radius: 18px; background: rgba(22,22,24,.6); transition: opacity .3s, transform .4s; z-index: 4; }
.tb-row .search { margin-left: auto; padding-right: 12px; font-size: 12px; }
.cl-tb .tb-row { opacity: 0; transform: translateY(-14px); }
.screen.look .board { transition: top .5s; }
.l-prefs { left: 840px; top: 130px; width: 400px; }
.prefs { padding: 20px 22px; border-radius: 20px; background: rgba(36,36,38,.97); box-shadow: inset 0 1px 0 rgba(255,255,255,.07); font: 400 13.5px/1 var(--ui); }
.pf-h { margin-bottom: 14px; font: 600 17px/1 var(--ui); }
.pf-r { display: flex; align-items: center; justify-content: space-between; height: 40px; color: var(--muted); }
.pf-r .seg { margin: 0; }
.pf-r .seg .on { background: color-mix(in srgb, var(--acc) 22%, transparent); }
.pf-sel { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 10px; border-radius: 10px; background: rgba(10,10,11,.5); color: var(--text); }
.pf-sec { margin: 12px 0 10px; color: var(--muted); }
.pf-sw { display: flex; gap: 10px; margin-bottom: 14px; }
.pf-sw i { width: 26px; height: 26px; border-radius: 50%; background: var(--c); box-shadow: inset 0 0 0 1px rgba(255,255,255,.15); transition: box-shadow .3s; }
.pf-sw i.on { box-shadow: 0 0 0 2px #262628, 0 0 0 4px var(--c); }
.pf-ck { display: flex; align-items: center; gap: 10px; height: 34px; }
.pf-ck .cb { transition-delay: 0s; }
.pf-ck.y .cb { background: var(--acc); box-shadow: none; }
.pf-ck.y .cb::after { opacity: 1; transition-delay: 0s; }
/* the island lifted over the blurred board, large */
.l-isl { left: 40px; top: 300px; width: 1200px; height: 60px; }
.l-isl.on { transform: none; }
.l-isl .island { left: 0; top: 0; width: 1200px; height: 56px; box-shadow: 0 30px 80px rgba(0,0,0,.6); }
.l-isl .tb-row { left: 0; top: 58px; width: 940px; }
.l-isl .island .search { display: none; }
.l-prefs { left: 800px; top: 270px; }
/* the three views share one text; the one on screen is named brighter */
.chapter .vw span { opacity: 0.45; transition: opacity 0.3s, color 0.3s; }
.chapter .vw span.on { opacity: 1; color: var(--fg, #fafafa); }
/* checkbox rows of the display menu */
.pop[data-pop="look"] .pop-item { height: 29px; }
.pop-item.cbx .box { width: 15px; height: 15px; flex: none; display: grid; place-items: center; border-radius: 4px; box-shadow: inset 0 0 0 1.5px #636366; transition: background .25s, box-shadow .25s; }
.pop-item.cbx .box .ic { width: 11px; height: 11px; color: #0a0a0b; opacity: 0; transition: opacity .25s; }
.pop-item.cbx.chk .box { background: var(--accent); box-shadow: none; }
.pop-item.cbx.chk .box .ic { opacity: 1; }
/* the part of the island that just folded or opened */
.isl-x .grp, .isl-x .tb-in { transition: box-shadow .5s, background .5s; }
.isl-x .flash { box-shadow: 0 0 0 1.5px color-mix(in srgb, var(--acc, #30d158) 70%, transparent), 0 0 26px color-mix(in srgb, var(--acc, #30d158) 35%, transparent); }
.isl-x .tb-in { border-radius: 16px; }
/* light theme: the window's content is inverted, not the window, so its dark shadow stays a shadow
   instead of turning into a white glow; the page tone is the app's light page */
.screen.look .app { transition: background .6s; }
.screen.look .app > * { transition: filter .6s; }
.screen.look.lt .app { background: #d8ddee; }
.screen.look.lt .app > * { filter: invert(1) hue-rotate(180deg) saturate(.85) brightness(.94); }
/* light theme, after the app's html.light tokens */
.l-isl .island, .l-isl .ws, .l-isl .logo, .l-isl .grp, .prefs, .pf-sel, .prefs .seg, .prefs .seg span { transition: background .5s, color .5s, box-shadow .5s; }
.screen.look .app { transition: filter .6s, transform .6s; }
.screen.look.lt.blur .app { filter: blur(7px) brightness(.8); }
.lt .l-isl .island { background: rgba(255,255,255,.95); box-shadow: 0 10px 30px rgba(28,32,48,.2); }
.lt .l-isl .logo, .lt .l-isl .ws { color: #1c2030; }
.lt .l-isl .grp, .lt .l-isl .search { background: #eef0f8; }
.lt .l-isl .btn { color: #5a6078; }
.lt .l-isl .btn.on { color: #1c2030; background: color-mix(in srgb, var(--acc, #30d158) 20%, transparent); }
.lt .prefs { background: #fff; color: #1c2030; box-shadow: 0 20px 50px rgba(28,32,48,.25); }
.lt .pf-r, .lt .pf-sec { color: #5a6078; }
.lt .pf-sel, .lt .prefs .seg { background: #eef0f8; color: #1c2030; }
.lt .prefs .seg span { color: #5a6078; }
.lt .prefs .seg .on { color: #1c2030; }
.lt .pf-sw i { box-shadow: inset 0 0 0 1px rgba(28,32,48,.15); }
.lt .pf-sw i.on { box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--c); }
.lt .pf-ck .cb { box-shadow: inset 0 0 0 1.5px rgba(28,32,48,.3); }
/* centred headlines are as large as the side ones */
@media (min-width: 768px) {
  .chapter[data-side="C"] h2 { margin: 6px 0 12px; font-size: clamp(36px, 3.6vw, 54px); line-height: 1.08; }
  .chapter[data-side="C"] { width: min(1120px, 90vw); }
  .chapter[data-side="C"] p { font-size: 18px; line-height: 27px; }
}
/* what the island just did, said under it */
.isl-say { position: absolute; left: 0; top: 112px; font: 500 15px/1 var(--ui); color: var(--text); opacity: 0; transform: translateY(6px); transition: opacity .35s, transform .45s; }
.isl-say::before { content: ""; display: inline-block; width: 8px; height: 8px; margin-right: 10px; border-radius: 50%; background: var(--acc, #30d158); vertical-align: 1px; }
.isl-say.on { opacity: 1; transform: none; }
/* the caption keeps its own dark pill, so it reads over the light theme too */
.isl-say { padding: 9px 14px; border-radius: 16px; background: rgba(22,22,24,.9); box-shadow: 0 8px 24px rgba(0,0,0,.3); }
/* grouped timeline: the sprint frame would cut through the group bands */
.tl-sub .tl-frame, .tl-sub .tl-lh { opacity: 0; transition: opacity .3s; }

/* type scale: the hero leads, every chapter headline shares one size, the button headline sits between */
.cta h2 { font-size: clamp(28px, 2.6vw, 40px); letter-spacing: -.012em; }
/* room around the button: its glow needs air, or the headline sits in it */
.cta { gap: 48px; }
@media (min-width: 768px) {
  .chapter h2, .chapter[data-side] h2 { font-size: clamp(36px, 3.6vw, 54px); line-height: 1.06; letter-spacing: -.012em; }
  .chapter[data-side="L"] p, .chapter[data-side="R"] p { font-size: 18px; line-height: 27px; }
}
/* hero words fall onto each other and settle */
.wi.drop { opacity: 0; animation: drop .9s cubic-bezier(.2,.9,.25,1.15) both; }
@media (prefers-reduced-motion: reduce) { .wi.drop { animation: none; opacity: 1; } .wi { transition: none; filter: none !important; transform: none !important; } }

}

/* ---------- Feed: phones and reduced motion (story.js feed()) ---------- */
#tour.feed {
  .sticky { position: static; height: auto; overflow: visible; }
  .world, .rail, .tag, .copy { display: none; }
  .feed-list { display: grid; gap: 64px; padding: 32px 16px 0; }
  .feed-copy { display: grid; }
  .feed-copy .chapter, .feed-copy .chapter[data-side] { grid-area: 1 / 1; position: static; left: auto; top: auto; width: auto; transform: none; text-align: left; opacity: 0; transition: opacity .45s ease; }
  .feed-copy .chapter.on { opacity: 1; }
  .feed-copy .chapter h2 { margin: 0 0 8px; font-size: 28px; line-height: 1.1; }
  .feed-copy .chapter p { max-width: none; margin: 0; font-size: 15px; line-height: 22px; opacity: 1; transform: none; }
  .feed-frame { position: relative; margin-top: 18px; overflow: hidden; border-radius: 14px; }
  .feed-frame .screen { position: absolute; left: 0; top: 0; margin: 0; opacity: 1; transform: scale(var(--k, .3)); transform-origin: 0 0; }
  .cta { position: static; display: grid; justify-items: center; gap: 18px; padding: 88px 16px 32px; opacity: 1; transform: none; pointer-events: auto; }
  .cta-logo { position: static; height: 72px; transform: none; opacity: 1; }
  .cta h2 { font-size: 26px; }
}

/* ---------- Phone: close-ups (story.js lens) ---------- */
/* The shot follows the scroll directly; a step change re-frames it in story.js (lensAt), since a CSS
   transition on a transform that changes every frame trails the finger. The headline hangs from under
   the site header, and the screens start below the tallest headline (--head, story.js calibrate). */
#tour.mob {
  .chapter, .chapter[data-side] { left: 50%; right: auto; top: var(--head-top, 64px); width: calc(100vw - 32px); text-align: center; transform: translate(-50%, 10px); }
  .chapter.on, .chapter[data-side].on { transform: translate(-50%, 0); }
  /* the old headline goes at once: two texts fading at the same spot read as a double exposure */
  .chapter:not(.on) { transition: none; }
  /* the screens slide beneath this band when they change, so they never run through the text */
  .band { position: absolute; left: 0; right: 0; top: 0; z-index: 150; height: var(--head); background: linear-gradient(var(--bg) calc(100% - 14px), transparent); opacity: 0; pointer-events: none; }
  /* what an iPhone can't keep up with while scrolling: blur behind menus, blur on words, wide soft shadows */
  .pop, .member { backdrop-filter: none; -webkit-backdrop-filter: none; }
  .wi { will-change: auto; transition: none; }
  .app { box-shadow: 0 0 0 1.5px rgba(255,255,255,.07), 0 16px 40px rgba(0,0,0,.6); }
  .chapter h2, .chapter[data-side] h2 { margin: 0 0 8px; font-size: 26px; line-height: 1.1; }
  .chapter p, .chapter[data-side] p { max-width: none; font-size: 14.5px; line-height: 21px; }
}
/* phone: the server notes get narrower and larger, so the figure and its notes fit one readable frame */
#tour.mob .ly-note { width: 380px; gap: 12px; }
#tour.mob .ly-note i { width: 40px; }
#tour.mob .ly-note b { font-size: 30px; }
#tour.mob .ly-note span { font-size: 22px; line-height: 1.4; }

/* ---------- Bundle window, as BundleDialog draws it; its relations open beside it ---------- */
#tour {
  .l-bdl { left: 260px; top: 36px; width: 760px; height: 648px; transition: opacity .4s, transform .6s cubic-bezier(.2,.8,.2,1), left .6s cubic-bezier(.2,.8,.2,1); }
  .l-bdl.aside { left: 50px; }
  .bdl { display: flex; flex-direction: column; height: 100%; overflow: hidden; border-radius: 22px; background: #242426; box-shadow: 0 40px 120px rgba(0,0,0,.7); font: 400 13px/1.3 var(--ui); }
  .bdl-h { display: flex; align-items: center; gap: 12px; padding: 22px 22px 16px; color: var(--muted); }
  .bdl-h .btile { width: 34px; height: 34px; border-radius: 11px; }
  .bdl-h .btile .ic { width: 18px; height: 18px; }
  .bdl-h b { flex: 1; color: var(--text); font: 600 20px/1 var(--ui); }
  .bdl-h .cnt { font-size: 12px; }
  .bdl-bar { display: flex; align-items: center; gap: 8px; padding: 0 16px 8px; }
  .bdl-bar .search { flex: 1; height: 32px; padding: 0 12px; border-radius: 12px; font-size: 12.5px; }
  .bdl-bar .btn, .bdl-f .btn { height: 30px; background: rgba(255,255,255,.06); }
  .bdg { padding: 4px 12px; }
  .bdg-h { display: flex; align-items: center; gap: 8px; height: 32px; padding: 0 10px; color: var(--muted); font: 600 12px/1 var(--ui); }
  .bdg-h em { font-style: normal; color: var(--quiet); }
  .bdr { display: flex; align-items: center; gap: 10px; height: 40px; padding: 0 10px; border-radius: 10px; }
  .bdr + .bdr { box-shadow: inset 0 1px 0 rgba(255,255,255,.05); }
  .bdr .grip { width: 6px; height: 14px; background: radial-gradient(circle, rgba(255,255,255,.28) 1px, transparent 1.4px) 0 0 / 3px 4px; }
  .bdr .k { width: 50px; color: var(--quiet); font-size: 11.5px; }
  .bdr .t { flex: 1; color: var(--text); }
  .bdl-f { display: flex; gap: 8px; margin-top: auto; padding: 14px 16px; }
  .l-bdrel { left: 850px; top: 150px; width: 380px; }
  .bdrel { padding: 20px; border-radius: 20px; background: #242426; box-shadow: 0 40px 120px rgba(0,0,0,.7); font: 400 13px/1.3 var(--ui); }
  .bdrel-h { margin-bottom: 4px; font: 600 16px/1 var(--ui); }
  .bdrel-sec { margin: 16px 0 8px; color: var(--muted); font: 500 12px/1 var(--ui); }
  .bdrel-row { display: flex; align-items: center; gap: 10px; height: 38px; margin-bottom: 6px; padding: 0 10px; border-radius: 10px; background: rgba(255,255,255,.04); }
  .bdrel-row .sub { color: var(--muted); font-size: 12px; }
  .bdrel-row .k { color: var(--quiet); font-size: 11.5px; }
}

/* ---------- Phone screens (story.js PHONE): the app's phone layout, 390x680, shown whole ---------- */
#tour.phone {
  .screen { width: 390px; height: 680px; margin: -340px 0 0 -195px; }
  .app { border-radius: 30px; font: 400 14px/1.35 var(--ui); }
  /* island: two rows, as the app draws it on a phone */
  .ph-isl { position: absolute; left: 12px; right: 12px; top: 12px; z-index: 10; display: grid; grid-template-rows: 36px 36px; gap: 4px; padding: 8px 10px; border-radius: 20px; background: #141416; box-shadow: inset 0 0 0 1px rgba(255,255,255,.08); }
  .ph-r1, .ph-r2 { display: flex; align-items: center; gap: 8px; min-width: 0; }
  .ph-r1 .logo { width: 18px; height: 22px; margin: 0 6px 0 2px; }
  .ph-ttl { display: flex; align-items: center; gap: 8px; font: 500 14px/1 var(--ui); white-space: nowrap; }
  .ph-ttl .ic { width: 15px; height: 15px; color: var(--accent); }
  .ph-bell .ic { width: 16px; height: 16px; color: var(--muted); }
  .ph-ib { display: grid; place-items: center; width: 32px; height: 32px; flex: none; border-radius: 10px; background: rgba(255,255,255,.05); color: var(--muted); }
  .ph-ib.wide { display: flex; width: auto; gap: 2px; padding: 0 8px; }
  .ph-ib .chev, .ph-loc .chev { width: 11px; height: 11px; }
  .ph-loc { display: flex; flex: 1; align-items: center; gap: 8px; min-width: 0; height: 32px; padding: 0 10px; border-radius: 10px; background: rgba(255,255,255,.05); white-space: nowrap; }
  .ph-loc b { font: 600 14px/1 var(--ui); }
  .ph-loc .chev { margin-left: auto; color: var(--muted); }
  .ph-loc > .ic:first-child { width: 15px; height: 15px; color: #64d2ff; }
  .ph-seg { display: flex; padding: 2px; border-radius: 10px; background: rgba(255,255,255,.04); }
  .ph-seg span { display: grid; place-items: center; width: 30px; height: 28px; border-radius: 8px; color: var(--muted); transition: background .3s, color .3s; }
  .ph-seg span.on { background: #3a3a3c; color: var(--text); }
  /* lists: a card per section, rows of key, status, flag and person over the title */
  .ph-body { position: absolute; left: 12px; right: 12px; top: 112px; display: grid; gap: 12px; }
  .ph-sec { border-radius: 16px; background: #191b1d; overflow: hidden; }
  .ph-sh { display: flex; align-items: center; gap: 8px; height: 40px; padding: 0 14px; }
  .ph-sh b { font: 500 14px/1 var(--ui); }
  .ph-sh em { color: var(--muted); font: 400 13px/1 var(--ui); font-style: normal; }
  .ph-sh small { margin-left: auto; color: var(--muted); font-size: 11.5px; }
  .ph-row { padding: 8px 14px 9px; box-shadow: inset 0 1px 0 rgba(255,255,255,.05); }
  .ph-m { display: flex; align-items: center; gap: 8px; height: 22px; }
  .ph-m .k { color: var(--muted); font-size: 12px; }
  .ph-m .fl { width: 13px; height: 13px; }
  .ph-st { height: 20px; padding: 0 7px; border-radius: 6px; background: color-mix(in srgb, var(--c) 22%, #1c1c1e); color: color-mix(in srgb, var(--c) 80%, #fff); font: 500 11.5px/20px var(--ui); }
  .ph-row .t { margin-top: 4px; overflow: hidden; color: var(--text); font-size: 14px; white-space: nowrap; text-overflow: ellipsis; }
  .ph-add { display: flex; align-items: center; gap: 6px; height: 38px; padding: 0 14px; color: var(--muted); font-size: 13px; box-shadow: inset 0 1px 0 rgba(255,255,255,.05); }
  .ph-add .ic { width: 13px; height: 13px; }
  /* menus anchored under their trigger, as on the phone */
  .ph-pop { left: 46px; top: 104px; width: 300px; padding: 8px; border-radius: 20px; background: rgba(44,44,46,.97); transform-origin: 30% 0; }
  .ph-find { height: 40px; margin-bottom: 6px; padding: 0 12px; border-radius: 12px; box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.18); color: var(--quiet); font: 400 15px/40px var(--ui); }
  .ph-pop .pop-item { gap: 12px; height: 46px; border-radius: 12px; font: 500 15px/1.15 var(--ui); }
  .ph-pop .pop-item > .ic:first-child { width: 18px; height: 18px; }
  .ph-pop .pop-item span { display: flex; flex-direction: column; }
  .ph-pop .pop-item small { margin-top: 3px; color: var(--muted); font: 400 11.5px/1 var(--ui); }
  .ph-pop .pop-item .g { width: 16px; height: 16px; margin-left: auto; }
  .ph-new { display: flex; align-items: center; justify-content: center; gap: 8px; height: 44px; color: var(--muted); font-size: 14px; }
  /* the three views take turns in the same place */
  .ph-pane { position: absolute; left: 0; right: 0; top: 100px; bottom: 0; opacity: 0; transform: translateX(36px); transition: opacity .35s, transform .5s cubic-bezier(.2,.8,.2,1); }
  .ph-pane.before { transform: translateX(-36px); }
  .ph-pane.on { opacity: 1; transform: none; }
  .ph-pane .ph-body { top: 12px; }
  .ph-dots { position: absolute; left: 0; right: 0; top: 16px; display: flex; justify-content: center; gap: 10px; }
  .ph-dots i { width: 6px; height: 6px; border-radius: 3px; background: #3a3a3c; }
  .ph-dots i.on { width: 16px; background: #8e8e93; }
  .ph-cols { position: absolute; left: 12px; top: 36px; display: flex; gap: 12px; }
  .ph-col { width: 300px; padding: 4px 8px 10px; border-radius: 16px; background: #191b1d; }
  .ph-ch { display: flex; align-items: center; gap: 8px; height: 34px; padding: 0 6px; font: 600 13px/1 var(--ui); }
  .ph-ch em { color: var(--muted); font-style: normal; font-weight: 400; }
  .ph-ch .ic { color: var(--muted); }
  .ph-card { margin-top: 8px; padding: 11px 12px; border-radius: 14px; background: #2a2a2c; }
  .ph-card .t { font: 600 14px/1.3 var(--ui); }
  .ph-card .m { display: flex; align-items: center; gap: 6px; margin-top: 8px; }
  .ph-tl { position: absolute; left: 12px; right: 0; top: 14px; bottom: 0; overflow: hidden; }
  .ph-days span { position: absolute; top: 0; width: 44px; color: var(--muted); font: 500 12px/20px var(--ui); text-align: center; }
  .ph-days span.wk { color: var(--quiet); }
  .ph-wk { position: absolute; top: 26px; bottom: 0; background: rgba(255,255,255,.025); }
  .ph-today { position: absolute; top: 22px; bottom: 0; width: 2px; margin-left: -1px; background: rgba(255,69,58,.8); }
  .ph-bar { position: absolute; height: 26px; padding: 0 10px; overflow: hidden; border-radius: 13px; font: 600 12px/26px var(--ui); white-space: nowrap; text-overflow: ellipsis; }
  /* the task: a full sheet, fields on top, the conversation and the tabs below */
  .ph-sheet { position: absolute; inset: 0; z-index: 30; transform: translateY(100%); transition: transform .6s cubic-bezier(.2,.8,.2,1); }
  .ph-sheet.on { transform: none; }
  .ph-top { position: absolute; left: 0; right: 0; top: 0; height: 362px; background: #2c2c2e; }
  .ph-bot { position: absolute; left: 0; right: 0; top: 362px; bottom: 0; padding: 12px 14px; background: #161618; }
  .ph-bar1 { display: flex; align-items: center; gap: 12px; height: 60px; padding: 0 16px 0 18px; }
  .ph-bar1 .k { display: flex; align-items: center; gap: 5px; color: var(--muted); font: 500 14px/1 var(--ui); }
  .ph-bar1 .k .ic { width: 13px; height: 13px; }
  .ph-bar1 .more { color: var(--muted); }
  .ph-stp { display: flex; align-items: center; gap: 7px; height: 34px; padding: 0 14px; border-radius: 17px; background: color-mix(in srgb, var(--c) 45%, #48484a); font: 600 13px/1 var(--ui); transition: background .3s; }
  .ph-stp .d { width: 8px; height: 8px; border-radius: 50%; background: #fff; }
  .ph-bar1 .x { color: var(--muted); }
  .ph-title { padding: 2px 18px 10px; font: 700 22px/1.25 var(--ui); }
  .ph-f { padding: 6px 18px; }
  .ph-f .l { display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: 12px; }
  .ph-f .l .ic { width: 13px; height: 13px; }
  .ph-f .v { display: flex; align-items: center; gap: 8px; height: 24px; margin-top: 6px; font-size: 14px; }
  .ph-two { display: grid; grid-template-columns: 1fr 1fr; }
  .ph-two .ph-f + .ph-f { padding-left: 0; }
  .ph-desc { padding: 10px 18px; color: var(--muted); font: 400 13.5px/1.45 var(--ui); }
  .ph-pop.ph-stm { left: auto; right: 48px; top: 54px; width: 200px; }
  .ph-pop.ph-stm .pop-item { height: 40px; }
  .ph-tabs { display: flex; gap: 4px; overflow: hidden; }
  .ph-tabs span { display: flex; flex: none; align-items: center; gap: 6px; height: 32px; padding: 0 12px; border-radius: 10px; color: var(--muted); font: 500 13px/1 var(--ui); white-space: nowrap; transition: background .3s, color .3s; }
  .ph-tabs span.on { background: #3a3a3c; color: var(--text); }
  .ph-p { position: absolute; left: 14px; right: 14px; top: 60px; bottom: 14px; opacity: 0; transition: opacity .3s; }
  .ph-p.on { opacity: 1; }
}

/* ---------- Phone screens, the rest of the chapters ---------- */
#tour.phone {
  /* space: the island switches projects and activity; cards, a one-line list, a timeline */
  .ph-ttl .ws-ava { width: 20px; height: 20px; }
  .ph-ttl .chev { width: 11px; height: 11px; color: var(--muted); }
  .ph-tseg { display: flex; padding: 2px; border-radius: 10px; background: rgba(255,255,255,.04); }
  .ph-tseg span { display: flex; align-items: center; gap: 6px; height: 28px; padding: 0 10px; border-radius: 8px; color: var(--muted); font: 500 13px/1 var(--ui); }
  .ph-tseg span.on { background: #3a3a3c; color: var(--text); }
  .ph-tseg .ic { width: 14px; height: 14px; }
  .ph-pcs { position: absolute; left: 12px; right: 12px; top: 12px; display: grid; gap: 10px; }
  .ph-pc { padding: 14px 14px 12px; border-radius: 18px; background: #1c1c1e; box-shadow: inset 0 0 0 1px rgba(255,255,255,.05); }
  .ph-pc-h, .ph-pc-f { display: flex; align-items: center; gap: 10px; }
  .ph-pc-h b { font: 600 16px/1 var(--ui); }
  .ph-chs { height: 22px; padding: 0 10px; border-radius: 11px; background: color-mix(in srgb, var(--s) 16%, transparent); color: var(--s); font: 600 11.5px/22px var(--ui); }
  .ph-pc-f { margin-top: 16px; color: var(--muted); }
  .ph-pc-f .avs { display: flex; }
  .ph-pc-f .avs .avatar { margin-right: -6px; box-shadow: 0 0 0 2px #1c1c1e; }
  .ph-pc-f .meta { margin-left: 10px; font-size: 12.5px; }
  .ph-pc-f .ic { width: 16px; height: 16px; }
  .pic.sm { width: 22px; height: 22px; border-radius: 7px; }
  .pic.sm .ic { width: 13px; height: 13px; }
  .ph-sh .g { width: 14px; height: 14px; color: var(--quiet); }
  .ph-lh { display: flex; align-items: center; gap: 8px; height: 32px; padding: 0 14px; color: var(--muted); font: 500 13px/1 var(--ui); box-shadow: inset 0 1px 0 rgba(255,255,255,.05); }
  .ph-lh .ic { width: 14px; height: 14px; color: var(--c); }
  .ph-lh em { font-style: normal; color: var(--quiet); }
  .ph-line { display: flex; align-items: center; gap: 8px; height: 38px; padding: 0 14px; box-shadow: inset 0 1px 0 rgba(255,255,255,.05); }
  .ph-line .k { color: var(--muted); font-size: 12px; }
  .ph-line .t { flex: 1; overflow: hidden; font-size: 14px; white-space: nowrap; text-overflow: ellipsis; }
  .sp-tl .ph-days span { width: 36px; }
  .ph-tph { position: absolute; left: 0; display: flex; align-items: center; gap: 8px; height: 26px; font: 600 13px/1 var(--ui); }
  .ph-tf { position: absolute; border-radius: 12px; background: color-mix(in srgb, var(--c) 14%, transparent); }
  .ph-tf span { position: absolute; left: 10px; top: 7px; display: flex; align-items: center; gap: 6px; color: var(--c); font: 600 12px/1 var(--ui); white-space: nowrap; }
  .ph-tf .ic { width: 12px; height: 12px; }
  .ph-rel { position: absolute; left: 0; top: 0; overflow: visible; pointer-events: none; opacity: 0; transition: opacity .5s .2s; }
  .ph-rel path { fill: none; stroke: #f87171; stroke-width: 2; }
  .ph-rel polygon { fill: #f87171; }
  .hot .ph-rel { opacity: 1; }
  .hot .ph-bar[data-k="ATL-3"], .hot .ph-bar[data-k="JR-11"] { box-shadow: 0 0 0 2px rgba(248,113,113,.9); }
  /* settings sheets: the access list, one role's editor sliding in over it */
  .ph-sheet.ph-roles, .ph-sheet.ph-ed { background: #1c1c1e; }
  .ph-sbar { display: flex; align-items: center; gap: 10px; height: 56px; padding: 0 16px; font: 600 15px/1 var(--ui); }
  .ph-sbar .x, .ph-sbar .ic { color: var(--muted); }
  .ph-sbar em { color: var(--muted); font: 500 13px/1 var(--ui); font-style: normal; }
  .ph-sbar .back { display: flex; align-items: center; gap: 4px; color: #64a8ff; font-weight: 500; }
  .ph-sbar .back .chev { transform: rotate(90deg); color: #64a8ff; width: 14px; height: 14px; }
  .ph-tabs3 { display: flex; margin: 0 16px 12px; padding: 2px; border-radius: 10px; background: rgba(255,255,255,.05); }
  .ph-tabs3 span { flex: 1; height: 30px; border-radius: 8px; color: var(--muted); font: 500 13px/30px var(--ui); text-align: center; }
  .ph-tabs3 span.on { background: #3a3a3c; color: var(--text); }
  .ph-search { display: flex; align-items: center; gap: 8px; height: 38px; margin: 0 16px 10px; padding: 0 12px; border-radius: 12px; background: rgba(255,255,255,.05); color: var(--quiet); font-size: 14px; }
  .ph-search .ic { width: 14px; height: 14px; }
  .ph-owner { display: flex; align-items: center; gap: 12px; padding: 8px 16px 12px; font: 500 14px/1.3 var(--ui); }
  .ph-owner small, .ph-role small, .ph-edp small { display: block; color: var(--muted); font: 400 12px/1.3 var(--ui); }
  .ph-role { display: flex; align-items: center; gap: 12px; margin: 0 10px 4px; padding: 10px 8px; border-radius: 14px; transition: background .3s; }
  .ph-role.hi { background: rgba(255,255,255,.08); }
  .ph-role .sq, .ph-edh .sq { width: 14px; height: 14px; flex: none; border-radius: 4px; background: var(--c); }
  .ph-role .nm { flex: 1; min-width: 0; }
  .ph-role b { display: flex; gap: 8px; font: 500 14px/1.3 var(--ui); }
  .ph-role b em { color: var(--muted); font-style: normal; font-weight: 400; }
  .ph-role .inv { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: rgba(255,255,255,.06); color: var(--muted); transition: background .2s, color .2s, transform .2s; }
  .ph-role .inv.press { background: rgba(48,209,88,.2); color: var(--accent); transform: scale(.92); }
  .ph-sheet.ph-ed { transform: translateX(100%); }
  .ph-sheet.ph-ed.on { transform: none; }
  .ph-edh { display: flex; align-items: center; gap: 10px; padding: 0 16px 14px; font: 600 20px/1 var(--ui); }
  .ph-eds { padding: 12px 16px 6px; color: var(--muted); font: 500 12px/1 var(--ui); }
  .ph-edp { display: flex; align-items: center; gap: 12px; padding: 7px 16px; font: 500 14px/1.3 var(--ui); }
  .ph-edp .nm { flex: 1; }
  .ph-edp .tg { position: relative; width: 38px; height: 22px; flex: none; border-radius: 11px; background: #3a3a3c; transition: background .3s; transition-delay: calc(var(--w) * 70ms); }
  .ph-edp .tg::after { content: ""; position: absolute; left: 2px; top: 2px; width: 18px; height: 18px; border-radius: 50%; background: #fff; transition: transform .3s; transition-delay: calc(var(--w) * 70ms); }
  .grant .ph-edp.g .tg { background: var(--accent); }
  .grant .ph-edp.g .tg::after { transform: translateX(16px); }
  .ph-op { display: flex; align-items: center; gap: 10px; height: 32px; padding: 0 16px; font-size: 13.5px; }
  .ph-op .cb { width: 18px; height: 18px; border-radius: 5px; box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.25); transition: background .25s, box-shadow .25s; transition-delay: calc((var(--w) - 4) * 70ms); }
  .perm .ph-op.y .cb { background: var(--accent); box-shadow: none; }
  .ph-toast { z-index: 40; white-space: nowrap; font: 500 13px/1 var(--ui); }
  /* the sprint, lifted over its dimmed list */
  .ph-pane, .ph-isl { transition: opacity .35s, transform .5s cubic-bezier(.2,.8,.2,1); }
  .dim .ph-pane.on, .dim .ph-isl { opacity: .25; }
  /* a sheet under a half sheet darkens instead of fading, so the board under it never shows through */
  .ph-bdl::after { content: ""; position: absolute; inset: 0; background: rgba(0,0,0,.55); opacity: 0; transition: opacity .4s; pointer-events: none; }
  .under .ph-bdl::after { opacity: 1; }
  .ph-lift { position: absolute; left: 14px; right: 14px; top: 112px; z-index: 40; padding: 18px; border-radius: 22px; background: #262628; box-shadow: inset 0 1px 0 rgba(255,255,255,.07), 0 24px 60px rgba(0,0,0,.6); opacity: 0; transform: translateY(24px) scale(.97); transition: opacity .4s, transform .55s cubic-bezier(.2,.8,.2,1); }
  .ph-lift.on { opacity: 1; transform: none; }
  .ph-spr .sc-h { font-size: 17px; }
  .ph-spd { margin-top: 6px; color: var(--muted); font-size: 13px; }
  .ph-spr .sc-prog { margin: 16px 0 14px; }
  .ph-spr .sc-tiles { grid-template-columns: 1fr 1fr; gap: 8px; }
  .ph-spr .sc-tiles div { padding: 10px 12px; }
  .ph-spr .sc-tiles b { font-size: 18px; }
  .ph-spr .sc-tiles .warn { color: #ff9f0a; }
  .ph-spr .sc-burn svg { height: 80px; }
  .ph-spr .scope { fill: none; stroke: rgba(255,255,255,.3); stroke-width: 2; }
  .ph-spr .fore { fill: none; stroke: rgba(100,210,255,.5); stroke-width: 2; stroke-dasharray: 6 6; }
  .ph-spr.on .sc-bar i { transform: none; }
  .ph-spr.on .sc-burn .real { stroke-dashoffset: 0; }
  /* display menus: tabs, then the choices */
  .ph-vm { left: auto; right: 12px; width: 300px; }
  .ph-ptabs { display: flex; gap: 2px; margin-bottom: 6px; padding: 2px; border-radius: 12px; background: rgba(255,255,255,.05); }
  .ph-ptabs span { flex: 1 1 auto; height: 30px; padding: 0 8px; border-radius: 10px; color: var(--muted); font: 500 12px/30px var(--ui); text-align: center; }
  .ph-ptabs span.on { box-shadow: inset 0 0 0 1.5px var(--accent); color: var(--text); }
  .ph-vm .pop-item { height: 38px; font-size: 14px; }
  .ph-vm .pop-item > .ic:first-child, .ph-vm .pop-item > span.ic { width: 16px; height: 16px; }
  .ph-vm .pop-sec { padding: 10px 12px 4px; }
  .ph-vm .cbx .box { width: 18px; height: 18px; flex: none; display: grid; place-items: center; border-radius: 5px; box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.25); color: transparent; transition: background .25s, color .25s; }
  .ph-vm .cbx .box .ic { width: 12px; height: 12px; color: inherit; }
  .ph-vm .cbx.chk .box { background: var(--accent); box-shadow: none; color: #0b0b0c; }
  /* groups by bundle, subgroups by person */
  .ph-sh .btile { width: 22px; height: 22px; border-radius: 7px; }
  .ph-sh .btile .ic { width: 13px; height: 13px; }
  .ph-sub { display: flex; align-items: center; gap: 8px; height: 30px; margin: 0 8px; padding: 0 6px; color: var(--muted); font: 500 12.5px/1 var(--ui); box-shadow: inset 0 1px 0 rgba(255,255,255,.05); }
  .ph-sub em { color: var(--quiet); font-style: normal; }
  /* board cards: estimate or due date by the display settings, coloured by status or by their own colour */
  .ph-card { transition: background .5s; }
  .ph-card .m { flex-wrap: nowrap; }
  .ph-card .chip.est { display: none; }
  .f-est .ph-card .chip.est { display: inline-flex; }
  .f-est .ph-card .chip.due { display: none; }
  .ph-card .fl { width: 13px; height: 13px; flex: none; }
  .c-status .ph-card { background: color-mix(in srgb, var(--sc) 24%, #242426); }
  .c-own .ph-card.own { background: color-mix(in srgb, #ff375f 42%, #242426); }
  /* bundles: a sheet of the bundle's tasks by location, its links in a half sheet */
  .ph-sheet.ph-bdl { background: #1c1c1e; transition: transform .6s cubic-bezier(.2,.8,.2,1), opacity .35s; }
  .ph-sbar .btile.big { width: 28px; height: 28px; border-radius: 9px; }
  .ph-sbar .btile.big .ic { width: 15px; height: 15px; color: var(--c); }
  .ph-bprog { height: 6px; margin: 0 16px 14px; border-radius: 3px; background: rgba(255,255,255,.08); overflow: hidden; }
  .ph-bprog i { display: block; height: 100%; border-radius: 3px; background: var(--c); }
  .ph-bg { margin: 0 12px 10px; border-radius: 16px; background: #242426; overflow: hidden; }
  .ph-bgh { display: flex; align-items: center; gap: 8px; height: 38px; padding: 0 12px; color: var(--muted); font: 600 13px/1 var(--ui); }
  .ph-bgh .ic { width: 14px; height: 14px; }
  .ph-bgh em { color: var(--quiet); font-style: normal; font-weight: 400; }
  .ph-brow { display: flex; align-items: center; gap: 10px; height: 44px; padding: 0 12px; box-shadow: inset 0 1px 0 rgba(255,255,255,.05); }
  .ph-brow .grip { width: 6px; height: 14px; flex: none; background: radial-gradient(circle, rgba(255,255,255,.3) 1px, transparent 1.4px) 0 0 / 3px 4px; }
  .ph-brow .k { color: var(--muted); font-size: 12px; }
  .ph-brow .t { flex: 1; overflow: hidden; font-size: 14px; white-space: nowrap; text-overflow: ellipsis; }
  .ph-bfoot { display: flex; gap: 8px; margin: 4px 12px; }
  .ph-bfoot span { display: flex; flex: 1; align-items: center; justify-content: center; gap: 6px; height: 40px; border-radius: 12px; background: rgba(255,255,255,.06); color: var(--text); font: 500 13px/1 var(--ui); white-space: nowrap; }
  .ph-half { position: absolute; left: 0; right: 0; bottom: 0; z-index: 35; padding: 8px 16px 20px; border-radius: 26px 26px 0 0; background: #2c2c2e; box-shadow: 0 -20px 60px rgba(0,0,0,.5); transform: translateY(100%); transition: transform .55s cubic-bezier(.2,.8,.2,1); }
  .ph-half.on { transform: none; }
  .ph-grab { width: 36px; height: 5px; margin: 0 auto 12px; border-radius: 3px; background: rgba(255,255,255,.25); }
  .ph-half .h { font: 600 17px/1 var(--ui); }
  .ph-half .ph-eds { padding-left: 0; }
  .ph-relr { display: flex; align-items: center; gap: 10px; height: 42px; margin-bottom: 6px; padding: 0 12px; border-radius: 12px; background: rgba(255,255,255,.05); font-size: 14px; }
  .ph-relr small { color: var(--muted); font-size: 12px; }
  .ph-relr .k { color: var(--muted); font-size: 12px; }
  /* documents: a grid of documents, then one opens as a sheet */
  .ph-docs { position: absolute; left: 12px; right: 12px; top: 12px; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
  .ph-dnew, .ph-dcard { height: 150px; padding: 14px; border-radius: 18px; background: #1c1c1e; transition: box-shadow .3s, transform .3s; }
  .ph-dnew { display: grid; justify-items: center; align-content: center; gap: 10px; background: none; box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.08); color: var(--muted); font: 500 13px/1 var(--ui); }
  .ph-dnew span { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 14px; background: rgba(48,209,88,.16); color: var(--accent); }
  .ph-dcard .dic { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: color-mix(in srgb, var(--c) 22%, #1c1c1e); color: var(--c); }
  .ph-dcard .dic .ic { width: 20px; height: 20px; }
  .ph-dcard b { display: block; margin: 16px 0 8px; font: 600 14px/1.2 var(--ui); }
  .ph-dcard small { color: var(--muted); font-size: 11.5px; line-height: 1.4; }
  .ph-dcard.pick { transform: scale(1.03); box-shadow: inset 0 0 0 2px var(--accent); }
  .ph-sheet.ph-doc { background: #1c1c1e; }
  .ph-here { display: flex; }
  .ph-here .avatar { margin-left: -4px; box-shadow: 0 0 0 2px #1c1c1e; }
  .ph-dbody { padding: 0 18px; font: 400 14px/1.5 var(--ui); }
  .ph-dcrumb { display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: 12.5px; }
  .ph-dcrumb .ic { width: 13px; height: 13px; color: var(--accent); }
  .ph-dbody h1 { margin: 6px 0 12px; font: 700 26px/1.2 var(--ui); }
  .ph-dbody h3 { margin: 16px 0 6px; font: 600 16px/1.2 var(--ui); }
  .ph-dbody .callout { padding: 12px 14px; font-size: 13.5px; line-height: 1.6; }
  .ph-dbody .chk { height: 32px; font-size: 13.5px; }
  .ph-dbody .mtask, .ph-dbody .mper { background: rgba(255,255,255,.07); }
  .ph-dbody .dtbl { width: 100%; font-size: 12.5px; }
  .ph-dbody .dtbl th, .ph-dbody .dtbl td { padding: 6px 8px; }
  .ph-peek { position: absolute; left: 18px; right: 18px; z-index: 5; padding: 12px 14px; border-radius: 16px; background: #2c2c2e; box-shadow: 0 20px 50px rgba(0,0,0,.6), inset 0 0 0 1px rgba(255,255,255,.06); opacity: 0; transform: translateY(-6px) scale(.97); transform-origin: 30% 0; transition: opacity .3s, transform .4s; }
  .ph-peek.on { opacity: 1; transform: none; }
  .ph-peek b { display: block; margin: 8px 0; font: 600 15px/1.25 var(--ui); }
  .ph-peek .pk { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 12.5px; }
  .ph-peek .pk .ic { width: 13px; height: 13px; }
  .ph-peek .go { width: 12px; height: 12px; transform: rotate(-90deg); color: var(--muted); }
  /* look: the island folds to icons, the accent and the theme change */
  .screen.look { --acc: #30d158; }
  .screen.look .app, .screen.look .ph-isl, .screen.look .ph-col, .screen.look .ph-card, .screen.look .ph-loc, .screen.look .ph-ib, .screen.look .ph-seg { transition: background .6s, color .6s, box-shadow .6s; }
  .screen.look .ph-seg span.on { background: color-mix(in srgb, var(--acc) 30%, #3a3a3c); color: var(--acc); transition: background .6s, color .6s; }
  .screen.look .ph-loc > .ic:first-child, .screen.look .ph-ttl .ic { color: var(--acc); transition: color .6s; }
  .ph-fab { position: absolute; right: 18px; bottom: 18px; z-index: 5; display: grid; place-items: center; width: 54px; height: 54px; border-radius: 50%; background: var(--acc, #fff); color: #0b0b0c; box-shadow: 0 10px 30px rgba(0,0,0,.5); transition: background .6s; }
  .ph-fab .ic { width: 22px; height: 22px; }
  .screen.look .ph-loc b, .screen.look .ph-ib, .screen.look .ph-seg span:not(.on) { transition: opacity .4s, max-width .5s, padding .5s, margin .5s; max-width: 120px; }
  .screen.look.cmp .ph-loc b, .screen.look.cmp .ph-seg span:not(.on) { max-width: 0; opacity: 0; padding: 0; overflow: hidden; }
  .screen.look.cmp .ph-ib { max-width: 0; opacity: 0; padding: 0; margin: 0 -4px; overflow: hidden; }
  .screen.look.cmp .ph-loc { flex: 0 0 auto; }
  /* the computer inverts the window for the light theme; the phone draws its light colours itself */
  .screen.look.lt .app > * { filter: none; }
  .screen.look.lt .app { background: #f2f2f7; color: #1c1c1e; }
  .screen.look.lt .ph-isl { background: #fff; box-shadow: 0 1px 0 rgba(0,0,0,.05), 0 8px 24px rgba(0,0,0,.08); }
  .screen.look.lt .logo { color: #1c1c1e; }
  .screen.look.lt .ph-loc, .screen.look.lt .ph-ib, .screen.look.lt .ph-seg { background: rgba(0,0,0,.05); }
  .screen.look.lt .ph-col { background: #e5e5ea; }
  .screen.look.lt .ph-card { background: #fff; color: #1c1c1e; }
  .screen.look.lt .ph-dots i { background: #c7c7cc; }
  .screen.look.lt .ph-dots i.on { background: #8e8e93; }
  /* under the app: the figure on top, the notes under it */
  .ph-inf .ly-wrap { left: 50%; top: 6px; height: 330px; transform: translateX(-50%); }
  .ph-notes { position: absolute; left: 22px; right: 22px; top: 350px; display: grid; gap: 16px; }
  .ph-inf .ly-note { position: static; width: auto; gap: 12px; align-items: flex-start; transform: translateY(10px); }
  .notes .ph-inf .ly-note { transform: none; }
  .ph-inf .ly-note i { width: 18px; margin-top: 10px; }
  .ph-inf .ly-note b { margin-bottom: 4px; font-size: 16px; }
  .ph-inf .ly-note span { font-size: 13px; line-height: 1.45; }
}
#tour.phone {
  .ph-vm [data-sec].hide { display: none; }
  .ph-cols { transition: transform .7s cubic-bezier(.2,.8,.2,1); }
  .swipe .ph-cols { transform: translateX(-312px); }
  .ph-dots i { transition: width .4s, background .4s; }
  .swipe .ph-dots i.on { width: 6px; background: #3a3a3c; }
  .swipe .ph-dots i:nth-child(2) { width: 16px; background: #8e8e93; }
}

/* ---------- Phone motion: chapters hand over inside one phone (story.js handOver) ---------- */
#tour.phone {
  .screen { overflow: hidden; border-radius: 30px; }
  .screen.infra, .screen.look.ex { overflow: visible; }
  /* the hand-over moves the app with the scroll, so no transition may trail it */
  .screen .app { transform-origin: 0 0; transition: opacity .5s, filter .5s; }
  /* the screen being left darkens as the next one grows over it */
  .screen .app::after { content: ""; position: absolute; inset: 0; z-index: 60; background: #000; opacity: var(--dim, 0); pointer-events: none; }
  /* a hand-over first slides the open sheets down and lets the menus go, then the body slides under the island */
  .app > * { translate: var(--sx, 0px) 0; }
  .app > :is(.ph-isl, .ph-tap) { translate: none; }
  .app > :is(.ph-sheet, .ph-half) { translate: var(--sx, 0px) calc(var(--dis, 0) * 110%); }
  .app > :is(.ph-pop, .ph-lift, .toast) { filter: opacity(calc(1 - var(--dis, 0) * 3)); }
  /* the page pushed in under the same island brings its own floor; the island fades over the old one */
  .screen.push .app { background: transparent; box-shadow: none; }
  .screen.push .app > .ph-pane { background: var(--bg); box-shadow: -24px 0 48px rgba(0,0,0,.55); }
  .screen.push .app > .ph-isl { opacity: var(--io, 1); transition: none; }
  /* sheets stand off the top, and the screen under them steps back */
  .ph-sheet { top: 44px; border-radius: 24px 24px 0 0; overflow: hidden; box-shadow: 0 -12px 40px rgba(0,0,0,.45); }
  .ph-isl, .ph-pane { transform-origin: 50% 0; transition: opacity .45s, transform .6s cubic-bezier(.2,.8,.2,1), scale .55s cubic-bezier(.2,.8,.2,1), filter .55s; }
  /* under a sheet or a lifted card the screen steps back: --rc from the screen's own play, --hr from a hand-over */
  .app > :is(.ph-isl, .ph-pane) { scale: calc(1 - .08 * max(var(--rc, 0), var(--hr, 0)) * (1 - var(--dis, 0))); filter: brightness(calc(1 - .58 * max(var(--rc, 0), var(--hr, 0)) * (1 - var(--dis, 0)))); }
  .ph-sheet.ph-bdl { transition: transform .6s cubic-bezier(.2,.8,.2,1), scale .55s cubic-bezier(.2,.8,.2,1), filter .55s; transform-origin: 50% 0; }
  .under .ph-bdl { scale: .94; }
  /* views swipe across instead of fading in place */
  .ph-pane { transform: translateX(72%); }
  .ph-pane.before { transform: translateX(-72%); }
  .ph-pane.on { transform: none; }
  /* the view switch: a pill slides to the tapped view */
  .ph-seg { position: relative; }
  .ph-seg .pill { position: absolute; left: 2px; top: 2px; width: 30px; height: 28px; border-radius: 8px; background: #3a3a3c; transform: translateX(calc(var(--v, 0) * 30px)); transition: transform .55s cubic-bezier(.3,1.35,.5,1); }
  .ph-seg span { position: relative; }
  .ph-seg span.on { background: none; }
  .screen.look .ph-seg .pill { display: none; }
  /* what lands in a pane comes in one after another; bars grow from their start */
  .ph-pane.on :is(.ph-row, .ph-line, .ph-card, .ph-pc, .ph-dcard, .ph-dnew) { animation: ph-in .6s cubic-bezier(.2,.8,.2,1) both; animation-delay: calc(var(--j, 0) * 45ms + 160ms); }
  .ph-pane.on .ph-bar { animation: ph-bar .75s cubic-bezier(.2,.8,.2,1) both; animation-delay: calc(var(--j, 0) * 55ms + 220ms); }
  .hot .ph-rel path { stroke-dasharray: 600; animation: ph-draw .9s .3s cubic-bezier(.2,.8,.2,1) both; }
  /* a fingertip */
  .ph-tap { position: absolute; z-index: 70; width: 48px; height: 48px; margin: -24px 0 0 -24px; border-radius: 50%; background: radial-gradient(circle, rgba(255,255,255,.55), rgba(255,255,255,.18) 60%, transparent 72%); opacity: 0; pointer-events: none; }
  .ph-tap.go { animation: ph-tap .75s cubic-bezier(.2,.8,.2,1); }
  .tapd { animation: ph-press .4s ease; }
  /* the last hand-over: the phone comes apart into layers before the server comes in under it */
  /* will-change: opacity would flatten the layers back into the phone */
  .screen.look.ex { will-change: transform; }
  .screen.look.ex, .screen.look.ex .app, .screen.look.ex .ph-pane, .screen.look.ex .ph-cols, .screen.look.ex .ph-col { transform-style: preserve-3d; }
  .screen.look.ex .app { overflow: visible; background: color-mix(in srgb, var(--bg) calc(var(--exo, 1) * 100%), transparent); box-shadow: 0 0 0 1px rgba(255,255,255,calc(.12 * var(--exo, 1))); }
  .screen.look.ex .ph-pane { transition: none; }
  .screen.look.ex :is(.ph-isl, .ph-card, .ph-ch, .ph-fab, .ph-dots) { opacity: var(--exo, 1); }
  .screen.look.ex .ph-col { background: color-mix(in srgb, #191b1d calc(var(--exo, 1) * 100%), transparent); }
  .screen.look.ex .ph-col:not(:first-child) { opacity: 0; }
  .screen.look .ph-isl { translate: 0 0 calc(var(--ex, 0) * 220px); }
  .screen.look .ph-col { transform: translateZ(calc(min(var(--ex, 0), 1) * 36px)); }
  .screen.look .ph-card { transform: translateZ(calc(min(var(--ex, 0), 1) * (34px + var(--j, 0) * 16px))); }
  .screen.look .ph-fab { translate: var(--sx, 0px) 0 calc(var(--ex, 0) * 230px); }
}
@keyframes ph-in { from { opacity: 0; translate: 0 18px; } }
@keyframes ph-bar { from { clip-path: inset(0 100% 0 0 round 13px); } }
@keyframes ph-draw { from { stroke-dashoffset: 600; } }
@keyframes ph-tap { 0% { opacity: 0; transform: scale(.35); } 22% { opacity: 1; transform: scale(.75); } 100% { opacity: 0; transform: scale(1.6); } }
@keyframes ph-press { 40% { scale: .93; } }

/* ---------- Phone scroll: everything on a phone screen follows the scroll (story.js play) ---------- */
#tour.phone {
  /* nothing play moves may trail it on a transition */
  .mv :is(.ph-pane, .ph-sheet, .ph-half, .pop, .ph-lift, .toast, .msg, .ph-p, .ph-peek, .ly-note, .ph-cols, .ph-tpill, .ph-card, .sc-bar i, .sc-burn .real) { transition: none; }
  .mv > :is(.ph-isl, .ph-pane) { transition: background .6s, color .6s, box-shadow .6s; }
  .mv .ph-seg .pill { transition: none; }
  .mv :is(.ph-dcard, .ph-dnew) { transition: box-shadow .3s; }
  .mv .ph-pane { transform: none; }
  .mv .ph-pane.on :is(.ph-row, .ph-line, .ph-card, .ph-pc, .ph-dcard, .ph-dnew, .ph-bar) { animation: none; }
  .mv .ph-rel path { stroke-dasharray: 600; animation: none; }
  /* magic move: copies of the keyed things fly between views while the things themselves wait hidden */
  .ph-ghosts { position: absolute; inset: 0; z-index: 8; display: none; pointer-events: none; }
  .ph-ghosts > * { position: absolute !important; left: 0 !important; top: 0 !important; margin: 0 !important; transform-origin: 0 0; animation: none !important; transition: none !important; will-change: transform, opacity; box-shadow: 0 12px 28px rgba(0,0,0,.4); }
  .ph-ghosts > :is(.ph-row, .ph-line, .ph-sh, .ph-lh, .ph-sub) { background: #222426; border-radius: 12px; }
  .ph-ghosts > .ph-brow { background: #2a2a2c; border-radius: 12px; }
  .gh-hid { visibility: hidden !important; }
  /* menus unfold row by row */
  .mv .ph-pop :is(.pop-item, .ph-find, .ph-new, .pop-sec, .ph-ptabs) { transform-origin: 50% 0; }
  .mv :is(.ph-vm, .ph-stm) { transform-origin: 90% 0; }
  /* the sprint docks into the island; the mention opens into its card */
  .mv :is(.ph-spr, .ph-peek) { transform-origin: 0 0; }
  /* cards: colour by status as a wave (--cw), a colour of their own splashed in (--ow), dates flipping into estimates */
  .mv .ph-card { position: relative; isolation: isolate; background: color-mix(in srgb, var(--sc) calc(var(--cw, 0) * 24%), #2a2a2c); }
  .mv .ph-card.own::after { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; background: color-mix(in srgb, #ff375f 42%, #242426); clip-path: circle(calc(var(--ow, 0) * 160%) at 88% 70%); }
  .mv .ph-card .chip.est { display: none; }
  .mv .ph-card.est .chip.est { display: inline-flex; }
  .mv .ph-card.est .chip.due { display: none; }
  .mv .ph-card .chip { backface-visibility: hidden; }
  /* the card turning over into the task */
  .ph-flip { position: absolute !important; left: 0; top: 0; z-index: 65; display: none; margin: 0 !important; transform-origin: 0 0; backface-visibility: hidden; box-shadow: 0 30px 60px rgba(0,0,0,.55); }
  /* roles: switches and ticks go on one by one with the scroll */
  .mv .ph-edp .tg, .mv .ph-op .cb { transition-delay: 0s; }
  .mv .ph-edp .tg::after { transition-delay: 0s; }
  .mv .ph-edp.g.tk .tg { background: var(--accent); }
  .mv .ph-edp.g.tk .tg::after { transform: translateX(16px); }
  .mv .ph-op.y.tk .cb { background: var(--accent); box-shadow: none; }
  /* task tabs: a pill slides between them */
  .ph-tabs { position: relative; }
  .ph-tabs span { position: relative; }
  .ph-tpill { position: absolute; left: 0; top: 0; height: 32px; border-radius: 10px; background: #3a3a3c; }
  .mv .ph-tabs span.on { background: none; }
  /* the document swings in on its left edge */
  .mv .ph-doc { transform-origin: 0 50%; backface-visibility: hidden; }
  /* a page turning away is not cut by the phone's edge */
  .screen.turn { overflow: visible; }
  .screen.turn .app { backface-visibility: hidden; }
  /* look: the island folds piece by piece */
  .screen.look :is(.ph-loc b, .ph-seg span).fold { max-width: 0; opacity: 0; padding: 0; overflow: hidden; }
  .screen.look .ph-ib.fold { max-width: 0; opacity: 0; padding: 0; margin: 0 -4px; overflow: hidden; }
  .screen.look .ph-loc:has(b.fold) { flex: 0 0 auto; }
  /* the light theme: a light copy of the screen opening as a circle from the button */
  .ph-ltw { position: absolute; inset: 0; z-index: 50; display: none; background: #f2f2f7; color: #1c1c1e; pointer-events: none; --text: #1c1c1e; --muted: #6e6e73; --quiet: #8e8e93; }
  .ph-ltw .ph-isl { background: #fff; box-shadow: 0 1px 0 rgba(0,0,0,.05), 0 8px 24px rgba(0,0,0,.08); }
  .ph-ltw .logo { color: #1c1c1e; }
  .ph-ltw :is(.ph-loc, .ph-ib, .ph-seg) { background: rgba(0,0,0,.05); }
  .ph-ltw .ph-col { background: #e5e5ea; }
  .ph-ltw .ph-card { background: #fff; color: #1c1c1e; }
  .ph-ltw .ph-dots i { background: #c7c7cc; }
  .ph-ltw .ph-dots i.on { background: #8e8e93; }
}
