[data-practice="make-sense"] .phase-stage {
  --phase-moss: #2f3b2e;
  --phase-light: #f2ece1;
  --phase-brass: #b08a3e;
  --phase-light-brass: #d2b26e;
}

.phase-stage.phase-moss {
  background: var(--phase-moss);
  color: var(--phase-light);
  border-color: var(--phase-moss);
  color-scheme: dark;
}
.phase-moss :is(.phase-progress, .phase-note, .phase-text-link, .phase-quiet-button, .phase-choice small) {
  color: var(--phase-light-brass);
}
.phase-moss .phase-hand-sentence { color: var(--phase-light); }
.phase-moss .phase-hands > section { border-color: #8c9988; }
.phase-moss .phase-hands > section:nth-child(2) { border-top: 2px solid var(--phase-brass); }
.phase-moss .phase-choice,
.phase-moss .phase-field :is(input, textarea) {
  background: #3b4a36;
  border-color: #8c9988;
  color: var(--phase-light);
}
.phase-moss .phase-choice:has(:checked) {
  background: #4b5a44;
  border-color: var(--phase-light-brass);
  box-shadow: inset 0 0 0 1px var(--phase-light-brass);
}
.phase-moss .phase-choice input { accent-color: var(--phase-light-brass); }
.phase-moss .phase-actions .primary {
  background: var(--phase-light);
  border-color: var(--phase-light);
  color: var(--phase-moss);
}
.phase-moss .phase-actions .primary:hover { background: #e9d8b1; color: var(--phase-moss); }
.phase-moss :focus-visible,
.phase-moss .phase-choice:has(:focus-visible) { outline-color: var(--phase-light-brass); }

.phase-back-door {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 19rem;
  padding-block: 4rem;
  text-align: center;
}
.phase-back-door .phase-question { margin: 0; font-size: clamp(2rem, 5vw, 3.25rem); }
.phase-back-door .phase-actions { position: absolute; inset: auto auto 0 0; margin: 0; }
.phase-sequence { max-width: 64ch; }
.phase-sequence-line { margin-block: .7rem; }
.phase-line-pending { visibility: hidden; }
.phase-pause {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(8rem, .45fr);
  grid-template-areas: "lines circle";
  align-items: center;
  gap: clamp(1rem, 4vw, 2.5rem);
}
.phase-pause .phase-sequence { grid-area: lines; }
.phase-circle {
  grid-area: circle;
  justify-self: center;
  width: min(85%, 9rem);
  aspect-ratio: 1;
  border: 1px solid #b08a3e;
  border-radius: 50%;
  background: radial-gradient(circle, #3b4a3610, #3b4a3625);
  box-shadow: inset 0 0 0 .65rem #b08a3e14;
}

.phase-ratings {
  grid-template-columns: repeat(auto-fit, minmax(44px, 1fr));
  max-width: 42rem;
  gap: .4rem;
}
.phase-ratings .phase-choice {
  position: relative;
  align-items: center;
  justify-content: center;
  padding: .35rem;
  font-variant-numeric: tabular-nums;
}
.phase-ratings .phase-choice input { position: absolute; opacity: 0; margin: 0; }
.phase-result-ratings {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .6rem;
  margin: 1.25rem 0;
}
.phase-result-ratings > div {
  background: #ece8df;
  border-radius: .65rem;
  padding: .65rem .9rem;
  text-align: center;
  color: #2f3b2e;
}
.phase-result-ratings dt { font-weight: 600; }
.phase-result-ratings dd {
  margin: 0;
  font: 600 clamp(1.65rem, 5vw, 2.55rem)/1.25 "Source Serif 4", Georgia, serif;
  font-variant-numeric: tabular-nums;
}
.phase-next-step {
  margin: 1rem 0;
  padding: clamp(.9rem, 3vw, 1.45rem);
  background: #f2ece1;
  border-left: 3px solid #3b4a36;
  border-radius: 0 .65rem .65rem 0;
}
.phase-next-step h3 {
  margin: 0;
  font-size: clamp(1.35rem, 3.5vw, 1.9rem);
  overflow-wrap: anywhere;
}
.phase-next-step .phase-field { margin: .75rem 0 0; }
.phase-next-step textarea { min-height: 5.5rem; }

.front-man-inner { max-width: 62rem; }
.front-man-top { padding-block: 2.25rem clamp(3.25rem, 7vw, 5.25rem); }
.front-man-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(10rem, .57fr);
  gap: clamp(2rem, 6vw, 5.5rem);
  align-items: center;
  padding-top: clamp(1.5rem, 4vw, 3.1rem);
}
.front-man-hero > img { grid-column: 2; grid-row: 1; justify-self: center; width: min(100%, 15.5rem); }
.front-man-hero > div { grid-column: 1; grid-row: 1; }
.front-man-hero h1 { margin: 0; font-size: clamp(3rem, 7vw, 5.5rem); line-height: .99; }
.front-man .eyebrow { font-size: .875rem; }
.front-man-goal {
  color: #9e532d;
  font: italic 400 clamp(1.5rem, 3.5vw, 2.15rem)/1.2 "Source Serif 4", Georgia, serif;
  margin: .75rem 0 1.4rem;
}
.front-man-intro, .front-man-reassurance { max-width: 58ch; }
.front-man-made-sense { margin-bottom: 0; color: #3b4a36; font-weight: 600; }
.front-man-stone { background: var(--mid); border-block: 1px solid #ccc3b3; }
.front-man-band { padding-block: clamp(2.6rem, 6vw, 4.2rem); }
.front-man :is(h2, h3) { line-height: 1.12; }
.front-man h2 { font-size: clamp(1.8rem, 4.2vw, 2.65rem); }
.front-man-play {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .9rem;
  margin-bottom: 0;
}
.front-man-play > div { background: #f2ece1; border: 1px solid #c7beac; border-radius: .85rem; padding: 1.15rem; }
.front-man-play dt { display: flex; gap: .65rem; align-items: center; font-weight: 650; color: #3b4a36; }
.front-man-play dt svg {
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.front-man-play dd { margin: .55rem 0 0; }
.front-man-moss { background: #2f3b2e; color: #f2ece1; }
.front-man-moss .eyebrow { color: #d2b26e; }
.front-man-lantern { display: grid; grid-template-columns: 8.25rem minmax(0, 1fr); gap: clamp(1.5rem, 5vw, 3.4rem); }
.front-man-routes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 12.5rem), 1fr));
  grid-auto-rows: 1fr;
  gap: .55rem;
  list-style: none;
  margin: 1.1rem 0 1.35rem;
  padding: 0;
}
.front-man-routes li {
  display: grid;
  align-items: center;
  min-height: 3.75rem;
  margin: 0;
  border: 1px solid #9c8b58;
  border-radius: 2rem;
  padding: .45rem .85rem;
  background: #3b4a36;
  text-align: center;
  line-height: 1.35;
  overflow-wrap: anywhere;
}
.front-man-reassurance { margin-bottom: 0; }
.front-man-quote {
  margin: clamp(3rem, 7vw, 5.25rem) 0;
  padding: .3rem 0 .3rem clamp(1.2rem, 4vw, 2rem);
  border-left: 3px solid #b08a3e;
  max-width: 48rem;
}
.front-man-quote blockquote { margin: 0; }
.front-man-quote blockquote p {
  margin: 0;
  font: italic 400 clamp(1.65rem, 4vw, 2.5rem)/1.25 "Source Serif 4", Georgia, serif;
}
.front-man-quote figcaption { margin-top: 1rem; color: #3b4a36; font-size: .9rem; font-weight: 600; }
.front-man-together { max-width: 47rem; }
.front-man-together > ul { padding-left: 1.3rem; }
.front-man-together > ul li { margin-block: .4rem; }
.front-man-rep { margin: 1.35rem 0; padding: 1.2rem clamp(1rem, 4vw, 1.7rem); background: #e7e1d6; border: 1px solid #c7beac; border-radius: .85rem; }
.front-man-rep h3 { margin: 0 0 .7rem; }
.front-man-rep p:last-child { margin-bottom: 0; }
.front-man-others { border-top: 1px solid #ccc3b3; margin-top: 3.25rem; padding-block: 2rem 4rem; }
.front-man-others ul {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-auto-rows: 1fr;
  gap: .7rem;
  list-style: none;
  padding: 0;
}
.front-man-others li { display: grid; min-width: 0; margin: 0; }
.front-man-others a {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
  gap: .7rem;
  padding: .8rem;
  border: 1px solid #c7beac;
  border-radius: .8rem;
  background: #f7f2e9;
  text-decoration: none;
}
.front-man-others a:hover { background: #e7e1d6; text-decoration: underline; }
.front-man-others img { flex: none; width: 3.2rem; }
.front-man-others a > span { display: grid; }
.front-man-others a strong { font: 600 1.25rem/1.15 "Source Serif 4", Georgia, serif; }
.front-man-others a span span { font-size: .9rem; line-height: 1.4; margin-top: .15rem; }

@media (max-width: 700px) {
  .phase-pause { grid-template-columns: minmax(0, 1fr); grid-template-areas: "circle" "lines"; }
  .phase-circle { width: 5rem; }
  .front-man-hero { grid-template-columns: minmax(0, 1fr); gap: 1.25rem; }
  .front-man-hero > img { grid-area: auto; width: min(47vw, 10rem); justify-self: start; }
  .front-man-hero > div { grid-area: auto; }
  .front-man-lantern { grid-template-columns: minmax(0, 1fr); gap: 1rem; }
  .front-man-lantern img { width: 6rem; }
  .front-man-others ul { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 470px) {
  .front-man-play { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: no-preference) {
  [data-practice="make-sense"] .phase-stage { transition: background-color 1.2s ease, border-color 1.2s ease; }
  .phase-entering { animation: phase-enter .42s cubic-bezier(.22, .65, .32, 1) both; }
  .phase-screen.phase-leaving { animation: phase-leave .16s ease both; }
  .phase-back-door .phase-question,
  .phase-sequence-screen .phase-question,
  .phase-line-reveal { animation: phase-line-in 1.5s ease both; }
  .phase-circle { animation: phase-circle 7s ease-in-out 2; }
}
@keyframes phase-enter { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@keyframes phase-leave { from { opacity: 1; } to { opacity: 0; transform: translateY(-3px); } }
@keyframes phase-line-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes phase-circle { 0%, 100% { scale: .92; } 50% { scale: 1.06; } }

@media print {
  .phase-screen.phase-result-screen > .phase-result-layout { display: block !important; }
  .phase-next-step .phase-field { display: none; }
  .phase-next-step, .phase-result-ratings > div { background: #fff; }
  .phase-result-ratings > div { border: .7pt solid #b9af9c; }
  .phase-next-step { break-inside: avoid; }
  .phase-next-step h3 { font-size: 14pt; }
  .phase-result-ratings dd { font-size: 17pt; }
  .phase-entering, .phase-leaving { animation: none !important; }
}
