/* Learning personalized to you (after section 02): one concept, taught in different ways. A large live optics scene
   on the left; five quiet method selectors in a narrow rail on the right. The section box itself comes from .story in
   home-sections.css. */

.pz { --glass-line: rgba(255, 255, 255, 0.09); }
/* Low specificity, so every component below sets its own size. */
:where(.pz) button { font: inherit; color: inherit; }

/* ---------- Heading ---------- */

.pz-title {
  font-size: clamp(42 * var(--z), 4.7vw, 84 * var(--z));
  font-weight: 900;
  line-height: 0.95;
  letter-spacing: -0.05em;
  text-wrap: balance;
}
/* The hero's accent (as .hero-title-accent), in Soft Gold only: the same light and glow as the 42%'s sign below. */
.pz-accent {
  background: linear-gradient(100deg, #e9d78b 0%, #f7f0d2 16%, #e9d78b 32%, #c9b46c 50%, #e9d78b 68%, #f7f0d2 84%, #e9d78b 100%) 0 50% / 220% 100%;
  filter: drop-shadow(0 0 0.09em rgba(233, 215, 139, 0.4));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: var(--bg);
  -webkit-text-stroke: 0.045em transparent;
  letter-spacing: 0.02em;
  padding: 0.06em 0 0.32em;
  margin: -0.06em 0 -0.32em;
}
@media (prefers-reduced-motion: no-preference) {
  .pz-accent { animation: accent-drift 9s ease-in-out infinite alternate; }
}
@keyframes accent-drift { to { background-position: 100% 50%; } }
.pz-lede { margin-top: calc(18 * var(--z)); font-size: clamp(18 * var(--z), 1.45vw, 23 * var(--z)); font-weight: 300; color: var(--text-2); }

.pz-grid {
  margin-top: clamp(32 * var(--z), 3.2vw, 52 * var(--z));
  display: grid;
  grid-template-columns: minmax(0, 1fr) clamp(290 * var(--z), 23vw, 360 * var(--z));
  gap: clamp(20 * var(--z), 2.4vw, 40 * var(--z));
}

/* ---------- Stage: the live scene ---------- */

.stage {
  position: relative;
  height: clamp(540 * var(--z), 42vw, 680 * var(--z));
  border-radius: calc(24 * var(--z));
  overflow: hidden;
  background: #05060a;
  isolation: isolate;
}
.stage-view { position: absolute; inset: 0; }
.stage-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; cursor: grab; touch-action: pan-y; }
.stage-canvas:active { cursor: grabbing; }
.stage::after { content: ''; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1px var(--line); pointer-events: none; }

.stage-labels { position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity 0.6s var(--ease-out); }
.stage.is-live .stage-labels { opacity: 1; }
.tag {
  position: absolute; left: 0; top: 0; translate: -50% -50%; white-space: nowrap;
  font-size: calc(13.5 * var(--z)); color: var(--text-2); letter-spacing: 0.01em;
  transition: opacity 0.5s var(--ease-out);
}
.tag[hidden] { display: block; opacity: 0; }
.tag-angle { display: grid; justify-items: center; line-height: 1.15; font-size: calc(13 * var(--z)); }
.tag-angle i { font-style: italic; font-family: 'Times New Roman', Georgia, serif; font-size: calc(16 * var(--z)); color: var(--lavender-2); }
.tag-angle sub { font-family: var(--font); font-style: normal; font-size: 0.62em; }
.tag-angle b { font-weight: 500; color: var(--text); font-variant-numeric: tabular-nums; }
.tag-medium { display: grid; line-height: 1.3; font-size: calc(12.5 * var(--z)); color: var(--text-3); }
.tag-medium b { font-weight: 400; color: var(--text-2); font-variant-numeric: tabular-nums; }

