:root {
  --navy: #061b35;
  --navy-2: #0b2947;
  --cream: #f6ebce;
  --paper: #fff5d9;
  --coral: #ff654d;
  --cyan: #2db9da;
  --yellow: #ffc64b;
  --muted: #a8bfd1;
  --ink: #031426;
  --shadow: 0 24px 60px rgb(0 0 0 / 28%);
  --display: "Avenir Next", "Futura", "Trebuchet MS", sans-serif;
  --body: "Avenir Next", "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

html, body {
  width: 100%;
  height: 100%;
  margin: 0;
  overflow: hidden;
  background: var(--navy);
  color: var(--cream);
}

body {
  font-family: var(--body);
  text-rendering: optimizeLegibility;
}

button, a { font: inherit; }

button:focus-visible, a:focus-visible {
  outline: 3px solid var(--yellow);
  outline-offset: 4px;
}

.deck {
  position: relative;
  width: 100%;
  height: 100%;
  background:
    radial-gradient(circle at 80% 20%, rgb(45 185 218 / 10%), transparent 27%),
    radial-gradient(circle at 20% 80%, rgb(255 101 77 / 9%), transparent 30%),
    var(--navy);
}

.deck::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: .13;
  background-image:
    linear-gradient(rgb(255 255 255 / 4%) 1px, transparent 1px),
    linear-gradient(90deg, rgb(255 255 255 / 4%) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(to bottom, transparent, black 30%, black 70%, transparent);
}

.slide {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: none;
  width: 100%;
  height: 100%;
  padding: clamp(54px, 7vh, 88px) clamp(68px, 7vw, 128px) clamp(78px, 9vh, 108px);
  overflow: hidden;
  background: transparent;
}

.slide.is-active {
  z-index: 1;
  display: block;
  animation: slide-in 360ms cubic-bezier(.2, .8, .2, 1);
}

@keyframes slide-in {
  from { opacity: 0; transform: translateY(14px) scale(.995); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.slide h1,
.slide h2,
.slide h3 {
  margin: 0;
  font-family: var(--display);
  line-height: .98;
  letter-spacing: -.045em;
}

.slide h1 {
  max-width: 950px;
  font-size: clamp(68px, 8.6vw, 152px);
}

.slide h2 {
  max-width: 1220px;
  font-size: clamp(52px, 6.4vw, 104px);
}

.slide h3 { font-size: clamp(25px, 2.1vw, 38px); }

.slide p { margin: 0; }

.slide em {
  color: var(--yellow);
  font-style: normal;
}

.slide-bg {
  position: absolute;
  inset: 0;
  z-index: -3;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.image-scrim {
  position: absolute;
  inset: 0;
  z-index: -2;
  background: linear-gradient(90deg, rgb(6 27 53 / 95%) 0%, rgb(6 27 53 / 70%) 46%, rgb(6 27 53 / 8%) 72%);
}

.image-scrim--left {
  background: linear-gradient(90deg, rgb(6 27 53 / 97%) 0%, rgb(6 27 53 / 80%) 38%, rgb(6 27 53 / 15%) 72%);
}

.slide-header {
  position: relative;
  z-index: 2;
}

.slide-header.compact h2 { font-size: clamp(48px, 5.3vw, 88px); }

.kicker, .eyebrow {
  display: block;
  margin-bottom: 18px;
  color: var(--cyan);
  font-size: clamp(15px, 1.4vw, 24px);
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.eyebrow { color: var(--yellow); }

.lead {
  margin-top: 26px !important;
  max-width: 820px;
  color: var(--muted);
  font-size: clamp(22px, 2.2vw, 38px);
  line-height: 1.35;
}

.ink-coral { color: var(--coral); }
.ink-cyan { color: var(--cyan); }
.ink-yellow { color: var(--yellow); }

.title-lockup {
  position: absolute;
  top: 12%;
  left: 7%;
  z-index: 2;
  width: 67%;
}

.title-lockup .lead {
  max-width: 730px;
  color: var(--cream);
  text-shadow: 0 2px 15px var(--navy);
}

.title-meta {
  display: grid;
  grid-template-columns: auto auto;
  width: fit-content;
  margin-top: 28px;
  padding: 14px 18px;
  gap: 3px 20px;
  border-left: 4px solid var(--cyan);
  border-radius: 0 10px 10px 0;
  background: rgb(6 27 53 / 68%);
  font-size: clamp(14px, 1.15vw, 20px);
}

.title-meta strong {
  grid-column: 1 / -1;
  color: var(--cream);
  font-size: 1.18em;
}

.title-meta span {
  color: var(--muted);
}

.title-meta span:last-child {
  color: var(--yellow);
}

.deck-home {
  position: fixed;
  top: 22px;
  left: 26px;
  z-index: 20;
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid rgb(255 255 255 / 14%);
  border-radius: 12px;
  background: rgb(6 27 53 / 74%);
  color: var(--cream);
  text-decoration: none;
  backdrop-filter: blur(10px);
}

.deck-home:hover {
  border-color: var(--cyan);
  color: var(--cyan);
}

.deck-language {
  position: fixed;
  top: 22px;
  left: 78px;
  z-index: 20;
  display: flex;
  padding: 3px;
  gap: 2px;
  border: 1px solid rgb(255 255 255 / 14%);
  border-radius: 999px;
  background: rgb(6 27 53 / 74%);
  backdrop-filter: blur(10px);
}

.deck-language a {
  padding: 6px 9px;
  border-radius: 999px;
  color: var(--cream);
  font-size: 11px;
  font-weight: 900;
  text-decoration: none;
}

html[lang="pl"] .deck-language [data-lang="pl"],
html[lang="en"] .deck-language [data-lang="en"] {
  background: var(--cyan);
  color: var(--navy);
}

.deck-copyright {
  position: fixed;
  right: 26px;
  bottom: 16px;
  z-index: 20;
  color: rgb(168 191 209 / 58%);
  font-size: 10px;
  letter-spacing: .02em;
  pointer-events: none;
}

.poll-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-top: 58px;
}

.poll-card {
  min-height: 340px;
  padding: 38px;
  border: 1px solid rgb(255 255 255 / 16%);
  border-radius: 24px;
  background: rgb(255 255 255 / 6%);
  box-shadow: var(--shadow);
}

.poll-card.coral { border-top: 8px solid var(--coral); }
.poll-card.cyan { border-top: 8px solid var(--cyan); }
.poll-card.yellow { border-top: 8px solid var(--yellow); }

.poll-icon {
  display: grid;
  width: 72px;
  height: 72px;
  margin-bottom: 38px;
  place-items: center;
  border-radius: 50%;
  background: var(--cream);
  color: var(--navy);
  font-size: 30px;
  font-weight: 900;
}

.poll-card h3 { margin-bottom: 18px; }

.poll-card p {
  color: var(--muted);
  font-size: clamp(19px, 1.6vw, 28px);
  line-height: 1.4;
}

.bottom-line {
  position: absolute;
  right: 8%;
  bottom: 9%;
  left: 8%;
  text-align: center;
  font-size: clamp(22px, 2vw, 34px);
}

.bottom-line strong { color: var(--yellow); }

.slide--statement {
  display: none;
  place-content: center;
  text-align: center;
}

.slide--statement.is-active { display: grid; }

.slide--statement h2 {
  position: relative;
  z-index: 2;
  max-width: 1300px;
  font-size: clamp(72px, 9vw, 150px);
}

.statement-tail {
  position: relative;
  z-index: 2;
  margin-top: 42px !important;
  font-size: clamp(26px, 2.6vw, 46px);
}

.micro {
  position: relative;
  z-index: 2;
  max-width: 900px;
  margin: 34px auto 0;
  color: var(--muted);
  font-size: clamp(19px, 1.5vw, 28px);
  line-height: 1.4;
}

.orbit {
  position: absolute;
  border: 2px solid rgb(45 185 218 / 24%);
  border-radius: 50%;
}

.orbit--one {
  width: 720px;
  height: 720px;
  transform: rotate(18deg);
}

.orbit--two {
  width: 1080px;
  height: 460px;
  transform: rotate(-12deg);
}

.prediction-stage {
  display: grid;
  place-items: center;
  margin-top: 55px;
}

.prompt-line {
  display: flex;
  gap: 18px;
  align-items: center;
}

.token {
  display: grid;
  width: clamp(76px, 7vw, 122px);
  height: clamp(76px, 7vw, 122px);
  place-items: center;
  border: 2px solid rgb(246 235 206 / 25%);
  border-radius: 18px;
  background: rgb(246 235 206 / 8%);
  color: var(--cream);
  font-size: clamp(36px, 4vw, 70px);
  font-weight: 900;
}

.token--question {
  border-color: var(--coral);
  color: var(--coral);
  box-shadow: 0 0 40px rgb(255 101 77 / 20%);
}

.candidates {
  display: flex;
  gap: 15px;
  margin-top: 28px;
}

.candidates > span {
  position: relative;
  padding: 14px 18px;
  overflow: hidden;
  border-radius: 12px;
  background: rgb(255 255 255 / 7%);
  font-size: clamp(18px, 1.6vw, 27px);
}

.candidates > span::before {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 5px;
  transform: scaleX(var(--p));
  transform-origin: left;
  background: var(--cyan);
}

.candidates small { margin-left: 8px; color: var(--muted); }

.giant-arrow {
  margin: 16px 0 4px;
  color: var(--yellow);
  font-size: 48px;
}

.prediction-punch {
  font-size: clamp(24px, 2.5vw, 44px);
}

.prediction-punch strong { color: var(--coral); }

.tiny {
  color: var(--muted);
  font-size: clamp(13px, 1.05vw, 18px);
}

.source-note {
  position: absolute;
  right: 8%;
  bottom: 4.7%;
  left: 8%;
}

.two-col {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 7vw;
  height: 100%;
  align-items: center;
}

.two-col--wide { grid-template-columns: .9fr 1.1fr; }

.tokenizer-demo {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 45px;
}

.tokenizer-demo span {
  padding: 14px 20px;
  border-radius: 11px;
  background: var(--cyan);
  color: var(--ink);
  font-size: clamp(27px, 2.8vw, 48px);
  font-weight: 900;
}

.tokenizer-demo span:nth-child(2) { background: var(--yellow); }
.tokenizer-demo span:nth-child(3) { background: var(--coral); }
.tokenizer-demo span:nth-child(4) { background: var(--cream); }

.caveat {
  margin-top: 25px !important;
  color: var(--muted);
  font-size: clamp(15px, 1.25vw, 22px);
}

.token-machine {
  position: relative;
  display: grid;
  min-height: 560px;
  place-items: center;
  border: 3px solid var(--cyan);
  border-radius: 40px;
  background: linear-gradient(145deg, rgb(45 185 218 / 14%), rgb(255 101 77 / 7%));
  box-shadow: var(--shadow);
}

.machine-mouth {
  width: 78%;
  padding: 24px;
  border-radius: 16px;
  background: var(--paper);
  color: var(--ink);
  text-align: center;
  font-size: clamp(18px, 1.65vw, 28px);
  font-weight: 800;
}

.machine-blades {
  color: var(--coral);
  font-size: 42px;
  letter-spacing: 24px;
}

.machine-output {
  display: flex;
  max-width: 85%;
  flex-wrap: wrap;
  gap: 9px;
  justify-content: center;
}

.machine-output i {
  padding: 10px 12px;
  border-radius: 8px;
  background: var(--navy-2);
  color: var(--yellow);
  font-style: normal;
  font-weight: 800;
}

.image-copy {
  position: absolute;
  top: 14%;
  left: 7%;
  width: 48%;
}

.image-copy h2 {
  font-size: clamp(48px, 5.7vw, 95px);
  text-shadow: 0 3px 20px var(--navy);
}

.attention-example {
  display: inline-block;
  margin-top: 42px;
  padding: 18px 22px;
  border-radius: 14px;
  background: rgb(6 27 53 / 84%);
  color: var(--cream);
  font-size: clamp(19px, 1.7vw, 29px);
  line-height: 1.45;
}

.attention-example span { color: var(--cyan); font-weight: 800; }
.attention-example b { color: var(--coral); }

.image-copy > p {
  max-width: 720px;
  margin-top: 26px;
  color: var(--cream);
  font-size: clamp(20px, 1.75vw, 30px);
  line-height: 1.45;
  text-shadow: 0 2px 12px var(--navy);
}

.formula-card {
  margin-top: 54px;
  padding: 45px 55px;
  border: 2px solid rgb(45 185 218 / 45%);
  border-radius: 28px;
  background: rgb(1 16 34 / 60%);
  box-shadow: var(--shadow);
}

.formula {
  text-align: center;
  font-family: Georgia, serif;
  font-size: clamp(32px, 4vw, 66px);
}

.formula > span { color: var(--yellow); }

.formula-legend {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 46px;
}

.formula-legend > div {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 16px;
  align-items: center;
}

.formula-legend b {
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;
  border-radius: 50%;
  background: var(--coral);
  color: var(--ink);
  font-size: 28px;
}

.formula-legend div:nth-child(2) b { background: var(--cyan); }
.formula-legend div:nth-child(3) b { background: var(--yellow); }
.formula-legend span { color: var(--muted); font-size: clamp(18px, 1.5vw, 26px); }

.attention-plain {
  display: flex;
  gap: 20px;
  margin-top: 36px;
  justify-content: center;
  color: var(--muted);
  font-size: clamp(17px, 1.5vw, 25px);
}

.attention-plain span { color: var(--yellow); font-weight: 900; }

.transformer-stack {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
  justify-content: center;
}

.stack-layer, .stack-input, .stack-output {
  width: min(680px, 88%);
  padding: 18px 30px;
  border: 2px solid var(--cyan);
  border-radius: 14px;
  background: rgb(45 185 218 / 10%);
  text-align: center;
  font-size: clamp(20px, 1.8vw, 31px);
  font-weight: 800;
}

.stack-layer:nth-of-type(even) {
  border-color: var(--coral);
  background: rgb(255 101 77 / 9%);
}

.stack-input {
  border-color: var(--cream);
  background: var(--cream);
  color: var(--ink);
}

.stack-output {
  border-color: var(--yellow);
  background: var(--yellow);
  color: var(--ink);
}

.stack-dots {
  height: 50px;
  color: var(--muted);
  font-size: 44px;
}

#trening.is-active {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  gap: clamp(10px, 1.5vh, 18px);
}

#trening .slide-header h2 {
  font-size: clamp(42px, 4.7vw, 78px);
}

.training-timeline {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  gap: 24px;
  min-height: 0;
  margin-top: 8px;
  align-items: center;
}

.training-card {
  min-height: 0;
  height: 100%;
  padding: clamp(24px, 2.3vw, 34px);
  border: 1px solid rgb(255 255 255 / 15%);
  border-radius: 24px;
  background: rgb(255 255 255 / 5%);
}

.training-card .act {
  display: grid;
  width: 56px;
  height: 56px;
  margin-bottom: 28px;
  place-items: center;
  border-radius: 50%;
  background: var(--coral);
  color: var(--ink);
  font-family: Georgia, serif;
  font-size: 30px;
  font-weight: 900;
}

.training-card:nth-of-type(2) .act { background: var(--cyan); }
.training-card:nth-of-type(3) .act { background: var(--yellow); }

.training-card h3 { margin-bottom: 20px; }

.training-card p {
  font-size: clamp(20px, 1.7vw, 29px);
  line-height: 1.4;
}

.training-card small {
  display: block;
  margin-top: 24px;
  color: var(--muted);
  font-size: clamp(15px, 1.15vw, 20px);
  line-height: 1.35;
}

#trening > .caveat {
  margin-top: 0 !important;
}

.timeline-arrow { color: var(--yellow); font-size: 48px; }

.reason-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 58px;
}

