/* Animated scenes (scenes.php, scenes.js): the markup is the finished picture; scenes.js adds .is-anim and shows each
   data-step with .is-on. Only opacity, transform and SVG line drawing move. */
.sh-inner { --sh-ease-out: cubic-bezier(0.23, 1, 0.32, 1); --sh-ease-in-out: cubic-bezier(0.77, 0, 0.175, 1); --sh-forest: #0f2822; }
.sh-scene { position: relative; width: 100%; height: 100%; overflow: hidden; container-type: size; font-family: var(--sh-sans); color: var(--sh-ink); text-align: left; }
.sh-scene-grid { position: absolute; inset: 0; display: grid; grid-template-columns: repeat(4, 1fr); pointer-events: none; }
.sh-scene-grid span { border-right: 1px solid rgba(255, 255, 255, 0.08); }
.sh-scene-grid::after { content: ""; position: absolute; inset: 50% 0 auto; height: 1px; background: rgba(255, 255, 255, 0.08); }
.sh-skel { display: inline-block; height: 0.62em; border-radius: 99px; background: #e6e6e3; vertical-align: middle; }
.sh-scene-lines { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.sh-scene-lines path { fill: none; stroke: rgba(255, 255, 255, 0.5); stroke-width: 1.5; stroke-linecap: round; }
.sh-scene.is-anim [data-step] { opacity: 0; transform: translateY(8px); transition: opacity 0.45s var(--sh-ease-out), transform 0.45s var(--sh-ease-out); }
.sh-scene.is-anim [data-step].is-on { opacity: 1; transform: none; }
.sh-scene.is-anim path[data-step] { opacity: 1; transform: none; stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 0.7s var(--sh-ease-in-out); }
.sh-scene.is-anim path[data-step].is-on { stroke-dashoffset: 0; }
.sh-scene.is-out [data-step] { transition-duration: 0.35s; }

/* Hero: an assistant answers a buyer question */
.sh-phero-scene { aspect-ratio: 16 / 9; overflow: hidden; border-radius: 8px; background: radial-gradient(120% 90% at 50% 0%, #1f2d28 0%, #151515 62%); }
@media (max-width: 809px) { .sh-phero-scene { aspect-ratio: 4 / 5; } }
.sh-ans { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; padding: 24px; font-size: clamp(11px, 1.15cqw, 14px); }
.sh-ans-prompt, .sh-ans-card { width: min(600px, 100%); border-radius: 8px; background: #fff; box-shadow: 0 8px 40px rgba(0, 0, 0, 0.28); }
.sh-ans-prompt { padding: 12px; background: rgba(255, 255, 255, 0.96); }
.sh-ans-q { min-height: 24px; padding-inline: 4px; font-size: 1em; line-height: 24px; }
.sh-ans-q.is-typing::after { content: ""; display: inline-block; width: 1px; height: 1em; margin-left: 2px; vertical-align: -0.15em; background: currentColor; animation: sh-caret 1s steps(1) infinite; }
.sh-ans-bar { margin-top: 18px; display: flex; align-items: center; justify-content: space-between; }
.sh-ans-to { font-size: 0.86em; color: var(--sh-text-2); }
.sh-ans-who { font-weight: 600; color: var(--sh-ink); }
.sh-ans-send { display: flex; width: 28px; height: 28px; align-items: center; justify-content: center; border-radius: 6px; background: var(--sh-forest); color: #fff; transition: transform 0.14s var(--sh-ease-out); }
.sh-ans-send.is-press { transform: scale(0.92); }
.sh-ans-card { padding: 16px 16px 14px; }
.sh-ans-head { display: flex; align-items: center; gap: 8px; font-size: 0.86em; font-weight: 500; color: var(--sh-text-2); }
.sh-ans-spark { display: flex; color: var(--sh-forest); }
.sh-ans-reading { display: none; }
.sh-ans-card.is-reading .sh-ans-reading { display: inline; }
.sh-ans-card.is-reading .sh-ans-done { display: none; }
.sh-ans-card.is-reading .sh-ans-spark { animation: sh-spark 0.9s var(--sh-ease-in-out) infinite alternate; }
@keyframes sh-spark { from { opacity: 0.35; transform: scale(0.9); } to { opacity: 1; transform: none; } }
.sh-ans-intro { margin-top: 14px; }
.sh-ans-list { list-style: none; padding: 0; margin: 12px 0 0; display: grid; gap: 10px; counter-reset: sh-ans; }
.sh-ans-list li { display: flex; align-items: center; gap: 8px; }
.sh-ans-list li::before { counter-increment: sh-ans; content: counter(sh-ans) "."; width: 1.2em; font-size: 0.86em; color: var(--sh-text-2); }
.sh-ans-brand { padding: 2px 8px; border-radius: 4px; background: var(--sh-forest); color: #fff; font-weight: 600; box-shadow: 0 0 0 4px rgba(15, 40, 34, 0.14); transition: background-color 0.35s var(--sh-ease-out), color 0.35s var(--sh-ease-out), box-shadow 0.35s var(--sh-ease-out); }
.sh-scene.is-anim .sh-ans-brand:not(.is-lit) { background: #e7efe9; color: var(--sh-forest); box-shadow: 0 0 0 0 rgba(15, 40, 34, 0); }
.sh-ans-cite { padding: 1px 5px; border-radius: 3px; background: #f0f0ee; font-size: 0.72em; color: var(--sh-text-2); }
.sh-ans-sources { margin-top: 12px; padding-bottom: 12px; display: flex; flex-wrap: wrap; gap: 8px; border-bottom: 1px solid var(--sh-line); }
.sh-ans-src { display: inline-flex; align-items: center; gap: 6px; padding: 6px 8px; border: 1px solid var(--sh-line); border-radius: 6px; font-size: 0.8em; }
.sh-ans-src i { width: 12px; height: 12px; border-radius: 3px; background: #d9d9d6; }
.sh-ans-src.is-yours { border-color: rgba(15, 40, 34, 0.35); }
.sh-ans-src.is-yours i { background: var(--sh-forest); }
.sh-ans-src b { padding: 1px 5px; border-radius: 3px; background: #e7efe9; font-size: 0.86em; font-weight: 600; color: var(--sh-forest); }
@media (max-width: 809px) { .sh-ans { gap: 12px; padding: 16px; } .sh-ans-card { padding: 12px; } .sh-ans-list { gap: 8px; } }

/* Built for rows: picture frames that hold a scene */
.sh-mkrow-scene { background: #1d2230; }
.sh-mkrow:nth-child(2) .sh-mkrow-scene { background: #1e3a32; }

/* Entities: your brand joined to the entities around it, and its schema */
.sh-ent-node { position: absolute; translate: -50% -50%; padding: 0.45em 0.9em; border: 1px solid rgba(255, 255, 255, 0.28); border-radius: 99px; background: #2c3240; color: #fff; font-size: clamp(8px, 1.6cqw, 13px); white-space: nowrap; }
.sh-ent-core { padding: 0.6em 1.1em; border: 0; background: #fff; color: var(--sh-ink); font-size: clamp(9px, 1.9cqw, 15px); font-weight: 600; box-shadow: 0 0 0 6px rgba(255, 255, 255, 0.08), 0 0 48px rgba(255, 255, 255, 0.18); }
.sh-scene.is-anim .sh-ent-core::after { content: ""; position: absolute; inset: -6px; border: 1px solid rgba(255, 255, 255, 0.4); border-radius: 99px; animation: sh-ring 2.6s var(--sh-ease-out) infinite; }
@keyframes sh-ring { from { opacity: 0.8; transform: scale(1); } to { opacity: 0; transform: scale(1.35); } }
.sh-code { position: absolute; top: 50%; right: 4%; width: 37%; translate: 0 -50%; padding: 2.2cqw; border-radius: 8px; background: #fff; box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3); }
.sh-code-tab { padding-bottom: 1.4cqw; margin-bottom: 1.4cqw; border-bottom: 1px solid var(--sh-line); font-size: clamp(7px, 1.4cqw, 11px); font-weight: 500; color: var(--sh-text-2); }
.sh-code code { display: grid; font-family: var(--sh-mono); font-size: clamp(6px, 1.3cqw, 10.5px); line-height: 1.65; color: #2b3a35; white-space: pre; overflow: hidden; }

/* Citations: three sources feed an AI answer */
.sh-cit-src { position: absolute; left: 5%; width: 33%; translate: 0 -50%; display: grid; grid-template-columns: auto 1fr; gap: 0.2em 0.7em; padding: 1.6cqw 1.8cqw; border-radius: 8px; background: #fff; font-size: clamp(7px, 1.45cqw, 12px); box-shadow: 0 8px 28px rgba(0, 0, 0, 0.22); }
.sh-cit-src i { grid-row: span 2; width: 2.2em; height: 2.2em; border-radius: 5px; background: #e6e6e3; }
.sh-cit-src.is-yours { outline: 2px solid #9fc4b3; }
.sh-cit-src.is-yours i { background: var(--sh-forest); }
.sh-cit-kind { font-weight: 600; }
.sh-cit-text { color: var(--sh-text-2); }
.sh-cit-answer { position: absolute; top: 50%; left: 58%; width: 37%; translate: 0 -50%; padding: 2.2cqw; border-radius: 8px; background: #fff; font-size: clamp(7px, 1.45cqw, 12px); box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3); }
.sh-cit-head { font-weight: 600; color: var(--sh-text-2); }
.sh-cit-body { margin-top: 1.2em; display: grid; gap: 0.7em; }
.sh-cit-body .sh-skel { display: block; }
.sh-cit-mark { justify-self: start; padding: 0.15em 0.6em; border-radius: 4px; background: #e7efe9; color: var(--sh-forest); font-weight: 600; }
.sh-cit-chips { margin-top: 1.4em; display: flex; gap: 0.6em; }
.sh-cit-chip { display: flex; width: 2em; height: 2em; align-items: center; justify-content: center; border-radius: 50%; background: var(--sh-forest); color: #fff; font-size: 0.9em; font-weight: 600; }
.sh-scene.is-anim .sh-cit-chip[data-step] { transform: scale(0.6); }
.sh-scene.is-anim .sh-cit-chip[data-step].is-on { transform: none; transition: opacity 0.3s var(--sh-ease-out), transform 0.45s cubic-bezier(0.34, 1.56, 0.64, 1); }

/* Measurement: a visibility report */
.sh-mes { position: absolute; inset: 9% 7%; display: flex; flex-direction: column; gap: 2.4cqw; padding: 2.6cqw 3cqw; border-radius: 8px; background: #fff; font-size: clamp(7px, 1.45cqw, 12px); box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3); }
.sh-mes-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.6em; }
.sh-mes-title { font-weight: 600; }
.sh-mes-tabs { display: flex; gap: 0.3em; padding: 0.25em; border-radius: 6px; background: #f2f2f0; }
.sh-mes-tab { padding: 0.3em 0.7em; border-radius: 4px; color: var(--sh-text-2); white-space: nowrap; transition: background-color 0.3s var(--sh-ease-out), color 0.3s var(--sh-ease-out); }
.sh-mes-tab.is-active { background: var(--sh-forest); color: #fff; }
.sh-mes-plot { position: relative; flex: 1; min-height: 0; }
.sh-mes-grid, .sh-mes-chart { position: absolute; inset: 0; width: 100%; height: 100%; }
.sh-scene.is-anim .sh-mes-chart[data-step] { opacity: 1; transform: none; clip-path: inset(0 100% 0 0); transition: clip-path 1.4s var(--sh-ease-in-out); }
.sh-scene.is-anim .sh-mes-chart[data-step].is-on { clip-path: inset(0 0 0 0); }
.sh-mes-gridline { fill: none; stroke: #eeeeec; stroke-width: 1; vector-effect: non-scaling-stroke; }
.sh-mes-area { fill: rgba(15, 40, 34, 0.08); stroke: none; }
.sh-mes-line { fill: none; stroke: var(--sh-forest); stroke-width: 2; vector-effect: non-scaling-stroke; }
.sh-mes-tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.4cqw; }
.sh-mes-tile { display: grid; gap: 0.7em; padding: 1.4cqw 1.6cqw; border: 1px solid var(--sh-line); border-radius: 6px; }
.sh-mes-label { color: var(--sh-text-2); }
.sh-mes-bar, .sh-mes-split { display: flex; height: 0.6em; overflow: hidden; border-radius: 99px; background: #eeeeec; }
.sh-mes-bar i { width: 72%; background: var(--sh-forest); transform-origin: left; }
.sh-mes-split i { transform-origin: left; }
.sh-mes-split i:nth-child(1) { width: 64%; background: var(--sh-forest); }
.sh-mes-split i:nth-child(2) { width: 24%; background: #b9cfc5; }
.sh-mes-split i:nth-child(3) { width: 12%; background: #e3b7ad; }
.sh-scene.is-anim .sh-mes-bar i[data-step], .sh-scene.is-anim .sh-mes-split i[data-step] { opacity: 1; transform: scaleX(0.08); transition: transform 0.9s var(--sh-ease-in-out); }
.sh-scene.is-anim .sh-mes-bar i[data-step].is-on, .sh-scene.is-anim .sh-mes-split i[data-step].is-on { transform: none; }
.sh-mes-up { justify-self: start; display: inline-flex; align-items: center; gap: 0.3em; padding: 0.2em 0.6em; border-radius: 4px; background: #e7efe9; color: var(--sh-forest); font-weight: 600; }

/* Engagement cards (tall, dark green) and process steps (wide, dark) */
.sh-scard-scene { display: block; }
/* Text sizes follow each scene's own size (container units resolve against the scene, so they sit on its children). */
.sh-scene-tasks > *, .sh-scene-brief > *, .sh-scene-coverage > *, .sh-scene-assistant > *, .sh-scene-crawl > *, .sh-scene-timeline > * { font-size: clamp(7px, 3.4cqmin, 13px); }
.sh-task { position: absolute; top: 9%; left: 50%; width: 82%; translate: -50% 0; padding: 1.3em; border-radius: 8px; background: #fff; box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3); }
@container (min-aspect-ratio: 5/4) { .sh-task { top: 50%; width: 56%; translate: -50% -50%; } }
.sh-task-head { display: flex; align-items: center; gap: 0.6em; font-weight: 500; }
.sh-task-icon { display: flex; flex-shrink: 0; color: var(--sh-forest); }
.sh-task-busy { display: none; }
.sh-scene.is-anim:not(.is-complete) .sh-task-busy { display: inline; color: var(--sh-text-2); }
.sh-scene.is-anim:not(.is-complete) .sh-task-done { display: none; }
.sh-scene.is-anim:not(.is-complete) .sh-task-icon { animation: sh-spark 0.9s var(--sh-ease-in-out) infinite alternate; }
.sh-task-list { list-style: none; padding: 0; margin: 1.1em 0 0; display: grid; gap: 0.75em; }
.sh-task-row { display: flex; align-items: center; gap: 0.6em; }
.sh-task-mark { position: relative; width: 1.25em; height: 1.25em; flex-shrink: 0; }
.sh-spin { display: none; position: absolute; inset: 0; border: 1.5px solid #cfd8d4; border-top-color: var(--sh-forest); border-radius: 50%; animation: sh-spin 0.8s linear infinite; }
@keyframes sh-spin { to { transform: rotate(360deg); } }
.sh-tick { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; border-radius: 50%; background: var(--sh-forest); color: #fff; transition: opacity 0.3s var(--sh-ease-out), transform 0.3s var(--sh-ease-out); }
.sh-task-label { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; transition: color 0.3s var(--sh-ease-out); }
.sh-task-badge { flex-shrink: 0; padding: 0.15em 0.55em; border-radius: 4px; background: #e7efe9; color: var(--sh-forest); font-size: 0.82em; font-style: normal; font-weight: 600; transition: background-color 0.3s var(--sh-ease-out), color 0.3s var(--sh-ease-out); }
.sh-badge-before { display: none; }
.sh-scene.is-anim .sh-task-row:not(.is-done) .sh-spin { display: block; }
.sh-scene.is-anim .sh-task-row:not(.is-done) .sh-tick { opacity: 0; transform: scale(0.6); }
.sh-scene.is-anim .sh-task-row:not(.is-done) .sh-task-label { color: var(--sh-text-2); }
.sh-scene.is-anim .sh-task-row:not(.is-done) .sh-task-badge { background: #f6ecd9; color: #7a5413; }
.sh-scene.is-anim .sh-task-row:not(.is-done) .sh-badge-before { display: inline; }
.sh-scene.is-anim .sh-task-row:not(.is-done) .sh-badge-after { display: none; }
.sh-task-foot { margin-top: 1.1em; padding-top: 0.9em; border-top: 1px solid var(--sh-line); }
.sh-task-file, .sh-brief-file { display: inline-flex; align-items: center; gap: 0.5em; padding: 0.35em 0.6em; border: 1px solid var(--sh-line); border-radius: 6px; font-size: 0.9em; }
.sh-task-file i, .sh-brief-file i { width: 0.9em; height: 1.15em; border-radius: 2px; background: var(--sh-forest); }
.sh-task-file svg, .sh-brief-file svg { margin-left: auto; color: var(--sh-text-2); }

.sh-task.sh-brief { top: 6%; padding: 1.1em 1.2em; }
/* In a wide frame (a blog cover) the brief is centred like the other task cards; the tall service cards keep top 6%. */
@container (min-aspect-ratio: 5/4) { .sh-task.sh-brief { top: 50%; } }
.sh-brief-chips { margin-top: 0.8em; display: flex; flex-wrap: wrap; gap: 0.35em; }
.sh-brief-chip { padding: 0.25em 0.65em; border-radius: 99px; background: #eef3f0; color: var(--sh-forest); font-size: 0.86em; font-weight: 500; }
.sh-brief-outline { list-style: none; padding: 0; margin: 0.8em 0 0; display: grid; gap: 0.45em; }
.sh-brief-outline li { display: flex; align-items: center; gap: 0.6em; }
.sh-brief-outline b { width: 1.9em; font-family: var(--sh-mono); font-size: 0.78em; font-weight: 500; color: var(--sh-text-2); }
.sh-brief-h2 { padding-left: 1em; }
.sh-brief-exports { margin-top: 0.8em; padding-top: 0.7em; display: grid; gap: 0.35em; border-top: 1px solid var(--sh-line); }
.sh-brief-label { font-size: 0.8em; color: var(--sh-text-2); }
.sh-brief-file { display: flex; }

.sh-cov-head { position: absolute; top: 5%; left: 8%; color: #fff; font-weight: 500; }
.sh-cov-article { position: absolute; left: 8%; width: 84%; padding: 1em 1.1em; border-radius: 8px; background: #fff; box-shadow: 0 12px 34px rgba(0, 0, 0, 0.32); }
.sh-cov-article:nth-of-type(1) { rotate: -1.5deg; }
.sh-cov-article:nth-of-type(3) { rotate: 1.2deg; }
.sh-cov-pub { display: flex; align-items: center; gap: 0.5em; }
.sh-cov-pub i { width: 1.1em; height: 1.1em; border-radius: 3px; background: #e6e6e3; }
.sh-cov-title { margin-top: 0.7em; line-height: 1.6; }
.sh-cov-title mark { padding: 0.05em 0.4em; border-radius: 3px; background: #e7efe9; color: var(--sh-forest); font-weight: 600; }
.sh-cov-link { margin-top: 0.7em; display: inline-flex; align-items: center; gap: 0.35em; padding: 0.2em 0.55em; border-radius: 4px; background: var(--sh-forest); color: #fff; font-size: 0.8em; font-weight: 600; }

.sh-mini { position: absolute; inset: 9% 8% auto; display: grid; gap: 0.9em; }
.sh-mini-q { justify-self: end; max-width: 80%; padding: 0.6em 0.9em; border-radius: 14px 14px 4px 14px; background: #fff; box-shadow: 0 8px 28px rgba(0, 0, 0, 0.3); }
.sh-mini-src { display: flex; align-items: center; gap: 0.45em; color: rgba(255, 255, 255, 0.82); font-size: 0.9em; }
.sh-mini-src i { width: 0.9em; height: 0.9em; border-radius: 3px; background: rgba(255, 255, 255, 0.35); }
.sh-mini-src i:first-of-type { margin-left: 0.3em; background: #9fc4b3; }
.sh-mini-ans { display: grid; gap: 0.6em; padding: 1.1em; border-radius: 8px; background: #fff; box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3); }
.sh-mini-line { display: flex; align-items: center; gap: 0.5em; }
.sh-mini-brand { padding: 0.15em 0.6em; border-radius: 4px; background: var(--sh-forest); color: #fff; font-weight: 600; transition: background-color 0.35s var(--sh-ease-out), color 0.35s var(--sh-ease-out); }
.sh-scene.is-anim .sh-mini-brand:not(.is-done) { background: #e7efe9; color: var(--sh-forest); }
.sh-mini-foot { margin-top: 0.3em; padding-top: 0.7em; display: flex; align-items: center; justify-content: space-between; border-top: 1px solid var(--sh-line); font-size: 0.86em; }
.sh-mini-site { display: inline-flex; align-items: center; gap: 0.4em; }
.sh-mini-site i { width: 0.9em; height: 0.9em; border-radius: 2px; background: var(--sh-forest); }
.sh-mini-cited { padding: 0.1em 0.5em; border-radius: 3px; background: #e7efe9; color: var(--sh-forest); font-weight: 600; }

.sh-crawl-page { position: absolute; top: 10%; bottom: 10%; left: 10%; width: 42%; display: flex; flex-direction: column; gap: 0.7em; padding: 1.1em; overflow: hidden; border-radius: 8px; background: #fff; box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35); }
.sh-crawl-page .sh-skel { display: block; height: 0.55em; }
.sh-crawl-nav { height: 0.7em; border-radius: 3px; background: #ececea; }
.sh-crawl-hero { height: 2.6em; border-radius: 5px; background: #e7efe9; }
.sh-crawl-img { height: 3.4em; border-radius: 5px; background: #ececea; }
.sh-crawl-scan { position: absolute; inset: 0; opacity: 0; pointer-events: none; border-bottom: 2px solid #3fa57c; background: linear-gradient(to bottom, rgba(63, 165, 124, 0) 70%, rgba(63, 165, 124, 0.16)); }
.sh-scene.is-anim .sh-crawl-scan.is-on { animation: sh-scan 2.6s linear forwards; }
@keyframes sh-scan { from { opacity: 1; transform: translateY(-100%); } 92% { opacity: 1; } to { opacity: 0; transform: translateY(0); } }
.sh-crawl-flag { position: absolute; left: 56%; translate: 0 -50%; display: flex; align-items: center; gap: 0.5em; padding: 0.4em 0.75em; border-radius: 6px; background: #fff; box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3); font-weight: 500; }
.sh-crawl-flag::before { content: ""; width: 0.6em; height: 0.6em; border-radius: 50%; background: #d08a2c; }
.sh-crawl-sum { position: absolute; right: 6%; bottom: 10%; padding: 0.45em 0.8em; border-radius: 6px; background: var(--sh-forest); color: #fff; font-size: 0.9em; font-weight: 600; }

.sh-gantt { position: absolute; top: 50%; left: 50%; width: 82%; translate: -50% -50%; padding: 1.3em; border-radius: 8px; background: #fff; box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35); }
.sh-gantt-head, .sh-gantt-row { display: grid; grid-template-columns: 30% 1fr; align-items: center; gap: 0.8em; }
.sh-gantt-title { font-weight: 600; }
.sh-gantt-months { display: grid; grid-template-columns: repeat(3, 1fr); font-size: 0.82em; color: var(--sh-text-2); }
.sh-gantt-rows { margin-top: 1em; display: grid; gap: 0.9em; }
.sh-gantt-label { color: var(--sh-text-2); }
.sh-gantt-track { position: relative; height: 1.15em; border-radius: 4px; background: repeating-linear-gradient(to right, #f2f2f0 0 calc(33.333% - 1px), #e4e4e1 calc(33.333% - 1px) 33.333%); }
.sh-gantt-bar { position: absolute; top: 0; bottom: 0; border-radius: 4px; background: var(--sh-forest); transform-origin: left; }
.sh-gantt-row:last-child .sh-gantt-bar { background: #9fc4b3; }
.sh-scene.is-anim .sh-gantt-bar[data-step] { opacity: 1; transform: scaleX(0.06); transition: transform 0.9s var(--sh-ease-in-out); }
.sh-scene.is-anim .sh-gantt-bar[data-step].is-on { transform: none; }

/* About hero: Sentosa at work (strategy, delivery, one accountable lead, your organic channel) */
.sh-scene-group > * { font-size: clamp(7px, 2.4cqmin, 15px); }
.sh-grp-card { position: absolute; top: 12%; width: 32%; padding: 1.2em; border-radius: 8px; background: #fff; box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3); }
.sh-grp-lead { left: 6%; }
.sh-grp-exec { right: 6%; }
.sh-grp-head { display: flex; align-items: center; justify-content: space-between; gap: 0.6em; }
.sh-grp-head b { font-family: var(--sh-serif); font-size: 1.5em; font-weight: 400; letter-spacing: -0.02em; }
.sh-grp-role { padding: 0.15em 0.55em; border-radius: 4px; background: #e7efe9; color: var(--sh-forest); font-size: 0.82em; font-weight: 600; }
.sh-grp-exec .sh-grp-role { background: #f1ede4; color: #6b5323; }
.sh-grp-card .sh-task-list { margin-top: 0.9em; gap: 0.6em; }
.sh-grp-plan { position: absolute; top: 26%; left: 50%; translate: -50% -50%; padding: 0.5em 1em; border-radius: 99px; background: #fff; color: var(--sh-forest); font-weight: 600; white-space: nowrap; box-shadow: 0 0 0 6px rgba(255, 255, 255, 0.08), 0 8px 30px rgba(0, 0, 0, 0.3); }
.sh-grp-out { position: absolute; top: 56%; left: 50%; width: 42%; translate: -50% 0; padding: 1.1em 1.2em; border-radius: 8px; background: #fff; box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3); }
.sh-grp-out-title { font-weight: 600; }
.sh-grp-chart { display: block; width: 100%; height: 6.5em; margin-top: 0.6em; }
.sh-scene.is-anim .sh-grp-chart[data-step] { opacity: 1; transform: none; clip-path: inset(0 100% 0 0); transition: clip-path 1.4s var(--sh-ease-in-out); }
.sh-scene.is-anim .sh-grp-chart[data-step].is-on { clip-path: inset(0 0 0 0); }
@container (max-aspect-ratio: 1/1) {
  .sh-scene-group .sh-scene-lines { display: none; }
  .sh-grp-card { top: 6%; width: 43%; padding: 0.9em; }
  .sh-grp-lead { left: 5%; }
  .sh-grp-exec { right: 5%; }
  .sh-grp-head { flex-direction: column; align-items: flex-start; gap: 0.3em; }
  .sh-grp-plan { top: 47%; }
  .sh-grp-out { top: 55%; width: 90%; }
  .sh-grp-chart { height: 9em; }
}

/* About Join: the team and the roles around it. Pills are filled so the lines stop at their edge (Chris, 2 Oct). */
.sh-join-scene { aspect-ratio: 3024 / 1192; overflow: hidden; border-radius: 8px; background: radial-gradient(100% 120% at 50% 50%, #1e3a32 0%, #0f2822 70%); }
@media (max-width: 809px) { .sh-join-scene { aspect-ratio: 16 / 9; } }
.sh-scene-team > * { font-size: clamp(7px, 2.6cqmin, 13px); }
.sh-team-core { position: absolute; top: 50%; left: 50%; translate: -50% -50%; padding: 0.7em 1.2em; border-radius: 99px; background: #fff; color: var(--sh-ink); font-weight: 600; white-space: nowrap; box-shadow: 0 0 0 8px rgba(255, 255, 255, 0.08), 0 0 60px rgba(255, 255, 255, 0.18); }
.sh-team-core i { margin: 0 0.2em; font-style: normal; color: var(--sh-text-2); }
.sh-team-node { position: absolute; translate: -50% -50%; display: inline-flex; align-items: center; gap: 0.5em; padding: 0.35em 0.8em 0.35em 0.35em; border: 1px solid rgba(255, 255, 255, 0.28); border-radius: 99px; background: #26423a; color: #fff; white-space: nowrap; }
.sh-team-avatar { display: flex; width: 1.9em; height: 1.9em; align-items: center; justify-content: center; border-radius: 50%; background: #fff; color: var(--sh-forest); font-style: normal; font-weight: 700; }
.sh-team-you { border-style: dashed; border-color: rgba(255, 255, 255, 0.6); }
.sh-team-you .sh-team-avatar { border: 1px dashed rgba(255, 255, 255, 0.7); background: #26423a; color: #fff; }
.sh-team-join { margin-left: 0.3em; padding: 0.15em 0.55em; border-radius: 4px; background: #fff; color: var(--sh-forest); font-size: 0.86em; font-weight: 600; }

@media (prefers-reduced-motion: reduce) {
  .sh-scene [data-step], .sh-ans-brand, .sh-mes-tab { transition: none; }
  .sh-ent-core::after, .sh-ans-spark, .sh-spin, .sh-task-icon, .sh-crawl-scan { animation: none; }
}

/* Case study growth chart (scenes-results.php): the line draws itself, the area fades in, then the last value */
.sh-scene-growth { height: auto; aspect-ratio: 600 / 340; container-type: normal; color: #fff; }
.sh-growth { display: block; width: 100%; height: 100%; overflow: visible; }
.sh-growth-grid line { stroke: rgba(255, 255, 255, 0.1); stroke-width: 1; }
.sh-growth text { font-family: var(--sh-sans); font-size: 12px; fill: rgba(255, 255, 255, 0.6); }
.sh-growth-area { fill: rgba(255, 255, 255, 0.08); stroke: none; }
.sh-growth-line { fill: none; stroke: #fff; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.sh-growth-end circle { fill: #fff; }
.sh-growth .sh-growth-end text { font-size: 22px; font-weight: 600; fill: #fff; }
.sh-scene.is-anim .sh-growth-area[data-step] { opacity: 0; stroke-dasharray: none; stroke-dashoffset: 0; transform: none; transition: opacity 0.8s var(--sh-ease-out); }
.sh-scene.is-anim .sh-growth-area[data-step].is-on { opacity: 1; }
.sh-scene.is-anim .sh-growth-line[data-step] { transition-duration: 1.3s; }

/* Case study results (scenes-results.php): the client, three figures counting up, before and after bars */
.sh-scene-results { container-type: inline-size; height: auto; min-height: 100%; display: flex; align-items: center; }
.sh-res { display: flex; flex-direction: column; justify-content: center; gap: 5cqw; width: 100%; padding: 7cqw 7cqw; }
.sh-res-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.sh-res-logo img { display: block; width: auto; height: 5.5cqw; max-height: 34px; min-height: 20px; max-width: 46cqw; object-fit: contain; }
.sh-res-name { font-family: var(--sh-serif); font-size: clamp(18px, 5cqw, 30px); letter-spacing: -0.03em; }
.sh-res-sector { font-family: var(--sh-mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--sh-text-2); text-align: right; }
.sh-res-figs { list-style: none; margin: 0; padding: 4cqw 0 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 3cqw; border-top: 1px solid rgba(0, 0, 0, 0.1); }
.sh-res-fig { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.sh-res-value { font-family: var(--sh-serif); font-size: clamp(24px, 7.4cqw, 52px); line-height: 1; letter-spacing: -0.04em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.sh-res-label { margin-top: 6px; font-size: clamp(12px, 2.3cqw, 15px); font-weight: 500; }
.sh-res-note { font-size: clamp(11px, 2cqw, 13px); color: var(--sh-text-2); }
.sh-res-bars { list-style: none; margin: 0; padding: 0; display: grid; gap: 2.2cqw; }
.sh-res-bar { display: grid; grid-template-columns: minmax(0, 26%) minmax(0, 1fr) minmax(0, 22%); align-items: center; gap: 2cqw; font-size: clamp(11px, 1.7cqw, 14px); }
.sh-res-bar-label { font-weight: 500; }
.sh-res-bar-nums { color: var(--sh-text-2); text-align: right; font-variant-numeric: tabular-nums; }
.sh-res-track { position: relative; height: 10px; border-radius: 99px; background: rgba(0, 0, 0, 0.06); overflow: hidden; }
.sh-res-track i { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 99px; }
.sh-res-a { width: 100%; background: var(--sh-ink); }
.sh-res-b { z-index: 1; width: max(var(--before), 4px); background: #8d8a84; }
.sh-scene.is-anim .sh-res-bar[data-step] .sh-res-a { transform: scaleX(0); transform-origin: left; transition: transform 1s var(--sh-ease-in-out) 0.15s; }
.sh-scene.is-anim .sh-res-bar[data-step].is-on .sh-res-a { transform: none; }
.sh-res-compact .sh-res { gap: 4cqw; padding: 6cqw 6cqw; }
.sh-res-compact .sh-res-value { font-size: clamp(22px, 7.6cqw, 46px); }
@container (max-width: 420px) { .sh-res-bar { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } .sh-res-bar-label { grid-column: 1 / -1; } }

/* A square logo (an app icon) with the client's name beside it, as its owners show it (Chris, 9 Oct). */
.sh-res-mark { display: inline-flex; align-items: center; gap: 10px; }
.sh-res-mark img { border-radius: 22%; }
.sh-res-mark-name { font-family: var(--sh-serif); font-size: clamp(16px, 4cqw, 24px); letter-spacing: -0.03em; }

/* Before and after columns inside a case study's story, each measure on its own scale; bars on narrow screens. The
   pairs line up at the top so every column stands on the same line, however many lines its label takes. */
.sh-scene-compare { height: auto; overflow: visible; container-type: inline-size; }
.sh-cmp { list-style: none; margin: 0; padding: 28px 0 0; display: grid; grid-template-columns: repeat(var(--n), minmax(0, 1fr)); gap: 12px; gap: 3cqw; align-items: start; }
.sh-cmp-group { display: grid; gap: 10px; min-width: 0; }
.sh-cmp-cols { display: flex; align-items: flex-end; justify-content: center; gap: 8%; height: 180px; border-bottom: 1px solid var(--sh-line); }
.sh-cmp-col { position: relative; flex: 0 1 36%; max-width: 44px; min-height: 2px; height: var(--a); border-radius: 3px 3px 0 0; background: var(--sh-ink); transition: height 0.9s var(--sh-ease-in-out), width 0.9s var(--sh-ease-in-out); }
.sh-cmp-b { height: var(--b); background: #8d8a84; }
.sh-cmp-a { transition-delay: 0.15s; }
.sh-cmp-val { position: absolute; bottom: 100%; left: 50%; transform: translateX(-50%); width: max-content; max-width: 46px; padding-bottom: 4px; font-size: 12px; line-height: 1.2; text-align: center; color: var(--sh-text-2); font-variant-numeric: tabular-nums; background: #fafafa; transition: opacity 0.3s ease 0.7s; }
.sh-cmp-a .sh-cmp-val { color: var(--sh-ink); font-weight: 500; }
.sh-cmp-label { font-size: 13px; line-height: 1.3; text-align: center; color: var(--sh-ink); }
.sh-scene.is-anim .sh-cmp-group:not(.is-on) .sh-cmp-col { height: 0; }
.sh-scene.is-anim .sh-cmp-group:not(.is-on) .sh-cmp-val { opacity: 0; }
@container (max-width: 520px) {
  .sh-cmp { grid-template-columns: minmax(0, 1fr); gap: 18px; padding-top: 0; }
  .sh-cmp-group { display: flex; flex-direction: column-reverse; gap: 6px; }
  .sh-cmp-cols { flex-direction: column; align-items: flex-start; justify-content: flex-start; gap: 4px; height: auto; padding-right: 76px; border-bottom: 0; }
  .sh-cmp-col { flex: none; max-width: none; min-width: 2px; min-height: 0; width: var(--a); height: 14px; border-radius: 0 3px 3px 0; }
  .sh-cmp-b { width: var(--b); height: 14px; }
  .sh-cmp-val { bottom: auto; top: 50%; left: 100%; transform: translateY(-50%); max-width: none; padding: 0 0 0 6px; white-space: nowrap; }
  .sh-cmp-label { text-align: left; font-weight: 500; }
  .sh-scene.is-anim .sh-cmp-group:not(.is-on) .sh-cmp-col { width: 0; height: 14px; }
}
