/* ---------- Storyboard layout (editor canvas / no JS) ---------- */
.ss-tpz__stage { position: relative; }
.ss-tpz__viewport { position: relative; }
.ss-tpz__map { position: relative; width: 100%; aspect-ratio: var(--ss-tpz-ratio, 16 / 10); }
.ss-tpz__img { width: 100%; height: 100%; object-fit: fill; }
.ss-tpz__pins { position: absolute; inset: 0; }
/* The scrim: only the block's "Darken image" tint, over the photo and under the markers — at 0 the photo is
   shown as shot. (Mark, 2026-10-09: "lose the scrim … it's dull" — the desaturation and the dark fade behind
   the corner label are gone; the label carries its own backing instead.) */
.ss-tpz__scrim {
	position: absolute;
	inset: 0;
	pointer-events: none;
	background: rgba(13, 15, 19, var(--ss-tpz-tint, 0.3));
}
.ss-tpz__hud { padding: 6px 10px; background: rgba(13, 15, 19, 0.55); border-radius: 4px; }
/* editor: the scrim covers only the map (the editor pins sit above it) */
.editor-styles-wrapper .ss-tpz__viewport { position: relative; }
.editor-styles-wrapper .ss-tpz__pins { z-index: 1; }
.ss-tpz__hud {
	position: absolute;
	left: var(--ss-gutter);
	top: clamp(16px, 3vw, 40px);
	z-index: 2;
	display: flex;
	align-items: center;
	gap: 14px;
	font-size: 0.8125rem;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--ss-muted);
}
.ss-tpz__brand { color: var(--ss-cyan); font-weight: 600; }
.ss-tpz__dots { display: none; }

.ss-tpz__step--intro,
.ss-tpz__step--outro { padding: clamp(40px, 6vw, 72px) var(--ss-gutter); }
.ss-tpz__copy { display: flex; flex-direction: column; gap: 18px; max-width: 760px; }
.ss-tpz__copy .ss-lede { max-width: 540px; }
.ss-tpz__copy .ss-lede:empty { display: none; }
.ss-tpz__cue {
	appearance: none;
	margin: 0;
	padding: 0;
	border: 0;
	background: none;
	font: inherit;
	font-size: 0.8125rem;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--ss-cyan);
	cursor: pointer;
	pointer-events: auto; /* the steps above it let clicks through; the cue takes them (Mark, 2026-10-09: "let them skip it") */
	align-self: flex-start;
}
.ss-tpz__cue:hover { text-decoration: underline; }

.ss-tpz__cards {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(280px, 100%), 1fr));
	gap: 16px;
	padding: 0 var(--ss-gutter);
}

.ss-tpz__card {
	display: flex;
	flex-direction: column;
	gap: 14px;
	height: 100%;
	padding: clamp(24px, 2.6vw, 36px);
	border-radius: 4px;
	background: var(--ss-paper);
	color: var(--ss-paper-ink);
	box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
}
.ss-tpz__meta {
	display: flex;
	justify-content: space-between;
	gap: 12px;
	font-size: 0.75rem;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--ss-teal);
}
.ss-tpz__where { color: var(--ss-paper-muted); text-align: right; }
.ss-tpz__title { font-size: clamp(1.5rem, 1rem + 1.2vw, 2rem); }
.ss-tpz__body { font-size: 1rem; line-height: 1.55; color: var(--ss-paper-body); }
.ss-tpz__body:empty { display: none; }
/* In the editor an empty field stays, so there is somewhere to type. */
.editor-styles-wrapper .ss-tpz__body:empty,
.editor-styles-wrapper .ss-tpz__stat:empty { display: block; min-height: 1.5em; }

/* Locations: every slide shows in the storyboard; live, only the active one. */
.ss-tpz__slides { display: flex; flex-direction: column; gap: 18px; }
.ss-tpz__slide { display: flex; flex-direction: column; gap: 10px; }
.ss-tpz__step--card.has-locations .ss-tpz__slide + .ss-tpz__slide { padding-top: 18px; border-top: 1px dashed var(--ss-paper-line); }
.ss-tpz__slide-head {
	display: flex;
	align-items: center;
	gap: 10px;
	font-size: 0.75rem;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--ss-paper-muted);
}
.ss-tpz__tag {
	padding: 2px 8px;
	border-radius: 999px;
	background: var(--ss-paper-ink);
	color: var(--ss-paper);
	font-weight: 600;
	letter-spacing: 0.04em;
}
.ss-tpz__controls { display: none; }