.reason {
  min-height: 330px;
  padding: 30px;
  border-bottom: 6px solid var(--cyan);
  border-radius: 20px;
  background: rgb(255 255 255 / 6%);
}

.reason:nth-child(2) { border-color: var(--coral); }
.reason:nth-child(3) { border-color: var(--yellow); }
.reason:nth-child(4) { border-color: var(--cream); }

.reason > span {
  color: var(--yellow);
  font-size: 44px;
}

.reason h3 { margin: 30px 0 18px; }

.reason p {
  color: var(--muted);
  font-size: clamp(18px, 1.45vw, 25px);
  line-height: 1.4;
}

.gauss-stage {
  display: grid;
  grid-template-columns: .6fr 1.2fr .7fr;
  gap: 50px;
  margin-top: 48px;
  align-items: center;
}

.gauss-question {
  color: var(--muted);
  font-size: clamp(28px, 3vw, 52px);
  font-style: italic;
}

.pairing {
  display: grid;
  gap: 10px;
  padding: 28px;
  border-radius: 22px;
  background: rgb(255 255 255 / 5%);
  font-size: clamp(23px, 2.1vw, 36px);
}

.pairing div {
  display: flex;
  gap: .3em;
  align-items: baseline;
  justify-content: center;
}
.pairing b:first-child { color: var(--cyan); }
.pairing b:nth-child(2) { color: var(--coral); }
.pairing span { color: var(--yellow); font-weight: 900; }
.pairing .ellipsis { display: block; color: var(--muted); text-align: center; }

.gauss-result {
  color: var(--muted);
  font-size: clamp(28px, 2.8vw, 50px);
}

.gauss-result strong {
  display: block;
  margin-top: 14px;
  color: var(--yellow);
  font-size: 1.6em;
}

