/* spamcipher.com/platform, "SpamCipher, explained" (tools/platform-page.mjs).
   Layout and motion after Apple's product pages; the theme (palette, fonts, header, footer) from the landing page,
   through body.hp's variables in hp.css. Everything here is scoped to body.pl. */
body.pl {
  --pl-ink: var(--hp-ink, #061C1D); --pl-text: #1D1D1F; --pl-text-2: #5B6066; --pl-line: #E8E4DE;
  --pl-coral: var(--hp-coral, #FF5C35); --pl-coral-text: var(--hp-coral-text, #C2410C);
  --pl-cream: #FBF8F4; --pl-peach: #FFE6DA; --pl-blush: #FBD9E5;
  --pl-serif: var(--hp-serif, 'Source Serif 4', Georgia, serif);
  --pl-top: calc(var(--nav-h, 70px) + 52px);
  --pl-ease: cubic-bezier(.2, .7, .2, 1);
  background: #fff; color: var(--pl-text);
}
body.pl main { overflow-x: clip; }
.pl-wrap { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.pl-dot { color: var(--pl-coral); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.pl [id] { scroll-margin-top: calc(var(--pl-top) + 12px); }

/* ---------------------------------------------------------------- the local nav: frosted, sticky under the site header */
.pl-local { position: sticky; top: var(--nav-h, 70px); z-index: 900; margin-top: var(--nav-h, 70px); height: 52px; background: rgba(255, 255, 255, .72); -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px); border-bottom: 1px solid rgba(0, 0, 0, .08); }
.pl-local-in { max-width: 1180px; height: 100%; margin: 0 auto; padding: 0 24px; display: flex; align-items: center; gap: 24px; }
.pl-local-title { flex: none; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-family: var(--ff-display); font-weight: 700; font-size: 1.05rem; color: var(--pl-text); text-decoration: none; letter-spacing: -.01em; }
.pl-local-links { flex: 1; min-width: 0; display: flex; justify-content: flex-end; gap: 22px; overflow-x: auto; scrollbar-width: none; }
.pl-local-links::-webkit-scrollbar { display: none; }
.pl-local-links a { flex: none; font-size: .78rem; color: var(--pl-text-2); text-decoration: none; padding: 4px 0; border-bottom: 1px solid transparent; transition: color .2s; }
.pl-local-links a:hover { color: var(--pl-text); }
.pl-local-links a.is-on { color: var(--pl-text); border-bottom-color: var(--pl-text); }
.pl-pill { flex: none; display: inline-flex; align-items: center; height: 30px; padding: 0 14px; border-radius: 999px; background: var(--pl-coral-text); color: #fff; font-family: var(--ff-display); font-weight: 700; font-size: .78rem; text-decoration: none; transition: background .2s; }
.pl-pill:hover { background: #A8370A; }
.pl-local, .pl-local-title, .pl-local-links a { transition: background .4s, color .4s, border-color .4s; }
.pl-on-dark .pl-local { background: rgba(6, 28, 29, .78); border-bottom-color: rgba(255, 255, 255, .1); }
.pl-on-dark .pl-local-title, .pl-on-dark .pl-local-links a.is-on, .pl-on-dark .pl-local-toggle { color: #fff; }
.pl-on-dark .pl-local-links a { color: rgba(255, 255, 255, .62); }
.pl-on-dark .pl-local-links a.is-on { border-bottom-color: #fff; }
.pl-local-toggle { display: none; flex: none; width: 34px; height: 34px; padding: 0; border: 0; border-radius: 50%; background: transparent; color: var(--pl-text); cursor: pointer; }
.pl-local-toggle svg { width: 20px; height: 20px; transition: transform .3s var(--pl-ease); }
.pl-local.open .pl-local-toggle svg { transform: rotate(180deg); }

/* ---------------------------------------------------------------- shared type */
.pl-kicker { margin: 0 0 14px; font-family: var(--ff-display); font-weight: 700; font-size: clamp(1rem, 1.6vw, 1.3rem); letter-spacing: -.005em; color: var(--pl-coral-text); }
.pl h1, .pl h2 { font-family: var(--pl-serif); color: var(--pl-text); letter-spacing: -.025em; }
.pl h1 { font-weight: 400; font-size: clamp(2.9rem, 7vw, 6.4rem); line-height: 1.02; margin: 0 auto 24px; max-width: 14ch; }
.pl h2 { font-weight: 400; font-size: clamp(2.5rem, 6.4vw, 5.6rem); line-height: 1.04; margin: 0 0 22px; }
.pl-sub { font-size: clamp(1.08rem, 1.7vw, 1.42rem); line-height: 1.5; color: var(--pl-text-2); max-width: 46ch; margin: 0 auto; }
.pl-sub--left { margin: 0; }
.pl-fine { margin: 18px 0 0; font-size: .86rem; color: var(--pl-text-2); }
.pl-cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 14px 28px; margin-top: 36px; }
.pl-btn { display: inline-flex; align-items: center; gap: 8px; font-family: var(--ff-display); font-weight: 700; font-size: 1.17rem; text-decoration: none; transition: background .2s, color .2s, transform .2s; }
.pl-btn--solid { min-height: 52px; padding: 0 30px; border-radius: 999px; background: var(--pl-coral); color: #fff; }
.pl-btn--solid:hover { background: var(--hp-coral-dark, #E8482A); transform: translateY(-1px); }
.pl-btn--link { color: var(--pl-coral-text); }
.pl-btn--link:hover { text-decoration: underline; text-underline-offset: 4px; }
.pl-btn--light { min-height: 48px; padding: 0 24px; border-radius: 999px; background: #fff; color: var(--pl-ink); }
.pl-more { display: inline-block; margin-top: 18px; font-family: var(--ff-display); font-weight: 700; font-size: .95rem; color: var(--pl-coral-text); text-decoration: none; }
.pl-more:hover { text-decoration: underline; text-underline-offset: 4px; }

/* entrance and reveal */
@keyframes pl-rise { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }
.pl-js .pl-rv { opacity: 0; transform: translateY(34px); transition: opacity .9s var(--pl-ease), transform .9s var(--pl-ease); transition-delay: calc(var(--i, 0) * 60ms); }
.pl-js .pl-rv.in { opacity: 1; transform: none; }

/* ---------------------------------------------------------------- the opening: a frosted card over drifting rows of photos.
   Smooth by construction: each row is one composited layer moved only by translate3d, nothing follows the scroll, and
   no blur is computed over a moving picture except the card's own (the one the operator chose). */
/* exactly the visible screen under the bars, the card centred in it with equal space above and below; the card's
   type and spacing scale with the window height so it fits short windows too (operator 2026-10-20) */
.pl-open { position: relative; isolation: isolate; overflow: hidden; min-height: calc(100vh - var(--pl-top)); min-height: calc(100svh - var(--pl-top)); box-sizing: border-box; display: grid; place-items: center; padding: clamp(12px, 3vh, 40px) 24px; background: var(--pl-cream); text-align: center; }
.pl-wall { position: absolute; inset: -12% -22%; z-index: -1; display: grid; align-content: center; gap: 20px; transform: rotate(-5deg); }
.pl-wall-row { display: flex; gap: 20px; width: max-content; will-change: transform; animation: pl-drift 90s linear infinite; backface-visibility: hidden; }
.pl-wall-row--2 { animation-direction: reverse; animation-duration: 110s; margin-left: -180px; }
.pl-wall-row--3 { animation-duration: 100s; margin-left: -90px; }
.pl-wall figure { flex: none; width: clamp(220px, 23vw, 340px); aspect-ratio: 3 / 2; margin: 0; border-radius: 24px; overflow: hidden; box-shadow: 0 24px 50px -30px rgba(40, 20, 10, .5); }
.pl-wall img { width: 100%; height: 100%; object-fit: cover; display: block; }
@keyframes pl-drift { from { transform: translate3d(0, 0, 0); } to { transform: translate3d(-50%, 0, 0); } }
.pl-open-card { position: relative; z-index: 1; width: min(860px, 100%); padding: clamp(20px, 4.4vh, 64px) clamp(24px, 5vw, 72px); border-radius: 44px; background: rgba(255, 255, 255, .82); -webkit-backdrop-filter: blur(24px) saturate(160%); backdrop-filter: blur(24px) saturate(160%); box-shadow: 0 60px 120px -70px rgba(40, 20, 10, .6); animation: pl-card-in 1.1s var(--pl-ease) both; }
.pl-open h1 { font-weight: 400; font-size: clamp(2rem, min(6vw, 8.4vh), 5.8rem); line-height: 1; letter-spacing: -.03em; max-width: 13ch; margin: 0 auto clamp(12px, 2.6vh, 24px); }
.pl-open .pl-kicker { margin-bottom: clamp(6px, 1.6vh, 14px); }
.pl-open .pl-sub { font-size: clamp(.95rem, min(1.7vw, 2.4vh), 1.42rem); }
.pl-open .pl-cta { margin-top: clamp(14px, 3.4vh, 36px); }
.pl-open .pl-fine { margin-top: clamp(8px, 1.8vh, 18px); }
@keyframes pl-card-in { from { transform: translate3d(0, 28px, 0) scale(.985); } to { transform: none; } }
.pl-grad { background: linear-gradient(100deg, #E8482A 0%, #FF8A66 30%, #C2410C 55%, #FF7A57 80%, #E8482A 100%); background-size: 220% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent; animation: pl-sheen 9s ease-in-out infinite; }
@keyframes pl-sheen { 50% { background-position: 100% 0; } }

/* ---------------------------------------------------------------- the 11 categories, at equal standing, under the opening */
.pl-overview { position: relative; z-index: 2; padding: clamp(40px, 6vh, 64px) 0 clamp(72px, 10vh, 120px); background: var(--pl-cream); }
.pl-band-cats { padding: clamp(28px, 4vw, 44px); border-radius: 36px; background: #fff; box-shadow: 0 50px 100px -60px rgba(40, 20, 10, .5), 0 0 0 1px var(--pl-line); }
.pl-band-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 24px; margin-bottom: 26px; }
.pl-band-head .pl-kicker { margin: 0; }
.pl-band-head h2 { margin: 0; font-size: clamp(1.7rem, 3vw, 2.5rem); }
.pl-band-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.pl-band-grid a { height: 100%; box-sizing: border-box; display: grid; grid-template-columns: 40px minmax(0, 1fr); grid-template-rows: auto 1fr; gap: 4px 12px; align-items: start; padding: 16px; border-radius: 20px; background: var(--pl-cream); box-shadow: inset 0 0 0 1px var(--pl-line); text-decoration: none; transition: transform .35s var(--pl-ease), box-shadow .35s, background .35s; }
.pl-band-grid a:hover, .pl-band-grid a:focus-visible { transform: translateY(-3px); background: #FFF6F2; box-shadow: inset 0 0 0 1px #F3C2B1, 0 20px 40px -30px rgba(120, 40, 20, .5); }
.pl-band-ico { grid-row: 1 / span 2; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: #fff; color: var(--pl-coral-text); box-shadow: inset 0 0 0 1px var(--pl-line); }
.pl-band-ico svg { width: 20px; height: 20px; }
.pl-band-grid b { font-family: var(--ff-display); font-weight: 800; font-size: .95rem; line-height: 1.3; color: var(--pl-text); }
.pl-band-grid small { font-size: .84rem; line-height: 1.5; color: var(--pl-text-2); }
.pl-band-all a { display: grid; grid-template-columns: 1fr; align-content: center; background: var(--pl-ink); box-shadow: none; }
.pl-band-all a:hover { background: #0D2A2B; box-shadow: none; }
.pl-band-all b { font-family: var(--pl-serif); font-weight: 400; font-size: 1.35rem; color: #fff; }
.pl-band-all small { color: #FFA285; font-weight: 700; }

/* ---------------------------------------------------------------- chapters */
.pl-chapter { padding: clamp(96px, 14vh, 160px) 0; background: #fff; }
.pl-chapter--cream { background: var(--pl-cream); }
.pl-chapter--glow { background: linear-gradient(180deg, #fff 0%, var(--pl-peach) 26%, var(--pl-blush) 74%, #fff 100%); }
.pl-chapter-head { text-align: center; margin-bottom: clamp(48px, 8vh, 88px); }

/* the pipeline: copy scrolls, the product window stays */
.pl-story { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: clamp(40px, 6vw, 96px); }
.pl-step { min-height: 92vh; padding: 12vh 0; display: flex; flex-direction: column; justify-content: center; }
.pl-step:first-child { padding-top: 2vh; }
.pl-step-n { margin: 0 0 14px; font-family: var(--ff-display); font-weight: 800; font-size: 1rem; color: var(--pl-coral-text); display: flex; align-items: center; gap: 12px; }
.pl-step-n span { font-family: var(--ff-mono); font-weight: 500; font-size: .8rem; padding: 5px 9px; border-radius: 8px; background: #FFF1EC; }
.pl-step h3 { margin: 0 0 12px; font-family: var(--pl-serif); font-weight: 400; font-size: clamp(2rem, 3.6vw, 3.2rem); line-height: 1.08; letter-spacing: -.02em; color: var(--pl-text); }
.pl-define { margin: 0 0 26px; font-size: 1.15rem; color: var(--pl-text-2); }
.pl-teach { margin: 0 0 26px; padding: 20px 22px; border-radius: 18px; background: var(--pl-cream); border: 1px solid var(--pl-line); }
.pl-teach small, .pl-fix-grid small, .sx-judge small, .sx-pace small, .sx-draft small, .sx-deal small { display: block; margin-bottom: 8px; font-family: var(--ff-display); font-weight: 700; font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--pl-text-2); }
.pl-teach p { margin: 0; font-size: 1rem; line-height: 1.7; color: #33373C; }
.pl-show { list-style: none; margin: 0 0 22px; padding: 0; display: grid; gap: 14px; }
.pl-show li { display: flex; gap: 12px; font-size: 1rem; line-height: 1.55; color: var(--pl-text-2); }
.pl-show b { color: var(--pl-text); }
.pl-show svg, .pl-fix ul svg { flex: none; width: 18px; height: 18px; margin-top: 3px; color: var(--pl-coral); }
.pl-all { border-top: 1px solid var(--pl-line); }
.pl-all summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; padding: 16px 0; font-family: var(--ff-display); font-weight: 700; font-size: .98rem; color: var(--pl-text); }
.pl-all summary::-webkit-details-marker { display: none; }
.pl-all summary::after { content: ""; flex: none; width: 26px; height: 26px; border-radius: 50%; border: 1px solid var(--pl-line); background: no-repeat center / 11px url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M6 1v10M1 6h10' stroke='%23C2410C' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E"); transition: transform .3s; }
.pl-all[open] summary::after { transform: rotate(45deg); }
.pl-all ul { list-style: none; margin: 0 0 18px; padding: 0; display: grid; gap: 10px; }
.pl-all li { display: grid; gap: 2px; font-size: .9rem; line-height: 1.5; }
.pl-all li b { color: var(--pl-text); font-weight: 600; }
.pl-all li span { color: var(--pl-text-2); }

.pl-story-stage { position: relative; }
.pl-stage-sticky { position: sticky; top: calc(var(--pl-top) + 4vh); height: calc(100vh - var(--pl-top) - 8vh); min-height: 460px; display: grid; place-items: center; }
.pl-scene { position: absolute; inset: 3% 0 9%; opacity: 0; transform: translateY(30px) scale(.97); filter: blur(6px); transition: opacity .7s var(--pl-ease), transform .7s var(--pl-ease), filter .7s var(--pl-ease); pointer-events: none; }
.pl-scene.is-on { opacity: 1; transform: none; filter: none; }
/* the product over the place it is used in, as a product shot over a lifestyle photo */
.pl-scene-photo { position: absolute; top: 0; right: 0; width: 86%; height: 74%; object-fit: cover; border-radius: 34px; box-shadow: 0 40px 80px -50px rgba(40, 20, 10, .6); transform: scale(1.06); transition: transform 1.8s var(--pl-ease); }
.pl-scene.is-on .pl-scene-photo { transform: none; }
.pl-scene .pl-win { position: absolute; left: 0; bottom: 0; width: 78%; }
.pl-stage-dots { position: absolute; bottom: 1%; left: 0; right: 0; list-style: none; margin: 0; padding: 0; display: flex; justify-content: center; gap: 8px; }
.pl-stage-dots li { position: relative; width: 8px; height: 8px; border-radius: 999px; background: rgba(0, 0, 0, .16); transition: width .4s var(--pl-ease), background .4s; }
.pl-stage-dots li.is-on { width: 34px; background: var(--pl-coral); }
.pl-stage-dots span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.pl-step-scene--inline { display: none; }

/* ---------------------------------------------------------------- scenes: app windows drawn in HTML, animated when played */
.pl-win { border-radius: 18px; background: #fff; border: 1px solid var(--pl-line); box-shadow: 0 50px 100px -50px rgba(80, 30, 15, .5), 0 2px 6px rgba(0, 0, 0, .04); overflow: hidden; text-align: left; font-size: .86rem; }
.pl-win-bar { display: flex; align-items: center; gap: 7px; padding: 12px 16px; border-bottom: 1px solid var(--pl-line); background: #FBFAF7; }
.pl-win-bar i { width: 10px; height: 10px; border-radius: 50%; background: #E3DED5; }
.pl-win-bar b { margin-left: 10px; font-family: var(--ff-display); font-weight: 700; font-size: .82rem; }
.pl-win-body { padding: 18px; display: grid; gap: 14px; }
.pl-win em { flex: none; font-style: normal; font-size: .7rem; font-weight: 700; padding: 4px 9px; border-radius: 999px; background: #EEF0F2; color: #3C3F44; white-space: nowrap; }
.pl-win em.hot { background: #FFE7DE; color: var(--pl-coral-text); }
.pl-win em.ok { background: #DDF5EA; color: #0A7B55; }
.pl-win em.warn { background: #FEF3C7; color: #92400E; }
.sx-av { flex: none; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: #FFF1EC; color: var(--pl-coral-text); font-weight: 800; font-size: .76rem; }
.sx-check { display: flex; align-items: center; gap: 9px; font-size: .84rem; color: var(--pl-text); }
.sx-check svg { flex: none; width: 16px; height: 16px; padding: 3px; border-radius: 50%; background: #DDF5EA; color: #0A7B55; }

/* every animated part waits for .play, so a scene moves when it is seen, not when the page loads */
.pl-win [style*="--i"] { transition: opacity .55s var(--pl-ease), transform .55s var(--pl-ease); transition-delay: calc(.25s + var(--i) * .18s); }
.pl-js .pl-win [style*="--i"] { opacity: 0; transform: translateY(10px); }
.pl-js .play .pl-win [style*="--i"] { opacity: 1; transform: none; }

.sx-query { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 12px; border: 1.5px solid #F7CDBE; background: #fff; min-height: 46px; }
.sx-query svg { flex: none; width: 17px; height: 17px; color: var(--pl-coral); }
.sx-type { font-size: .86rem; color: var(--pl-text); }
.sx-type::after { content: ""; display: inline-block; width: 2px; height: 1em; margin-left: 2px; vertical-align: -2px; background: var(--pl-coral); animation: pl-caret 1s steps(1) infinite; }
@keyframes pl-caret { 50% { opacity: 0; } }
.sx-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.sx-chips span { font-size: .74rem; font-weight: 600; padding: 5px 10px; border-radius: 999px; background: var(--pl-cream); border: 1px solid var(--pl-line); color: var(--pl-text-2); }
.sx-chips span.hot { background: #FFF1EC; border-color: #F7CDBE; color: var(--pl-coral-text); }
.sx-rows { display: grid; gap: 7px; }
.sx-row { display: grid; grid-template-columns: 28px 1.2fr 1fr 1fr auto; gap: 10px; align-items: center; padding: 9px 11px; border-radius: 11px; border: 1px solid #EFECE6; color: var(--pl-text-2); font-size: .8rem; }
.sx-row b { color: var(--pl-text); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sx-row span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.sx-split { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 14px; }
.sx-mail { padding: 16px; border-radius: 12px; border: 1px solid #EFECE6; }
.sx-subj { margin: 0 0 12px; padding-bottom: 10px; border-bottom: 1px solid #EFECE6; font-size: .8rem; color: var(--pl-text-2); }
.sx-subj b { color: var(--pl-text); }
.sx-line { margin: 0 0 8px; font-size: .84rem; line-height: 1.5; color: var(--pl-text); }
.sx-judge { display: grid; gap: 10px; align-content: start; padding: 14px; border-radius: 12px; background: var(--pl-cream); border: 1px solid #EFECE6; }
.sx-meter { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 8px; margin-top: 6px; font-size: .74rem; color: var(--pl-text-2); }
.sx-meter i { height: 6px; border-radius: 6px; background: #EAE6E0; overflow: hidden; }
.sx-meter i b { display: block; height: 100%; width: 0; border-radius: 6px; background: #12A06D; transition: width 1.2s var(--pl-ease) 1.2s; }
.play .sx-meter i b, .pl:not(.pl-js) .sx-meter i b { width: 18%; }
.sx-meter em { background: #DDF5EA !important; color: #0A7B55 !important; }

.sx-seq { display: grid; gap: 10px; }
.sx-node, .sx-branch { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 12px; border: 1px solid #EFECE6; }
.sx-node div, .sx-branch div { flex: 1; min-width: 0; display: grid; }
.sx-node small, .sx-branch small { color: var(--pl-text-2); font-size: .76rem; }
.sx-branch { margin-left: 34px; background: #FFF8F4; border-color: #F7CDBE; }
.sx-n { flex: none; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--pl-ink); color: #fff; font-weight: 800; font-size: .8rem; }
.sx-n.alt { background: var(--pl-coral); }
.sx-n.alt svg { width: 14px; height: 14px; }
.sx-wire { margin-left: 28px; padding: 4px 0 4px 18px; border-left: 2px dashed #E3DED5; font-size: .76rem; color: var(--pl-text-2); }
.sx-ab { display: inline-flex !important; gap: 4px; padding: 3px !important; background: var(--pl-cream) !important; }
.sx-ab i { font-style: normal; padding: 2px 8px; border-radius: 999px; }
.sx-ab i.win { background: var(--pl-coral); color: #fff; transition: background .4s 1.6s; }
.sx-clock { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 12px; background: var(--pl-cream); font-size: .8rem; color: var(--pl-text-2); }
.sx-clock svg { width: 16px; height: 16px; color: var(--pl-coral-text); }

.sx-health { display: grid; gap: 7px; }
.sx-mb { display: grid; grid-template-columns: 10px minmax(0, 1fr) auto auto; gap: 10px; align-items: center; padding: 10px 12px; border-radius: 11px; border: 1px solid #EFECE6; font-size: .8rem; }
.sx-mb b { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sx-mb span { font-size: .74rem; color: var(--pl-text-2); white-space: nowrap; }
.sx-dot { width: 10px; height: 10px; border-radius: 50%; background: #12A06D; box-shadow: 0 0 0 4px rgba(18, 160, 109, .14); }
.sx-mb--warn .sx-dot { background: #D97706; box-shadow: 0 0 0 4px rgba(217, 119, 6, .14); }
.sx-mb--hot { border-color: #F7CDBE; background: #FFF8F4; }
.sx-mb--hot .sx-dot { background: var(--pl-coral); animation: pl-beat 1.6s ease-in-out infinite; }
@keyframes pl-beat { 50% { box-shadow: 0 0 0 7px rgba(255, 92, 53, .18); } }
.sx-pace { display: grid; gap: 9px; padding: 14px; border-radius: 12px; background: var(--pl-cream); border: 1px solid #EFECE6; }
.sx-bar { display: grid; grid-template-columns: 64px 1fr; gap: 10px; align-items: center; font-size: .78rem; color: var(--pl-text-2); }
.sx-bar i { height: 8px; border-radius: 8px; background: #EAE6E0; overflow: hidden; }
.sx-bar i b { display: block; height: 100%; width: 0; border-radius: 8px; background: linear-gradient(90deg, #FF8A66, var(--pl-coral)); transition: width 1.1s var(--pl-ease); transition-delay: calc(.6s + var(--i) * .15s); }
.play .sx-bar i b, .pl:not(.pl-js) .sx-bar i b { width: var(--w); }

.sx-inbox { display: grid; gap: 7px; }
.sx-msg { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 11px; border: 1px solid #EFECE6; }
.sx-msg div { flex: 1; min-width: 0; display: grid; }
.sx-msg div span { font-size: .78rem; color: var(--pl-text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sx-msg em { transform-origin: right center; }
.sx-draft { padding: 14px; border-radius: 12px; background: #FFF8F4; border: 1px dashed #F3B9A5; }
.sx-draft small { display: flex; align-items: center; gap: 6px; color: var(--pl-coral-text); }
.sx-draft small svg { width: 14px; height: 14px; }
.sx-draft p { margin: 0; font-size: .84rem; line-height: 1.5; }

.sx-cal { position: relative; display: grid; gap: 10px; }
.sx-cal-head, .sx-cal-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 7px; }
.sx-cal-head span { font-size: .72rem; font-weight: 700; color: var(--pl-text-2); text-align: center; }
.sx-cal-grid i { height: 34px; border-radius: 9px; background: #F4F1EC; border: 1px solid #EFECE6; }
.sx-cal-grid i.busy { background: repeating-linear-gradient(45deg, #EEEAE4, #EEEAE4 4px, #F7F4EF 4px, #F7F4EF 8px); }
.sx-cal-grid i.pick { position: relative; transition: background .4s .9s, border-color .4s .9s, transform .4s .9s; }
.play .sx-cal-grid i.pick, .pl:not(.pl-js) .sx-cal-grid i.pick { background: var(--pl-coral); border-color: var(--pl-coral); transform: scale(1.06); }
.sx-toast { display: flex; align-items: center; gap: 10px; padding: 11px 14px; border-radius: 12px; background: var(--pl-ink); color: #fff; font-size: .8rem; opacity: 0; transform: translateY(8px); transition: opacity .5s 1.4s, transform .5s 1.4s; }
.play .sx-toast, .pl:not(.pl-js) .sx-toast { opacity: 1; transform: none; }
.sx-toast svg { flex: none; width: 16px; height: 16px; color: #7FD3B4; }
.sx-toast b { margin-right: 6px; }
.sx-stages { display: flex; gap: 6px; }
.sx-stages span { flex: 1; text-align: center; font-size: .72rem; font-weight: 600; padding: 7px 4px; border-radius: 8px; background: #F4F1EC; color: var(--pl-text-2); }
.sx-stages span.on { transition: background .4s 1.9s, color .4s 1.9s; }
.play .sx-stages span.on, .pl:not(.pl-js) .sx-stages span.on { background: #FFE7DE; color: var(--pl-coral-text); }

.sx-shield { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 20px; align-items: center; }
.sx-ring { position: relative; width: 150px; height: 150px; }
.sx-ring-svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.sx-ring-svg circle { fill: none; stroke: #EFECE6; stroke-width: 10; }
.sx-ring-svg circle.arc { stroke: #12A06D; stroke-linecap: round; stroke-dasharray: 327; stroke-dashoffset: 327; transition: stroke-dashoffset 1.6s var(--pl-ease) .3s; }
.play .sx-ring-svg circle.arc, .pl:not(.pl-js) .sx-ring-svg circle.arc { stroke-dashoffset: 24; }
.sx-ring-ico { position: absolute; inset: 0; margin: auto; width: 46px; height: 46px; color: #0A7B55; }
.sx-checks { display: grid; gap: 10px; }

/* ---------------------------------------------------------------- deliverability: the pinned loop, on ink */
.pl-dark { padding: clamp(110px, 16vh, 180px) 0 clamp(90px, 12vh, 140px); background: radial-gradient(70% 50% at 50% 0%, rgba(255, 92, 53, .16), transparent 70%), var(--pl-ink); color: #fff; }
.pl-dark h2 { color: #fff; }
.pl-dark .pl-sub { color: rgba(255, 255, 255, .66); }
.pl-dark .pl-kicker { color: #FFA285; }
.pl-loop { position: relative; height: calc(var(--n) * 46vh + 60vh); }
.pl-loop-sticky { position: sticky; top: var(--pl-top); height: calc(100vh - var(--pl-top)); max-width: 1180px; margin: 0 auto; padding: 0 24px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 90px); align-items: center; }
.pl-loop-ring { --rs: min(64vh, 470px); position: relative; width: var(--rs); height: var(--rs); justify-self: center; }
.pl-loop-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.pl-loop-ring circle { fill: none; stroke-width: 3; }
.pl-loop-ring .track { stroke: rgba(255, 255, 255, .12); }
.pl-loop-ring .prog { stroke: var(--pl-coral); stroke-linecap: round; stroke-dasharray: 1068; stroke-dashoffset: calc(1068 * (1 - var(--p, 0))); filter: drop-shadow(0 0 10px rgba(255, 92, 53, .6)); transition: stroke-dashoffset .15s linear; }
.pl-loop-node { position: absolute; top: 50%; left: 50%; width: 44px; height: 44px; margin: -22px 0 0 -22px; transform: rotate(var(--a)) translateY(calc(var(--rs) * -.425)) rotate(calc(-1 * var(--a))); }
.pl-loop-node b { display: grid; place-items: center; width: 100%; height: 100%; border-radius: 50%; background: #0D2A2B; border: 1px solid rgba(255, 255, 255, .18); font-family: var(--ff-display); font-size: .86rem; color: rgba(255, 255, 255, .6); transition: background .4s, color .4s, transform .4s var(--pl-ease), box-shadow .4s; }
.pl-loop-node.is-done b { background: #3A1F17; color: #FFC7B4; border-color: rgba(255, 92, 53, .5); }
.pl-loop-node.is-on b { background: var(--pl-coral); color: #fff; border-color: var(--pl-coral); transform: scale(1.25); box-shadow: 0 0 0 8px rgba(255, 92, 53, .2), 0 0 40px rgba(255, 92, 53, .55); }
.pl-loop-core { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; pointer-events: none; }
.pl-loop-core b { font-family: var(--pl-serif); font-weight: 400; font-size: calc(var(--rs) * .26); line-height: 1; letter-spacing: -.03em; color: #fff; }
.pl-loop-core small { margin-top: 8px; font-size: .9rem; color: rgba(255, 255, 255, .55); }
.pl-loop-cards { position: relative; list-style: none; margin: 0; padding: 0; min-height: 300px; }
.pl-loop-card { position: absolute; inset: 0 0 auto; opacity: 0; transform: translateY(28px); transition: opacity .55s var(--pl-ease), transform .55s var(--pl-ease); }
.pl-loop-card.is-on { opacity: 1; transform: none; }
.pl-loop-card span { font-family: var(--ff-mono); font-size: .9rem; color: #FFA285; }
.pl-loop-card h3 { margin: 10px 0 14px; font-family: var(--pl-serif); font-weight: 400; font-size: clamp(2rem, 3.6vw, 3.1rem); line-height: 1.08; letter-spacing: -.02em; color: #fff; }
.pl-loop-card p { margin: 0; max-width: 40ch; font-size: 1.12rem; line-height: 1.65; color: rgba(255, 255, 255, .72); }
/* without the script (or if it fails) the loop is a plain list at every width */
.pl:not(.pl-js) .pl-loop { height: auto; }
.pl:not(.pl-js) .pl-loop-sticky { position: static; height: auto; grid-template-columns: 1fr; }
.pl:not(.pl-js) .pl-loop-ring { display: none; }
.pl:not(.pl-js) .pl-loop-cards { min-height: 0; display: grid; gap: 34px; max-width: 760px; }
.pl:not(.pl-js) .pl-loop-card { position: static; opacity: 1; transform: none; padding-left: 20px; border-left: 2px solid rgba(255, 92, 53, .5); }
.pl-dark-close { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 40px; margin-top: 40px; padding-top: 40px; border-top: 1px solid rgba(255, 255, 255, .12); }
.pl-dark-close p { margin: 0; max-width: 52ch; font-size: 1.2rem; line-height: 1.6; color: rgba(255, 255, 255, .85); }

/* ---------------------------------------------------------------- agents: a gallery, then a bento of controls */
.pl-gallery { position: relative; }
.pl-gallery-track { display: grid; grid-auto-flow: column; grid-auto-columns: min(360px, 80vw); gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding: 0 max(24px, calc((100vw - 1180px) / 2 + 24px)); padding: 10px max(24px, calc((100vw - 1180px) / 2 + 24px)) 30px; scrollbar-width: none; }
.pl-gallery-track::-webkit-scrollbar { display: none; }
.pl-gallery-track:focus-visible { outline: 2px solid var(--pl-coral); outline-offset: -2px; }
.pl-agent { scroll-snap-align: start; display: flex; flex-direction: column; min-height: 330px; padding: 30px 28px; border-radius: 28px; background: #fff; box-shadow: 0 30px 60px -36px rgba(120, 40, 20, .45); transition: transform .4s var(--pl-ease); }
.pl-agent:hover { transform: translateY(-6px); }
.pl-agent-ico { display: grid; place-items: center; width: 58px; height: 58px; border-radius: 18px; background: linear-gradient(135deg, #FF8A66, var(--pl-coral)); color: #fff; box-shadow: 0 14px 30px -14px rgba(255, 92, 53, .8); }
.pl-agent-ico svg { width: 26px; height: 26px; }
.pl-agent h3 { margin: 28px 0 10px; font-family: var(--pl-serif); font-weight: 400; font-size: 2rem; line-height: 1.1; letter-spacing: -.015em; color: var(--pl-text); }
.pl-agent p { margin: 0 0 22px; font-size: 1.02rem; line-height: 1.6; color: var(--pl-text-2); }
.pl-agent ul { list-style: none; margin: auto 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.pl-agent li { font-size: .74rem; font-weight: 600; padding: 6px 10px; border-radius: 999px; background: var(--pl-cream); border: 1px solid var(--pl-line); color: var(--pl-text-2); }
.pl-paddles { display: flex; justify-content: flex-end; gap: 12px; max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.pl-paddles button { width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(0, 0, 0, .08); color: var(--pl-text); font-size: 1.6rem; line-height: 1; cursor: pointer; transition: background .2s, opacity .2s; }
.pl-paddles button:hover { background: rgba(0, 0, 0, .14); }
.pl-paddles button:disabled { opacity: .35; cursor: default; }
.pl-bento-title { margin: clamp(70px, 10vh, 110px) 0 28px; font-family: var(--pl-serif); font-weight: 400; font-size: clamp(2rem, 4vw, 3.4rem); letter-spacing: -.02em; color: var(--pl-text); }
.pl-bento { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.pl-tile { padding: 30px; border-radius: 28px; background: rgba(255, 255, 255, .85); border: 1px solid rgba(255, 255, 255, .9); box-shadow: 0 20px 50px -40px rgba(120, 40, 20, .5); }
.pl-tile--wide { grid-column: span 2; }
.pl-tile--ink { grid-column: 1 / -1; background: var(--pl-ink); border-color: var(--pl-ink); }
.pl-tile-ico { display: grid; place-items: center; width: 44px; height: 44px; margin-bottom: 26px; border-radius: 14px; background: #FFF1EC; color: var(--pl-coral-text); }
.pl-tile-ico svg { width: 22px; height: 22px; }
.pl-tile h4 { margin: 0 0 8px; font-family: var(--ff-display); font-weight: 800; font-size: 1.3rem; letter-spacing: -.01em; color: var(--pl-text); }
.pl-tile p { margin: 0; font-size: 1rem; line-height: 1.6; color: var(--pl-text-2); }
.pl-tile--wide h4 { font-size: 1.7rem; }
.pl-tile--ink h4 { font-family: var(--pl-serif); font-weight: 400; font-size: clamp(1.8rem, 3vw, 2.6rem); color: #fff; }
.pl-tile--ink p { max-width: 70ch; font-size: 1.1rem; color: rgba(255, 255, 255, .75); }

/* ---------------------------------------------------------------- Cipher: a conversation that types itself */
.pl-cipher { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(40px, 6vw, 90px); align-items: center; }
.pl-cipher h2 { font-size: clamp(2.4rem, 5vw, 4.4rem); }
.pl-chat { border-radius: 28px; background: #fff; border: 1px solid var(--pl-line); box-shadow: 0 50px 100px -55px rgba(80, 30, 15, .55); overflow: hidden; }
.pl-chat-bar { display: flex; align-items: center; gap: 10px; padding: 16px 20px; border-bottom: 1px solid var(--pl-line); font-family: var(--ff-display); }
.pl-chat-logo { flex: none; width: 32px; height: 32px; display: block; }
.pl-chat-body { display: grid; align-content: start; gap: 12px; padding: 22px; background: linear-gradient(180deg, #fff, var(--pl-cream)); }
.pl-q, .pl-a { margin: 0; max-width: 86%; padding: 12px 16px; border-radius: 20px; font-size: .95rem; line-height: 1.55; }
.pl-q { justify-self: end; background: var(--pl-ink); color: #fff; border-bottom-right-radius: 6px; }
.pl-a { justify-self: start; background: #fff; border: 1px solid var(--pl-line); color: var(--pl-text); border-bottom-left-radius: 6px; }
.pl-typing { display: none; gap: 4px; }
.pl-typing i { width: 7px; height: 7px; border-radius: 50%; background: #C9C4BC; animation: pl-dots 1s ease-in-out infinite; }
.pl-typing i:nth-child(2) { animation-delay: .15s; } .pl-typing i:nth-child(3) { animation-delay: .3s; }
@keyframes pl-dots { 50% { transform: translateY(-4px); background: var(--pl-coral); } }
/* every bubble keeps its place from the start, so revealing them never moves the page */
.pl-a { position: relative; }
.pl-js .pl-chat .pl-q, .pl-js .pl-chat .pl-a { opacity: 0; transform: translateY(12px); transition: opacity .45s var(--pl-ease), transform .45s var(--pl-ease); }
.pl-js .pl-chat .shown { opacity: 1; transform: none; }
.pl-js .pl-chat .pl-a.typing { background: transparent; border-color: transparent; }
.pl-js .pl-chat .pl-a.typing .pl-typing { display: inline-flex; position: absolute; left: 0; top: 0; padding: 14px 16px; border-radius: 20px 20px 20px 6px; background: #fff; border: 1px solid var(--pl-line); }
.pl-js .pl-chat .pl-a.typing .pl-a-text { visibility: hidden; }

/* ---------------------------------------------------------------- recipes: the closer-look viewer */
.pl-viewer { display: grid; grid-template-columns: minmax(260px, 380px) minmax(0, 1fr); gap: clamp(28px, 4vw, 60px); align-items: start; }
.pl-viewer-list { display: grid; gap: 8px; position: sticky; top: calc(var(--pl-top) + 24px); }
.pl-viewer-list button, .pl-fix-chips button { text-align: left; font: inherit; cursor: pointer; border: 0; transition: background .25s, color .25s, transform .25s var(--pl-ease); }
.pl-viewer-list button { padding: 14px 20px; border-radius: 999px; background: rgba(0, 0, 0, .05); font-family: var(--ff-display); font-weight: 600; font-size: .95rem; color: var(--pl-text); }
.pl-viewer-list button:hover { background: rgba(0, 0, 0, .09); }
.pl-viewer-list button[aria-selected="true"] { background: var(--pl-ink); color: #fff; transform: translateX(6px); }
.pl-viewer-stage { min-height: 480px; padding: clamp(28px, 4vw, 52px); border-radius: 32px; background: #fff; box-shadow: 0 40px 90px -60px rgba(80, 30, 15, .55); }
.pl-js .pl-recipe:not(.is-on), .pl-js .pl-fix-card:not(.is-on) { display: none; }
.pl:not(.pl-js) .pl-recipe + .pl-recipe { margin-top: 48px; }
.pl-recipe h3 { margin: 0 0 32px; font-family: var(--pl-serif); font-weight: 400; font-size: clamp(1.9rem, 3.4vw, 2.9rem); line-height: 1.1; letter-spacing: -.02em; color: var(--pl-text); }
.pl-recipe ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.pl-recipe li { position: relative; display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 18px; padding: 0 0 28px; }
.pl-recipe li:not(:last-child)::before { content: ""; position: absolute; left: 25px; top: 52px; bottom: 6px; width: 2px; background: linear-gradient(var(--pl-coral), rgba(255, 92, 53, .1)); }
.pl-recipe li > span { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: #FFF1EC; color: var(--pl-coral-text); font-family: var(--ff-display); font-weight: 800; font-size: 1.15rem; }
.pl-recipe li b { display: block; margin: 12px 0 6px; font-family: var(--ff-display); font-size: 1.12rem; color: var(--pl-text); }
.pl-recipe li p { margin: 0; font-size: 1rem; line-height: 1.6; color: var(--pl-text-2); }
.pl-recipe.is-on li { animation: pl-rise .6s var(--pl-ease) both; animation-delay: calc(var(--i) * .12s); }

/* ---------------------------------------------------------------- the troubleshooter */
.pl-fix-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-bottom: 36px; }
.pl-fix-chips button { padding: 12px 20px; border-radius: 999px; background: #fff; box-shadow: inset 0 0 0 1px var(--pl-line); font-family: var(--ff-display); font-weight: 700; font-size: .95rem; color: var(--pl-text); }
.pl-fix-chips button:hover { box-shadow: inset 0 0 0 1px var(--pl-coral); }
.pl-fix-chips button[aria-selected="true"] { background: var(--pl-coral-text); color: #fff; box-shadow: none; }
.pl-fix-card { max-width: 1000px; margin: 0 auto; padding: clamp(28px, 4vw, 52px); border-radius: 32px; background: var(--pl-cream); border: 1px solid var(--pl-line); }
.pl-js .pl-fix-card.is-on { animation: pl-rise .55s var(--pl-ease) both; }
.pl:not(.pl-js) .pl-fix-card + .pl-fix-card { margin-top: 24px; }
.pl-fix-card h3 { margin: 0 0 28px; font-family: var(--pl-serif); font-weight: 400; font-size: clamp(1.9rem, 3.4vw, 2.8rem); letter-spacing: -.02em; color: var(--pl-text); }
.pl-fix-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px 40px; }
.pl-fix-grid p { margin: 0; font-size: 1.02rem; line-height: 1.7; color: #33373C; }
.pl-fix-wide { grid-column: 1 / -1; padding-top: 24px; border-top: 1px solid var(--pl-line); }
.pl-fix ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px 28px; }
.pl-fix li { display: flex; gap: 10px; font-size: 1rem; line-height: 1.5; color: var(--pl-text); }

/* ---------------------------------------------------------------- the index */
.pl-index-tools { display: grid; gap: 16px; margin-bottom: 18px; }
.pl-search { display: flex; align-items: center; gap: 12px; padding: 0 20px; height: 60px; border-radius: 999px; background: #fff; box-shadow: inset 0 0 0 1px var(--pl-line), 0 16px 40px -34px rgba(80, 30, 15, .5); }
.pl-search:focus-within { box-shadow: inset 0 0 0 2px var(--pl-coral); }
.pl-search svg { flex: none; width: 20px; height: 20px; color: var(--pl-coral-text); }
.pl-search input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font: inherit; font-size: 1.05rem; color: var(--pl-text); }
.pl-index-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.pl-index-chips button { padding: 8px 14px; border-radius: 999px; border: 0; background: #fff; box-shadow: inset 0 0 0 1px var(--pl-line); font: 600 .86rem var(--ff-display); color: var(--pl-text); cursor: pointer; }
.pl-index-chips button[aria-pressed="true"] { background: var(--pl-ink); color: #fff; box-shadow: none; }
.pl-select select { width: 100%; max-width: 520px; height: 44px; padding: 0 14px; border-radius: 12px; border: 1px solid var(--pl-line); background: #fff; font: inherit; font-size: .95rem; color: var(--pl-text); }
.pl-index-count { margin: 0 0 12px; font-size: .88rem; color: var(--pl-text-2); }
.pl-index-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 0 32px; }
.pl-index-list li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 16px; padding: 16px 0; border-bottom: 1px solid var(--pl-line); }
.pl-index-list li[hidden] { display: none; }
.pl-index-list b { font-family: var(--ff-display); font-weight: 700; font-size: .98rem; color: var(--pl-text); }
.pl-index-list span { grid-column: 1; font-size: .9rem; line-height: 1.5; color: var(--pl-text-2); }
.pl-index-list em { grid-column: 2; grid-row: 1 / span 2; align-self: start; font-style: normal; font-size: .72rem; font-weight: 700; padding: 4px 9px; border-radius: 999px; background: #FFF1EC; color: var(--pl-coral-text); }
.pl-index-more { margin-top: 32px; text-align: center; }
.pl-index-more[hidden] { display: none; }
.pl-index-empty { margin: 24px 0 0; font-size: 1rem; color: var(--pl-text-2); }
.pl-index-empty a { color: var(--pl-coral-text); }

/* ---------------------------------------------------------------- the close: dark, a tilted wall of drifting photo columns.
   Each column is one composited layer moved by translate3d alone; the tilt is static and nothing follows the scroll. */
.pl-close { position: relative; isolation: isolate; overflow: hidden; min-height: min(92vh, 900px); display: grid; place-items: center; padding: clamp(100px, 16vh, 180px) 24px; background: var(--pl-ink); color: #fff; text-align: center; }
.pl-tilt { position: absolute; inset: -40% -20%; z-index: -2; display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; transform: perspective(1400px) rotateX(22deg) rotateZ(-12deg); }
.pl-tilt-col { display: flex; flex-direction: column; gap: 22px; will-change: transform; backface-visibility: hidden; animation: pl-up 80s linear infinite; }
.pl-tilt-col--2 { animation-name: pl-down; animation-duration: 95s; margin-top: -18%; }
.pl-tilt-col--3 { animation-duration: 72s; margin-top: -8%; }
.pl-tilt-col--4 { animation-name: pl-down; animation-duration: 88s; margin-top: -26%; }
.pl-tilt figure { margin: 0; aspect-ratio: 3 / 2; border-radius: 26px; overflow: hidden; }
.pl-tilt img { width: 100%; height: 100%; object-fit: cover; display: block; }
@keyframes pl-up { from { transform: translate3d(0, 0, 0); } to { transform: translate3d(0, -50%, 0); } }
@keyframes pl-down { from { transform: translate3d(0, -50%, 0); } to { transform: translate3d(0, 0, 0); } }
.pl-close-shade { position: absolute; inset: 0; z-index: -1; background: radial-gradient(46% 46% at 50% 50%, rgba(6, 28, 29, .82) 0%, rgba(6, 28, 29, .6) 55%, rgba(6, 28, 29, .25) 100%), linear-gradient(180deg, var(--pl-ink), transparent 20%, transparent 80%, var(--pl-ink)); }
.pl-close-copy { position: relative; max-width: 900px; }
.pl-close h2 { color: #fff; font-size: clamp(2.8rem, 7.4vw, 7rem); line-height: 1; letter-spacing: -.03em; text-shadow: 0 2px 28px rgba(0, 0, 0, .5); }
.pl-close .pl-sub { color: rgba(255, 255, 255, .88); text-shadow: 0 2px 20px rgba(0, 0, 0, .5); }
.pl-close .pl-fine { color: rgba(255, 255, 255, .7); }
.pl-close .pl-grad { background-image: linear-gradient(100deg, #FF8A66 0%, #FFD3C2 30%, #FF5C35 55%, #FFC2A8 80%, #FF8A66 100%); text-shadow: none; }
.pl-btn--glass { min-height: 52px; padding: 0 26px; border-radius: 999px; color: #fff; background: rgba(255, 255, 255, .14); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .35); }
.pl-btn--glass:hover { background: rgba(255, 255, 255, .24); }

/* ---------------------------------------------------------------- the agents stream (platform.js scrolls it; a second set makes it endless) */
.pl-agent--dup { display: none; }
.pl-gallery.is-streaming .pl-agent--dup { display: flex; }
.pl-gallery.is-streaming .pl-gallery-track { scroll-snap-type: none; }

/* ---------------------------------------------------------------- the reveal: a framed photo grows to full bleed as you scroll */
.pl-reveal { position: relative; height: 240vh; background: #fff; }
.pl-reveal-sticky { position: sticky; top: var(--pl-top); height: calc(100vh - var(--pl-top)); overflow: hidden; }
.pl-reveal-media { position: absolute; inset: 0; clip-path: inset(calc((1 - var(--p, 1)) * 14%) calc((1 - var(--p, 1)) * 21%) round calc((1 - var(--p, 1)) * 46px)); }
.pl-reveal-media img { width: 100%; height: 100%; object-fit: cover; display: block; transform: scale(calc(1.2 - var(--p, 1) * .2)); }
.pl-reveal-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(6, 28, 29, .2), rgba(6, 28, 29, .7)); opacity: var(--p, 1); }
.pl-reveal-copy { position: absolute; inset: 0; display: grid; place-content: center; padding: 0 24px; text-align: center; opacity: clamp(0, calc((var(--p, 1) - .55) * 3), 1); transform: translateY(calc((1 - var(--p, 1)) * 60px)); }
.pl-reveal-copy h2 { color: #fff; } .pl-reveal-copy .pl-kicker { color: #FFA285; } .pl-reveal-copy .pl-sub { color: rgba(255, 255, 255, .85); }
.pl:not(.pl-js) .pl-reveal { height: auto; } .pl:not(.pl-js) .pl-reveal-sticky { position: relative; top: 0; height: 80vh; }
.pl-chapter--story { padding-top: clamp(64px, 10vh, 110px); }

/* ---------------------------------------------------------------- photo layers elsewhere */
.pl-dark { position: relative; }   /* never overflow: hidden here, it would stop the loop from holding (sticky) */
.pl-dark > :not(.pl-dark-bg) { position: relative; z-index: 1; }
.pl-dark-bg { position: absolute; inset: 0 0 auto; height: 120vh; overflow: hidden; }
.pl-dark-bg img { width: 100%; height: 100%; object-fit: cover; display: block; opacity: .42; animation: pl-kenburns 26s ease-in-out infinite alternate; }
.pl-dark-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(6, 28, 29, .55) 0%, rgba(6, 28, 29, .2) 35%, var(--pl-ink) 100%); }
@keyframes pl-kenburns { from { transform: scale(1.02) translate(0, 0); } to { transform: scale(1.14) translate(-2%, -2%); } }
.pl-clip { color: #FFA285; }
@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  .pl-clip { background: linear-gradient(100deg, #FF8A66 0%, #FFD3C2 30%, #FF5C35 55%, #FFC2A8 80%, #FF8A66 100%); background-size: 220% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent; animation: pl-sheen 8s ease-in-out infinite; }
}
.pl-agent { padding: 0 0 28px; overflow: hidden; }
.pl-agent-photo { height: 210px; overflow: hidden; }
.pl-agent-photo img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 1.2s var(--pl-ease); }
.pl-agent:hover .pl-agent-photo img { transform: scale(1.07); }
.pl-agent .pl-agent-ico { position: relative; margin: -29px 0 0 28px; border: 4px solid #fff; box-sizing: content-box; }
.pl-agent h3, .pl-agent p, .pl-agent ul { margin-left: 28px; margin-right: 28px; }
.pl-agent h3 { margin-top: 18px; }
.pl-tile--photo { margin: 0; padding: 0; overflow: hidden; min-height: 220px; }
.pl-tile--photo img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 1.4s var(--pl-ease); }
.pl-tile--photo:hover img { transform: scale(1.06); }
.pl-recipe-photo { margin: calc(-1 * clamp(28px, 4vw, 52px)) calc(-1 * clamp(28px, 4vw, 52px)) 32px; height: clamp(180px, 22vw, 280px); overflow: hidden; border-radius: 32px 32px 0 0; }
.pl-recipe-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pl-js .pl-recipe.is-on .pl-recipe-photo img { animation: pl-settle 1.2s var(--pl-ease) both; }
@keyframes pl-settle { from { transform: scale(1.08); opacity: .4; } to { transform: none; opacity: 1; } }
.pl:not(.pl-js) .pl-recipe + .pl-recipe .pl-recipe-photo { margin-top: 0; border-radius: 24px; }

/* ---------------------------------------------------------------- tablet and phone */
@media (max-width: 1000px) {
  .pl-story { grid-template-columns: 1fr; }
  .pl-story-stage { display: none; }
  .pl-step { min-height: 0; padding: 0 0 88px; }
  .pl-step-scene--inline { display: block; margin: 0 0 36px; }
  .pl-step-scene--inline .pl-scene-photo { position: static; display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; border-radius: 26px; transform: none; }
  .pl-step-scene--inline .pl-win { position: relative; margin: -22% 14px 0; }
  .pl-loop { height: auto; }
  .pl-loop-sticky { position: static; height: auto; grid-template-columns: 1fr; padding: 0 24px; }
  .pl-loop-ring { display: none; }
  .pl-loop-cards { min-height: 0; display: grid; gap: 34px; }
  .pl-loop-card { position: static; opacity: 1; transform: none; padding-left: 20px; border-left: 2px solid rgba(255, 92, 53, .5); }
  .pl-loop-card h3 { font-size: 1.8rem; margin: 6px 0 8px; }
  .pl-cipher { grid-template-columns: 1fr; }
  .pl-viewer { grid-template-columns: 1fr; }
  .pl-viewer-list { position: static; display: flex; overflow-x: auto; scrollbar-width: none; margin: 0 -24px; padding: 4px 24px 10px; }
  .pl-viewer-list::-webkit-scrollbar { display: none; }
  .pl-viewer-list button { flex: none; white-space: nowrap; }
  .pl-viewer-list button[aria-selected="true"] { transform: none; }
  .pl-bento { grid-template-columns: 1fr 1fr; }
  .pl-tile--wide { grid-column: 1 / -1; }
  .pl-band-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .pl-local-toggle { display: grid; place-items: center; }
  .pl-open { padding-left: 14px; padding-right: 14px; }
  .pl-wall { gap: 12px; } .pl-wall-row { gap: 12px; } .pl-wall figure { width: 210px; border-radius: 16px; }
  .pl-open-card { border-radius: 30px; }
  .pl-band-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
  .pl-band-grid a { grid-template-columns: 1fr; padding: 12px; gap: 8px; }
  .pl-band-ico { grid-row: auto; width: 34px; height: 34px; }
  .pl-band-grid small { display: none; }
  .pl-band-grid b { font-size: .84rem; }
  .pl-band-all small { display: block; }
  .pl-band-all b { font-size: 1.05rem; }
  .pl-tilt { grid-template-columns: repeat(2, 1fr); inset: -30% -45%; gap: 14px; }
  .pl-tilt-col--3, .pl-tilt-col--4 { display: none; } .pl-tilt-col { gap: 14px; } .pl-tilt figure { border-radius: 18px; }
  .pl-reveal { height: 200vh; }
  .pl-agent-photo { height: 170px; }
  .pl-local-title { flex: 1; }
  .pl-local-links { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; gap: 0; padding: 8px 16px 16px; background: #fff; -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); border-bottom: 1px solid rgba(0, 0, 0, .08); box-shadow: 0 20px 40px -30px rgba(0, 0, 0, .4); }
  .pl-local.open .pl-local-links { display: flex; }
  .pl-local-links a { padding: 13px 0; font-size: 1rem; color: var(--pl-text); border-bottom: 1px solid var(--pl-line); }
  .pl-local-links a.is-on { border-bottom-color: var(--pl-line); color: var(--pl-coral-text); }
  .pl-on-dark .pl-local-links { background: #061C1D; }
  .pl-on-dark .pl-local-links a { border-bottom-color: rgba(255, 255, 255, .1); }
  .pl-tile--ink { grid-column: auto; }
  .pl-bento, .pl-fix-grid, .pl-fix ul, .pl-index-list { grid-template-columns: 1fr; }
  .pl-tile--wide { grid-column: auto; }
  .pl-fix-chips { flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; margin: 0 -24px 28px; padding: 4px 24px 8px; scrollbar-width: none; }
  .pl-fix-chips::-webkit-scrollbar { display: none; }
  .pl-fix-chips button { flex: none; white-space: nowrap; }
  .sx-row { grid-template-columns: 28px minmax(0, 1fr) auto; }
  .sx-row > span:nth-of-type(n+2) { display: none; }
  .sx-split, .sx-shield { grid-template-columns: 1fr; }
  .sx-ring { width: 110px; height: 110px; margin: 0 auto; }
  .sx-mb { grid-template-columns: 10px minmax(0, 1fr) auto; }
  .sx-mb span { display: none; }
  .pl-dark-close .pl-btn { width: 100%; justify-content: center; }
}
@media (max-width: 560px) {
  .pl-wrap, .pl-local-in, .pl-loop-sticky, .pl-paddles { padding-left: 16px; padding-right: 16px; }
  .pl-viewer-list, .pl-fix-chips { margin-left: -16px; margin-right: -16px; padding-left: 16px; padding-right: 16px; }
  .pl-cta .pl-btn--solid { width: 100%; justify-content: center; }
  .pl-viewer-stage, .pl-fix-card { border-radius: 24px; }
  .pl-q, .pl-a { max-width: 94%; }
  .pl-local-in { gap: 10px; }
  .pl-local-title { font-size: .95rem; }
}
@media (prefers-reduced-motion: reduce) {
  .pl-recipe.is-on li, .pl-js .pl-fix-card.is-on { animation: none; }
  .sx-mb--hot .sx-dot, .sx-type::after { animation: none; }
  .pl-js .pl-rv, .pl-js .pl-win [style*="--i"] { opacity: 1; transform: none; transition: none; }
  .pl-scene { transition: opacity .2s; transform: none; filter: none; }
  .pl-js .pl-chat .pl-q, .pl-js .pl-chat .pl-a, .pl-loop-card, .pl-viewer-list button, .pl-band-grid a, .pl-agent,
  .sx-toast, .sx-ring-svg circle.arc, .sx-bar i b, .sx-meter i b, .sx-cal-grid i.pick, .sx-stages span.on, .sx-ab i.win, .pl-stage-dots li { transition: none !important; }
  .pl-typing i { animation: none; }
  .pl-clip, .pl-grad, .pl-open-card, .pl-tilt-col, .pl-dark-bg img, .pl-wall-row, .pl-js .pl-recipe.is-on .pl-recipe-photo img { animation: none; }
  .pl-scene-photo { transition: none; transform: none; }
  .pl-wall-row { flex-wrap: wrap; width: auto; }
}
