/* =========================================================
   My story — "a design file": layers | canvas | inspector, with a timeline dock.
   Frames start tilted as greyscale sketches and flatten into colour as you scroll
   (or as you paint them). Loaded after styles.css (nav, buttons, theme tokens).
   ========================================================= */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:root { --blob-c: #E6DEFF; --lilac: #8B6CF0; --panel: color-mix(in srgb, var(--surface) 80%, transparent); }
:root[data-theme="dark"] { --blob-c: #241D3D; }
body.sc { padding-top: calc(var(--nav-h) + 8px); padding-bottom: 120px; }

/* Soft colour fields */
.sc-bg { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.sc-bg span { position: absolute; border-radius: 50%; filter: blur(90px); opacity: .55; }
.sc-bg__a { width: 46vw; aspect-ratio: 1; left: -12vw; top: 8vh; background: var(--blob-a); animation: drift 22s ease-in-out infinite alternate; }
.sc-bg__b { width: 40vw; aspect-ratio: 1; right: -10vw; top: 30vh; background: var(--blob-b); animation: drift 26s ease-in-out infinite alternate-reverse; }
.sc-bg__c { width: 36vw; aspect-ratio: 1; left: 30vw; bottom: -18vw; background: var(--blob-c); animation: drift 30s ease-in-out infinite alternate; }
@keyframes drift { to { transform: translate(6vw, -4vw) scale(1.12); } }

/* Shared panel look */
.layers, .inspector, .dock { background: var(--panel); border: 1px solid var(--line); backdrop-filter: blur(16px) saturate(1.3); -webkit-backdrop-filter: blur(16px) saturate(1.3); box-shadow: 0 18px 40px -28px rgba(0, 0, 0, .45); }

/* ---------- Workspace ---------- */
.workspace { width: min(1440px, calc(100% - 2 * var(--gutter))); margin: 0 auto; display: grid; grid-template-columns: 230px minmax(0, 1fr) 260px; gap: 24px; align-items: start; }
.layers, .inspector { position: sticky; top: calc(var(--nav-h) + 16px); max-height: calc(100vh - var(--nav-h) - 150px); overflow: auto; border-radius: 16px; font-size: 13px; scrollbar-width: thin; }

/* Layers */
.layers { padding: 14px 10px; }
.layers ol { list-style: none; margin: 0; padding: 0; }
.layers__title { display: inline-block; margin: 0 4px 10px; padding: 4px 10px; border-radius: 8px; font-size: 12px; font-weight: 600; background: color-mix(in srgb, var(--ink) 6%, transparent); }
.layers__page + .layers__page { margin-top: 8px; }
.layers__ptitle { margin: 0 6px 2px; font-weight: 600; font-size: 12px; color: var(--ink-2); }
.layers__ptitle span { color: var(--muted); font-size: 10px; }
.layers a { display: grid; grid-template-columns: 14px 20px 1fr 16px; align-items: center; gap: 6px; padding: 6px 8px 6px 16px; border-radius: 8px; color: var(--ink-2); transition: background-color .3s, color .3s; }
.layers a:hover { background: color-mix(in srgb, var(--ink) 5%, transparent); }
.layers a.is-active { background: var(--accent-soft); color: var(--ink); }
.layer__ico { width: 11px; height: 11px; border: 1.5px solid currentColor; border-radius: 3px; opacity: .55; }
.layer__n { font-size: 11px; color: var(--muted); font-variant-numeric: tabular-nums; }
.layer__name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.layer__eye { width: 14px; height: 14px; border-radius: 50%; border: 1.5px solid color-mix(in srgb, var(--ink) 22%, transparent); position: relative; transition: background-color .4s, border-color .4s; }
.layers a.is-revealed .layer__eye { background: var(--accent); border-color: var(--accent); }
.layers a.is-revealed .layer__eye::after { content: ""; position: absolute; left: 3.5px; top: 1.5px; width: 3px; height: 6px; border: solid var(--on-accent); border-width: 0 1.5px 1.5px 0; transform: rotate(45deg); }
.layers a.is-revealed .layer__ico { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 25%, transparent); opacity: 1; }
.layers__foot { display: flex; align-items: center; gap: 8px; margin: 12px 6px 0; font-size: 12px; color: var(--muted); }
.layers__foot i { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 25%, transparent); }

/* Inspector */
.inspector { padding: 6px 0; }
.inspector__top { display: flex; align-items: center; justify-content: space-between; padding: 8px 12px 10px; }
.inspector__hi { padding: 7px 14px; border-radius: 9px; font-size: 13px; font-weight: 500; color: var(--on-accent); background: var(--accent); transition: transform .3s var(--ease); }
.inspector__hi:hover { transform: translateY(-1px); }
.avatars { display: flex; }
.avatars img, .avatars span { width: 26px; height: 26px; border-radius: 50%; border: 2px solid var(--surface); }
.avatars img { object-fit: cover; background: var(--surface); }
.avatars span { margin-left: -8px; display: grid; place-items: center; font-size: 11px; color: #3B2A00; background: #FEAA04; }
.insp-sec { padding: 10px 12px; border-top: 1px solid var(--line); }
.insp-sec--tabs { display: flex; justify-content: space-between; align-items: center; }
.insp-tab { padding: 4px 10px; border-radius: 8px; font-size: 12px; font-weight: 600; background: color-mix(in srgb, var(--ink) 6%, transparent); }
.insp-pct { font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.insp-pct b { color: var(--ink); font-weight: 600; }
.insp-sel { display: flex; align-items: center; gap: 8px; margin: 0; font-size: 13px; }
.insp-sel b { flex: 1; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.insp-sel__ico { width: 12px; height: 12px; border-radius: 3px; border: 1.5px solid var(--accent); }
.insp-chip { padding: 2px 8px; border-radius: 6px; font-size: 11px; font-weight: 500; color: var(--accent); background: var(--accent-soft); white-space: nowrap; max-width: 110px; overflow: hidden; text-overflow: ellipsis; }
.insp-h { margin: 0 0 8px; font-size: 12px; font-weight: 600; }
.insp-h small { font-weight: 400; color: var(--muted); margin-left: 4px; }
.insp-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.insp-grid span { display: flex; gap: 8px; padding: 6px 8px; border-radius: 8px; background: color-mix(in srgb, var(--ink) 4%, transparent); font-size: 12px; font-variant-numeric: tabular-nums; }
.insp-grid i { font-style: normal; color: var(--muted); width: 10px; }
.insp-grid b { font-weight: 500; }
.insp-states { display: flex; gap: 6px; flex-wrap: wrap; }
.insp-states span { padding: 3px 10px; border-radius: 999px; font-size: 12px; color: var(--muted); background: color-mix(in srgb, var(--ink) 5%, transparent); transition: background-color .3s, color .3s; }
.insp-states span.is-on { color: var(--on-accent); background: var(--accent); }
.insp-fill { display: flex; align-items: center; gap: 8px; margin: 0; padding: 6px 8px; border-radius: 8px; background: color-mix(in srgb, var(--ink) 4%, transparent); font-size: 12px; font-variant-numeric: tabular-nums; }
.insp-fill__sw { width: 16px; height: 16px; border-radius: 4px; background: var(--accent); transition: background-color .4s; }
.insp-fill b { flex: 1; font-weight: 500; letter-spacing: .04em; }
.insp-fill small, .insp-text small { color: var(--muted); }
.insp-text { margin: 0; padding: 6px 8px; border-radius: 8px; background: color-mix(in srgb, var(--ink) 4%, transparent); font-size: 12px; line-height: 1.5; }
.insp-rev { margin: 0; font-size: 12px; color: var(--muted); }
.insp-rev b { font-size: 20px; color: var(--ink); font-variant-numeric: tabular-nums; }

/* ---------- Canvas ---------- */
.canvas { position: relative; padding: 10px 0 40px; perspective: 1600px; }
.canvas::before { content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none; background-image: radial-gradient(color-mix(in srgb, var(--ink) 13%, transparent) 1px, transparent 1.3px); background-size: 22px 22px; }

/* Cover: the title as a selected text layer */
.cover { position: relative; display: grid; justify-items: center; text-align: center; min-height: calc(100vh - var(--nav-h) - 150px); align-content: center; padding: 30px 12px 60px; }
.cover__board { position: relative; padding: clamp(22px, 3vw, 36px) clamp(18px, 3vw, 44px); border: 1.5px solid var(--accent); }
.cover__tag { position: absolute; left: -1.5px; bottom: 100%; margin-bottom: 6px; padding: 3px 8px; border-radius: 6px 6px 6px 0; font-size: 11px; font-weight: 500; color: var(--on-accent); background: var(--accent); white-space: nowrap; }
.cover__dims { position: absolute; left: 50%; top: 100%; margin-top: 8px; transform: translateX(-50%); padding: 2px 8px; border-radius: 6px; font-size: 11px; font-weight: 500; color: var(--on-accent); background: var(--accent); white-space: nowrap; font-variant-numeric: tabular-nums; }
.h { position: absolute; width: 10px; height: 10px; background: var(--surface); border: 1.5px solid var(--accent); }
.h--tl { left: -6px; top: -6px; } .h--tr { right: -6px; top: -6px; } .h--bl { left: -6px; bottom: -6px; } .h--br { right: -6px; bottom: -6px; }
.cover__title { margin: 0; font-size: clamp(34px, 5vw, 80px); line-height: 1.05; font-weight: 600; letter-spacing: -.045em; }
.cover__line { display: block; }
.hl { color: var(--accent); transition: color .5s; }
.hl--ai { background: linear-gradient(100deg, var(--accent), #FEAA04 70%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.cover__lead { max-width: 600px; margin: 42px 0 22px; color: var(--ink-2); font-size: clamp(15px, 1.25vw, 18px); }
.cover__lead strong { color: var(--ink); }
.cover__try { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px; font-size: 14px; color: var(--muted); }
.cover__try .swatch { width: 30px; height: 30px; }
.cover__start { margin-left: 10px; padding: 10px 18px; border-radius: 999px; font-weight: 500; color: var(--bg); background: var(--ink); transition: background-color .3s, color .3s; }
.cover__start:hover { background: var(--accent); color: var(--on-accent); }

/* Live cursors: Parul + AI wander around; "You" follows your pointer */
.ghost { position: absolute; z-index: 2; display: flex; align-items: flex-start; gap: 2px; pointer-events: none; }
.ghost svg { fill: var(--c); filter: drop-shadow(0 2px 3px rgba(0,0,0,.2)); }
.ghost b { margin-top: 12px; padding: 2px 8px; border-radius: 6px; font-size: 11px; font-weight: 600; color: #fff; background: var(--c); white-space: nowrap; }
.cover__lead { position: relative; }
/* Parul's cursor sits to the side of the intro paragraph, drifting slowly */
.ghost--me { --c: var(--accent); left: calc(100% + 24px); top: 4px; animation: ghost-a 18s ease-in-out infinite; }
@media (max-width: 900px) { .ghost--me { left: auto; right: 0; top: auto; bottom: calc(100% + 2px); } }
.ghost--ai { --c: #E09400; right: 2%; top: -26%; animation: ghost-b 11s ease-in-out infinite; }
@keyframes ghost-a { 0%, 100% { transform: translate(0, 0); } 33% { transform: translate(-14px, -26px); } 66% { transform: translate(10px, 18px); } }
@keyframes ghost-b { 0%, 100% { transform: translate(0, 0); } 35% { transform: translate(-180px, 30px); } 70% { transform: translate(-60px, 90px); } }
.you { position: fixed; left: 0; top: 0; z-index: 70; pointer-events: none; padding: 2px 8px; border-radius: 6px; font-size: 11px; font-weight: 600; color: #fff; background: #3B82F6; opacity: 0; transition: opacity .3s; will-change: transform; }
.you.is-on { opacity: 1; }

/* Frames */
.frame { max-width: 780px; margin: 0 auto clamp(80px, 12vh, 140px); scroll-margin-top: calc(var(--nav-h) + 24px); }
.frame__label { display: flex; align-items: center; gap: 8px; margin: 0 0 8px 2px; font-size: 12px; font-weight: 500; color: var(--muted); }
.frame__dot { width: 8px; height: 8px; border-radius: 2px; background: color-mix(in srgb, var(--ink) 25%, transparent); transition: background-color .4s; }
.frame.is-revealed .frame__dot { background: var(--accent); }
.frame__size { margin-left: auto; font-variant-numeric: tabular-nums; }
.board { position: relative; border-radius: 22px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); overflow: hidden; transform-origin: 50% 0; will-change: transform; }
.frame.is-selected .board { box-shadow: 0 0 0 1.5px var(--accent), var(--shadow); }
.art__stage { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: var(--surface); touch-action: pan-y; }
.frame:not(.is-revealed) .art__stage { cursor: none; }
.frame.is-revealed .art__stage { cursor: zoom-in; }
.art__img, .art__veil img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.art__veil { position: absolute; inset: 0; -webkit-mask-size: 100% 100%; mask-size: 100% 100%; transition: opacity .9s var(--ease); }
.art__veil img { filter: grayscale(1) contrast(.85) brightness(1.12); }
.art__veil::after { content: ""; position: absolute; inset: 0; background-color: color-mix(in srgb, var(--accent) 10%, transparent);
  background-image: linear-gradient(color-mix(in srgb, var(--accent) 22%, transparent) 1px, transparent 1px), linear-gradient(90deg, color-mix(in srgb, var(--accent) 22%, transparent) 1px, transparent 1px);
  background-size: 28px 28px; mix-blend-mode: multiply; }
[data-theme="dark"] .art__veil img { filter: grayscale(1) contrast(.9) brightness(.6); }
[data-theme="dark"] .art__veil::after { mix-blend-mode: screen; background-color: color-mix(in srgb, var(--accent) 6%, transparent); }
.frame.is-revealed .art__veil { opacity: 0; }
.art__hint { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); display: inline-flex; align-items: center; gap: 10px; padding: 9px 16px; border-radius: 999px; font-size: 13px; font-weight: 600; white-space: nowrap; color: var(--ink); background: color-mix(in srgb, var(--surface) 88%, transparent); box-shadow: 0 10px 30px -12px rgba(0,0,0,.35); pointer-events: none; transition: opacity .4s, transform .4s var(--ease); }
.art__brush { width: 16px; height: 16px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 25%, transparent); animation: hint-move 1.8s ease-in-out infinite; }
@keyframes hint-move { 0%, 100% { transform: translateX(-4px); } 50% { transform: translateX(6px); } }
.frame.is-painting .art__hint, .frame.is-revealed .art__hint { opacity: 0; transform: translate(-50%, -40%); }
.art__stage::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(100deg, transparent 30%, rgba(255,255,255,.55) 48%, color-mix(in srgb, #FEAA04 35%, transparent) 52%, transparent 70%); transform: translateX(-120%); }
.frame.is-ai .art__stage::after { animation: sweep 1.3s var(--ease); }
@keyframes sweep { to { transform: translateX(120%); } }

.board__body { padding: 22px 28px 26px; }
.board__kicker { display: flex; align-items: center; gap: 8px; margin: 0 0 6px; font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); }
.board__kicker span { padding: 2px 7px; border-radius: 6px; background: var(--accent-soft); letter-spacing: 0; }
.board__title { margin: 0 0 10px; font-size: clamp(22px, 2.3vw, 30px); line-height: 1.15; font-weight: 600; letter-spacing: -.025em; }
.insp__body { transition: filter .8s var(--ease), opacity .8s var(--ease); }
.frame:not(.is-revealed) .insp__body { filter: blur(5px); opacity: .4; user-select: none; }
.insp__body > p { margin: 0 0 10px; color: var(--ink-2); font-size: 16px; line-height: 1.65; }
.insp__body strong { color: var(--ink); font-weight: 600; }
.insp__row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 12px; }
.insp__label { font-size: 11px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-right: 4px; }
.tokens { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.tokens li { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 8px; font-size: 12.5px; font-weight: 500; background: color-mix(in srgb, var(--ink) 5%, transparent); }
.tokens li::before { content: ""; width: 9px; height: 9px; border-radius: 3px; background: var(--accent); }
.tokens li:nth-child(2n)::before { background: #FEAA04; }
.tokens li:nth-child(3n)::before { background: var(--lilac); }
.metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 14px 0 0; }
.metrics div { padding: 12px; border-radius: 14px; background: color-mix(in srgb, var(--ink) 4%, transparent); }
.metrics dt { font-size: 10.5px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.metrics dd { margin: 4px 0 0; font-size: 12.5px; color: var(--ink-2); line-height: 1.45; }
.metrics b { display: block; font-size: 28px; line-height: 1.1; color: var(--accent); font-variant-numeric: tabular-nums; }
.insp__cta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.insp__cta .btn { height: 48px; font-size: 14px; }
.burst { position: absolute; left: 50%; top: 40%; width: 0; height: 0; pointer-events: none; z-index: 5; }
.burst i { position: absolute; width: 8px; height: 12px; border-radius: 2px; }
.canvas__end { margin: 0; text-align: center; font-size: 13px; color: var(--muted); letter-spacing: .1em; }

/* Brush that follows the pointer over a sketch */
.brush { position: fixed; left: 0; top: 0; z-index: 60; width: 64px; height: 64px; margin: -32px 0 0 -32px; border-radius: 50%; border: 1.5px solid var(--accent); background: color-mix(in srgb, var(--accent) 10%, transparent); pointer-events: none; opacity: 0; transform: scale(.6); transition: opacity .25s, transform .25s var(--ease); }
.brush.is-on { opacity: 1; transform: scale(1); }

/* ---------- Dock ---------- */
.dock { position: fixed; left: 50%; bottom: 14px; z-index: 50; width: min(640px, calc(100% - 24px)); transform: translateX(-50%); border-radius: 18px; padding: 8px 10px 10px; }
.dock__timeline { position: relative; padding: 2px 4px 8px; }
.dock__track { position: absolute; left: 4px; right: 4px; top: 2px; height: 3px; border-radius: 3px; background: repeating-linear-gradient(90deg, color-mix(in srgb, var(--ink) 18%, transparent) 0 1px, transparent 1px 10px); }
.dock__fill { position: absolute; left: 0; top: 0; height: 100%; width: 100%; transform: scaleX(0); transform-origin: left; border-radius: 3px; background: var(--accent); }
.dock__head { position: absolute; top: -4px; left: 0; width: 11px; height: 11px; margin-left: -5px; border-radius: 50%; background: #F0645A; box-shadow: 0 0 0 3px color-mix(in srgb, #F0645A 25%, transparent); }
.dock__acts { display: grid; grid-template-columns: repeat(5, 1fr); padding-top: 10px; }
.dock__acts a { padding: 2px 6px; border-left: 1px solid var(--line); font-size: 11px; font-weight: 500; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; transition: color .3s; }
.dock__acts a b { color: var(--accent); font-weight: 600; }
.dock__acts a.is-active, .dock__acts a:hover { color: var(--ink); }
.dock__tools { display: flex; align-items: center; justify-content: center; gap: 6px; padding-top: 6px; border-top: 1px solid var(--line); }
.tool { height: 36px; min-width: 36px; display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 0 10px; border-radius: 10px; border: 1px solid transparent; background: none; color: var(--ink); font: 500 13px var(--font); cursor: pointer; transition: background-color .3s, border-color .3s, color .3s; }
.tool:hover { background: color-mix(in srgb, var(--ink) 6%, transparent); }
.tool.is-active { background: var(--ink); color: var(--bg); }
.tool--ai { border-color: color-mix(in srgb, var(--accent) 35%, transparent); }
.tool--ai:hover { background: linear-gradient(100deg, var(--accent), #FEAA04); color: #fff; border-color: transparent; }
.dock__sep { width: 1px; height: 22px; margin: 0 4px; background: var(--line); }
.swatches { display: flex; gap: 6px; }
.swatch { width: 24px; height: 24px; padding: 0; border-radius: 50%; border: 2px solid var(--surface); background: var(--sw); box-shadow: 0 0 0 1px var(--line); cursor: pointer; transition: transform .3s var(--ease), box-shadow .3s; }
.swatch:hover { transform: scale(1.15); }
.swatch.is-active { box-shadow: 0 0 0 2px var(--sw); }
.play { height: 36px; display: inline-flex; align-items: center; gap: 8px; padding: 0 14px; border: 0; border-radius: 10px; font: 600 13px var(--font); color: #fff; background: #F0645A; cursor: pointer; transition: transform .3s var(--ease), background-color .3s; }
.play:hover { transform: translateY(-1px); }
.play small { opacity: .75; font-weight: 500; }
.play__ico { width: 0; height: 0; border-left: 8px solid #fff; border-top: 5px solid transparent; border-bottom: 5px solid transparent; }
.play[aria-pressed="true"] { background: var(--ink); color: var(--bg); }
.play[aria-pressed="true"] .play__ico { width: 9px; height: 10px; border: 0; border-left: 3px solid currentColor; border-right: 3px solid currentColor; }

/* Lightbox */
.lightbox { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 24px; background: rgba(10, 12, 11, .82); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); cursor: zoom-out; }
.lightbox[hidden] { display: none; }
.lightbox img { max-width: min(1280px, 92vw); max-height: 86vh; border-radius: 16px; box-shadow: 0 30px 80px rgba(0,0,0,.5); }

.js .sc [data-in] { opacity: 0; transform: translateY(22px); }
.sc .footer { margin-bottom: 0; }

/* ---------- Responsive ---------- */
@media (max-width: 1240px) { .workspace { grid-template-columns: 210px minmax(0, 1fr); } .inspector { display: none; } }
@media (max-width: 960px) { .workspace { grid-template-columns: minmax(0, 1fr); } .layers { display: none; } }
@media (max-width: 600px) {
  .dock { padding: 6px 8px 8px; }
  .dock__acts a { font-size: 9.5px; padding: 2px 3px; }
  .dock__acts a b { display: block; }
  .tool__txt { display: none; }
  .swatch { width: 20px; height: 20px; }
  .board__body { padding: 18px 18px 20px; }
  .metrics { grid-template-columns: 1fr; }
  .insp__cta .btn { flex: 1 1 100%; justify-content: center; }
  .cover__tag { font-size: 10px; }
  @keyframes ghost-b { 0%, 100% { transform: translate(0, 0); } 50% { transform: translate(-90px, 20px); } }
}
@media (prefers-reduced-motion: reduce) { .sc-bg span, .ghost, .art__brush { animation: none; } }

/* Story cover: plain two-line title (no selection outline, handles, text or size tiles), intro sits closer */
.sc:not(.hc) .cover__board { padding: 0; border: 0; }
.sc:not(.hc) .cover__board > .h, .sc:not(.hc) .cover__tag, .sc:not(.hc) .cover__dims { display: none; }
.sc:not(.hc) .cover__title { font-size: clamp(28px, 5.6vw, 56px); line-height: 1.12; }
.sc:not(.hc) .cover__line { white-space: nowrap; }
.sc:not(.hc) .cover__lead { margin-top: 20px; }
/* Story cover sits 32px higher (content is vertically centred, so top/bottom padding shift together) */
.sc:not(.hc) .cover { padding-top: 0; padding-bottom: 54px; min-height: calc(100vh - var(--nav-h) - 254px); }

/* Story page: Layers / Design pills collapse their panels (same as Homepage v2) */
.sc:not(.hc) .panel-head { display: flex; align-items: center; }
.sc:not(.hc) .panel-head .layers__title { margin-bottom: 0; }
.sc:not(.hc) .panel-pill { display: inline-flex; align-items: center; gap: 6px; padding: 4px 8px 4px 10px; border: 0; border-radius: 8px; font: 600 12px var(--font); color: var(--ink); background: color-mix(in srgb, var(--ink) 6%, transparent); cursor: pointer; transition: background-color .3s; }
.sc:not(.hc) .panel-pill:hover { background: color-mix(in srgb, var(--ink) 10%, transparent); }
.sc:not(.hc) .panel-pill svg { color: var(--muted); transition: transform .4s var(--ease); }
.sc:not(.hc) .is-collapsed .panel-pill svg { transform: rotate(-90deg); }
.sc:not(.hc) .panel-body { display: grid; grid-template-rows: 1fr; transition: grid-template-rows .45s var(--ease), opacity .3s; }
.sc:not(.hc) .panel-body > div { min-height: 0; overflow: hidden; }
.sc:not(.hc) .layers .panel-body > div { padding-top: 10px; }
.sc:not(.hc) .is-collapsed .panel-body { grid-template-rows: 0fr; opacity: 0; }
.sc:not(.hc) .layers.is-collapsed, .sc:not(.hc) .inspector.is-collapsed { overflow: hidden; }
.sc:not(.hc) .inspector.is-collapsed .insp-sec--tabs { border-bottom: 0; }

/* Parul cursor: left of the intro paragraph, in front of everything */
.sc:not(.hc) .ghost--me { z-index: 6; left: 0; right: auto; top: calc(100% + 30px); bottom: auto; animation: ghost-me 9s ease-in-out infinite; }
@keyframes ghost-me { 0%, 100% { transform: translate(0, 0); } 50% { transform: translate(6px, -6px); } }
@media (max-width: 900px) { .sc:not(.hc) .ghost--me { left: 0; right: auto; top: calc(100% + 92px); bottom: auto; } }