blockquote {
  max-width: 1050px;
  margin: 40px auto 0;
  padding-left: 30px;
  border-left: 6px solid var(--coral);
  color: var(--cream);
  font-family: Georgia, serif;
  font-size: clamp(23px, 2vw, 35px);
  font-style: italic;
  line-height: 1.35;
}

#gauss blockquote {
  margin-top: 24px;
  font-size: clamp(20px, 1.7vw, 30px);
}

.proof-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 34px;
  margin-top: 54px;
}

.proof-card {
  min-height: 460px;
  padding: 38px;
  border: 2px solid var(--cyan);
  border-radius: 24px;
  background: rgb(45 185 218 / 7%);
}

.proof-card:nth-child(2) {
  border-color: var(--coral);
  background: rgb(255 101 77 / 7%);
}

.proof-label {
  display: inline-block;
  margin-bottom: 26px;
  padding: 8px 12px;
  border-radius: 7px;
  background: var(--cyan);
  color: var(--ink);
  font-weight: 900;
  text-transform: uppercase;
}

.proof-card:nth-child(2) .proof-label { background: var(--coral); }

.proof-card p {
  margin: 13px 0;
  font-family: Georgia, serif;
  font-size: clamp(25px, 2.2vw, 39px);
  line-height: 1.35;
}

.proof-card .proof-answer {
  margin-top: 28px;
  color: var(--yellow);
  font-weight: 900;
}

#dziewiec-dziewiec.is-active {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  gap: clamp(18px, 2.2vh, 28px);
}

#dziewiec-dziewiec .proof-split {
  min-height: 0;
  margin-top: 0;
}

#dziewiec-dziewiec .proof-card {
  min-height: 0;
  padding: clamp(26px, 3vh, 38px);
}

#dziewiec-dziewiec .proof-card p {
  font-size: clamp(22px, 2vw, 35px);
}

.proof-takeaway,
.bad-proof-takeaway {
  position: relative;
  z-index: 2;
  margin: 0 auto !important;
  text-align: center;
  font-size: clamp(20px, 1.75vw, 30px);
  line-height: 1.3;
}

.proof-takeaway strong,
.bad-proof-takeaway strong {
  color: var(--yellow);
}

.bad-proof {
  display: grid;
  grid-template-columns: 1.25fr .75fr;
  gap: 52px;
  margin-top: 36px;
  align-items: center;
}

.proof-lines {
  padding: 26px 38px;
  border-radius: 22px;
  background: rgb(255 255 255 / 5%);
}

.proof-lines p {
  margin: 8px 0;
  font-family: Georgia, serif;
  font-size: clamp(24px, 2vw, 34px);
}

.trap-line {
  position: relative;
  color: var(--coral);
}

.trap-marker {
  margin-left: 30px;
  font-family: var(--body);
  font-size: .55em;
  font-weight: 800;
}

.crime-scene {
  padding: 40px;
  border: 5px solid var(--yellow);
  transform: rotate(2deg);
  background: var(--coral);
  color: var(--ink);
  box-shadow: var(--shadow);
  text-align: center;
}

.crime-scene > span {
  display: block;
  font-size: 27px;
  font-weight: 1000;
  letter-spacing: .18em;
}

.crime-scene b {
  display: block;
  margin: 20px 0;
  font-family: Georgia, serif;
  font-size: clamp(40px, 4vw, 70px);
}

.crime-scene p {
  font-size: clamp(19px, 1.5vw, 26px);
  line-height: 1.4;
}

#dowod-jeden-rowna-sie-dwa.is-active {
  display: grid;
  grid-template-rows: auto auto auto auto;
  gap: clamp(12px, 1.7vh, 22px);
}

#dowod-jeden-rowna-sie-dwa .slide-header h2 {
  font-size: clamp(42px, 4.8vw, 78px);
}

#dowod-jeden-rowna-sie-dwa .bad-proof {
  grid-template-columns: 1.35fr .65fr;
  gap: clamp(24px, 3vw, 46px);
  margin-top: 0;
}

#dowod-jeden-rowna-sie-dwa .proof-lines {
  padding: clamp(18px, 2.2vh, 28px) clamp(28px, 2.8vw, 42px);
}

#dowod-jeden-rowna-sie-dwa .proof-lines p {
  margin: 5px 0;
  font-size: clamp(21px, 1.75vw, 30px);
}

#dowod-jeden-rowna-sie-dwa .crime-scene {
  padding: clamp(22px, 2.5vh, 34px);
}

#dowod-jeden-rowna-sie-dwa .crime-scene b {
  margin: 12px 0;
  font-size: clamp(36px, 3.5vw, 60px);
}

#dowod-jeden-rowna-sie-dwa .crime-scene p {
  font-size: clamp(16px, 1.25vw, 22px);
}

.codex-audit {
  display: grid;
  grid-template-columns: minmax(250px, .75fr) minmax(0, 1.65fr);
  gap: 22px;
  padding: 16px 20px;
  align-items: center;
  border: 2px solid var(--cyan);
  border-radius: 18px;
  background: linear-gradient(90deg, rgb(45 185 218 / 12%), rgb(1 16 34 / 65%));
  box-shadow: var(--shadow);
}

.codex-audit__prompt {
  color: var(--cream);
  font-size: clamp(15px, 1.15vw, 20px);
  line-height: 1.35;
}

.codex-audit__prompt > span {
  display: block;
  margin-bottom: 7px;
  color: var(--cyan);
  font-size: .78em;
  font-weight: 1000;
  letter-spacing: .13em;
}

.codex-audit__flow {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1.18fr;
  gap: 10px;
  align-items: center;
}

.codex-audit__flow > div {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px;
  min-height: 72px;
  padding: 10px 12px;
  align-items: center;
  border-radius: 12px;
  background: rgb(255 255 255 / 6%);
}

.codex-audit__flow b {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border-radius: 50%;
  background: var(--cyan);
  color: var(--ink);
  font-size: 15px;
}

.codex-audit__flow span {
  color: var(--muted);
  font-size: clamp(13px, .96vw, 17px);
  line-height: 1.25;
}

.codex-audit__flow strong {
  color: var(--cream);
}

.codex-audit__flow > i {
  color: var(--yellow);
  font-size: 24px;
  font-style: normal;
}

.codex-audit__flow .codex-audit__verdict {
  border: 1px solid rgb(255 101 77 / 60%);
  background: rgb(255 101 77 / 12%);
}

.codex-audit__flow .codex-audit__verdict b {
  background: var(--coral);
}

.bad-proof-takeaway {
  font-size: clamp(17px, 1.35vw, 23px);
}

.confidence-meter, .truth-meter {
  display: grid;
  grid-template-columns: 210px minmax(280px, 620px) 90px;
  gap: 20px;
  margin: 42px auto 0;
  align-items: center;
  font-size: clamp(18px, 1.4vw, 25px);
}

.meter {
  height: 18px;
  overflow: hidden;
  border-radius: 20px;
  background: rgb(255 255 255 / 12%);
}

.meter i {
  display: block;
  width: 97%;
  height: 100%;
  border-radius: inherit;
  background: var(--coral);
}

.truth-meter .meter i {
  width: 18%;
  background: repeating-linear-gradient(90deg, var(--yellow) 0 9px, transparent 9px 16px);
}

.idea-axis {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  margin-top: 58px;
}

.axis-card {
  min-height: 330px;
  padding: 30px;
  border-radius: 20px;
  background: rgb(255 255 255 / 6%);
}

.axis-card > span {
  display: inline-block;
  margin-bottom: 38px;
  padding: 7px 11px;
  border-radius: 99px;
  text-transform: uppercase;
  font-size: 14px;
  font-weight: 900;
  letter-spacing: .12em;
}

.axis-card.strong { border-top: 7px solid var(--cyan); }
.axis-card.strong > span { background: var(--cyan); color: var(--ink); }
.axis-card.weak { border-top: 7px solid var(--coral); }
.axis-card.weak > span { background: var(--coral); color: var(--ink); }

.axis-card h3 { margin-bottom: 20px; }
.axis-card p { color: var(--muted); font-size: clamp(18px, 1.4vw, 24px); line-height: 1.4; }

#idee.is-active {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  gap: clamp(14px, 1.8vh, 24px);
}

#idee .slide-header h2 {
  font-size: clamp(38px, 4.25vw, 70px);
}

.rectangle-idea-layout {
  display: grid;
  grid-template-columns: .82fr 1.18fr;
  gap: clamp(22px, 3vw, 46px);
  min-height: 0;
}

#prostokaty.is-active,
#euler-eksperyment.is-active,
#korepetytor.is-active,
#fermat-341.is-active {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  gap: clamp(14px, 1.8vh, 24px);
}

#prostokaty .slide-header h2,
#euler-eksperyment .slide-header h2,
#korepetytor .slide-header h2,
#fermat-341 .slide-header h2 {
  font-size: clamp(40px, 4.8vw, 78px);
}