/* Scoped to this section: section 03 uses the same caption class names. */
/* The caption is the lesson's column: always this wide, whatever it holds, so the scene is framed around it. */
.pz .stage-copy { position: absolute; left: clamp(24 * var(--z), 2.5vw, 40 * var(--z)); top: clamp(24 * var(--z), 2.4vw, 38 * var(--z)); width: calc(360 * var(--z)); max-width: calc(360 * var(--z)); pointer-events: none; }
.pz .stage-title { font-size: clamp(24 * var(--z), 2.05vw, 32 * var(--z)); font-weight: 500; line-height: 1.1; letter-spacing: -0.025em; text-wrap: balance; }
.pz .stage-text { margin-top: calc(12 * var(--z)); font-size: calc(15 * var(--z)); line-height: 1.5; color: var(--text-3); text-wrap: pretty; }
.stage[data-orbit='off'] .stage-canvas { cursor: default; }
.stage-room { display: none; }
.stage-hint { position: absolute; right: clamp(20 * var(--z), 2vw, 30 * var(--z)); bottom: clamp(18 * var(--z), 1.8vw, 26 * var(--z)); font-size: calc(12.5 * var(--z)); color: var(--text-4); pointer-events: none; }

/* The one control: the angle of incidence. No panel, just the label, the value and a hairline track. */
.stage-angle {
  position: absolute; left: clamp(24 * var(--z), 2.5vw, 40 * var(--z)); bottom: clamp(16 * var(--z), 1.7vw, 24 * var(--z));
  display: grid; gap: calc(4 * var(--z)); width: min(280 * var(--z), calc(100% - 48 * var(--z)));
}
.stage-angle-head { display: flex; justify-content: space-between; align-items: baseline; font-size: calc(12.5 * var(--z)); color: var(--text-3); }
.stage-angle output { font-size: calc(14 * var(--z)); font-weight: 500; color: var(--text); font-variant-numeric: tabular-nums; }
.stage-angle input { width: 100%; height: calc(24 * var(--z)); margin: 0; background: transparent; -webkit-appearance: none; appearance: none; cursor: pointer; --fill: 63.6%; }
.stage-angle input::-webkit-slider-runnable-track {
  height: calc(2 * var(--z)); border-radius: calc(2 * var(--z));
  background: linear-gradient(90deg, var(--lavender-2) 0 var(--fill), rgba(255, 255, 255, 0.18) var(--fill) 100%);
}
.stage-angle input::-moz-range-track { height: calc(2 * var(--z)); border-radius: calc(2 * var(--z)); background: rgba(255, 255, 255, 0.18); }
.stage-angle input::-moz-range-progress { height: calc(2 * var(--z)); border-radius: calc(2 * var(--z)); background: var(--lavender-2); }
.stage-angle input::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: calc(14 * var(--z)); height: calc(14 * var(--z)); margin-top: calc(-6 * var(--z)); border-radius: 50%;
  background: #f4f1ff; box-shadow: 0 0 0 calc(4 * var(--z)) rgba(164, 135, 234, 0.26), 0 1px calc(6 * var(--z)) rgba(0, 0, 0, 0.5);
  transition: box-shadow 0.2s;
}
.stage-angle input::-moz-range-thumb { width: calc(14 * var(--z)); height: calc(14 * var(--z)); border: 0; border-radius: 50%; background: #f4f1ff; box-shadow: 0 0 0 calc(4 * var(--z)) rgba(164, 135, 234, 0.26); }
.stage-angle input:hover::-webkit-slider-thumb { box-shadow: 0 0 0 calc(6 * var(--z)) rgba(164, 135, 234, 0.3), 0 1px calc(6 * var(--z)) rgba(0, 0, 0, 0.5); }
.stage-angle input:focus-visible { outline: none; }
.stage-angle input:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 calc(2 * var(--z)) var(--bg), 0 0 0 calc(4 * var(--z)) var(--lavender-2); }
.stage-angle input:focus-visible::-moz-range-thumb { box-shadow: 0 0 0 calc(2 * var(--z)) var(--bg), 0 0 0 calc(4 * var(--z)) var(--lavender-2); }

/* ---------- The lesson: what the chosen methods say and ask, in the caption ---------- */

