:root {
  color-scheme: light;
  --bg: #eef6f3;
  --paper: rgba(255, 255, 255, 0.76);
  --paper-strong: rgba(255, 255, 255, 0.94);
  --line: rgba(84, 121, 113, 0.22);
  --ink: #243f3e;
  --muted: #5d7773;
  --faint: #829591;
  --accent: #658b82;
  --shadow: 0 22px 70px rgba(42, 75, 72, 0.14);
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 16% 0%, rgba(255, 255, 255, 0.76), transparent 33rem),
    linear-gradient(145deg, #eff8f5 0%, #e7f0ef 58%, #faf8f1 100%);
}

button {
  font: inherit;
}

.slice-shell {
  width: min(1080px, calc(100vw - 32px));
  min-height: 100vh;
  margin: 0 auto;
  padding: clamp(22px, 4vw, 42px) 0 46px;
}

.slice-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.wide-wordmark {
  display: inline-flex;
  align-items: center;
  gap: 0.48rem;
  margin: 0;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 760;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.wide-infinity {
  display: inline-grid;
  place-items: center;
  width: 1.65rem;
  height: 1rem;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.45rem;
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0;
  transform: translateY(-0.02em);
}

.sound-toggle {
  min-height: 34px;
  padding: 6px 12px;
  border: 1px solid rgba(94, 134, 126, 0.34);
  border-radius: 999px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.54);
  cursor: pointer;
  font-size: 0.82rem;
}

.sound-toggle[aria-pressed="true"] {
  color: var(--ink);
  border-color: rgba(95, 133, 124, 0.62);
  background: rgba(255, 255, 255, 0.78);
}

.slice-experience {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.7fr);
  gap: 18px;
  align-items: stretch;
}

.movement-frame,
.slice-panel {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--paper);
  box-shadow: var(--shadow);
}

.movement-frame {
  position: relative;
  align-self: start;
  overflow: hidden;
}

.movement-video,
.reduced-motion-still {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #e8e3d8;
  object-fit: cover;
}

.reduced-motion-still {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
}

.movement-frame.show-still .movement-video {
  opacity: 0;
}

.movement-frame.show-still .reduced-motion-still {
  opacity: 1;
}

.slice-panel {
  min-height: 460px;
  padding: clamp(24px, 3.4vw, 40px);
}

.panel-state {
  display: none;
}

.panel-state.active {
  display: grid;
  align-content: center;
  min-height: 100%;
  animation: state-arrive 520ms ease both;
}

h1,
h2,
p {
  margin-top: 0;
}

h1,
h2 {
  max-width: 620px;
  margin-bottom: 18px;
  font-weight: 650;
  line-height: 1;
  letter-spacing: 0;
}

h1 {
  font-size: clamp(2.1rem, 4.6vw, 4.45rem);
}

h2 {
  font-size: clamp(1.72rem, 3.3vw, 3.25rem);
  line-height: 1.08;
}

p {
  max-width: 520px;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: clamp(1.02rem, 1.8vw, 1.22rem);
  line-height: 1.55;
}

.quiet-line {
  color: var(--faint);
}

.primary-action,
.choice-action {
  min-height: 50px;
  border: 1px solid rgba(94, 134, 126, 0.32);
  color: var(--ink);
  background: rgba(255, 255, 255, 0.72);
  cursor: pointer;
  transition:
    border-color 180ms ease,
    background 180ms ease,
    transform 180ms ease;
}

.primary-action {
  width: fit-content;
  min-width: 128px;
  margin-top: 22px;
  padding: 13px 24px;
  border-radius: 999px;
}

.choice-list {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.choice-action {
  padding: 13px 16px;
  border-radius: 999px;
  text-align: left;
}

.primary-action:hover,
.choice-action:hover,
.sound-toggle:hover {
  border-color: rgba(95, 133, 124, 0.64);
  background: var(--paper-strong);
  transform: translateY(-1px);
}

.primary-action:focus-visible,
.choice-action:focus-visible,
.sound-toggle:focus-visible {
  outline: 3px solid rgba(100, 139, 130, 0.3);
  outline-offset: 3px;
}

.panel-state h2:focus,
.panel-state [tabindex="-1"]:focus {
  outline: none;
}

.primary-action:disabled,
.choice-action:disabled {
  cursor: default;
  opacity: 0.58;
  transform: none;
}

@keyframes state-arrive {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }

}

@media (max-width: 860px) {
  .slice-experience {
    grid-template-columns: 1fr;
  }

  .slice-panel {
    min-height: 360px;
  }

  .panel-state.active {
    min-height: 300px;
  }
}

@media (max-width: 620px) {
  .slice-shell {
    width: min(100vw - 22px, 1080px);
    padding-top: 22px;
  }

  .slice-header {
    align-items: flex-start;
  }

  .movement-frame,
  .slice-panel {
    border-radius: 12px;
  }

  .slice-panel {
    padding: 22px;
  }
}

/* Embedded on the movewide.co.uk homepage. The standalone route is unchanged. */
body.embed-mode {
  min-height: 0;
  background:
    radial-gradient(circle at 16% 0%, rgba(255, 255, 255, 0.76), transparent 33rem),
    linear-gradient(145deg, #eff8f5 0%, #e7f0ef 58%, #faf8f1 100%);
}

body.embed-mode .slice-shell {
  width: 100%;
  min-height: 0;
  padding: clamp(18px, 3vw, 34px);
}

body.embed-mode .slice-header {
  margin-bottom: 14px;
}

@media (max-width: 620px) {
  body.embed-mode .slice-shell {
    width: 100%;
    padding: 14px;
  }
}