.board-panel {
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr);
  min-height: 0;
  padding: clamp(14px, 1.7vw, 24px);
  border: 2px solid rgb(45 185 218 / 45%);
  border-radius: 22px;
  background: rgb(45 185 218 / 7%);
}

.codex-prompt-tag {
  width: fit-content;
  padding: 6px 10px;
  border-radius: 7px;
  background: var(--cyan);
  color: var(--ink);
  font-size: clamp(11px, .85vw, 15px);
  font-weight: 1000;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.board-panel > p {
  margin: 9px 0 10px;
  font-size: clamp(14px, 1.05vw, 18px);
  line-height: 1.35;
}

.chessboard {
  position: relative;
  width: auto;
  height: 100%;
  max-width: 100%;
  max-height: 280px;
  aspect-ratio: 1;
  margin: auto;
  border: 4px solid var(--cream);
  background:
    conic-gradient(
      from 90deg,
      var(--cream) 25%,
      var(--navy-2) 0 50%,
      var(--cream) 0 75%,
      var(--navy-2) 0
    ) 0 0 / 25% 25%;
  box-shadow: 0 16px 35px rgb(0 0 0 / 25%);
}

.chessboard > i {
  position: absolute;
  top: 12.5%;
  left: 25%;
  width: 50%;
  height: 37.5%;
  border: 7px solid var(--coral);
  background: rgb(255 101 77 / 19%);
  box-shadow: 0 0 24px rgb(255 101 77 / 40%);
}

.board-lines {
  position: absolute;
  z-index: 2;
  padding: 4px 7px;
  border-radius: 5px;
  background: var(--yellow);
  color: var(--ink);
  font-size: clamp(10px, .72vw, 13px);
  font-style: normal;
  font-weight: 1000;
  white-space: nowrap;
}

.board-lines--top {
  top: -15px;
  left: 50%;
  transform: translateX(-50%);
}

.board-lines--side {
  top: 50%;
  right: -35px;
  transform: translateY(-50%) rotate(90deg);
}

.codex-candidates {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(12px, 1.4vw, 20px);
  min-height: 0;
}

.candidate-card {
  min-height: 0;
  padding: clamp(14px, 1.45vw, 22px);
  border: 1px solid rgb(255 255 255 / 13%);
  border-radius: 17px;
  background: rgb(255 255 255 / 5%);
}

.candidate-card > b {
  display: block;
  margin-bottom: 7px;
  color: var(--cyan);
  font-size: clamp(12px, .9vw, 16px);
  letter-spacing: .06em;
  text-transform: uppercase;
}

.candidate-card > strong {
  display: block;
  margin-bottom: 7px;
  font-size: clamp(19px, 1.6vw, 27px);
}

.candidate-card > p {
  color: var(--muted);
  font-size: clamp(13px, .98vw, 17px);
  line-height: 1.3;
}

.candidate-card--wrong {
  border-color: rgb(255 101 77 / 45%);
}

.candidate-card--wrong > b,
.candidate-card--wrong > strong {
  color: var(--coral);
}

.candidate-card--idea {
  border-color: rgb(255 198 75 / 45%);
}

.candidate-card--idea > b,
.candidate-card--idea > strong {
  color: var(--yellow);
}

.candidate-card--human {
  border-color: rgb(246 235 206 / 34%);
}

.candidate-card--human > b {
  color: var(--cream);
}

.case-principles {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.case-principles span {
  padding: 8px 13px;
  border-radius: 99px;
  background: rgb(255 255 255 / 7%);
  color: var(--muted);
  font-size: clamp(13px, 1vw, 17px);
}

.case-principles b {
  color: var(--cream);
}

.agent-loop {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr;
  gap: 16px;
  margin-top: 65px;
  align-items: center;
}

.loop-node {
  min-height: 220px;
  padding: 24px;
  border: 2px solid var(--cyan);
  border-radius: 20px;
  background: rgb(45 185 218 / 8%);
  text-align: center;
}

.loop-node:nth-of-type(3), .loop-node:nth-of-type(7) { border-color: var(--coral); }

.loop-node b {
  display: grid;
  width: 43px;
  height: 43px;
  margin: 0 auto 20px;
  place-items: center;
  border-radius: 50%;
  background: var(--yellow);
  color: var(--ink);
}

.loop-node span {
  display: block;
  font-size: clamp(25px, 2vw, 34px);
  font-weight: 900;
}

.loop-node small {
  display: block;
  margin-top: 13px;
  color: var(--muted);
  font-size: clamp(15px, 1.15vw, 20px);
}

.loop-arrow { color: var(--yellow); font-size: 40px; }

.loop-return {
  position: absolute;
  right: 9.5%;
  bottom: 29%;
  color: var(--coral);
  font-size: 27px;
  font-weight: 900;
}

.codex-callout {
  display: flex;
  max-width: 1200px;
  margin: 42px auto 0;
  gap: 18px;
  justify-content: center;
  font-size: clamp(18px, 1.6vw, 27px);
}

.codex-callout span {
  color: var(--cyan);
  font-weight: 900;
}

.codex-callout span:nth-of-type(2) { color: var(--coral); }

#codex.is-active {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  gap: clamp(14px, 1.8vh, 24px);
}

#codex .slide-header h2 {
  font-size: clamp(42px, 4.8vw, 78px);
}

.codex-run-grid {
  display: grid;
  grid-template-columns: .75fr 1.25fr;
  gap: clamp(22px, 3vw, 46px);
  min-height: 0;
}

.codex-run-brief {
  display: grid;
  grid-template-rows: auto auto auto auto;
  gap: 12px;
  align-content: center;
}

.codex-run-prompt,
.codex-run-plan {
  padding: 17px 20px;
  border-radius: 15px;
  background: rgb(255 255 255 / 6%);
  font-size: clamp(15px, 1.12vw, 20px);
  line-height: 1.35;
}

.codex-run-prompt {
  border-left: 5px solid var(--coral);
}

.codex-run-prompt > span {
  display: block;
  margin-bottom: 7px;
  color: var(--coral);
  font-size: .72em;
  font-weight: 1000;
  letter-spacing: .13em;
}

.codex-run-plan {
  border-left: 5px solid var(--cyan);
}

.codex-run-plan > b {
  display: block;
  color: var(--cyan);
}

.codex-run-plan > p {
  margin: 6px 0;
  color: var(--muted);
}

.codex-run-plan > code {
  color: var(--yellow);
  font: 800 1.2em "SFMono-Regular", Consolas, monospace;
}

.code-diff {
  margin: 0;
  padding: 14px 18px;
  border-radius: 13px;
  background: #02111f;
  font: clamp(14px, 1vw, 18px)/1.5 "SFMono-Regular", Consolas, monospace;
}

.code-diff span {
  display: block;
}

.diff-minus { color: #ff8a78; }
.diff-plus { color: #72dfb3; }

.rectangle-demo-button {
  justify-self: start;
}

.rectangle-demo-button:disabled {
  cursor: default;
  filter: saturate(.55);
}

.codex-terminal {
  display: grid;
  grid-template-rows: auto 1fr;
  min-height: 0;
  overflow: hidden;
  border: 1px solid rgb(255 255 255 / 15%);
  border-radius: 18px;
  background: #02111f;
  box-shadow: var(--shadow);
}

.terminal-title {
  display: flex;
  gap: 7px;
  padding: 11px 15px;
  align-items: center;
  border-bottom: 1px solid rgb(255 255 255 / 10%);
  color: var(--muted);
  font: 12px "SFMono-Regular", Consolas, monospace;
}

.terminal-title i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--coral);
}

