.experiment-page {
  width: min(var(--max), calc(100% - 44px));
  margin-inline: auto;
  padding: clamp(38px, 7vw, 86px) 0 84px;
}

.experiment-hero {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) minmax(260px, 360px);
  gap: clamp(26px, 5vw, 64px);
  align-items: end;
  padding-bottom: 34px;
}

.experiment-hero h1 {
  max-width: 760px;
  margin: 0;
  color: var(--ink);
  font-size: clamp(38px, 6vw, 64px);
  font-weight: 590;
  letter-spacing: 0;
  line-height: 1.02;
}

.experiment-hero p {
  max-width: 520px;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: clamp(16px, 1.7vw, 19px);
  line-height: 1.45;
}

.experiment-hero.is-premium {
  grid-template-columns: minmax(0, 0.98fr) minmax(300px, 0.56fr);
  grid-template-areas: "copy scene";
  align-items: center;
  min-height: 430px;
}

.experiment-hero.is-minimal {
  display: block;
  min-height: 0;
  padding: 44px 0 24px;
}

.experiment-hero.is-minimal h1 {
  max-width: 720px;
}

.experiment-hero.is-minimal p {
  max-width: 480px;
}

body[data-page="experiments"] .experiment-hero.is-minimal::before {
  display: none;
}

.experiment-hero.is-premium .zen-visual-backdrop {
  grid-column: 1 / -1;
  grid-row: 1;
}

.experiment-hero.is-premium > div:not(.zen-visual-backdrop) {
  grid-area: copy;
}

.experiment-hero.is-premium .hero-scene-card {
  grid-area: scene;
  min-height: 310px;
}

.experiment-grid {
  display: grid;
  grid-template-columns: minmax(320px, 1fr) minmax(280px, 360px);
  gap: 18px;
  align-items: stretch;
}

.flow-stage,
.flow-controls,
.experiment-notes article {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.76);
  box-shadow: 0 18px 46px rgba(18, 24, 32, 0.07);
}

.flow-stage {
  position: relative;
  min-height: 480px;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 52%, rgba(32, 178, 170, 0.16), transparent 32%),
    linear-gradient(135deg, #fbfdfd, #eef5f4);
}

#flowCanvas {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 480px;
  cursor: crosshair;
}

.flow-overlay {
  position: absolute;
  right: 18px;
  bottom: 18px;
  display: grid;
  gap: 4px;
  border: 1px solid rgba(30, 106, 120, 0.18);
  border-radius: 8px;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.74);
  backdrop-filter: blur(12px);
}

.flow-overlay span,
.flow-controls label span,
.panel-heading span,
.experiment-notes span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 740;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.flow-overlay strong {
  color: var(--teal);
  font-size: 15px;
}

.flow-controls {
  display: grid;
  gap: 18px;
  align-content: start;
  padding: 22px;
}

.panel-heading {
  display: grid;
  gap: 5px;
}

.panel-heading strong,
.experiment-notes strong {
  color: var(--ink);
  font-size: 20px;
}

.flow-controls label {
  display: grid;
  gap: 8px;
}

.flow-controls select,
.flow-controls input {
  width: 100%;
  min-height: 42px;
  border: 1px solid rgba(18, 24, 32, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.86);
  color: var(--ink);
  font: inherit;
}

.flow-controls select {
  padding: 0 12px;
}

.flow-controls input[type="range"] {
  accent-color: var(--mint);
}

.flow-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.flow-actions .primary-link,
.flow-actions .secondary-link {
  border-radius: 999px;
  padding-inline: 16px;
}

.flow-controls p,
.experiment-notes p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.experiment-notes {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.experiment-notes article {
  display: grid;
  gap: 10px;
  padding: 22px;
}

@media (max-width: 900px) {
  .experiment-page {
    width: min(100% - 28px, var(--max));
  }

  .experiment-hero.is-premium {
    grid-template-columns: 1fr;
    grid-template-areas:
      "copy"
      "scene";
    min-height: auto;
  }

  .experiment-hero.is-premium .hero-scene-card {
    min-height: 260px;
  }

  .experiment-hero,
  .experiment-grid,
  .experiment-notes {
    grid-template-columns: 1fr;
  }

  .flow-stage,
  #flowCanvas {
    min-height: 360px;
  }
}

