/* Business Experiences, "A website is built for strangers.": the v1 wheel on the screen's
   left edge (its styles stay in the page), and on the right a small screen that starts
   as a plain website. Each turn of the wheel rolls the screen up to the next scene, the
   same upward motion as the wheel's rim, showing what that part of a website becomes.
   bx-wheel.js builds the wheel, the label and the step ticks, and sets .is-on / .is-out. */

#more-than-a-website .split-layout { position: relative; align-items: center; }

.bxs { position: relative; min-width: 0; }
.bxs-frame {
  background: #fff;
  border: 1px solid rgba(124, 58, 237, 0.16);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 24px 60px -28px rgba(76, 29, 149, 0.28), 0 0 0 1px rgba(15, 23, 42, 0.02);
}
.bxs-bar {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
  background: #fcfbff;
}
.bxs-dots { display: flex; gap: 5px; flex: 0 0 auto; }
.bxs-dots i { width: 7px; height: 7px; border-radius: 50%; background: #e2e1ea; }
.bxs-label { position: relative; flex: 1; min-width: 0; height: 18px; overflow: hidden; }
.bxs-label > span {
  position: absolute; inset: 0;
  display: flex; align-items: center; gap: 8px;
  font: 500 0.8rem/1 var(--font-display); white-space: nowrap;
  transition: transform 0.8s cubic-bezier(0.6, 0, 0.15, 1), opacity 0.5s ease;
}
.bxs-label > span.is-out { transform: translateY(-100%); opacity: 0; }
.bxs-label > span.is-in { transform: translateY(100%); opacity: 0; }
.bxs-old { color: #94a3b8; text-decoration: line-through; text-decoration-color: rgba(148, 163, 184, 0.7); }
.bxs-arrow { color: #c4b5fd; }
.bxs-new { color: var(--accent-violet); font-weight: 600; overflow: hidden; text-overflow: ellipsis; }
.bxs-plain { color: #64748b; }

.bxs-stage { position: relative; height: 270px; overflow: hidden; }
.bxs-scene {
  position: absolute; inset: 0;
  padding: 22px 22px 20px;
  opacity: 0; transform: translateY(46px);
  transition: transform 0.8s cubic-bezier(0.6, 0, 0.15, 1), opacity 0.45s ease;
  pointer-events: none;
}
.bxs-scene.is-on { opacity: 1; transform: none; transition-delay: 0.12s; }
.bxs-scene.is-out { opacity: 0; transform: translateY(-46px); }

.bxs-ticks { display: flex; justify-content: center; gap: 6px; margin-top: 16px; }
.bxs-ticks button {
  width: 22px; height: 4px; padding: 0; border: 0; border-radius: 2px;
  background: rgba(124, 58, 237, 0.16); cursor: pointer;
  transition: background 0.3s ease, width 0.3s ease;
}
.bxs-ticks button[aria-selected="true"] { width: 34px; background: var(--accent-violet); }
.bxs-ticks button:focus-visible { outline: 2px solid var(--accent-violet); outline-offset: 3px; }

/* ── The scenes ─────────────────────────────────────────────────────────── */
/* 0. A plain website: grey and still */
.sc-site { display: flex; flex-direction: column; gap: 14px; }
.site-nav { display: flex; align-items: center; gap: 10px; }
.site-nav b { width: 46px; height: 10px; border-radius: 3px; background: #cbd5e1; margin-right: auto; }
.site-nav i { width: 34px; height: 6px; border-radius: 3px; background: #e2e8f0; }
.site-hero { height: 70px; border-radius: 10px; background: #f1f5f9; display: flex; flex-direction: column; justify-content: center; gap: 8px; padding: 0 16px; }
.site-hero span { height: 8px; width: 62%; border-radius: 4px; background: #dbe2ea; }
.site-hero span + span { width: 40%; }
.site-lines { display: flex; flex-direction: column; gap: 7px; }
.site-lines i { height: 6px; border-radius: 3px; background: #edf1f5; }
.site-form { display: flex; gap: 8px; align-items: center; }
.site-form i { flex: 1; height: 22px; border-radius: 6px; border: 1px solid #e2e8f0; }
.site-form b { font: 500 0.7rem/1 var(--font-display); color: #94a3b8; padding: 7px 12px; border-radius: 6px; background: #f1f5f9; }

/* 1-6 are the demo ExperienceHub's own modules, in its own look: ink, bone and brass,
   photographs and slow camera moves. Copy and images come from the demo (Horizon Build). */
.sc-rec, .sc-lens, .sc-doors, .sc-room, .sc-proj, .sc-live {
  --ink: #0d0c0b; --bone: #ece7dd; --brass: #c8965a; --brass-line: rgba(200, 150, 90, 0.32);
  --ez: cubic-bezier(0.16, 1, 0.3, 1);
  padding: 0; background: var(--ink); color: var(--bone); overflow: hidden;
}
.bxs-scene img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.bxs-scene .k, .rec-k, .lens-p small { font: 500 0.56rem/1.3 var(--font-mono); letter-spacing: 0.16em; text-transform: uppercase; color: var(--brass); }

/* 1. Reception: "This is not a website." word by word, then the way in */
.sc-rec { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; text-align: center; padding: 0 26px;
  background: radial-gradient(ellipse at 50% 40%, #2a2219 0%, #14110e 55%, #0d0c0b 100%); }
.rec-k, .rec-p, .rec-btn { margin: 0; opacity: 0; }
.rec-h { margin: 2px 0; font: 600 1.6rem/1.15 var(--font-display); letter-spacing: -0.01em; }
.rec-h span { display: inline-block; opacity: 0; transform: translateY(10px) scale(0.96); filter: blur(4px); }
.rec-p { font: 400 0.76rem/1.4 var(--font-body); color: rgba(236, 231, 221, 0.72); }
.rec-btn { margin-top: 10px; padding: 9px 18px; border-radius: 2px; background: var(--brass); color: var(--ink); font: 600 0.62rem/1 var(--font-display); letter-spacing: 0.15em; text-transform: uppercase; }
.sc-rec.is-on .rec-k { animation: hubFade 0.8s ease 0.3s forwards; }
.sc-rec.is-on .rec-h span { animation: hubWord 0.7s var(--ez) forwards; }
.sc-rec.is-on .rec-h span:nth-child(1) { animation-delay: 0.8s; }
.sc-rec.is-on .rec-h span:nth-child(2) { animation-delay: 1.05s; }
.sc-rec.is-on .rec-h span:nth-child(3) { animation-delay: 1.3s; }
.sc-rec.is-on .rec-h span:nth-child(4) { animation-delay: 1.55s; }
.sc-rec.is-on .rec-h span:nth-child(5) { animation-delay: 1.8s; }
.sc-rec.is-on .rec-p { animation: hubFade 0.8s ease 2.6s forwards; }
.sc-rec.is-on .rec-btn { animation: hubFade 0.8s ease 3.4s forwards, recGlow 2.4s ease-in-out 4.2s infinite; }
@keyframes hubFade { to { opacity: 1; } }
@keyframes hubWord { to { opacity: 1; transform: none; filter: none; } }
@keyframes recGlow { 50% { box-shadow: 0 0 0 6px rgba(200, 150, 90, 0.18), 0 8px 22px rgba(200, 150, 90, 0.3); } }

/* 2. Choose who you are: four standpoints, and the developer one opens up */
.sc-lens { display: flex; flex-direction: column; gap: 12px; padding: 18px 16px 16px; }
.lens-h { margin: 0; text-align: center; font: 600 0.92rem/1.25 var(--font-display); opacity: 0; }
.lens-row { flex: 1; display: flex; gap: 6px; min-height: 0; }
.lens-p {
  position: relative; flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; justify-content: flex-end; gap: 3px;
  padding: 10px 8px; border: 1px solid rgba(236, 231, 221, 0.1); background: var(--bg); overflow: hidden;
  opacity: 0; transform: translateY(14px);
  transition: flex-grow 0.9s var(--ez), filter 0.7s ease, border-color 0.6s ease;
}
.lens-p::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(13, 12, 11, 0) 30%, rgba(13, 12, 11, 0.75)); }
.lens-p small, .lens-p b { position: relative; z-index: 1; }
.lens-p b { font: 600 0.74rem/1.2 var(--font-display); color: var(--bone); }
.sc-lens.is-on .lens-h { animation: hubFade 0.7s ease 0.2s forwards; }
.sc-lens.is-on .lens-p { animation: hubRise 0.7s var(--ez) forwards; }
.sc-lens.is-on .lens-p:nth-child(2) { animation-delay: 0.12s; }
.sc-lens.is-on .lens-p:nth-child(3) { animation-delay: 0.24s; }
.sc-lens.is-on .lens-p:nth-child(4) { animation-delay: 0.36s; }
.sc-lens.is-on.is-picked .lens-p { filter: brightness(0.45) saturate(0.7); }
.sc-lens.is-on.is-picked .lens-p.is-pick { flex-grow: 2.4; filter: none; border-color: var(--brass-line); }
@keyframes hubRise { to { opacity: 1; transform: none; } }

/* 3. Doors: the lobby, and the Operations door swings open onto light */
.sc-doors { display: flex; flex-direction: column; justify-content: space-between; padding: 22px 14px 14px; }
.doors-bg { opacity: 0.38; transform: scale(1.06); }
.sc-doors::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(13, 12, 11, 0.55), rgba(13, 12, 11, 0.2) 45%, rgba(13, 12, 11, 0.85)); }
.sc-doors.is-on .doors-bg { animation: hubDrift 9s linear forwards; }
@keyframes hubDrift { to { transform: scale(1.14) translateX(-2%); } }
.doors-h { position: relative; margin: 0; text-align: center; font: 600 1.05rem/1.2 var(--font-display); opacity: 0; }
.sc-doors.is-on .doors-h { animation: hubFade 0.8s ease 0.2s forwards; }
.doors-row { position: relative; display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; perspective: 500px; }
.door { display: flex; flex-direction: column; gap: 6px; opacity: 0; transform: translateY(10px); }
.door i {
  position: relative; display: block; height: 104px; border: 1px solid rgba(236, 231, 221, 0.16);
  background: linear-gradient(180deg, #1d1a16, #121010); transform-origin: left center; transition: transform 1.2s var(--ez), box-shadow 1.2s ease;
}
.door i::after { content: ""; position: absolute; top: 20%; bottom: 20%; left: 50%; width: 1px; background: rgba(236, 231, 221, 0.55); }
.door em { font: 500 0.46rem/1.2 var(--font-mono); font-style: normal; letter-spacing: 0.1em; text-transform: uppercase; text-align: center; color: rgba(236, 231, 221, 0.7); }
.door.is-open { position: relative; }
.door.is-open::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 104px; background: radial-gradient(ellipse at 50% 60%, #f3d9ad, #c8965a 55%, #6b4a24); opacity: 0; transition: opacity 1s ease; }
.sc-doors.is-on .door { animation: hubRise 0.6s var(--ez) forwards; }
.sc-doors.is-on .door:nth-child(2) { animation-delay: 0.1s; }
.sc-doors.is-on .door:nth-child(3) { animation-delay: 0.2s; }
.sc-doors.is-on .door:nth-child(4) { animation-delay: 0.3s; }
.sc-doors.is-on .door:nth-child(5) { animation-delay: 0.4s; }
.sc-doors.is-on .door:nth-child(6) { animation-delay: 0.5s; }
.sc-doors.is-on.is-picked .door.is-open::before { opacity: 1; }
.sc-doors.is-on.is-picked .door.is-open i { transform: rotateY(-72deg); box-shadow: 8px 0 18px rgba(0, 0, 0, 0.5); }
.sc-doors.is-on.is-picked .door.is-open em { color: var(--brass); }

/* 4. Rooms you walk into: a slow dolly into the Operations Centre, through to the build, plus points */
.room-a, .room-b { transform-origin: 48% 62%; }
.room-b { opacity: 0; }
.room-t { position: absolute; left: 14px; top: 12px; font: 600 0.8rem/1 var(--font-display); color: var(--bone); text-shadow: 0 1px 8px rgba(0, 0, 0, 0.6); opacity: 0; }
.room-hot { position: absolute; width: 16px; height: 16px; margin: -8px 0 0 -8px; border-radius: 50%; background: rgba(13, 12, 11, 0.55); border: 1px solid var(--bone); opacity: 0; }
.room-hot::before, .room-hot::after { content: ""; position: absolute; left: 50%; top: 50%; width: 8px; height: 1px; margin: -0.5px 0 0 -4px; background: var(--bone); }
.room-hot::after { transform: rotate(90deg); }
.room-tip {
  position: absolute; left: 47%; top: 45%; margin: 14px 0 0 -10px; max-width: 190px; padding: 8px 10px;
  background: rgba(13, 12, 11, 0.86); border: 1px solid var(--brass-line); border-radius: 4px;
  font: 600 0.7rem/1.25 var(--font-display); color: var(--brass); opacity: 0; transform: translateY(6px);
}
.room-tip small { display: block; margin-top: 3px; font: 400 0.62rem/1.35 var(--font-body); color: rgba(236, 231, 221, 0.85); }
.sc-room.is-on .room-a { animation: roomDolly 3.6s cubic-bezier(0.5, 0, 0.3, 1) forwards, roomOut 0.9s ease 3.2s forwards; }
.sc-room.is-on .room-ta { animation: hubFade 0.6s ease 0.4s forwards, roomOut 0.5s ease 3.1s forwards; }
.sc-room.is-on .room-b { animation: roomIn 1s ease 3.2s forwards; }
.sc-room.is-on .room-tb { animation: hubFade 0.6s ease 4s forwards; }
.sc-room.is-on .room-hot { animation: hubFade 0.4s ease 4.4s forwards, roomPing 1.6s ease-out 4.8s infinite; }
.sc-room.is-on .room-hot.is-main { background: var(--brass); border-color: var(--brass); }
.sc-room.is-on .room-tip { animation: hubRise 0.5s var(--ez) 5.4s forwards; }
@keyframes roomDolly { from { transform: scale(1); } to { transform: scale(1.32); } }
@keyframes roomOut { to { opacity: 0; } }
@keyframes roomIn { from { opacity: 0; transform: scale(1.12); } to { opacity: 1; transform: scale(1); } }
@keyframes roomPing { 0% { box-shadow: 0 0 0 0 rgba(236, 231, 221, 0.45); } 100% { box-shadow: 0 0 0 12px rgba(236, 231, 221, 0); } }

/* 5. Project experiences: The Fold, its hero, then its scenes one by one */
.proj-hero { transform-origin: 50% 45%; }
/* the shade sits over each picture and under its words */
.sc-proj::after, .proj-s::after { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(13, 12, 11, 0) 40%, rgba(13, 12, 11, 0.8)); pointer-events: none; }
.proj-name { position: absolute; left: 16px; bottom: 14px; z-index: 3; font: 600 1.5rem/1 var(--font-display); opacity: 0; }
.proj-name small { display: block; margin-top: 6px; font: 400 0.72rem/1 var(--font-body); color: rgba(236, 231, 221, 0.8); }
.proj-s { position: absolute; inset: 0; z-index: 2; opacity: 0; }
.proj-s em { position: absolute; left: 16px; right: 16px; bottom: 14px; z-index: 2; font: 400 0.8rem/1.35 var(--font-display); font-style: normal; color: var(--bone); }
.proj-s em b { display: block; margin-bottom: 4px; font: 500 0.56rem/1 var(--font-mono); letter-spacing: 0.16em; text-transform: uppercase; color: var(--brass); }
.sc-proj.is-on .proj-hero { animation: projBurns 3.4s ease-out forwards; }
.sc-proj.is-on .proj-name { animation: hubFade 0.7s ease 0.5s forwards, roomOut 0.6s ease 3s forwards; }
.sc-proj.is-on .proj-s { animation: projScene 7.5s ease calc(3s + var(--n) * 2.3s) forwards; }
.sc-proj.is-on .proj-s:last-child { animation-name: projLast; }
.sc-proj.is-on .proj-s img { animation: projBurns 3.4s ease-out calc(3s + var(--n) * 2.3s) both; }
@keyframes projBurns { from { transform: scale(1.12); } to { transform: scale(1); } }
@keyframes projScene { 0% { opacity: 0; } 8%, 34% { opacity: 1; } 42%, 100% { opacity: 0; } }
@keyframes projLast { 0% { opacity: 0; } 8%, 100% { opacity: 1; } }

/* 6. Live operations: the business running, figures settling, the feed moving */
.sc-live { display: flex; flex-direction: column; gap: 12px; padding: 16px; background: #0f0e0c; }
.live-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding-bottom: 10px; border-bottom: 1px solid rgba(236, 231, 221, 0.08); font: 500 0.58rem/1 var(--font-mono); letter-spacing: 0.1em; text-transform: uppercase; }
.live-top b { font-weight: 500; color: var(--bone); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.live-top span { display: flex; align-items: center; gap: 6px; color: rgba(236, 231, 221, 0.6); white-space: nowrap; }
.live-top span i { width: 6px; height: 6px; border-radius: 50%; background: #4ade80; animation: folioPulse 1.6s ease-in-out infinite; }
.live-kpis { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.live-kpis span { display: flex; flex-direction: column; gap: 4px; padding: 10px 12px; border: 1px solid rgba(236, 231, 221, 0.08); background: rgba(236, 231, 221, 0.03); opacity: 0; transform: translateY(8px); }
.live-kpis small { font: 500 0.52rem/1 var(--font-mono); letter-spacing: 0.12em; text-transform: uppercase; color: rgba(236, 231, 221, 0.55); }
.live-kpis b { font: 600 1.2rem/1 var(--font-display); color: var(--bone); font-variant-numeric: tabular-nums; }
.live-kpis em { font: 400 0.6rem/1 var(--font-body); font-style: normal; color: rgba(236, 231, 221, 0.55); }
.live-kpis em.up { color: #4ade80; }
.live-kpis em.warn { color: var(--brass); }
.live-feed { display: flex; flex-direction: column; gap: 6px; }
.live-row { display: flex; align-items: center; gap: 8px; font: 400 0.68rem/1.2 var(--font-body); color: rgba(236, 231, 221, 0.8); opacity: 0; transform: translateX(-10px); }
.live-row svg { width: 13px; height: 13px; color: var(--brass); flex: 0 0 auto; }
.sc-live.is-on .live-kpis span { animation: hubRise 0.6s var(--ez) forwards; }
.sc-live.is-on .live-kpis span:nth-child(2) { animation-delay: 0.1s; }
.sc-live.is-on .live-kpis span:nth-child(3) { animation-delay: 0.2s; }
.sc-live.is-on .live-kpis span:nth-child(4) { animation-delay: 0.3s; }
.sc-live.is-on .live-row { animation: liveRow 0.6s var(--ez) 2s forwards; }
.sc-live.is-on .live-row + .live-row { animation-delay: 3.2s; }
@keyframes liveRow { to { opacity: 1; transform: none; } }
@keyframes folioPulse { 50% { box-shadow: 0 0 0 5px rgba(74, 222, 128, 0.1); } }

/* ── Desktop with the wheel: the wheel hangs off the screen's left edge, the copy
   sits clear of it, and the screen holds the right column. ─────────────────── */
@media (min-width: 769px) {
  #more-than-a-website .split-copy h2 { margin-bottom: 22px; }
  #more-than-a-website .split-copy p { margin: 0 0 18px; line-height: 1.7; }
}
/* The description under the heading follows the wheel. All seven blocks share one grid
   cell, so the column is as tall as the longest and nothing below it moves. */
.bxs-copy { display: grid; }
.bxs-copy-i {
  grid-area: 1 / 1; min-width: 0;
  opacity: 0; transform: translateY(26px); visibility: hidden;
  transition: transform 0.8s cubic-bezier(0.6, 0, 0.15, 1), opacity 0.45s ease, visibility 0s 0.8s;
}
.bxs-copy-i.is-on { opacity: 1; transform: none; visibility: visible; transition-delay: 0.12s, 0.12s, 0s; }
.bxs-copy-i.is-out { opacity: 0; transform: translateY(-26px); }
.bxs-copy-i > p:last-child { margin-bottom: 0; }
/* Spin arrows above and below the text. Until the visitor uses one, they bob gently
   (up the one above, down the one below) with a soft violet ring, to invite a turn. */
.bxs-spin {
  position: relative; display: flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; margin: 0 auto; padding: 0;
  border-radius: 50%; border: 1px solid rgba(124, 58, 237, 0.28); background: #fff; color: var(--accent-violet);
  box-shadow: 0 6px 16px -8px rgba(76, 29, 149, 0.35); cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}
.bxs-spin svg { width: 18px; height: 18px; }
.bxs-spin-up { margin-bottom: 16px; }
.bxs-spin-down { margin-top: 14px; }
/* the up arrow waits, invisible but holding its space, until the down arrow has been used once (bx-wheel.js) */
.bxs-spin-up { transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease, opacity 0.4s ease, visibility 0s linear 0s; }
.bxs-spin-up.is-waiting { opacity: 0; visibility: hidden; pointer-events: none; transition: opacity 0.4s ease, visibility 0s linear 0.4s; }
.bxs-spin:hover { background: var(--accent-violet); color: #fff; }
.bxs-spin:active { transform: scale(0.94); }
.bxs-spin:focus-visible { outline: 2px solid var(--accent-violet); outline-offset: 3px; }
.bxs-spin::after { content: ""; position: absolute; inset: -1px; border-radius: 50%; pointer-events: none; }
@media (prefers-reduced-motion: no-preference) {
  .bxs-spin:not(.is-used)::after { animation: spinRing 2.4s ease-out infinite; }
  .bxs-spin-up:not(.is-used) svg { animation: spinUp 2.4s ease-in-out infinite; }
  .bxs-spin-down:not(.is-used) svg { animation: spinDown 2.4s ease-in-out infinite; }
  .bxs-spin-down:not(.is-used)::after { animation-delay: 1.2s; }
}
@keyframes spinRing { 0% { box-shadow: 0 0 0 0 rgba(124, 58, 237, 0.35); } 70%, 100% { box-shadow: 0 0 0 12px rgba(124, 58, 237, 0); } }
@keyframes spinUp { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-3px); } }
@keyframes spinDown { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(3px); } }

/* The whole text column is centred, and the closing line sits close under the description */
#more-than-a-website .split-copy { text-align: center; }
/* the heading sits centred above the whole section, the closing line centred below it */
#more-than-a-website .bxs-head { margin-bottom: 28px; }
#more-than-a-website .bxs-foot { margin: 28px 0 0 !important; }

@media (min-width: 1200px) {
  /* Left to right: the v1 wheel, half hidden off the window's left edge exactly as v1 built
     it; the screen in the centre of the page, with its spin arrows above and below; and the
     text on a panel that runs off the window's right edge, the wheel's mirror. The wheel's
     line runs into the screen; the screen's line runs on and becomes the panel's top and
     bottom edges, carrying on off the page. All drawn by bx-wheel.js in .bxs-wrap.
     --cy (bx-wheel.js) is the shared centre line, from the text section; --fh the screen
     without its ticks; --bxp-left how far the layout sits in from the window's left edge. */
  #more-than-a-website .split-layout {
    --sw: clamp(400px, 34vw, 520px);             /* the screen, centred */
    --pw: clamp(220px, 16vw, 250px);             /* the panel's visible width */
    --wd: min(54vh, 500px);                      /* the v1 wheel's diameter */
    grid-template-columns: minmax(0, 1fr);
    min-height: calc(var(--wd) + 20px);
    /* the text column: the panel shows --pw of itself at the window's right edge, with 28px
       of padding inside; the layout reaches the window's right edge */
    padding-left: calc(100vw - var(--pw) + 28px - (100vw - 1136px) / 2);
    padding-right: 24px;
    margin-right: calc(-1 * (100vw - 1136px) / 2);
  }
  /* the panel is about as tall as the wheel and about as wide as the wheel shows, so the
     text stacks into a tall narrow column, the wheel's mirror */
  #more-than-a-website .split-copy {
    position: relative; z-index: 1; padding: 28px 0; box-sizing: border-box;
    min-height: calc(var(--wd) * 0.86); display: flex; flex-direction: column; justify-content: center;
  }
  #more-than-a-website .bxs-copy-i p { font-size: 0.88rem; line-height: 1.6; }
  #more-than-a-website .bxs-copy-i p.bx-dim { margin-bottom: 14px; }
  #more-than-a-website .bxs {
    /* 54px: the arrow above the screen and its space */
    position: absolute; top: calc(var(--cy, 50%) - var(--fh, 340px) / 2 - 54px);
    left: calc(50vw - var(--sw) / 2 - var(--bxp-left, 0px)); right: auto; width: var(--sw);
  }
  #more-than-a-website .bxs-ticks { justify-content: center; }
  #more-than-a-website .bxs-stage { height: calc(var(--sw) * 0.6); }   /* keeps its shape as it grows */
  /* the wheel stays exactly as v1 placed it (rim 150px in from the left edge); it only
     follows the shared centre line */
  #more-than-a-website .bxpw-wheel { top: var(--cy, 50%); }
  /* The wheel can be turned by hand: click a term on its rim, use the arrows, or scroll
     over the disc. Its pills turn violet on hover. */
  .bxpw-wheel { pointer-events: auto; cursor: grab; }
  .bxpw-pill { cursor: pointer; }
  .bxpw-node:not(.is-active) .bxpw-pill:hover { color: var(--accent-violet); border-color: rgba(124, 58, 237, 0.45); }
  /* the lines and the panel; the wheel's own short line gives way to them */
  .bxs-wrap { position: absolute; top: 0; pointer-events: none; overflow: visible; z-index: 0; transition: opacity 0.6s ease 0.8s; }
  .bxs-wrap path { fill: none; stroke: url(#bxs-wrap-g); stroke-width: 1; }
  .bxs-wrap path.panel { stroke: none; fill: url(#bxs-panel-g); }
  #more-than-a-website .bxpw-line { display: none; }
  .split-layout:not(.bxp-arrived) .bxs-wrap { opacity: 0; }
  /* Arrival: the wheel slides in from the left, the screen rises into place, the text panel
     slides in from the right */
  .bxs, #more-than-a-website .split-copy { transition: translate 1.1s cubic-bezier(0.6, 0, 0.15, 1), opacity 0.6s ease; }
  .bxpw { transition: translate 1.1s cubic-bezier(0.6, 0, 0.15, 1); }
  #more-than-a-website .split-layout:not(.bxp-arrived) .bxs { translate: 0 40px; opacity: 0; }
  #more-than-a-website .split-layout:not(.bxp-arrived) .bxpw { translate: -340px 0; }
  #more-than-a-website .split-layout:not(.bxp-arrived) .split-copy { translate: 160px 0; opacity: 0; }
}
@media (max-width: 768px) {
  .bxs-stage { height: 250px; }
  .bxs-scene { padding: 18px 16px; }
}

@media (prefers-reduced-motion: reduce) {
  .bxs, .bxpw, .bxs-scene, .bxs-label > span, .bxs-copy-i { transition: none !important; translate: none !important; }
  .bxs-scene *, .bxs-scene { animation: none !important; }
  .rec-k, .rec-p, .rec-btn, .rec-h span, .lens-h, .lens-p, .doors-h, .door, .room-t.room-ta, .proj-name, .live-kpis span, .live-row { opacity: 1; transform: none; filter: none; }
}

/* ===== Dark mode ===== */
:root[data-theme="dark"] .bxs{--accent-violet:#b09bee}
:root[data-theme="dark"] .bxs-frame{background-color:var(--stage-bot);background-image:linear-gradient(180deg,var(--stage-top),var(--stage-bot));border-color:var(--stage-edge);box-shadow:inset 0 1px 0 var(--stage-edge-hi)}
:root[data-theme="dark"] .bxs-bar{background:var(--stage-plate);border-bottom-color:var(--dk-edge)}
:root[data-theme="dark"] .bxs-dots i{background:rgba(190,210,255,.30)}
:root[data-theme="dark"] .bxs-old{color:var(--text-secondary);text-decoration-color:rgba(176,184,197,.65)}
:root[data-theme="dark"] .bxs-arrow{color:var(--violet-text)}
:root[data-theme="dark"] .bxs-new{color:var(--violet-text-hi)}
:root[data-theme="dark"] .bxs-plain{color:var(--text-secondary)}
:root[data-theme="dark"] .bxs-ticks button{background:rgba(176,155,238,.24)}
:root[data-theme="dark"] .bxs-ticks button[aria-selected="true"]{background:var(--violet-text)}
/* scene 0: a plain website, drawn as plates */
:root[data-theme="dark"] .site-nav b{background:rgba(190,210,255,.30)}
:root[data-theme="dark"] .site-nav i{background:rgba(190,210,255,.18)}
:root[data-theme="dark"] .site-hero{background:var(--stage-plate)}
:root[data-theme="dark"] .site-hero span{background:rgba(190,210,255,.22)}
:root[data-theme="dark"] .site-lines i{background:rgba(190,210,255,.14)}
:root[data-theme="dark"] .site-form i{border-color:var(--dk-edge)}
:root[data-theme="dark"] .site-form b{background:var(--stage-plate);color:var(--text-secondary)}
/* scenes 1-6: the demo's ink/bone/brass becomes the stage's tones; scenes stay opaque (they cross-fade over each other) */
:root[data-theme="dark"] :is(.sc-rec,.sc-lens,.sc-doors,.sc-room,.sc-proj,.sc-live){
  --ink:var(--stage-bot);--bone:var(--text-primary);--brass:#d4a672;--brass-line:rgba(212,166,114,.42);
  background:linear-gradient(180deg,var(--stage-top),var(--stage-bot));
}
:root[data-theme="dark"] .rec-p{color:var(--text-secondary)}
:root[data-theme="dark"] .sc-rec.is-on .rec-btn{animation:hubFade .8s ease 3.4s forwards,recRingDk 2.4s ease-in-out 4.2s infinite}
@keyframes recRingDk{50%{box-shadow:0 0 0 6px rgba(212,166,114,.18)}}
:root[data-theme="dark"] .lens-p{border-color:var(--dk-line-3)}
:root[data-theme="dark"] .lens-p::after{background:linear-gradient(180deg,rgba(22,32,50,0) 30%,rgba(22,32,50,.78))}
/* the four lens panels were brown/gold gradients set by an inline --bg; the stylesheet replaces the background, no brown */
:root[data-theme="dark"] .sc-lens .lens-p:nth-child(1){background:linear-gradient(175deg,#2a3550,#3c4b6b 40%,#566b92 66%,#1f2a42)}
:root[data-theme="dark"] .sc-lens .lens-p:nth-child(2){background:linear-gradient(150deg,#232e42,#38465e 45%,#5a6d8c 74%,#1b2538)}
:root[data-theme="dark"] .sc-lens .lens-p:nth-child(3){background:linear-gradient(165deg,#2e2a4e,#433d6e 38%,#62599a 70%,#232041)}
:root[data-theme="dark"] .sc-lens .lens-p:nth-child(4){background:linear-gradient(155deg,#1f3547,#2f5062 44%,#4a7a8f 72%,#18293a)}
:root[data-theme="dark"] .sc-doors::before{background:linear-gradient(180deg,rgba(22,32,50,.55),rgba(22,32,50,.2) 45%,rgba(22,32,50,.85))}
:root[data-theme="dark"] .door i{background:linear-gradient(180deg,var(--stage-face-top),var(--stage-face-bot));border-color:var(--dk-edge)}
:root[data-theme="dark"] .door em{color:var(--text-secondary)}
:root[data-theme="dark"] .door.is-open::before{background:radial-gradient(ellipse at 50% 60%,#f6e3c4,#d4a672 55%,#8c6f4b)}
:root[data-theme="dark"] .sc-doors.is-on.is-picked .door.is-open i{box-shadow:none}
:root[data-theme="dark"] .sc-doors.is-on.is-picked .door.is-open em{color:var(--brass)}
:root[data-theme="dark"] .room-hot{background:rgba(22,32,50,.70)}
:root[data-theme="dark"] .room-tip{background:var(--stage-plate-hi);border-color:var(--brass-line)}
:root[data-theme="dark"] .room-tip small{color:var(--text-secondary)}
:root[data-theme="dark"] :is(.sc-proj::after,.proj-s::after){background:linear-gradient(180deg,rgba(22,32,50,0) 40%,rgba(22,32,50,.8))}
:root[data-theme="dark"] .live-top{border-bottom-color:var(--dk-edge)}
:root[data-theme="dark"] :is(.live-top span,.live-kpis small,.live-kpis em){color:var(--text-secondary)}
:root[data-theme="dark"] .live-kpis em.up{color:var(--green-text)}
:root[data-theme="dark"] .live-kpis em.warn{color:var(--brass)}
:root[data-theme="dark"] .live-top span i{background:var(--green-text)}
:root[data-theme="dark"] .live-kpis span{background:var(--stage-plate);border-color:var(--dk-edge)}
/* spin arrows (on the band): raised, violet tint, flat pulse ring */
:root[data-theme="dark"] .bxs-spin{background:var(--surface-raised);border-color:rgba(176,155,238,.40);color:var(--violet-text);box-shadow:none}
:root[data-theme="dark"] .bxs-spin:hover{background:var(--dk-s4);color:var(--violet-text-hi);border-color:rgba(176,155,238,.65)}
@keyframes spinRingDk{0%{box-shadow:0 0 0 0 rgba(176,155,238,.40)}70%,100%{box-shadow:0 0 0 12px rgba(176,155,238,0)}}
@media (prefers-reduced-motion:no-preference){:root[data-theme="dark"] .bxs-spin:not(.is-used)::after{animation-name:spinRingDk}}
/* the violet connector lines and the text panel (SVG gradients built by bx-wheel.js: CSS overrides the stop attributes) */
:root[data-theme="dark"] #bxs-wrap-g stop{stop-color:#b09bee}
:root[data-theme="dark"] #bxs-panel-g stop{stop-color:#96afe6}
:root[data-theme="dark"] #bxs-panel-g stop:first-child{stop-opacity:.11}
:root[data-theme="dark"] #bxs-panel-g stop:last-child{stop-opacity:.05}

/* the room title sits over the dimmed photo: neutral ink shadow, no pure black */
:root[data-theme="dark"] .room-t{text-shadow:0 1px 6px rgba(1,2,11,.70)}

/* Wheel spin buttons in dark (Mars, 23 Nov): neon purple, with a glow behind that pulses until the visitor uses one.
   Deliberate exception to the dark design system's "no glows": the pulse is the invitation to click. */
:root[data-theme="dark"] .bxs-spin{background:#a64dff;border-color:#c99bff;color:#fff;box-shadow:0 0 18px -2px rgba(166,77,255,.65);isolation:isolate}
:root[data-theme="dark"] .bxs-spin:hover{background:#b96bff;border-color:#e0c4ff;color:#fff}
:root[data-theme="dark"] .bxs-spin:focus-visible{outline-color:#e0c4ff}
:root[data-theme="dark"] .bxs-spin::before{content:"";position:absolute;inset:-14px;border-radius:50%;z-index:-1;pointer-events:none;
  background:radial-gradient(circle,rgba(166,77,255,.55) 0%,rgba(166,77,255,.18) 45%,transparent 70%);opacity:.35}
@keyframes spinRingNeon{0%{box-shadow:0 0 0 0 rgba(176,92,255,.75)}70%,100%{box-shadow:0 0 0 16px rgba(176,92,255,0)}}
@keyframes spinGlowNeon{0%,100%{opacity:.35;transform:scale(.85)}50%{opacity:1;transform:scale(1.15)}}
@media (prefers-reduced-motion:no-preference){
  :root[data-theme="dark"] .bxs-spin:not(.is-used)::after{animation-name:spinRingNeon}
  :root[data-theme="dark"] .bxs-spin:not(.is-used)::before{animation:spinGlowNeon 2.4s ease-in-out infinite}
  :root[data-theme="dark"] .bxs-spin-down:not(.is-used)::before{animation-delay:1.2s}
}