.terminal-title i:nth-child(2) { background: var(--yellow); }
.terminal-title i:nth-child(3) { background: #72dfb3; }
.terminal-title span { margin-left: 7px; }

.terminal-transcript {
  padding: clamp(16px, 1.8vw, 26px);
  overflow: hidden;
  font: clamp(13px, 1vw, 18px)/1.48 "SFMono-Regular", Consolas, monospace;
}

.terminal-transcript p {
  margin: 0 0 6px;
}

.terminal-idle { color: var(--muted); }
.terminal-line--plan { color: #bcecff; }
.terminal-line--run { color: var(--cream); }
.terminal-line--fail { color: #ff8a78; }
.terminal-line--diagnosis { color: var(--yellow); }
.terminal-line--patch { color: var(--cyan); }
.terminal-line--pass { color: #72dfb3; }
.terminal-line--result { color: var(--yellow); font-weight: 900; }

.codex-result-line {
  margin: 0 auto !important;
  text-align: center;
  font-size: clamp(18px, 1.45vw, 25px);
}

.codex-result-line strong {
  color: var(--yellow);
  font-size: 1.2em;
}

.euler-grid {
  display: grid;
  grid-template-columns: .7fr 1.1fr;
  grid-template-rows: auto auto;
  gap: 26px;
  margin-top: 48px;
}

.euler-problem {
  grid-row: 1 / 3;
  display: grid;
  padding: 38px;
  place-content: center;
  border: 3px solid var(--yellow);
  border-radius: 26px;
  background: rgb(255 198 75 / 8%);
  text-align: center;
}

.euler-problem p {
  color: var(--yellow);
  font-family: Georgia, serif;
  font-size: clamp(45px, 4.7vw, 80px);
}

.euler-problem small {
  display: block;
  margin: 24px 0 34px;
  color: var(--muted);
  font-size: clamp(17px, 1.3vw, 23px);
  line-height: 1.4;
}

.demo-button {
  padding: 16px 24px;
  border: 0;
  border-radius: 12px;
  background: var(--coral);
  color: var(--ink);
  cursor: pointer;
  font-weight: 1000;
}

.demo-button:hover { filter: brightness(1.08); }

.code-window, .terminal-window {
  margin: 0;
  padding: 26px 30px;
  border: 1px solid rgb(255 255 255 / 15%);
  border-radius: 18px;
  background: #02111f;
  color: #bcecff;
  font: clamp(15px, 1.25vw, 21px)/1.5 "SFMono-Regular", Consolas, monospace;
  box-shadow: var(--shadow);
}

.code-window {
  overflow: hidden;
  white-space: pre-wrap;
}

.terminal-window {
  display: flex;
  min-height: 100px;
  align-items: center;
  justify-content: space-between;
  color: var(--muted);
}

.terminal-result {
  color: var(--yellow);
  font-size: clamp(18px, 1.5vw, 25px);
}

.learning-loop {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 17px;
  margin-top: 62px;
}

.learning-step {
  position: relative;
  min-height: 270px;
  padding: 28px 22px;
  border: 1px solid rgb(255 255 255 / 15%);
  border-radius: 18px;
  background: rgb(255 255 255 / 5%);
  text-align: center;
}

.learning-step::after {
  content: "→";
  position: absolute;
  top: 42%;
  right: -22px;
  z-index: 2;
  color: var(--yellow);
  font-size: 30px;
}

.learning-step:last-child::after { display: none; }

.learning-step b {
  display: grid;
  width: 52px;
  height: 52px;
  margin: 0 auto 30px;
  place-items: center;
  border-radius: 50%;
  background: var(--cyan);
  color: var(--ink);
  font-size: 25px;
}

.learning-step:nth-child(even) b { background: var(--coral); }
.learning-step:last-child b { background: var(--yellow); }

.learning-step span {
  display: block;
  font-size: clamp(22px, 1.7vw, 29px);
  font-weight: 900;
}

.learning-step small {
  display: block;
  margin-top: 13px;
  color: var(--muted);
  font-size: clamp(14px, 1.05vw, 18px);
  line-height: 1.35;
}

.prompt-chip {
  width: fit-content;
  margin: 40px auto 0;
  padding: 16px 22px;
  border-radius: 99px;
  background: var(--cream);
  color: var(--ink);
  font-size: clamp(18px, 1.55vw, 26px);
  font-weight: 800;
}

#jak-sie-uczyc.is-active {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: clamp(16px, 2.2vh, 30px);
}

#jak-sie-uczyc .slide-header h2 {
  font-size: clamp(39px, 4.4vw, 72px);
}

.tutor-case {
  display: grid;
  grid-template-columns: 1.18fr .82fr;
  gap: clamp(22px, 3vw, 44px);
  min-height: 0;
}

.tutor-chat {
  display: grid;
  gap: 10px;
  align-content: center;
}

.chat-message {
  display: grid;
  grid-template-columns: 74px 1fr;
  gap: 12px;
  max-width: 94%;
  padding: 12px 16px;
  border-radius: 15px;
  font-size: clamp(14px, 1.08vw, 19px);
  line-height: 1.3;
}

.chat-message b {
  color: var(--yellow);
}

.chat-message--student {
  justify-self: end;
  border-bottom-right-radius: 4px;
  background: rgb(255 101 77 / 14%);
}

.chat-message--student b { color: var(--coral); }

.chat-message--codex {
  justify-self: start;
  border-bottom-left-radius: 4px;
  background: rgb(45 185 218 / 14%);
}

.chat-message--codex b { color: var(--cyan); }

.learning-in-practice {
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 16px;
  min-height: 0;
}

.practice-prompt {
  padding: 18px;
  border: 2px solid var(--yellow);
  border-radius: 16px;
  background: rgb(255 198 75 / 8%);
  font-size: clamp(15px, 1.1vw, 19px);
  line-height: 1.35;
}

.practice-prompt > span {
  display: block;
  margin-bottom: 8px;
  color: var(--yellow);
  font-size: .75em;
  font-weight: 1000;
  letter-spacing: .12em;
}

.learning-in-practice ol {
  display: grid;
  gap: 9px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: practice;
}

.learning-in-practice li {
  position: relative;
  padding: 11px 13px 11px 48px;
  border-radius: 12px;
  background: rgb(255 255 255 / 6%);
  color: var(--muted);
  font-size: clamp(13px, 1vw, 18px);
  line-height: 1.3;
  counter-increment: practice;
}

.learning-in-practice li::before {
  content: counter(practice);
  position: absolute;
  top: 50%;
  left: 12px;
  display: grid;
  width: 26px;
  height: 26px;
  transform: translateY(-50%);
  place-items: center;
  border-radius: 50%;
  background: var(--cyan);
  color: var(--ink);
  font-size: 13px;
  font-weight: 1000;
}

.learning-in-practice li:nth-child(even)::before { background: var(--coral); }
.learning-in-practice li:last-child::before { background: var(--yellow); }
.learning-in-practice li b { color: var(--cream); }

.prompt-recipe {
  display: grid;
  gap: 13px;
  max-width: 1150px;
  margin: 48px auto 0;
}

.recipe-row {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 30px;
  padding: 19px 24px;
  align-items: center;
  border-radius: 13px;
  background: rgb(255 255 255 / 6%);
}

.recipe-row b {
  color: var(--yellow);
  letter-spacing: .09em;
}

.recipe-row span { color: var(--cream); font-size: clamp(18px, 1.5vw, 26px); }

.prompt-example {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 12px 20px;
  max-width: 1200px;
  margin: 34px auto 0;
  color: var(--muted);
  font-size: clamp(17px, 1.35vw, 23px);
}

.prompt-example span { color: var(--coral); font-weight: 900; }
.prompt-example span:nth-of-type(2) { color: var(--cyan); }

.rules-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px 28px;
  max-width: 1250px;
  margin: 48px auto 0;
  padding: 0;
  list-style: none;
  counter-reset: rules;
}

.rules-list li {
  position: relative;
  min-height: 132px;
  padding: 26px 26px 24px 88px;
  border-radius: 17px;
  background: rgb(255 255 255 / 6%);
  counter-increment: rules;
}

.rules-list li::before {
  content: counter(rules);
  position: absolute;
  top: 25px;
  left: 25px;
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: 50%;
  background: var(--coral);
  color: var(--ink);
  font-weight: 1000;
}

.rules-list li:nth-child(even)::before { background: var(--cyan); }
.rules-list li:last-child::before { background: var(--yellow); }

.rules-list b {
  display: block;
  margin-bottom: 8px;
  font-size: clamp(20px, 1.55vw, 27px);
}

.rules-list span { color: var(--muted); font-size: clamp(16px, 1.2vw, 21px); line-height: 1.35; }

#fermat-zabawa.is-active {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  gap: clamp(12px, 1.7vh, 22px);
}

#fermat-zabawa .slide-header h2 {
  font-size: clamp(38px, 4.25vw, 68px);
}

.fermat-lab {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: clamp(18px, 2.5vw, 38px);
  min-height: 0;
}

.fermat-conversation {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  min-height: 0;
  overflow: hidden;
  border: 1px solid rgb(255 255 255 / 14%);
  border-radius: 18px;
  background: rgb(255 255 255 / 5%);
  box-shadow: var(--shadow);
}

.codex-window-bar {
  display: flex;
  gap: 7px;
  padding: 10px 13px;
  align-items: center;
  border-bottom: 1px solid rgb(255 255 255 / 10%);
  color: var(--muted);
  font: 11px "SFMono-Regular", Consolas, monospace;
}

.codex-window-bar i {
  width: 9px;
  height: 9px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--coral);
}