.experiment-card-strip {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 18px;
}

.example-path-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 18px 0;
}

.example-path-grid article {
  display: grid;
  gap: 8px;
  min-height: 132px;
  border: 1px solid rgba(14, 111, 120, 0.13);
  border-radius: 8px;
  padding: 18px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(244, 250, 249, 0.86));
  box-shadow: 0 14px 34px rgba(18, 24, 32, 0.06);
}

.example-path-grid span {
  color: var(--teal);
  font-size: 12px;
  font-weight: 760;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.example-path-grid strong {
  color: var(--ink);
  font-size: 19px;
  line-height: 1.15;
}

.example-path-grid p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.4;
}

.experiment-choice,
.focus-lab {
  display: grid;
  gap: 18px;
  border: 1px solid rgba(14, 111, 120, 0.13);
  border-radius: 8px;
  padding: 18px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 18px 45px rgba(18, 24, 32, 0.075);
}

.experiment-choice {
  grid-template-columns: minmax(150px, 0.42fr) 1fr;
  align-items: center;
}

.experiment-choice h2,
.focus-lab h2 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(25px, 3vw, 36px);
  font-weight: 820;
  line-height: 1.04;
}

.experiment-choice p,
.focus-lab p {
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.55;
}

.experiment-art {
  position: relative;
  min-height: 142px;
  overflow: hidden;
  border-radius: 8px;
  background:
    radial-gradient(circle at 50% 48%, rgba(0, 159, 154, 0.2), transparent 35%),
    linear-gradient(135deg, #082235, #0c6772);
}

.experiment-art img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: inherit;
  object-fit: cover;
}

.skyline-preview {
  background:
    linear-gradient(180deg, rgba(2, 7, 19, 0.18), rgba(2, 7, 19, 0.38)),
    url("../night-skyline/assets/night-skyline-concept-pass-1.png") center / cover;
  background-image:
    linear-gradient(180deg, rgba(2, 7, 19, 0.18), rgba(2, 7, 19, 0.38)),
    image-set(
      url("../night-skyline/assets/night-skyline-concept-card.webp") type("image/webp"),
      url("../night-skyline/assets/night-skyline-concept-pass-1.png") type("image/png")
    );
}

.skyline-preview::before,
.skyline-preview::after {
  content: "";
  position: absolute;
  inset-inline: 16px;
  bottom: 16px;
  height: 18px;
  border: 1px solid rgba(127, 226, 255, 0.38);
  border-radius: 8px;
  background: rgba(5, 12, 25, 0.74);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.22);
}

.skyline-preview::after {
  inset-inline: auto 24px;
  width: 32px;
  height: 8px;
  bottom: 21px;
  border-color: rgba(52, 200, 255, 0.65);
  background: rgba(52, 200, 255, 0.16);
}

.particle-preview span {
  position: absolute;
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: #2ad3bd;
  box-shadow: 0 0 18px rgba(42, 211, 189, 0.6);
  animation: previewDrift 4s ease-in-out infinite alternate;
}

