:root {
  --bg: #070e1b;
  --ink: #f8f2e8;
  --muted: #b6c4d5;
  --gold: #ffd394;
  --cyan: #77e7f7;
  --panel: #142438e6
}

* {
  box-sizing: border-box
}

body {
  margin: 0;
  background: #050a13;
  color: var(--ink);
  font-family: Inter,system-ui,-apple-system,Segoe UI,sans-serif;
  overflow: hidden
}

.deck {
  width: 100vw;
  height: 100dvh;
  position: relative
}

.slide {
  display: none;
  position: absolute;
  inset: 0;
  overflow: hidden;
  background: linear-gradient(135deg,#101f32,#07101e);
  animation: appear .45s ease
}

.slide.active {
  display: flex
}

.slide .bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(.49) saturate(1.04)
}

.slide .bg.fit {
  object-fit: contain;
  filter: brightness(.95)
}

.shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg,rgba(4,10,21,.95) 0%,rgba(4,10,21,.75) 48%,rgba(4,10,21,.18) 100%)
}

.slide-integral .shade {
  background: linear-gradient(90deg,rgba(4,10,21,.78) 0%,rgba(4,10,21,.56) 52%,rgba(4,10,21,.2) 100%);
  pointer-events: none
}

.slide-context .shade {
  pointer-events: none
}

.context-content {
  pointer-events: none
}

.context-content > * {
  pointer-events: auto
}

.context-content h2 {
  max-width: 860px
}

.integral-content {
  pointer-events: none
}

.integral-content > * {
  pointer-events: auto
}

.shade.bottom {
  background: linear-gradient(0deg,rgba(4,10,21,.97),rgba(4,10,21,.13) 80%)
}

.content {
  position: relative;
  z-index: 1;
  padding: clamp(32px,6vw,110px);
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center
}

.eyebrow {
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: .24em;
  font-size: clamp(12px,1.2vw,19px);
  font-weight: 750;
  margin: 0 0 18px
}

h1 {
  font-size: clamp(45px,6.3vw,108px);
  max-width: 920px;
  line-height: 1.03;
  margin: 0 0 23px;
  letter-spacing: -.055em
}

.closing-title {
  font-size: clamp(34px,3.8vw,64px);
  max-width: 1180px
}

.mandala-practice-link {
  display: inline-flex;
  width: fit-content;
  margin-top: 22px;
  padding: 13px 20px;
  color: #172033;
  background: var(--gold);
  border-radius: 999px;
  font-size: 16px;
  font-weight: 750;
  text-decoration: none
}

.mandala-practice-link:hover {
  background: #ffe2b6
}

.mandala-practice-link:focus-visible {
  outline: 3px solid var(--cyan);
  outline-offset: 4px
}

h2 {
  font-size: clamp(37px,4.1vw,72px);
  line-height: 1.08;
  letter-spacing: -.045em;
  margin: 0 0 22px
}

p {
  font-size: clamp(17px,1.6vw,26px);
  line-height: 1.5;
  color: #e2e8f2;
  margin: 0;
  max-width: 830px
}

.lead {
  font-size: clamp(21px,2vw,34px);
  color: #fff
}

.em {
  color: var(--gold)
}

.accent {
  color: var(--cyan)
}

.cards {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 16px;
  margin-top: 35px;
  max-width: 1020px
}

.card {
  background: rgba(10,25,44,.82);
  border: 1px solid #ffffff30;
  backdrop-filter: blur(12px);
  border-radius: 20px;
  padding: clamp(15px,2vw,30px)
}

.card strong {
  display: block;
  color: var(--gold);
  font-size: clamp(19px,2vw,29px);
  margin-bottom: 10px
}

.card span {
  font-size: clamp(14px,1.25vw,20px);
  line-height: 1.4;
  color: #dae8f5
}

.split {
  display: grid;
  grid-template-columns: .95fr 1.05fr;
  align-items: center;
  gap: 5vw;
  width: 100%
}

.picture {
  width: 100%;
  max-height: 72vh;
  object-fit: contain;
  border-radius: 22px;
  box-shadow: 0 18px 80px #0008
}

.bullets {
  list-style: none;
  margin: 24px 0 0;
  padding: 0;
  display: grid;
  gap: 18px
}