.codex-window-bar i:nth-child(2) { background: var(--yellow); }
.codex-window-bar i:nth-child(3) { background: #72dfb3; }
.codex-window-bar span { margin-left: 5px; }

.codex-window-bar b {
  margin-left: auto;
  padding: 4px 7px;
  border-radius: 99px;
  background: rgb(45 185 218 / 15%);
  color: var(--cyan);
  font-size: 10px;
  letter-spacing: .04em;
}

.fermat-chat {
  display: grid;
  gap: 9px;
  padding: clamp(12px, 1.35vw, 19px);
  align-content: center;
}

.fermat-chat .chat-message {
  grid-template-columns: 78px 1fr;
  max-width: 100%;
  padding: 10px 12px;
  font-size: clamp(12px, .92vw, 16px);
}

.fermat-chat .chat-message strong { color: var(--yellow); }

.fermat-demo-button {
  justify-self: end;
  padding: 12px 18px;
  font-size: clamp(13px, .95vw, 16px);
}

.fermat-demo-button:disabled {
  cursor: default;
  filter: saturate(.55);
}

.fermat-workbench {
  display: grid;
  grid-template-rows: minmax(138px, 1.2fr) auto auto;
  gap: 10px;
  min-height: 0;
}

.fermat-terminal {
  min-height: 0;
}

.fermat-terminal .terminal-transcript {
  padding: clamp(12px, 1.3vw, 18px);
  font-size: clamp(11px, .86vw, 15px);
  line-height: 1.35;
}

.fermat-conclusion {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.fermat-theorem,
.fermat-trap {
  padding: 11px 13px;
  border-left: 4px solid #72dfb3;
  border-radius: 11px;
  background: rgb(114 223 179 / 8%);
}

.fermat-trap {
  border-color: var(--coral);
  background: rgb(255 101 77 / 8%);
}

.fermat-theorem span,
.fermat-trap span {
  display: block;
  margin-bottom: 4px;
  color: #72dfb3;
  font-size: clamp(9px, .65vw, 11px);
  font-weight: 1000;
  letter-spacing: .1em;
}

.fermat-trap span { color: var(--coral); }

.fermat-theorem b,
.fermat-trap b {
  display: block;
  font-size: clamp(13px, 1vw, 17px);
  line-height: 1.2;
}

.fermat-theorem small,
.fermat-trap small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: clamp(10px, .76vw, 13px);
  line-height: 1.25;
}

.fermat-offline {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  padding: 10px 13px;
  align-items: center;
  border: 2px solid var(--yellow);
  border-radius: 12px;
  background: rgb(255 198 75 / 7%);
}

.offline-label {
  color: var(--yellow);
  font-size: clamp(9px, .7vw, 12px);
  font-weight: 1000;
  letter-spacing: .08em;
}

.fermat-offline p {
  font-size: clamp(12px, .92vw, 16px);
  line-height: 1.28;
}

.fermat-offline strong {
  color: var(--yellow);
  font-size: 1.2em;
}

.fermat-rule-strip {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
}

.fermat-rule-strip span {
  display: flex;
  gap: 8px;
  min-width: 0;
  padding: 8px 10px;
  align-items: center;
  border-radius: 10px;
  background: rgb(255 255 255 / 6%);
  color: var(--muted);
  font-size: clamp(10px, .82vw, 14px);
  line-height: 1.15;
}

.fermat-rule-strip b {
  display: grid;
  width: 24px;
  height: 24px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 50%;
  background: var(--cyan);
  color: var(--ink);
  font-size: 12px;
}

.fermat-rule-strip span:nth-child(even) b { background: var(--coral); }
.fermat-rule-strip span:last-child b { background: var(--yellow); }

.closing-copy {
  position: absolute;
  top: 16%;
  left: 7%;
  width: 53%;
}

.closing-copy h2 {
  font-size: clamp(68px, 8.5vw, 145px);
  text-shadow: 0 3px 20px var(--navy);
}

.closing-copy > p:not(.eyebrow) {
  max-width: 820px;
  margin-top: 34px;
  font-size: clamp(22px, 2vw, 35px);
  line-height: 1.4;
}

.closing-copy strong { color: var(--yellow); }

.final-question {
  width: fit-content;
  margin-top: 40px;
  padding: 18px 24px;
  border: 2px solid var(--cyan);
  border-radius: 12px;
  background: rgb(6 27 53 / 75%);
  color: var(--cyan);
  font-size: clamp(20px, 1.8vw, 31px);
  font-weight: 900;
}

.sources-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-top: 48px;
}

.sources-grid a {
  padding: 22px 25px;
  border: 1px solid rgb(255 255 255 / 14%);
  border-radius: 14px;
  background: rgb(255 255 255 / 5%);
  color: var(--cream);
  text-decoration: none;
  font-size: clamp(17px, 1.35vw, 23px);
  font-weight: 900;
}

.sources-grid a:hover { border-color: var(--cyan); }

.sources-grid span {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: .8em;
  font-weight: 500;
}

.backup-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 60px;
}

.backup-cards article {
  min-height: 360px;
  padding: 34px;
  border-top: 7px solid var(--cyan);
  border-radius: 20px;
  background: rgb(255 255 255 / 6%);
}

.backup-cards article:nth-child(2) { border-color: var(--coral); }
.backup-cards article:nth-child(3) { border-color: var(--yellow); }
.backup-cards b { font-size: clamp(24px, 2vw, 34px); }
.backup-cards p { margin-top: 28px; color: var(--muted); font-size: clamp(18px, 1.5vw, 25px); line-height: 1.45; }

.slide.is-filtered {
  display: none !important;
}

.optional-slide::before {
  content: attr(data-track-label);
  position: absolute;
  top: 18px;
  left: 50%;
  z-index: 4;
  padding: 6px 12px;
  transform: translateX(-50%);
  border: 1px solid rgb(255 198 75 / 35%);
  border-radius: 999px;
  background: rgb(1 16 34 / 75%);
  color: var(--yellow);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.training-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(12px, 1.5vw, 22px);
  min-height: 0;
  align-items: stretch;
}

.training-grid .training-card {
  padding: clamp(18px, 1.8vw, 28px);
}

.training-grid .training-card .act {
  width: 44px;
  height: 44px;
  margin-bottom: 18px;
  font-size: 24px;
}

.training-grid .training-card:nth-child(4) .act {
  background: var(--cream);
}

.training-grid .training-card h3 {
  margin-bottom: 12px;
  font-size: clamp(22px, 1.7vw, 30px);
}

.training-grid .training-card p {
  font-size: clamp(16px, 1.25vw, 22px);
}

.training-grid .training-card small {
  margin-top: 16px;
  font-size: clamp(13px, .95vw, 17px);
}

.matrix-strip {
  display: flex;
  gap: 14px;
  margin: 22px auto 0;
  flex-wrap: wrap;
  justify-content: center;
}

.matrix-strip span {
  padding: 9px 16px;
  border-radius: 9px;
  background: rgb(255 255 255 / 7%);
  color: var(--cyan);
  font-family: Georgia, serif;
  font-size: clamp(17px, 1.25vw, 22px);
}

.attention-matrix {
  display: grid;
  width: min(720px, 78vw);
  gap: 8px;
  margin: 40px auto 0;
  padding: clamp(20px, 2.3vw, 34px);
  border: 2px solid rgb(45 185 218 / 45%);
  border-radius: 24px;
  background: rgb(1 16 34 / 55%);
  box-shadow: var(--shadow);
}

.matrix-labels,
.matrix-row {
  display: grid;
  grid-template-columns: 72px repeat(4, 1fr);
  gap: 8px;
  align-items: center;
}

.matrix-labels {
  padding-left: 80px;
  grid-template-columns: repeat(4, 1fr);
  color: var(--muted);
  text-align: center;
  font-weight: 900;
}

.matrix-row b {
  color: var(--cream);
  text-align: center;
  font-size: clamp(18px, 1.4vw, 25px);
}

.matrix-row i {
  display: grid;
  min-height: 54px;
  place-items: center;
  border-radius: 10px;
  background: rgb(255 255 255 / 5%);
  color: var(--muted);
  font-style: normal;
  font-weight: 900;
}

.matrix-row i.hot {
  background: var(--cyan);
  color: var(--ink);
}

.two-insights {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  max-width: 970px;
  margin: 24px auto 0;
}

.two-insights p {
  padding: 15px 18px;
  border-left: 4px solid var(--yellow);
  background: rgb(255 198 75 / 7%);
  color: var(--muted);
  font-size: clamp(15px, 1.15vw, 20px);
  line-height: 1.35;
}

.two-insights strong {
  color: var(--cream);
}

.definition-strip {
  max-width: 1000px;
  margin: 24px auto 0 !important;
  padding: 16px 24px;
  border: 2px solid var(--yellow);
  border-radius: 14px;
  background: rgb(255 198 75 / 8%);
  color: var(--yellow);
  text-align: center;
  font-family: Georgia, serif;
  font-size: clamp(24px, 2.3vw, 40px);
}

.proof-puzzle {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(280px, .75fr);
  gap: clamp(24px, 4vw, 60px);
  margin-top: 30px;
  align-items: center;
}

.proof-puzzle .proof-lines p {
  margin: 7px 0;
  font-size: clamp(21px, 1.75vw, 31px);
}

.commit-card {
  padding: clamp(28px, 3vw, 44px);
  border: 4px solid var(--yellow);
  transform: rotate(1deg);
  border-radius: 20px;
  background: var(--coral);
  color: var(--ink);
  box-shadow: var(--shadow);
}