.particle-preview span:nth-child(1) { left: 18%; top: 24%; }
.particle-preview span:nth-child(2) { left: 34%; top: 68%; background: #d79a18; animation-delay: -1s; }
.particle-preview span:nth-child(3) { left: 54%; top: 38%; background: #4387e8; animation-delay: -2s; }
.particle-preview span:nth-child(4) { left: 72%; top: 72%; background: #f36e73; animation-delay: -1.5s; }
.particle-preview span:nth-child(5) { left: 82%; top: 23%; background: #82d99b; animation-delay: -2.4s; }

.polish-preview {
  display: grid;
  gap: 10px;
  align-content: center;
  padding: 22px;
  background:
    radial-gradient(circle at 90% 10%, rgba(178, 138, 70, 0.2), transparent 7rem),
    linear-gradient(135deg, #f9fdfc, #e8f5f3);
}

.polish-preview span {
  display: block;
  height: 22px;
  border: 1px solid rgba(7, 142, 146, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 12px 24px rgba(7, 142, 146, 0.07);
}

.polish-preview span:nth-child(1) {
  width: 72%;
}

.polish-preview span:nth-child(2) {
  width: 96%;
}

.polish-preview span:nth-child(3) {
  width: 46%;
  background: linear-gradient(135deg, #00aaa4, #087c80);
}

.polish-lab {
  display: grid;
  grid-template-columns: minmax(280px, 0.5fr) minmax(0, 1fr);
  gap: 18px;
  align-items: stretch;
  margin-top: 18px;
}

.polish-copy,
.polish-demo {
  border: 1px solid rgba(14, 111, 120, 0.13);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 18px 45px rgba(18, 24, 32, 0.075);
}

.polish-copy {
  display: grid;
  align-content: center;
  padding: clamp(22px, 4vw, 36px);
}

.polish-copy h2 {
  max-width: 500px;
  margin: 0;
  color: var(--ink);
  font-size: clamp(30px, 4.8vw, 54px);
  font-weight: 760;
  letter-spacing: 0;
  line-height: 1;
}

.polish-copy p,
.polish-demo p,
.polish-sample-card small {
  margin: 12px 0 0;
  color: var(--muted);
  line-height: 1.5;
}

.polish-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 22px;
}

.polish-controls button {
  min-height: 38px;
  border: 1px solid rgba(0, 159, 154, 0.2);
  border-radius: 999px;
  padding: 0 14px;
  background: rgba(255, 255, 255, 0.86);
  color: var(--teal);
  font-weight: 820;
}

.polish-controls button.is-active {
  background: linear-gradient(135deg, #00aaa4, #087c80);
  color: #fff;
  box-shadow: 0 12px 26px rgba(0, 159, 154, 0.14);
}

.polish-demo {
  display: grid;
  grid-template-rows: auto 1fr;
  min-height: 430px;
  overflow: hidden;
}

.polish-demo-head {
  padding: 24px 24px 0;
}

.polish-demo-head span,
.polish-sample-card span,
.polish-sample-field span {
  color: var(--teal);
  font-size: 12px;
  font-weight: 820;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.polish-demo-head strong {
  display: block;
  margin-top: 8px;
  color: var(--ink);
  font-size: clamp(24px, 4vw, 36px);
  line-height: 1.05;
}

.polish-demo-stage {
  position: relative;
  display: grid;
  grid-template-columns: minmax(170px, 0.72fr) minmax(180px, 1fr);
  gap: 14px;
  align-content: center;
  padding: 24px;
}

.polish-sample-button,
.polish-sample-field,
.polish-sample-card {
  border: 1px solid rgba(14, 111, 120, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 12px 28px rgba(18, 24, 32, 0.06);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.polish-sample-button {
  min-height: 56px;
  align-self: center;
  border-color: rgba(7, 142, 146, 0.24);
  background: linear-gradient(135deg, #00aaa4, #087c80);
  color: #fff;
  font-weight: 860;
}

.polish-sample-field {
  display: grid;
  gap: 8px;
  padding: 16px;
}

.polish-sample-field input {
  min-height: 42px;
  border: 1px solid rgba(14, 111, 120, 0.16);
  border-radius: 8px;
  padding: 0 12px;
  background: rgba(255, 255, 255, 0.9);
  color: var(--ink);
}

.polish-sample-card {
  grid-column: 1 / -1;
  display: grid;
  gap: 6px;
  padding: 18px;
}

.polish-sample-card strong {
  color: var(--ink);
  font-size: 42px;
  line-height: 1;
}

.polish-demo[data-polish-demo="button"] .polish-sample-button,
.polish-demo[data-polish-demo="form"] .polish-sample-field,
.polish-demo[data-polish-demo="card"] .polish-sample-card,
.polish-lab.is-confirmed .polish-sample-button {
  border-color: rgba(7, 142, 146, 0.44);
  box-shadow: 0 18px 38px rgba(7, 142, 146, 0.16);
  transform: translateY(-3px);
}

.breath-meta small span {
  color: var(--teal);
  font-weight: 780;
}

.focus-preview {
  display: grid;
  place-items: center;
}

.focus-preview span,
.focus-orb,
.focus-orb span {
  border-radius: 999px;
}

.focus-preview span {
  position: absolute;
  border: 1px solid rgba(215, 154, 24, 0.7);
}

.focus-preview span:nth-child(1) { width: 92px; height: 92px; }
.focus-preview span:nth-child(2) { width: 62px; height: 62px; border-color: rgba(0, 159, 154, 0.8); }
.focus-preview span:nth-child(3) { width: 18px; height: 18px; background: #fff; border-color: #fff; }

.focus-lab {
  grid-template-columns: minmax(220px, 0.55fr) 1fr;
  align-items: center;
  margin-top: 18px;
}

.focus-orb {
  position: relative;
  display: grid;
  width: min(100%, 280px);
  aspect-ratio: 1;
  place-items: center;
  justify-self: center;
  border: 1px solid rgba(0, 159, 154, 0.28);
  background:
    radial-gradient(circle at 50% 50%, rgba(0, 159, 154, 0.18), transparent 34%),
    repeating-radial-gradient(circle at 50% 50%, rgba(0, 159, 154, 0.18) 0 1px, transparent 1px 32px);
}

.focus-orb span {
  width: 42%;
  aspect-ratio: 1;
  border: 2px solid #d79a18;
  background: rgba(255, 255, 255, 0.78);
  transform: scale(calc(1 + var(--focus-progress, 0) * 0.4));
  transition: transform 500ms ease;
}

.focus-lab.is-running .focus-orb span {
  animation: focusBreathe 4s ease-in-out infinite;
}

.focus-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-top: 18px;
}

.focus-controls button {
  min-height: 42px;
  border: 1px solid rgba(0, 159, 154, 0.22);
  border-radius: 8px;
  padding: 0 16px;
  background: linear-gradient(135deg, #00aaa4, #008d90);
  color: #fff;
  font-weight: 850;
}

.focus-controls button + button {
  background: rgba(255, 255, 255, 0.9);
  color: var(--teal);
}

.focus-controls label {
  display: grid;
  gap: 4px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 740;
}

.focus-time {
  display: block;
  margin-top: 14px;
  color: var(--teal);
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1;
}

.breath-lab {
  grid-template-columns: minmax(260px, 0.52fr) minmax(0, 1fr);
  scroll-margin-top: 108px;
  overflow: hidden;
  background:
    radial-gradient(circle at 18% 26%, rgba(32, 178, 170, 0.14), transparent 18rem),
    radial-gradient(circle at 86% 84%, rgba(178, 138, 70, 0.14), transparent 16rem),
    rgba(255, 255, 255, 0.9);
}

.breath-stage {
  position: relative;
  display: grid;
  min-height: 340px;
  place-items: center;
  border: 1px solid rgba(14, 111, 120, 0.12);
  border-radius: 16px;
  background:
    radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.72), transparent 5.5rem),
    repeating-radial-gradient(circle at 50% 50%, rgba(7, 142, 146, 0.12) 0 1px, transparent 1px 34px),
    radial-gradient(circle at 50% 50%, rgba(0, 159, 154, 0.18), transparent 9rem),
    linear-gradient(145deg, rgba(247, 253, 252, 0.92), rgba(238, 247, 246, 0.7));
  box-shadow: inset 0 0 80px rgba(0, 159, 154, 0.06);
}

.breath-orb {
  position: relative;
  display: grid;
  width: min(74%, 270px);
  aspect-ratio: 1;
  place-items: center;
}

.breath-orb::before {
  position: absolute;
  inset: 10%;
  border-radius: 999px;
  background:
    conic-gradient(from -90deg, rgba(7, 142, 146, 0.88) calc(var(--breath-progress, 0) * 1turn), rgba(7, 142, 146, 0.12) 0);
  filter: drop-shadow(0 22px 38px rgba(7, 142, 146, 0.16));
  content: "";
}

.breath-orb-core {
  position: relative;
  z-index: 2;
  width: 48%;
  aspect-ratio: 1;
  border: 2px solid rgba(178, 138, 70, 0.84);
  border-radius: 999px;
  background:
    radial-gradient(circle at 42% 36%, rgba(255, 255, 255, 0.92), rgba(247, 253, 252, 0.42)),
    rgba(255, 255, 255, 0.72);
  box-shadow:
    inset 0 0 24px rgba(255, 255, 255, 0.65),
    0 22px 56px rgba(0, 159, 154, 0.2),
    0 0 0 18px rgba(255, 255, 255, 0.22);
  transform: scale(var(--breath-scale, 0.78));
  transition: transform 360ms cubic-bezier(0.19, 1, 0.22, 1);
}

.breath-ring {
  position: absolute;
  border: 1px solid rgba(0, 159, 154, 0.22);
  border-radius: 999px;
  transform: scale(calc(var(--breath-scale, 0.78) + 0.08));
  transition: transform 420ms ease, opacity 420ms ease;
}

.breath-ring.ring-one {
  inset: 18%;
}

.breath-ring.ring-two {
  inset: 3%;
  border-style: dashed;
  opacity: 0.72;
  transform: scale(calc(var(--breath-scale, 0.78) + 0.16));
}

.breath-phase-readout {
  position: absolute;
  right: 18px;
  bottom: 18px;
  left: 18px;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  border: 1px solid rgba(14, 111, 120, 0.13);
  border-radius: 12px;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(14px);
}

.breath-phase-readout span {
  color: var(--teal);
  font-size: 14px;
  font-weight: 850;
}

.breath-phase-readout strong {
  color: var(--ink);
  font-size: clamp(28px, 5vw, 44px);
  line-height: 1;
}

.breath-template-grid,
.breath-duration-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.breath-template-grid button,
.breath-duration-row button {
  min-height: 38px;
  border: 1px solid rgba(0, 159, 154, 0.2);
  border-radius: 999px;
  padding: 0 13px;
  background: rgba(255, 255, 255, 0.86);
  color: var(--teal);
  font-size: 13px;
  font-weight: 820;
}

.breath-template-grid button.is-active,
.breath-duration-row button.is-active {
  border-color: rgba(0, 159, 154, 0.48);
  background: linear-gradient(135deg, #00aaa4, #087c80);
  color: #fff;
  box-shadow: 0 12px 26px rgba(0, 159, 154, 0.14);
}

.breath-use-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.breath-use-grid button {
  display: grid;
  gap: 4px;
  min-height: 86px;
  border: 1px solid rgba(14, 111, 120, 0.12);
  border-radius: 8px;
  padding: 13px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.9), rgba(239, 251, 249, 0.78)),
    #fff;
  color: var(--ink);
  text-align: left;
  box-shadow: 0 18px 44px rgba(12, 29, 35, 0.06);
}

.breath-use-grid strong {
  color: var(--teal);
  font-size: 13px;
  font-weight: 850;
}

.breath-use-grid span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}

.breath-meta {
  margin-top: 16px;
}

.breath-session-card {
  display: grid;
  gap: 6px;
  margin-top: 14px;
  border: 1px solid rgba(14, 111, 120, 0.13);
  border-radius: 12px;
  padding: 14px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.9), rgba(238, 251, 249, 0.78)),
    #ffffff;
  box-shadow: 0 18px 44px rgba(12, 29, 35, 0.06);
}

.breath-session-card span {
  color: var(--teal);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.breath-session-card strong {
  color: var(--ink);
  font-size: clamp(20px, 3vw, 28px);
  line-height: 1.08;
}

.breath-session-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.breath-meta p {
  margin: 0;
  color: var(--ink);
  font-weight: 650;
}

.breath-meta small {
  display: block;
  margin-top: 7px;
  color: var(--muted);
  line-height: 1.45;
}

.breath-timeline {
  display: flex;
  min-height: 48px;
  overflow: hidden;
  margin-top: 14px;
  border: 1px solid rgba(14, 111, 120, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.66);
}

.breath-timeline span {
  position: relative;
  display: grid;
  min-width: 72px;
  align-content: center;
  gap: 2px;
  padding: 8px 10px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 780;
}

.breath-timeline span + span {
  border-left: 1px solid rgba(14, 111, 120, 0.1);
}

.breath-timeline span::before {
  position: absolute;
  inset: 0;
  width: calc(var(--phase-progress, 0) * 100%);
  background: rgba(0, 159, 154, 0.12);
  opacity: 0;
  content: "";
}

.breath-timeline span.is-active::before {
  opacity: 1;
}

.breath-timeline i,
.breath-timeline b {
  position: relative;
  z-index: 1;
  font-style: normal;
}

.breath-controls span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 760;
}

:root[data-theme="dark"] .flow-stage,
:root[data-theme="dark"] .flow-controls,
:root[data-theme="dark"] .experiment-choice,
:root[data-theme="dark"] .focus-lab,
:root[data-theme="dark"] .polish-copy,
:root[data-theme="dark"] .polish-demo,
:root[data-theme="dark"] .polish-sample-field,
:root[data-theme="dark"] .polish-sample-card,
:root[data-theme="dark"] .experiment-notes article,
:root[data-theme="dark"] .breath-stage,
:root[data-theme="dark"] .breath-phase-readout,
:root[data-theme="dark"] .breath-timeline,
:root[data-theme="dark"] .breath-session-card,
:root[data-theme="dark"] .example-path-grid article {
  border-color: var(--line);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.055), rgba(42, 211, 189, 0.035)),
    rgba(17, 24, 32, 0.88);
}

:root[data-theme="dark"] .breath-template-grid button,
:root[data-theme="dark"] .breath-duration-row button,
:root[data-theme="dark"] .breath-use-grid button,
:root[data-theme="dark"] .focus-controls button + button,
:root[data-theme="dark"] .polish-controls button,
:root[data-theme="dark"] .polish-sample-field input {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.07);
  color: var(--ink);
}

:root[data-theme="dark"] .breath-orb-core {
  background:
    radial-gradient(circle at 42% 36%, rgba(246, 239, 227, 0.26), rgba(42, 211, 189, 0.1)),
    rgba(10, 16, 22, 0.76);
}

@keyframes previewDrift {
  to {
    transform: translate3d(16px, -14px, 0) scale(1.28);
  }
}

@keyframes focusBreathe {
  50% {
    transform: scale(1.28);
  }
}

@media (max-width: 900px) {
  .experiment-card-strip,
  .example-path-grid,
  .focus-lab,
  .experiment-choice,
  .polish-lab,
  .polish-demo-stage {
    grid-template-columns: 1fr;
  }

  .breath-use-grid {
    grid-template-columns: 1fr;
  }

  .experiment-page {
    padding-top: 28px;
  }

  .experiment-hero.is-premium {
    padding-bottom: 18px;
  }

  .experiment-hero.is-premium .hero-scene-card {
    display: none;
  }

  .experiment-hero.is-premium .zen-visual-backdrop {
    display: none;
  }

  .experiment-card-strip {
    margin-top: 8px;
  }

  .experiment-choice {
    overflow: hidden;
  }

  .experiment-art {
    width: 100%;
    min-height: 188px;
  }
}

/* 2026-06-25 minimal examples pass */
body[data-page="experiments"] {
  --experiment-black: #020303;
  --experiment-ink: #f1f1ee;
  --experiment-muted: rgba(241, 241, 238, 0.62);
  --experiment-line: rgba(241, 241, 238, 0.13);
  --experiment-accent: #8fdcff;
}

body[data-page="experiments"] .experiment-page {
  width: min(100% - 48px, 1180px);
  padding: clamp(36px, 6vw, 76px) 0 clamp(64px, 8vw, 110px);
}

body[data-page="experiments"] :where(.experiment-hero, .experiment-hero.is-premium) {
  display: grid;
  grid-template-columns: 1fr;
  min-height: min(58svh, 640px);
  align-items: end;
  padding: clamp(54px, 8vw, 112px) 0 clamp(30px, 5vw, 62px);
}

body[data-page="experiments"] :where(.experiment-hero h1, .experiment-hero.is-premium h1) {
  max-width: 980px;
  color: var(--experiment-ink);
  font-size: clamp(4.25rem, 12vw, 11rem);
  font-weight: 950;
  letter-spacing: -0.075em;
  line-height: 0.78;
}

body[data-page="experiments"] :where(.experiment-hero p, .experiment-hero.is-premium p) {
  max-width: 560px;
  color: var(--experiment-muted);
  font-size: clamp(1rem, 1.35vw, 1.22rem);
  line-height: 1.55;
}

body[data-page="experiments"] :where(
  .flow-stage,
  .flow-controls,
  .experiment-choice,
  .focus-lab,
  .polish-copy,
  .polish-demo,
  .polish-sample-field,
  .polish-sample-card,
  .experiment-notes article,
  .breath-stage,
  .breath-phase-readout,
  .breath-timeline,
  .breath-session-card,
  .example-path-grid article,
  .breath-template-grid button,
  .breath-duration-row button,
  .breath-use-grid button,
  .focus-controls button,
  .polish-controls button,
  .polish-sample-field input
) {
  border: 1px solid var(--experiment-line);
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.072), rgba(255, 255, 255, 0.018)),
    rgba(2, 3, 3, 0.42);
  box-shadow: none;
}

body[data-page="experiments"] :where(.experiment-choice:hover, .experiment-choice:focus-visible, .breath-template-grid button:hover, .breath-duration-row button:hover, .breath-use-grid button:hover) {
  border-color: rgba(143, 220, 255, 0.46);
  background:
    linear-gradient(145deg, rgba(143, 220, 255, 0.1), rgba(255, 255, 255, 0.018)),
    rgba(2, 3, 3, 0.5);
}

body[data-page="experiments"] :where(.experiment-choice span, .breath-session-card span, .breath-use-grid strong, .experiment-notes span) {
  color: var(--experiment-accent);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.72rem;
  font-weight: 850;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

body[data-page="experiments"] :where(h2, h3, strong, .breath-meta p, .breath-session-card strong) {
  color: var(--experiment-ink);
}

body[data-page="experiments"] :where(p, small, .breath-use-grid span, .breath-session-card p, .breath-meta small, .breath-controls span) {
  color: var(--experiment-muted);
}

body[data-page="experiments"] :where(button, input) {
  border-radius: 4px;
  box-shadow: none;
}

body[data-page="experiments"] .breath-orb-core {
  background:
    radial-gradient(circle at 42% 36%, rgba(241, 241, 238, 0.22), rgba(143, 220, 255, 0.12)),
    rgba(2, 3, 3, 0.72);
}

@media (max-width: 900px) {
  body[data-page="experiments"] .experiment-page {
    width: min(100% - 28px, 1180px);
  }

  body[data-page="experiments"] :where(.experiment-hero h1, .experiment-hero.is-premium h1) {
    font-size: clamp(3.8rem, 18vw, 6.8rem);
  }
}

/* 2026-06-25 revised palette */
body[data-page="experiments"] {
  --experiment-accent: #c7b7ff;
}

body[data-page="experiments"] :where(.experiment-choice:hover, .experiment-choice:focus-visible, .breath-template-grid button:hover, .breath-duration-row button:hover, .breath-use-grid button:hover) {
  border-color: rgba(199, 183, 255, 0.44);
  background:
    linear-gradient(145deg, rgba(199, 183, 255, 0.09), rgba(255, 255, 255, 0.018)),
    rgba(2, 3, 3, 0.5);
}

body[data-page="experiments"] .breath-orb-core {
  background:
    radial-gradient(circle at 42% 36%, rgba(241, 241, 238, 0.22), rgba(199, 183, 255, 0.12)),
    rgba(2, 3, 3, 0.72);
}