.bullets li {
  font-size: clamp(18px,1.6vw,26px);
  padding-left: 27px;
  border-left: 4px solid var(--gold);
  max-width: 850px
}

.wide-visual {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #08111f
}

.bottom-label {
  position: absolute;
  bottom: 9vh;
  left: 5vw;
  right: 5vw;
  border-radius: 18px;
  padding: 22px 30px;
  background: #061122d9;
  backdrop-filter: blur(13px);
  max-width: 940px;
  z-index: 2
}

.bottom-label h2 {
  font-size: clamp(27px,3.1vw,51px);
  margin-bottom: 6px
}

.bottom-label p {
  font-size: clamp(15px,1.35vw,22px)
}

.practice-table {
  width: 100%;
  margin-top: 12px;
  border-collapse: collapse;
  color: #e2e8f2;
  font-size: clamp(14px,1.2vw,18px);
  text-align: left
}

.practice-table th,
.practice-table td {
  padding: 6px 12px;
  border-bottom: 1px solid #ffffff30
}

.practice-table th {
  color: var(--gold);
  font-weight: 700
}

.practice-table th:first-child,
.practice-table td:first-child {
  width: 27%;
  white-space: nowrap
}

.slide-movement .movement-visual {
  height: 68%
}

.slide-movement .bottom-label {
  right: 0;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 32%;
  max-width: none;
  padding: 10px 5vw 44px;
  border-radius: 18px 18px 0 0;
  text-align: center;
  overflow-y: auto
}

.slide-movement .bottom-label h2 {
  font-size: clamp(24px,2.4vw,36px);
  margin-bottom: 2px
}

.slide-movement .bottom-label p {
  margin: 0 auto;
  font-size: clamp(14px,1.1vw,17px);
  text-align: center
}

.slide-movement .practice-table {
  width: min(760px,100%);
  margin: 4px auto 0;
  font-size: clamp(12px,1vw,15px);
  line-height: 1.1;
  text-align: left
}

.slide-movement .practice-table th,
.slide-movement .practice-table td {
  padding: 2px 8px
}

.slide-movement .source-link {
  position: absolute;
  right: 5vw;
  bottom: 56px;
  color: var(--cyan);
  font-size: 13px;
  text-decoration: underline;
  text-underline-offset: 3px
}

.slide-movement .source-link:hover {
  color: var(--gold)
}

.counter {
  position: fixed;
  bottom: 20px;
  right: 25px;
  z-index: 50;
  font-size: 13px;
  color: #ced5dd
}

.controls {
  position: fixed;
  bottom: 13px;
  left: 20px;
  display: flex;
  align-items: center;
  gap: 8px;
  z-index: 50;
  background: #07111dd9;
  border: 1px solid #ffffff2a;
  padding: 7px;
  border-radius: 30px
}

.controls button {
  background: #ffffff17;
  border: 1px solid #ffffff22;
  color: white;
  border-radius: 99px;
  min-width: 34px;
  height: 34px;
  font-size: 16px;
  cursor: pointer
}

.controls button:hover {
  background: #ffffff3c
}

.progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 4px;
  background: linear-gradient(90deg,var(--cyan),var(--gold));
  z-index: 100;
  transition: width .25s
}

.dots {
  display: flex;
  gap: 5px
}

.dot {
  width: 7px;
  height: 7px;
  border-radius: 20px;
  background: #63748a
}

.dot.sel {
  background: var(--gold);
  width: 18px
}

.breath {
  display: flex;
  gap: 18px;
  margin: 30px 0;
  align-items: stretch
}

.breath-box {
  min-width: 210px;
  padding: 25px;
  border-radius: 20px;
  border: 2px solid #59dfff99;
  background: #082c4cce
}

.breath-box.out {
  border-color: #ffbb6e99;
  background: #4c290bcc
}

.breath-box b {
  display: block;
  font-size: 65px;
  line-height: 1;
  color: var(--cyan)
}

.breath-box.out b {
  color: var(--gold)
}

.breath-box span {
  font-size: 21px
}

.timer {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: 12px
}

.timer button {
  padding: 13px 20px;
  border: none;
  border-radius: 15px;
  font-size: 17px;
  font-weight: 700;
  cursor: pointer;
  background: var(--gold);
  color: #17202a
}