.commit-card span {
  font-size: 14px;
  font-weight: 1000;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.commit-card p {
  margin-top: 18px;
  font-size: clamp(25px, 2.2vw, 38px);
  font-weight: 900;
  line-height: 1.15;
}

.commit-card small {
  display: block;
  margin-top: 24px;
  font-size: clamp(15px, 1.15vw, 20px);
  line-height: 1.35;
}

.fluency-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  max-width: 1120px;
  margin: 38px auto 0;
}

.fluency-card {
  min-height: 205px;
  padding: 26px 30px;
  border-top: 6px solid var(--coral);
  border-radius: 18px;
  background: rgb(255 255 255 / 6%);
}

.fluency-card:nth-child(2) {
  border-color: var(--cyan);
}

.fluency-card > span {
  color: var(--coral);
  font-size: 13px;
  font-weight: 1000;
  letter-spacing: .13em;
}

.fluency-card:nth-child(2) > span {
  color: var(--cyan);
}

.fluency-card h3 {
  margin: 15px 0 12px;
  font-size: clamp(23px, 1.8vw, 31px);
}

.fluency-card p {
  color: var(--muted);
  font-size: clamp(16px, 1.25vw, 21px);
  line-height: 1.38;
}

.evidence-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 16px;
}

.evidence-pair span {
  padding: 13px 16px;
  border-left: 4px solid var(--cyan);
  border-radius: 9px;
  background: rgb(45 185 218 / 8%);
  color: var(--muted);
  font-size: clamp(13px, .95vw, 17px);
  line-height: 1.3;
}

.evidence-pair span:nth-child(2) {
  border-color: var(--yellow);
  background: rgb(255 198 75 / 7%);
}

.evidence-pair b {
  color: var(--cream);
}

.derivation-card {
  max-width: 970px;
  margin: 42px auto 0;
  padding: 28px 34px;
  border: 2px solid var(--cyan);
  border-radius: 22px;
  background: rgb(45 185 218 / 7%);
  text-align: center;
}

.derivation-card p {
  margin: 8px 0;
  font-family: Georgia, serif;
  font-size: clamp(29px, 2.9vw, 49px);
}

.derivation-card p:last-child {
  color: var(--yellow);
  font-weight: 900;
}

.euler-explain-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  max-width: 970px;
  margin: 26px auto 0;
}

.euler-explain-grid article {
  padding: 22px 26px;
  border-radius: 16px;
  background: rgb(255 255 255 / 6%);
}

.euler-explain-grid span {
  color: var(--cyan);
  font-size: 13px;
  font-weight: 1000;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.euler-explain-grid strong {
  display: block;
  margin: 8px 0;
  color: var(--yellow);
  font-size: clamp(25px, 2vw, 34px);
}

.euler-explain-grid p {
  color: var(--muted);
  font-size: clamp(17px, 1.25vw, 21px);
}

.prompt-contrast {
  display: grid;
  grid-template-columns: .65fr 1.35fr;
  gap: clamp(24px, 3vw, 46px);
  margin-top: 50px;
  align-items: stretch;
}

.bad-prompt,
.good-prompt {
  padding: clamp(26px, 3vw, 42px);
  border-radius: 22px;
}

.bad-prompt {
  border: 2px solid var(--coral);
  background: rgb(255 101 77 / 8%);
}

.good-prompt {
  border: 2px solid var(--cyan);
  background: rgb(45 185 218 / 8%);
}

.bad-prompt > span,
.good-prompt > span {
  font-size: 13px;
  font-weight: 1000;
  letter-spacing: .13em;
}

.bad-prompt > span { color: var(--coral); }
.good-prompt > span { color: var(--cyan); }

.bad-prompt p,
.good-prompt p {
  margin-top: 20px;
  font-size: clamp(22px, 1.9vw, 32px);
  font-weight: 800;
  line-height: 1.35;
}

.bad-prompt small {
  display: block;
  margin-top: 24px;
  color: var(--muted);
  font-size: clamp(15px, 1.1vw, 19px);
  line-height: 1.4;
}

.checklist-grid,
.school-rules {
  display: grid;
  gap: 13px;
  margin: 35px auto 0;
  padding: 0;
  list-style: none;
}

.checklist-grid {
  grid-template-columns: 1fr 1fr;
  max-width: 1180px;
}

.checklist-grid li,
.school-rules li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 16px;
  padding: 18px 20px;
  align-items: center;
  border-radius: 14px;
  background: rgb(255 255 255 / 6%);
}

.checklist-grid li:last-child {
  grid-column: 1 / -1;
}

.checklist-grid li b {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 50%;
  background: var(--coral);
  color: var(--ink);
}

.checklist-grid li:nth-child(even) b { background: var(--cyan); }
.checklist-grid li:last-child b { background: var(--yellow); }

.checklist-grid li span {
  font-size: clamp(18px, 1.45vw, 25px);
  line-height: 1.3;
}

.transfer-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 50px;
}

.transfer-grid span {
  min-height: 145px;
  padding: 24px;
  border-top: 5px solid var(--cyan);
  border-radius: 16px;
  background: rgb(255 255 255 / 6%);
  font-size: clamp(18px, 1.4vw, 24px);
  line-height: 1.35;
}

.transfer-grid span:nth-child(3n+2) { border-color: var(--coral); }
.transfer-grid span:nth-child(3n) { border-color: var(--yellow); }
.transfer-grid b { color: var(--yellow); }

.attempt-card {
  display: grid;
  grid-template-columns: minmax(210px, .45fr) 1.55fr;
  gap: 32px;
  margin-top: 42px;
  align-items: center;
}

.attempt-timer {
  display: grid;
  min-height: 255px;
  place-items: center;
  border: 5px solid var(--yellow);
  border-radius: 50%;
  background: rgb(255 198 75 / 8%);
  color: var(--yellow);
  font: 900 clamp(45px, 5vw, 82px) "SFMono-Regular", Consolas, monospace;
  box-shadow: var(--shadow);
}