.ss-tpz.is-live .ss-tpz__slide:not(.is-active) { display: none; }
.ss-tpz.is-live .ss-tpz__slide.is-active { animation: ss-tpz-slide 400ms var(--ss-ease); }
@keyframes ss-tpz-slide { from { opacity: 0; transform: translateX(10px); } }
.ss-tpz.is-live .ss-tpz__controls {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding-top: 14px;
	border-top: 1px solid var(--ss-paper-line);
}
.ss-tpz__controls button {
	width: 44px;
	height: 44px;
	border: 1.5px solid var(--ss-paper-ink);
	border-radius: 50%;
	background: transparent;
	color: var(--ss-paper-ink);
	font: 600 1.375rem/1 var(--ss-font);
	cursor: pointer;
	transition: background 200ms, color 200ms;
}
.ss-tpz__controls button:hover { background: var(--ss-paper-ink); color: var(--ss-paper); }
.ss-tpz__controls button:focus-visible { outline: 2px solid var(--ss-teal); outline-offset: 3px; }
.ss-tpz__pos { font-size: 0.8125rem; font-weight: 600; font-variant-numeric: tabular-nums; }
.ss-tpz__stat {
	margin-top: auto;
	padding-top: 14px;
	border-top: 1px solid var(--ss-paper-line);
	font-size: 0.8125rem;
	font-weight: 500;
}
.ss-tpz__stat:empty { display: none; }

/* ---------- Markers (Touchpoint Markers handoff, 2026-10-07) ----------
 * One marker = a 72px halo behind a 44px circle holding the touchpoint's icon, or its number when it has none.
 * No number pill (unless "show numbers" is on) and no leader line. Shared by the page's pins (.ss-tpz__pin,
 * drawn by view.js) and the editor canvas's (.ss-tpz__epin, drawn by assets/editor-touchpoints.js). */