.stage-lesson button { pointer-events: auto; }
.ls-eyebrow { margin-top: calc(14 * var(--z)); font-size: calc(12 * var(--z)); letter-spacing: 0.02em; color: var(--text-4); }
.ls-eyebrow span { color: var(--text-4); }
.ls-eyebrow + .ls-text, .ls-eyebrow + .ls-chat { margin-top: calc(6 * var(--z)); }
.ls-text, .ls-t { margin-top: calc(12 * var(--z)); font-size: calc(15 * var(--z)); line-height: 1.5; color: var(--text-2); text-wrap: pretty; }
.ls-live, .ls-hint { margin-top: calc(8 * var(--z)); font-size: calc(14 * var(--z)); line-height: 1.45; color: var(--text-3); }
.ls-fb { margin-top: calc(10 * var(--z)); font-size: calc(14.5 * var(--z)); line-height: 1.5; color: var(--text); text-wrap: pretty; }
.ls-fb.is-wrong { color: var(--text-2); }
.ls-chat { display: grid; gap: calc(8 * var(--z)); }
.ls-chat .ls-t { margin-top: 0; color: var(--text-3); }
.ls-chat .ls-t:last-child { color: var(--text); }
.ls-you { justify-self: start; font-size: calc(14 * var(--z)); color: var(--lavender-2); }
.ls-you::before { content: 'You: '; color: var(--text-4); }
.stage-lesson i { font-family: 'Times New Roman', Georgia, serif; font-style: italic; font-size: 1.08em; }
.stage-lesson sub { font-size: 0.68em; }
.ls-eq { display: block; margin: calc(4 * var(--z)) 0 calc(6 * var(--z)); font-family: 'Times New Roman', Georgia, serif; font-size: calc(16 * var(--z)); color: var(--text); font-variant-numeric: tabular-nums; }
.ls-foot { margin-top: calc(12 * var(--z)); font-size: calc(15 * var(--z)); line-height: 1.45; color: var(--text-2); }
.ls-actions { margin-top: calc(12 * var(--z)); display: flex; flex-wrap: wrap; gap: calc(8 * var(--z)); }
.ls-chip {
  padding: calc(7 * var(--z)) calc(13 * var(--z)); border-radius: calc(999 * var(--z));
  font-size: calc(13.5 * var(--z)); line-height: 1.2; color: var(--text);
  background: rgba(255, 255, 255, 0.06); box-shadow: inset 0 0 0 1px var(--line-2);
  -webkit-backdrop-filter: blur(calc(10 * var(--z))); backdrop-filter: blur(calc(10 * var(--z)));
  cursor: pointer; transition: background-color 0.2s, box-shadow 0.2s;
}
.ls-chip:hover { background: rgba(255, 255, 255, 0.1); box-shadow: inset 0 0 0 1px var(--line-3); }
.ls-chip-quiet { color: var(--text-3); background: transparent; }
.ls-next { padding: calc(4 * var(--z)) 0; font-size: calc(14 * var(--z)); font-weight: 500; color: var(--lavender-2); cursor: pointer; }
.ls-next[data-act='next']::after { content: ' →'; }
.ls-next:hover { color: #fff; }
.ls-chip:focus-visible, .ls-next:focus-visible { outline: calc(2 * var(--z)) solid var(--lavender-2); outline-offset: calc(2 * var(--z)); }

/* ---------- Methods: five quiet selectors, a compact list beside the stage ---------- */

.methods { display: flex; flex-direction: column; min-width: 0; }
.methods-head { font-size: calc(15 * var(--z)); color: var(--text-3); padding-bottom: calc(14 * var(--z)); }
.methods-list { display: grid; border-top: 1px solid var(--line); }
.method {
  position: relative;
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: calc(14 * var(--z));
  padding: calc(14 * var(--z)) calc(2 * var(--z)) calc(14 * var(--z)) 0;
  border-bottom: 1px solid var(--line);
  text-align: left;
  cursor: pointer;
}
/* The icon: a pictogram of the learning style, drawn in the text colour, with one lavender detail once chosen. */
.method { --mi-accent: currentColor; }
.method[aria-pressed='true'] { --mi-accent: var(--lavender-2); }
.method-art {
  display: grid; place-items: center; width: calc(30 * var(--z)); aspect-ratio: 1;
  color: var(--text-3);
  transition: color 0.25s;
}
.mi { display: block; width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; overflow: visible; }
.mi path, .mi circle { transition: stroke 0.25s, fill 0.25s; }
.mi-accent { stroke: var(--mi-accent); fill: var(--mi-accent); fill-opacity: 0.18; }
.mi-line { fill: none; }
.mi-dot { fill: var(--bg); stroke: var(--mi-accent); }
.mi-solid { fill-opacity: 1; }
.mi-face { fill-opacity: 0.45; }
.mi-bubble { fill: var(--bg); fill-opacity: 1; }
.method[aria-pressed='true'] .mi-bubble { fill: #1b1726; }
.mi-talk { stroke: var(--mi-accent); stroke-width: 2.2; }
.method-name { font-size: calc(16 * var(--z)); font-weight: 500; letter-spacing: -0.01em; color: var(--text-3); transition: color 0.25s; }
.method:hover .method-name { color: var(--text-2); }
.method:hover .method-art { color: var(--text-2); }
.method[aria-pressed='true'] .method-name { color: var(--text); }
.method[aria-pressed='true'] .method-art { color: var(--text); }
.method-tick {
  display: grid; place-items: center; width: calc(20 * var(--z)); height: calc(20 * var(--z)); border-radius: 50%;
  box-shadow: inset 0 0 0 calc(1.5 * var(--z)) var(--line-2);
  color: var(--lavender-ink); transition: background-color 0.25s, box-shadow 0.25s;
}
.method-tick svg { width: calc(13 * var(--z)); height: calc(13 * var(--z)); opacity: 0; transition: opacity 0.2s; }
.method[aria-pressed='true'] .method-tick { background: var(--lavender-2); box-shadow: none; }
.method[aria-pressed='true'] .method-tick svg { opacity: 1; }
.method:focus-visible { outline: calc(2 * var(--z)) solid var(--lavender-2); outline-offset: calc(-2 * var(--z)); border-radius: calc(8 * var(--z)); }

/* ---------- The figures beneath the lesson ---------- */
/* Set like the rest of the homepage: the section heads' 7:4 columns, numbers in the headline type with the unit in
   the hero's outline accent, ledes and notes in their own styles. The two figures split the accent's pair of colours:
   time to mastery is Soft Gold, memory is Periwinkle, each unit and its CATION bar alike. */

.pz-proof {
  margin-top: clamp(96 * var(--z), 10vw, 176 * var(--z));
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 4fr);
  align-items: end;
  gap: calc(48 * var(--z)) clamp(32 * var(--z), 5vw, 96 * var(--z));
}
.pz-figures { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: calc(32 * var(--z)) clamp(24 * var(--z), 3vw, 56 * var(--z)); }
.pz-fig { display: grid; align-content: end; gap: clamp(14 * var(--z), 1.4vw, 22 * var(--z)); }
.pz-fig-num {
  font-size: clamp(84 * var(--z), 9.4vw, 168 * var(--z)); font-weight: 900; line-height: 0.86; letter-spacing: -0.05em;
  color: var(--text); white-space: nowrap; font-variant-numeric: lining-nums;
}
.pz-fig-num .hero-title-accent { margin-left: 0.04em; }
/* Only the image and the glow change, so the accent's text clip and its drift still apply. */
.pz-fig-num [data-fig="cut"] + .hero-title-accent {
  background-image: linear-gradient(100deg, #e9d78b 0%, #f7f0d2 16%, #e9d78b 32%, #c9b46c 50%, #e9d78b 68%, #f7f0d2 84%, #e9d78b 100%);
  filter: drop-shadow(0 0 0.09em rgba(233, 215, 139, 0.4));
}
.pz-fig-num [data-fig="retain"] + .hero-title-accent {
  background-image: linear-gradient(100deg, #aab1ef 0%, #d6d9f7 16%, #aab1ef 32%, #7c87dd 50%, #aab1ef 68%, #d6d9f7 84%, #aab1ef 100%);
  filter: drop-shadow(0 0 0.09em rgba(124, 135, 221, 0.5));
}
.pz-fig-label { max-width: 16em; font-size: clamp(17 * var(--z), 1.35vw, 20 * var(--z)); font-weight: 300; line-height: 1.45; color: var(--text-2); }

.pz-bars { display: grid; gap: calc(30 * var(--z)); padding-bottom: calc(6 * var(--z)); }
.pz-bar-group { display: grid; gap: calc(12 * var(--z)); }
.pz-bar-title { font-size: calc(15 * var(--z)); font-weight: 500; color: var(--text); }
.pz-bar { display: grid; grid-template-columns: 7.2em minmax(0, 1fr) 3.4ch; align-items: center; gap: calc(16 * var(--z)); }
.pz-bar-name { font-size: calc(14 * var(--z)); color: var(--text-3); white-space: nowrap; }
.pz-bar-track { position: relative; height: calc(6 * var(--z)); border-radius: calc(6 * var(--z)); background: rgba(255, 255, 255, 0.06); overflow: hidden; }
.pz-bar-fill {
  position: absolute; inset: 0; border-radius: inherit;
  background: rgba(255, 255, 255, 0.24);
  transform: scaleX(var(--v, 1)); transform-origin: left center;
  transition: transform 1.6s cubic-bezier(0.2, 0.7, 0.15, 1);
}
/* CATION's bars carry their figure's colour, brightening along the bar. */
.is-cation .pz-bar-fill { transition-delay: 0.3s; }
[data-group="cut"] .is-cation .pz-bar-fill { background: linear-gradient(90deg, #b9a560 0%, #e9d78b 70%, #f2e4ac 100%); }
[data-group="retain"] .is-cation .pz-bar-fill { background: linear-gradient(90deg, #6873cf 0%, #8f99e7 55%, #b3b9f0 100%); }
.is-cation .pz-bar-name { color: var(--text-2); }
.pz-bar-value { font-size: calc(14 * var(--z)); font-weight: 500; text-align: right; font-variant-numeric: tabular-nums; color: var(--text-2); transition: opacity 0.6s 1.2s; }
.is-cation .pz-bar-value { color: var(--text); }
.pz-proof.is-pending .pz-bar-fill { transform: scaleX(0); }
.pz-proof.is-pending .pz-bar-value { opacity: 0; }
.pz-bars .story-note { margin-top: 0; }

/* ---------- Narrower screens ---------- */

@media (max-width: 1100px) {
  .pz-grid { grid-template-columns: 1fr; }
  .pz-proof { grid-template-columns: 1fr; }
  .stage { height: auto; aspect-ratio: 16 / 10.5; }
  /* The five methods sit in one row under the stage. */
  .methods-list { grid-template-rows: none; grid-template-columns: repeat(5, minmax(0, 1fr)); border-top: 0; gap: calc(8 * var(--z)); }
  .method { grid-template-columns: 1fr; justify-items: center; gap: calc(8 * var(--z)); padding: calc(6 * var(--z)) calc(4 * var(--z)) calc(12 * var(--z)); border-bottom: 0; text-align: center; }
  .method-art { width: calc(44 * var(--z)); }
  .method-name { font-size: calc(15 * var(--z)); }
  .method-tick { position: absolute; top: 0; right: calc(50% - 40 * var(--z)); width: calc(20 * var(--z)); height: calc(20 * var(--z)); }
  .method:not([aria-pressed='true']) .method-tick { opacity: 0; }
}
@media (max-width: 720px) {
  .pz-figures { grid-template-columns: 1fr; }
  .pz-fig-num { font-size: clamp(84 * var(--z), 27vw, 120 * var(--z)); }
  /* One column: the title, a fixed room for the scene, the slider, then the lesson. A longer lesson makes the card
     taller at the bottom; the scene above it stays where it is. */
  .stage { display: flex; flex-direction: column; aspect-ratio: auto; height: auto; border-radius: calc(20 * var(--z)); }
  .pz .stage-copy { display: contents; }
  .pz .stage-title { order: 1; position: relative; padding: calc(24 * var(--z)) calc(22 * var(--z)) 0; }
  .stage-room { display: block; order: 2; height: calc(240 * var(--z)); }
  .stage-angle { order: 3; position: relative; left: auto; bottom: auto; width: auto; margin: 0 calc(22 * var(--z)); }
  .stage-lesson { order: 4; position: relative; padding: 0 calc(22 * var(--z)) calc(24 * var(--z)); }
  .pz .stage-title { font-size: calc(24 * var(--z)); }
  .pz .stage-text { font-size: calc(14 * var(--z)); }
  .stage-hint { display: none; }
  /* Back to a list: icon, name, tick. */
  .methods-list { grid-template-columns: 1fr; gap: 0; border-top: 1px solid var(--line); }
  .method { grid-template-columns: auto minmax(0, 1fr) auto; justify-items: stretch; gap: calc(14 * var(--z)); padding: calc(4 * var(--z)) calc(4 * var(--z)) calc(4 * var(--z)) 0; border-bottom: 1px solid var(--line); text-align: left; }
  .method { padding: calc(10 * var(--z)) calc(4 * var(--z)) calc(10 * var(--z)) 0; }
  .method-art { width: calc(38 * var(--z)); }
  .method-name { font-size: calc(17 * var(--z)); }
  .method-tick { position: static; width: calc(22 * var(--z)); height: calc(22 * var(--z)); }
  .method:not([aria-pressed='true']) .method-tick { opacity: 1; }
}