.voice-status {
  margin-top: 8px;
  color: var(--gold);
  font-size: 14px
}

.orb {
  width: 90px;
  height: 90px;
  border-radius: 100%;
  border: 5px solid var(--cyan);
  display: grid;
  place-items: center;
  box-shadow: 0 0 28px #59dfff55;
  background: #77e7f71c
}

.orb.exhale {
  border-color: var(--gold);
  box-shadow: 0 0 28px #ffd39455
}

.orb strong {
  font-size: 26px
}

.phase {
  font-size: 20px;
  color: white
}

.notes {
  display: none;
  position: fixed;
  z-index: 80;
  top: 15px;
  right: 15px;
  max-width: min(480px,90vw);
  background: #071422f5;
  border: 1px solid #ffffff44;
  border-radius: 16px;
  padding: 22px;
  font-size: 16px;
  line-height: 1.5;
  box-shadow: 0 16px 80px #000a
}

.notes.show {
  display: block
}

.notes b {
  color: var(--gold)
}

.hint {
  position: absolute;
  top: 20px;
  right: 25px;
  font-size: 13px;
  color: #ffffff9e;
  z-index: 2
}

@keyframes appear {
  from {
    opacity: 0;
    transform: translateY(8px)
  }
  to {
    opacity: 1;
    transform: none
  }
}

@media(max-width:750px) {
  .content {
    padding: 34px 24px 78px
  }
  .split {
    grid-template-columns: 1fr;
    gap: 20px
  }
  .picture {
    max-height: 28vh
  }
  .cards {
    grid-template-columns: 1fr;
    gap: 10px;
    margin-top: 18px
  }
  .card {
    padding: 12px 15px
  }
  .card strong {
    font-size: 18px;
    margin-bottom: 3px
  }
  .card span {
    font-size: 14px
  }
  .breath {
    flex-direction: column;
    gap: 10px
  }
  .breath-box {
    min-width: 0;
    padding: 15px
  }
  .breath-box b {
    font-size: 42px
  }
  .hint {
    display: none
  }
  h1 {
    font-size: clamp(37px,9vw,65px)
  }
  h2 {
    font-size: clamp(32px,8vw,50px)
  }
  .bottom-label {
    bottom: 74px;
    padding: 15px
  }
  .slide-movement .movement-visual {
    height: 68%
  }
  .slide-movement .bottom-label {
    bottom: 0;
    height: 32%;
    padding: 10px 20px 56px
  }
  .slide-movement .bottom-label h2 {
    margin-bottom: 4px
  }
}

@media print {
  body {
    overflow: visible;
    background: white
  }
  .deck {
    height: auto
  }
  .slide,.slide.active {
    position: relative;
    display: flex;
    break-after: page;
    height: 100vh
  }
  .controls,.progress,.counter,.notes,.hint {
    display: none!important
  }
}

.image-zoom-trigger {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  cursor: zoom-in;
  text-align: inherit
}

.background-zoom-trigger {
  position: absolute;
  inset: 0;
  z-index: 0;
  height: 100%
}

.image-zoom-trigger:focus-visible {
  outline: 3px solid var(--cyan);
  outline-offset: 6px;
  border-radius: 22px
}

.image-viewer {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100dvh;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 24px;
  border: 0;
  background: rgba(5,10,19,.96);
  color: var(--ink);
  align-items: center;
  justify-content: center;
  overflow: hidden
}

.image-viewer[open] {
  display: flex
}

.image-viewer::backdrop {
  background: rgba(0,0,0,.82)
}

.image-viewer img {
  display: block;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 12px;
  box-shadow: 0 18px 80px #0008
}

.image-viewer-close {
  position: absolute;
  top: 18px;
  right: 18px;
  z-index: 1;
  padding: 10px 16px;
  border: 1px solid #ffffff55;
  border-radius: 999px;
  background: #142438;
  color: var(--ink);
  font: inherit;
  cursor: pointer
}

.image-viewer-close:focus-visible {
  outline: 3px solid var(--cyan);
  outline-offset: 3px
}

.slide .bg.no-filter {
  filter: none;
}

.closing-note {
  margin-top: 28px;
  color: #d9c3a2;
}

.notes .note-text {
  margin-top: 10px;
  font-size: 16px;
}