.attempt-card ol {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.attempt-card li {
  display: grid;
  grid-template-columns: minmax(180px, .35fr) 1fr;
  gap: 18px;
  padding: 19px 22px;
  border-radius: 14px;
  background: rgb(255 255 255 / 6%);
}

.attempt-card li b {
  color: var(--cyan);
  font-size: clamp(19px, 1.5vw, 26px);
}

.attempt-card li span {
  color: var(--muted);
  font-size: clamp(16px, 1.25vw, 21px);
  line-height: 1.35;
}

.school-rules {
  grid-template-columns: 1fr 1fr;
  max-width: 1240px;
  margin-top: 28px;
}

.school-rules li {
  grid-template-columns: 1fr;
  gap: 6px;
  padding: 16px 20px;
  border-left: 5px solid var(--cyan);
}

.school-rules li:nth-child(even) { border-color: var(--coral); }
.school-rules li:last-child { border-color: var(--yellow); }

.school-rules b {
  font-size: clamp(18px, 1.35vw, 23px);
}

.school-rules span {
  color: var(--muted);
  font-size: clamp(14px, 1.05vw, 18px);
  line-height: 1.3;
}

.fermat-definitions {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-top: 50px;
}

.fermat-definitions article {
  min-height: 300px;
  padding: 28px;
  border-top: 6px solid var(--cyan);
  border-radius: 18px;
  background: rgb(255 255 255 / 6%);
}

.fermat-definitions article:nth-child(2) { border-color: var(--yellow); }
.fermat-definitions article:nth-child(3) { border-color: var(--coral); }

.fermat-definitions span {
  color: var(--cyan);
  font-size: 12px;
  font-weight: 1000;
  letter-spacing: .11em;
}

.fermat-definitions article:nth-child(2) span { color: var(--yellow); }
.fermat-definitions article:nth-child(3) span { color: var(--coral); }

.fermat-definitions b {
  display: block;
  margin: 25px 0;
  color: var(--cream);
  font-family: Georgia, serif;
  font-size: clamp(22px, 1.8vw, 31px);
  line-height: 1.3;
}

.fermat-definitions p {
  color: var(--muted);
  font-size: clamp(16px, 1.25vw, 21px);
  line-height: 1.4;
}

.resource-slide {
  display: grid;
  grid-template-columns: minmax(260px, .65fr) 1.35fr;
  gap: clamp(35px, 5vw, 72px);
  max-width: 1180px;
  margin: 45px auto 0;
  align-items: center;
}

.qr-frame {
  padding: 20px;
  border-radius: 22px;
  background: white;
  box-shadow: var(--shadow);
}

.qr-frame img {
  display: block;
  width: 100%;
  aspect-ratio: 1;
}

.short-url {
  overflow-wrap: anywhere;
  color: var(--yellow);
  font-size: clamp(25px, 2.3vw, 40px);
  font-weight: 900;
  line-height: 1.2;
}

.resource-rules {
  display: grid;
  gap: 15px;
  margin-top: 30px;
}

.resource-rules span {
  padding: 16px 19px;
  border-left: 5px solid var(--cyan);
  border-radius: 10px;
  background: rgb(255 255 255 / 6%);
  color: var(--muted);
  font-size: clamp(16px, 1.25vw, 21px);
  line-height: 1.35;
}

.resource-rules span:nth-child(2) {
  border-color: var(--coral);
}

.resource-rules b {
  color: var(--cream);
}

.track-control {
  display: flex;
  gap: 7px;
  padding: 4px 7px;
  align-items: center;
  border: 1px solid rgb(255 255 255 / 15%);
  border-radius: 8px;
  background: rgb(1 16 34 / 75%);
  color: var(--muted);
  font-size: 11px;
}

.track-control select {
  border: 0;
  background: transparent;
  color: var(--cream);
  font: inherit;
  font-weight: 800;
}

.deck.is-overview .slide.is-filtered {
  display: none !important;
}

.fragment {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 260ms ease, transform 260ms ease;
}

.fragment.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.deck-controls {
  position: fixed;
  right: 28px;
  bottom: 22px;
  left: 28px;
  z-index: 20;
  display: grid;
  grid-template-columns: 42px 1fr auto 42px;
  gap: 14px;
  align-items: center;
  opacity: .42;
  transition: opacity 160ms ease;
}

.deck-controls:hover, .deck-controls:focus-within { opacity: 1; }

.deck-controls button, .presenter-tools button {
  border: 1px solid rgb(255 255 255 / 16%);
  border-radius: 10px;
  background: rgb(1 16 34 / 75%);
  color: var(--cream);
  cursor: pointer;
}

.deck-controls button {
  width: 42px;
  height: 42px;
  font-size: 22px;
}

.progress-track {
  height: 5px;
  overflow: hidden;
  border-radius: 5px;
  background: rgb(255 255 255 / 16%);
}

.progress-track i {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: var(--coral);
  transition: width 220ms ease;
}

.slide-counter {
  min-width: 66px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.presenter-tools {
  position: fixed;
  top: 16px;
  right: 18px;
  z-index: 20;
  display: flex;
  gap: 8px;
  opacity: .12;
  transition: opacity 160ms ease;
}

.presenter-tools:hover, .presenter-tools:focus-within { opacity: 1; }

.presenter-tools > span {
  padding: 7px 10px;
  border-radius: 8px;
  background: rgb(1 16 34 / 75%);
  color: var(--muted);
  font: 13px "SFMono-Regular", Consolas, monospace;
}

.presenter-tools button { padding: 7px 10px; font-size: 12px; }

kbd {
  margin-left: 4px;
  padding: 1px 5px;
  border: 1px solid rgb(255 255 255 / 22%);
  border-radius: 4px;
  color: var(--muted);
  font-size: 10px;
}

.speaker-panel {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 30;
  display: grid;
  width: min(520px, 42vw);
  grid-template-rows: auto 1fr auto;
  transform: translateX(105%);
  border-left: 1px solid rgb(255 255 255 / 18%);
  background: rgb(1 16 34 / 97%);
  box-shadow: -20px 0 60px rgb(0 0 0 / 30%);
  transition: transform 230ms ease;
}

.speaker-panel.is-open { transform: translateX(0); }

.speaker-panel__head, .speaker-panel__foot {
  display: flex;
  padding: 18px 22px;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgb(255 255 255 / 12%);
}

.speaker-panel__head button {
  border: 0;
  background: transparent;
  color: var(--cream);
  cursor: pointer;
  font-size: 30px;
}

.speaker-panel__body {
  padding: 26px;
  overflow: auto;
  color: var(--cream);
  font-size: 19px;
  line-height: 1.55;
}

.speaker-panel__body strong { color: var(--yellow); }

.speaker-panel__foot {
  border-top: 1px solid rgb(255 255 255 / 12%);
  border-bottom: 0;
  color: var(--muted);
  font-size: 13px;
}

.speaker-panel__foot b { color: var(--cream); }

.deck.is-overview {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  padding: 24px;
  overflow: auto;
}

.deck.is-overview .slide {
  position: relative;
  inset: auto;
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  padding: 18px;
  transform: none;
  border: 2px solid rgb(255 255 255 / 12%);
  border-radius: 12px;
  cursor: pointer;
  overflow: hidden;
  animation: none;
}

.deck.is-overview .slide.is-active { border-color: var(--yellow); }
.deck.is-overview .slide > *:not(.slide-bg):not(.image-scrim):not(.notes) { opacity: .15; }

.deck.is-overview .slide::after {
  content: attr(data-title);
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgb(6 27 53 / 55%);
  color: var(--cream);
  text-align: center;
  font-size: 20px;
  font-weight: 900;
}

.deck.is-overview .slide-bg { display: block; }
.deck.is-overview + .deck-controls { display: none; }

.notes { display: none; }

noscript {
  position: fixed;
  inset: 20px;
  z-index: 99;
  padding: 20px;
  background: var(--coral);
  color: var(--ink);
}

@media (max-aspect-ratio: 4/3) {
  .slide { padding-right: 5vw; padding-left: 5vw; }
  .poll-grid, .reason-grid, .idea-axis { gap: 14px; }
  .poll-card, .reason, .axis-card { padding: 22px; }
}

@media (max-width: 900px) {
  .slide {
    padding: 46px 30px 72px;
    overflow-y: auto;
  }
  .slide h1 { font-size: clamp(58px, 16vw, 100px); }
  .slide h2 { font-size: clamp(44px, 10vw, 74px); }
  .poll-grid, .reason-grid, .idea-axis, .backup-cards, .formula-legend,
  .learning-loop, .training-timeline, .training-grid, .agent-loop,
  .fluency-grid, .transfer-grid, .fermat-definitions, .school-rules,
  .checklist-grid, .two-insights, .euler-explain-grid {
    grid-template-columns: 1fr;
  }
  .two-col, .two-col--wide, .proof-split, .bad-proof, .euler-grid,
  .gauss-stage, .rules-list, .sources-grid, .proof-puzzle,
  .prompt-contrast, .attempt-card, .resource-slide {
    grid-template-columns: 1fr;
  }
  .checklist-grid li:last-child { grid-column: auto; }
  .attempt-timer { min-height: 220px; border-radius: 28px; }
  .attempt-card li { grid-template-columns: 1fr; }
  .attention-matrix { width: 100%; padding: 16px; }
  .matrix-labels, .matrix-row { grid-template-columns: 46px repeat(4, 1fr); }
  .matrix-labels { padding-left: 54px; grid-template-columns: repeat(4, 1fr); }
  .matrix-row i { min-height: 42px; }
  .resource-slide { max-width: 540px; }
  .qr-frame { width: min(320px, 80vw); margin: 0 auto; }
  #dziewiec-dziewiec.is-active,
  #dowod-jeden-rowna-sie-dwa.is-active,
  #idee.is-active,
  #codex.is-active,
  #jak-sie-uczyc.is-active,
  #fermat-zabawa.is-active,
  #trening.is-active {
    display: block;
  }
  .proof-takeaway,
  .bad-proof-takeaway {
    margin-top: 28px !important;
  }
  .codex-audit {
    grid-template-columns: 1fr;
    margin-top: 26px;
  }
  .codex-audit__flow {
    grid-template-columns: 1fr;
  }
  .codex-audit__flow > i {
    display: none;
  }
  .rectangle-idea-layout,
  .codex-run-grid,
  .tutor-case,
  .fermat-lab,
  .fermat-conclusion {
    grid-template-columns: 1fr;
  }
  .fermat-rule-strip { grid-template-columns: 1fr 1fr; }
  .fermat-workbench { margin-top: 24px; }
  .codex-candidates {
    grid-template-columns: 1fr;
  }
  .chessboard {
    width: min(78vw, 330px);
  }
  .case-principles {
    margin-top: 26px;
  }
  .codex-terminal,
  .learning-in-practice {
    margin-top: 24px;
  }
  .timeline-arrow, .loop-arrow, .learning-step::after { display: none; }
  .bottom-line, .source-note, .loop-return { position: static; margin-top: 28px !important; }
  .image-copy, .closing-copy, .title-lockup { position: relative; top: auto; left: auto; width: 92%; }
  .image-scrim, .image-scrim--left { background: rgb(6 27 53 / 78%); }
  .speaker-panel { width: 92vw; }
  .presenter-tools { display: none; }
  .deck-language { display: none; }
  .deck-copyright { display: none; }
}

@media print {
  html, body { overflow: visible; background: white; }
  .deck { display: block; }
  .slide {
    position: relative;
    display: block !important;
    width: 297mm;
    height: 167mm;
    break-after: page;
  }
  .fragment { opacity: 1 !important; transform: none !important; }
  .deck-controls, .presenter-tools, .speaker-panel, .appendix, .slide.is-filtered { display: none !important; }
}

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