.ss-tpz {
	--ss-marker: #6cc9c9;
	--ss-marker-fill: #121816; /* dark: the icon/number on the teal circle, and its ring */
	--ss-marker-halo: rgba(108, 201, 201, 0.07);
	--ss-marker-halo-line: rgba(108, 201, 201, 0.16);
}
.ss-tpz__pin,
.ss-tpz__epin {
	position: absolute;
	width: 44px;
	height: 44px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: transparent;
	color: var(--ss-marker);
	cursor: pointer;
}
/* page pins sit in .ss-tpz__overlay; view.js sets each one's screen position as its transform */
.ss-tpz__overlay { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.ss-tpz__pin { left: 0; top: 0; pointer-events: auto; transition: transform 1100ms cubic-bezier(.65, 0, .25, 1), opacity 300ms; }
.ss-tpz.is-placing .ss-tpz__pin,
.ss-tpz.is-placing .ss-tpz__map { transition: none !important; }
.ss-tpz__epin { z-index: 2; transform: translate(-50%, -50%); transition: opacity 150ms; }
/* the halo */
.ss-tpz__pin::before,
.ss-tpz__epin::before {
	content: "";
	position: absolute;
	left: 50%;
	top: 50%;
	width: 72px;
	height: 72px;
	margin: -36px 0 0 -36px;
	border: 1px solid var(--ss-marker-halo-line);
	border-radius: 50%;
	background: var(--ss-marker-halo);
	pointer-events: none;
	transition: transform 400ms var(--ss-ease), background 300ms, border-color 300ms;
}
/* the circle */
/* Teal circle, dark icon — it holds its own on the scrimmed photo, where the handoff's dark circle sank
   (Mark, 2026-10-07: "maybe we keep them green with black icon"). A dark ring keeps its edge on light ground. */
.ss-tpz__marker {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	border: 2px solid var(--ss-marker-fill);
	border-radius: 50%;
	background: var(--ss-marker);
	color: var(--ss-marker-fill);
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
	transition: background 250ms, color 250ms, border-color 250ms;
}
.ss-tpz__marker svg,
.ss-tpz__marker svg.gcb-icon-line { width: 22px; height: 22px; --gcb-icon-stroke: 1.75; }
.ss-tpz__marker-num { font: 600 14px/1 var(--ss-font); letter-spacing: 0; }
/* the optional number tag, top-right of an icon marker — absolute, so the circle never shifts */
.ss-tpz__marker-tag {
	display: none;
	position: absolute;
	left: 28px;
	top: -8px;
	height: 20px;
	padding: 0 7px;
	border-radius: 10px;
	background: var(--ss-marker-fill);
	color: var(--ss-marker);
	font: 600 11px/20px var(--ss-font);
	white-space: nowrap;
	box-shadow: 0 0 0 2px var(--ss-marker);
}
.ss-tpz.has-marker-tags .ss-tpz__marker-tag { display: block; }

/* the pulse: a ring that breathes out from the circle, each pin a little out of step with the next */
.ss-tpz__pin::after {
	content: "";
	position: absolute;
	inset: 0;
	border: 2px solid var(--ss-marker);
	border-radius: 50%;
	pointer-events: none;
	animation: ss-tpz-pulse 2.4s var(--ss-pulse-delay, 0s) ease-out infinite;
}
.ss-tpz__pin.is-active::after { border-color: #fff; animation-duration: 1.6s; }
.ss-tpz[data-card] .ss-tpz__pin:not(.is-mine)::after { animation: none; opacity: 0; }
@keyframes ss-tpz-pulse {
	0% { transform: scale(1); opacity: 0.8; }
	70%, 100% { transform: scale(1.75); opacity: 0; }
}

.ss-tpz__pin:hover .ss-tpz__marker,
.ss-tpz__epin:hover .ss-tpz__marker { background: #8fdede; }
/* lighting up in turn during a card's reveal */
.ss-tpz__pin.is-lit::before { transform: scale(1.18); background: rgba(108, 201, 201, 0.2); border-color: rgba(108, 201, 201, 0.5); }
.ss-tpz__pin.is-lit .ss-tpz__marker { box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.85), 0 2px 10px rgba(0, 0, 0, 0.35); }
/* the location on show / the editor's focused location */
/* the location on show (and the editor's focused one): white */
.ss-tpz__pin.is-active .ss-tpz__marker,
.ss-tpz__epin.is-focus .ss-tpz__marker { background: #fff; color: var(--ss-marker-fill); }
.ss-tpz__pin.is-active::before,
.ss-tpz__epin.is-focus::before { background: rgba(108, 201, 201, 0.16); border-color: rgba(108, 201, 201, 0.4); }
/* on the overview, a marker under the words on screen fades out of their way (view.js clearOfText) */
.ss-tpz__pin.is-faded { opacity: 0.08; pointer-events: none; }
.ss-tpz__pin.is-faded::after { animation: none; }
/* while a card is open, the other cards' markers step back */
.ss-tpz[data-card] .ss-tpz__pin:not(.is-mine) { opacity: 0.45; }
.ss-tpz__pin:focus-visible { outline: none; }
.ss-tpz__pin:focus-visible .ss-tpz__marker { box-shadow: 0 0 0 3px #fff; }

/* ---------- Live: sticky stage + scroll steps ---------- */
.ss-tpz.is-live .ss-tpz__stage {
	position: sticky;
	top: 0;
	z-index: 0;
	height: 100vh;
	height: 100svh;
	overflow: hidden;
}
.ss-tpz.is-live .ss-tpz__viewport { position: absolute; inset: 0; }
.ss-tpz.is-live .ss-tpz__map {
	position: absolute;
	left: 0;
	top: 0;
	aspect-ratio: auto;
	transform-origin: 0 0;
	transition: transform 1100ms cubic-bezier(.65, 0, .25, 1);
	/* no will-change: with it the photo is painted once at 1× and stretched when zoomed; without it the browser
	   repaints it sharp when the camera settles */
}
.ss-tpz.is-live .ss-tpz__viewport::after {
	content: "";
	position: absolute;
	inset: 0;
	pointer-events: none;
	background: linear-gradient(to top, rgba(13, 15, 19, 0.9) 0%, rgba(13, 15, 19, 0.35) 45%, rgba(13, 15, 19, 0.1) 100%);
	transition: opacity 600ms;
}
.ss-tpz.is-live[data-step]:not([data-step="intro"]):not([data-step="outro"]) .ss-tpz__viewport::after { opacity: 0.35; }
.ss-tpz.is-live .ss-tpz__dots {
	position: absolute;
	right: var(--ss-gutter);
	bottom: clamp(16px, 3vw, 40px);
	z-index: 2;
	display: flex;
	align-items: center;
	gap: 8px;
}
.ss-tpz__dot {
	width: 6px;
	height: 6px;
	border-radius: 3px;
	background: #3A4150;
	transition: width 300ms, background 300ms;
}
.ss-tpz__dot.is-active { width: 28px; background: var(--ss-cyan); }

.ss-tpz.is-live .ss-tpz__steps {
	position: relative;
	z-index: 1;
	margin-top: -100vh;
	margin-top: -100svh;
	pointer-events: none;
}
.ss-tpz.is-live .ss-tpz__cards { display: block; padding: 0; }
.ss-tpz.is-live .ss-tpz__step {
	display: flex;
	min-height: 100vh;
	min-height: 100svh;
	padding: 0 var(--ss-gutter) clamp(64px, 9vh, 96px);
}
.ss-tpz.is-live .ss-tpz__step--intro,
.ss-tpz.is-live .ss-tpz__step--outro { flex-direction: column; justify-content: flex-end; }
.ss-tpz.is-live .ss-tpz__step--card { align-items: center; justify-content: flex-end; padding-bottom: 0; }
.ss-tpz.is-live .ss-tpz__card { pointer-events: auto; width: min(420px, 100%); height: auto; }
/* the intro copy is held at the bottom of the screen by view.js (pinIntro) and fades as the scroll begins */
.ss-tpz.is-live .ss-tpz__step--intro .ss-tpz__copy { will-change: transform, opacity; }

.ss-tpz__cue span[aria-hidden] { display: inline-block; animation: ss-tpz-bob 1.6s ease-in-out infinite; }
@keyframes ss-tpz-bob { 50% { transform: translateY(6px); } }

@media (max-width: 760px) {
	.ss-tpz.is-live .ss-tpz__step--card { align-items: flex-end; justify-content: center; padding: 0 16px 28px; }
	.ss-tpz.is-live .ss-tpz__card { box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5); }
	.ss-tpz__body { font-size: 0.9375rem; }
	.ss-tpz.is-live .ss-tpz__dots { left: 16px; right: auto; top: 52px; bottom: auto; }
}

/* ---------- Editor: the map with its pins, and only the card being edited ----------
 * (assets/editor-touchpoints.js draws the .ss-tpz__epin pins from the block store.) */
/* Editor pins are the same markers (above); the card being edited stands out, the rest step back. */
.ss-tpz__epin { opacity: 0.6; }
.ss-tpz__epin:hover,
.ss-tpz__epin.is-mine { opacity: 1; }

/* Collapsed, not display:none — a hidden card must still count, or the shown one is numbered 01. */
.editor-styles-wrapper .ss-tpz .ss-tpz__step--card:not(.is-selected):not(.has-child-selected) {
	height: 0;
	margin: 0;
	padding: 0;
	overflow: hidden;
	visibility: hidden;
}
.editor-styles-wrapper .ss-tpz:not(:has(.ss-tpz__step--card.is-selected, .ss-tpz__step--card.has-child-selected)) .ss-tpz__step--card:first-of-type {
	height: auto;
	overflow: visible;
	visibility: visible;
}
.editor-styles-wrapper .ss-tpz__cards {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0;
	padding: 24px var(--ss-gutter) 32px;
	background: #12161C;
}
.editor-styles-wrapper .ss-tpz__step--card { width: min(520px, 100%); }
.editor-styles-wrapper .ss-tpz__steps { display: flex; flex-direction: column; }
.editor-styles-wrapper .ss-tpz__cards { order: -1; }
.editor-styles-wrapper .ss-tpz__step--intro::before,
.editor-styles-wrapper .ss-tpz__step--outro::before {
	display: block;
	margin-bottom: 12px;
	font-size: 0.6875rem;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--ss-dim);
}
.editor-styles-wrapper .ss-tpz__step--intro::before { content: "Intro — shown over the whole site"; }
.editor-styles-wrapper .ss-tpz__step--outro::before { content: "Outro — after the last touchpoint"; }
.ss-tpz__slide.is-focus { outline: 2px solid var(--ss-teal); outline-offset: 8px; border-radius: 2px; }

/* ---------- Card icon ---------- */
.ss-tpz__head { display: flex; align-items: center; gap: 14px; }
.ss-tpz__icon {
	flex: 0 0 auto;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	background: var(--ss-paper-ink);
	color: var(--ss-cyan);
}
.ss-tpz__icon svg { width: 24px; height: 24px; }


/* A card with one, unnamed location has nothing to say above its text (no tag, no area): drop the empty line.
   The editor keeps it, so there is somewhere to type an area. */
.ss-tpz__slide-head:not(:has(.ss-tpz__tag)):has(.ss-tpz__area:empty) { display: none; }
.editor-styles-wrapper .ss-tpz__slide-head:not(:has(.ss-tpz__tag)):has(.ss-tpz__area:empty) { display: flex; }
