@font-face{font-family:'Inter Tight Fallback';src:local('Arial');ascent-override:96.88%;descent-override:24.15%;line-gap-override:0%;size-adjust:100%}

:root,
[data-theme="light"] {
  --bg: #f4efe4;
  --panel: rgba(248, 244, 235, 0.88);
  --panel-solid: #f7f3ea;
  --panel-hi: rgba(238, 232, 219, 0.94);
  --ink: #17191c;
  --ink-md: #3e454e;
  --ink-pt: #525b67;
  --ink-lo: #6c7480;
  --line: rgba(23, 25, 28, 0.16);
  --line-strong: rgba(23, 25, 28, 0.30);
  --line-lo: rgba(23, 25, 28, 0.09);
  --accent: #1d3c96;
  --accent-strong: #172554;
  --accent-soft: rgba(29, 60, 150, 0.08);
  --selection-bg: #dbeafe;
  --selection-ink: #0f172a;

  --bg-header: rgba(244, 239, 228, 0.94);
  --bg-mobile-menu: #f7f3ea;
  --bg-scrim: linear-gradient(180deg, rgba(244, 239, 228, 0.88) 0%, rgba(244, 239, 228, 0.82) 50%, rgba(244, 239, 228, 0.91) 100%);
  --bg-sources: #ebe4d5;
  --dialog-bg: #f7f3ea;
  --dialog-backdrop: rgba(17, 21, 25, 0.70);

  --font-text: 'Inter Tight', 'Inter Tight Fallback', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-display: 'Newsreader', 'Georgia', 'Times New Roman', serif;
  --fs-ui: 0.9rem;
  --fs-meta: 0.75rem;
}

[data-theme="dark"] {
  --bg: #080c12;
  --panel: rgba(13, 18, 26, 0.86);
  --panel-solid: #101620;
  --panel-hi: rgba(22, 30, 42, 0.92);
  --ink: #f4f0e6;
  --ink-md: #cfd4dd;
  --ink-pt: #9eb0ca;
  --ink-lo: #8590a0;
  --line: rgba(244, 240, 230, 0.16);
  --line-strong: rgba(244, 240, 230, 0.30);
  --line-lo: rgba(244, 240, 230, 0.09);
  --accent: #8fb1ff;
  --accent-strong: #2d4ea3;
  --accent-soft: rgba(143, 177, 255, 0.10);
  --selection-bg: #8fb1ff;
  --selection-ink: #090d14;

  --bg-header: rgba(8, 12, 18, 0.92);
  --bg-mobile-menu: #101620;
  --bg-scrim: linear-gradient(180deg, rgba(8, 12, 18, 0.82) 0%, rgba(8, 12, 18, 0.72) 50%, rgba(8, 12, 18, 0.86) 100%);
  --bg-sources: #0a0f16;
  --dialog-bg: #101620;
  --dialog-backdrop: rgba(0, 0, 0, 0.86);
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background: var(--bg);
  color: var(--ink);
}

body {
  font-family: var(--font-text);
  font-weight: 400;
  color: var(--ink);
  background: var(--bg);
  overflow-x: hidden;
  line-height: 1.55;
  transition: background-color 0.25s ease, color 0.25s ease;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-underline-offset: 0.2em;
}

a:hover {
  color: var(--accent);
}

button, a {
  -webkit-tap-highlight-color: transparent;
}

button {
  font: inherit;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

::selection {
  background: var(--selection-bg);
  color: var(--selection-ink);
}

/* Inline Edit Mode Indicator */
body.is-editing [data-editable] {
  outline: 1px dashed var(--accent);
  outline-offset: 4px;
  border-radius: 2px;
  cursor: text;
  transition: background-color 0.15s ease;
}

body.is-editing [data-editable]:focus {
  outline: 2px solid var(--accent);
  background: var(--accent-soft);
}

/* ==========================================================================
   LAYERED HISTORICAL BACKGROUNDS
   ========================================================================== */
.bg {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0;
  will-change: opacity;
}

.bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: sepia(0.18) contrast(0.95);
}

.bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--bg-scrim);
  transition: background 0.25s ease;
}

.bg--storm {
  opacity: 1;
}

#report {
  position: relative;
  z-index: 5;
}

/* ==========================================================================
   TYPOGRAPHY & SMALLER PORTUGUESE TRANSLATION LAYER
   ========================================================================== */
.t-ui {
  font-size: var(--fs-ui);
  line-height: 1.4;
  font-weight: 500;
}

.t-meta, .mono {
  font-family: Menlo, Consolas, 'Liberation Mono', monospace;
}

.t-meta {
  font-size: var(--fs-meta);
  line-height: 1.4;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.t-display-serif {
  font-family: var(--font-display);
  font-weight: 400;
  font-optical-sizing: auto;
  line-height: 1.04;
  letter-spacing: -0.025em;
}

/* Smaller Portuguese translation layer */
.t-pt {
  display: block;
  margin-top: 6px;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 0.88rem;
  line-height: 1.45;
  color: var(--ink-pt);
  font-weight: 400;
}

.t-pt--kicker {
  font-family: var(--font-text);
  font-style: normal;
  font-size: 0.76rem;
  margin-top: 2px;
  color: var(--ink-lo);
}

.t-pt--display {
  font-size: clamp(1rem, 1.45vw, 1.24rem);
  margin-top: 6px;
  margin-bottom: 14px;
}

.t-pt--sublead {
  font-size: 0.95rem;
  margin-top: 6px;
  margin-bottom: 18px;
}

.t-pt--claim {
  font-size: clamp(0.95rem, 1.3vw, 1.12rem);
  margin-top: 8px;
  max-width: 68ch;
}

.translation {
  font-family: Menlo, Consolas, monospace;
  font-size: 0.78em;
  color: var(--ink-lo);
  white-space: nowrap;
  font-style: normal;
}

/* ==========================================================================
   HEADER & NAVIGATION BAR
   ========================================================================== */
.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 60;
  padding: 10px 16px;
  background: var(--ink);
  color: var(--bg);
  transform: translateY(-180%);
  transition: transform 0.2s;
  text-decoration: none;
  font-weight: 600;
}

.skip-link:focus {
  transform: translateY(0);
}

.reading-progress {
  position: fixed;
  z-index: 50;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--line-lo);
  pointer-events: none;
}

.reading-progress span {
  display: block;
  height: 100%;
  width: 100%;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
}

.header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--bg-header);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.header__bar {
  max-width: 1440px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  padding: 10px 3vw;
}

.header__brand {
  text-decoration: none;
  flex-shrink: 0;
}

.header__wordmark {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 500;
  letter-spacing: -0.015em;
  white-space: nowrap;
}

.header__nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  flex-wrap: nowrap;
}

.header__nav a {
  text-decoration: none;
  color: var(--ink-md);
  font-size: 0.78rem;
  padding: 6px 9px;
  border-radius: 4px;
  white-space: nowrap;
  transition: color 0.15s, background 0.15s;
}

.header__nav a:hover,
.header__nav a.is-current {
  color: var(--accent);
  background: var(--accent-soft);
  font-weight: 600;
}

.header__right-group {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  flex-shrink: 0;
}

.action-btn,
.theme-toggle,
.contents-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--panel-hi);
  border: 1px solid var(--line);
  color: var(--ink);
  padding: 5px 11px;
  min-height: 34px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
  transition: border-color 0.15s, color 0.15s, background 0.15s;
}

.action-btn:hover,
.theme-toggle:hover,
.contents-toggle:hover,
.action-btn[aria-pressed="true"] {
  border-color: var(--accent);
  color: var(--accent);
}

.action-btn[aria-pressed="true"] {
  background: var(--accent-soft);
}

.contents-toggle {
  display: none;
}

.mobile-contents {
  position: absolute;
  top: 100%;
  right: 3vw;
  width: min(340px, 94vw);
  padding: 14px 18px;
  background: var(--bg-mobile-menu);
  border: 1px solid var(--line);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.16);
  border-radius: 0 0 6px 6px;
}

.mobile-contents a {
  display: flex;
  align-items: center;
  min-height: 40px;
  text-decoration: none;
  font-size: 0.88rem;
  border-bottom: 1px solid var(--line-lo);
}

.mobile-contents a:last-of-type {
  border-bottom: 0;
}

.mobile-theme-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 40px;
  background: var(--panel-hi);
  border: 1px solid var(--line);
  color: var(--ink);
  padding: 8px 12px;
  cursor: pointer;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 10px;
  border-radius: 4px;
}

/* ==========================================================================
   FULL-VIEWPORT SLIDE CANVASES (01 / 07 TO 07 / 07)
   ========================================================================== */
.slide-canvas {
  position: relative;
  min-height: calc(100dvh - 55px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 44px 4vw;
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}

.slide-frame {
  width: min(1280px, 100%);
  min-height: min(740px, 84dvh);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  z-index: 3;
}

.slide-kicker,
.source-tag {
  color: var(--accent);
  font-weight: 700;
  letter-spacing: 0.06em;
}

.slide-footer-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 20px;
  margin-top: 28px;
  border-top: 1px solid var(--line);
  color: var(--ink-lo);
}

.slide-num {
  font-weight: 700;
  color: var(--ink-md);
}

.slide-bottom-claim {
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.slide-bottom-claim--compact {
  margin-top: 18px;
  padding-top: 14px;
}

.claim-blue {
  font-size: clamp(2rem, 3.8vw, 3.35rem);
  line-height: 1.08;
  color: var(--accent);
  margin-top: 6px;
}

/* ==========================================================================
   SLIDE 01 · HERO WITH CLASSICAL DRAPERY & OVAL PORTRAIT MEDALLION
   ========================================================================== */
.slide-canvas--hero {
  padding-left: 8vw;
}

.hero-drapery {
  position: absolute;
  left: -2vw;
  top: -4vh;
  bottom: -4vh;
  width: min(15vw, 210px);
  z-index: 2;
  pointer-events: none;
  opacity: 0.92;
  animation: drapery-sway 9s ease-in-out infinite alternate;
  transform-origin: top left;
}

.hero-drapery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: right center;
}

@keyframes drapery-sway {
  0% { transform: translateX(0) rotate(0deg); }
  100% { transform: translateX(6px) rotate(0.4deg); }
}

.s1-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: center;
  my: auto;
}

.s1-title {
  font-size: clamp(3.6rem, 7.2vw, 6.4rem);
  line-height: 0.94;
  margin-top: 14px;
  color: var(--ink);
}

.s1-subtitle {
  font-size: clamp(1.9rem, 3.2vw, 2.85rem);
  color: var(--ink);
  margin-top: 18px;
}

.s1-lead {
  font-size: clamp(1.45rem, 2.3vw, 2.05rem);
  line-height: 1.18;
  color: var(--ink-md);
  margin-top: 18px;
}

.s1-thread {
  margin-top: 20px;
  padding: 14px 18px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 4px;
  max-width: 56ch;
}

.s1-thread__en {
  font-size: 0.98rem;
  line-height: 1.5;
  color: var(--ink);
}

.s1-byline {
  margin-top: 26px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.s1-byline strong {
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--ink);
}

.s1-byline span {
  color: var(--accent);
  font-weight: 600;
}

.s1-portrait-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
}

.oval-medallion {
  width: min(460px, 42vw);
  aspect-ratio: 1365 / 1615;
  border-radius: 50%;
  padding: 8px;
  background: #232629;
  border: 2px solid rgba(23, 25, 28, 0.45);
  box-shadow: 0 28px 60px rgba(0, 0, 0, 0.22);
  overflow: hidden;
  animation: portrait-float 7s ease-in-out infinite alternate;
}

.oval-medallion img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

@keyframes portrait-float {
  0% { transform: translateY(0); }
  100% { transform: translateY(-8px); }
}

/* ==========================================================================
   SLIDE 02 · LIBERTY AND ITS CONDITIONS
   ========================================================================== */
.s2-grid {
  display: grid;
  grid-template-columns: 1fr 1.08fr;
  gap: 56px;
  align-items: start;
  margin-top: 18px;
}

.s2-display {
  font-size: clamp(3.8rem, 7.5vw, 6.6rem);
  line-height: 0.92;
  color: var(--ink);
}

.s2-block {
  margin-top: 28px;
}

.s2-statement {
  font-size: clamp(1.65rem, 2.7vw, 2.4rem);
  line-height: 1.18;
  margin-top: 10px;
  color: var(--ink);
}

.s2-note {
  margin-top: 22px;
  padding: 14px 18px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 4px;
  font-size: 0.96rem;
  color: var(--ink-md);
}

.s2-quote {
  margin-top: 12px;
  padding: 24px 28px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 4px;
}

.s2-quote__fr {
  font-size: clamp(1.9rem, 3.3vw, 2.95rem);
  line-height: 1.16;
  color: var(--ink);
}

.s2-quote__footer {
  margin-top: 20px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.trans-en {
  font-size: 1.1rem;
  color: var(--ink-md);
  line-height: 1.45;
}

/* ==========================================================================
   SLIDE 03 · 1824 & RECEPTION THROUGH ADAPTATION
   ========================================================================== */
.s3-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: start;
  margin-top: 18px;
}

.s3-year {
  font-size: clamp(5.5rem, 12vw, 10.5rem);
  line-height: 0.84;
  color: var(--ink);
  letter-spacing: -0.04em;
}

.s3-title {
  font-size: clamp(2.1rem, 3.6vw, 3.2rem);
  line-height: 1.1;
  margin-top: 18px;
  color: var(--ink);
}

.s3-distinctions {
  margin-top: 20px;
  padding: 16px 18px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 4px;
}

.s3-distinctions__en {
  font-size: 0.96rem;
  line-height: 1.5;
  color: var(--ink);
}

.s3-powers {
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: clamp(2.3rem, 4.2vw, 3.7rem);
  line-height: 1.08;
  color: var(--ink);
}

.power-highlight {
  color: var(--accent);
}

.s3-quote {
  margin-top: 22px;
  padding: 16px 20px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 4px;
  font-family: var(--font-display);
  font-size: 1.06rem;
  line-height: 1.48;
}

.s3-quote footer {
  margin-top: 10px;
  padding-top: 8px;
  border-top: 1px solid var(--line-lo);
  font-family: var(--font-text);
}

.s3-quote .trans-en {
  font-size: 0.88rem;
}

/* ==========================================================================
   SLIDE 04 · COMPROMISSO CONSTITUCIONAL (SPLIT IMAGE + INTERACTIVE FOCUS)
   ========================================================================== */
.s4-layout {
  display: grid;
  grid-template-columns: minmax(0, 46%) 1fr;
  gap: 48px;
  align-items: center;
}

.s4-artwork {
  background: var(--panel-solid);
  border: 1px solid var(--line);
  padding: 12px;
  border-radius: 4px;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.08);
}

.s4-artwork__stage {
  position: relative;
  overflow: hidden;
  background: #141619;
}

.s4-artwork__stage img {
  width: 100%;
  height: auto;
  max-height: 68dvh;
  object-fit: cover;
  transition: transform 0.65s cubic-bezier(0.19, 1, 0.22, 1), filter 0.4s ease;
}

/* Interactive composition spotlights */
.painting-hotspot {
  position: absolute;
  border: 2px solid #fbbf24;
  background: rgba(251, 191, 36, 0.12);
  box-shadow: 0 0 0 9999px rgba(8, 10, 14, 0.52);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
  border-radius: 3px;
}

.painting-hotspot span {
  position: absolute;
  top: -26px;
  left: 0;
  background: #111519;
  color: #ffffff;
  font-family: Menlo, Consolas, monospace;
  font-size: 0.68rem;
  padding: 3px 8px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  white-space: nowrap;
  border-radius: 2px;
}

/* Coordinates matching Deodoro (left-centre floor), Prudente (centre desk), and Gallery (upper balcony) */
.painting-hotspot--deodoro {
  left: 14%;
  top: 32%;
  width: 24%;
  height: 36%;
}

.painting-hotspot--prudente {
  left: 42%;
  top: 34%;
  width: 26%;
  height: 28%;
}

.painting-hotspot--gallery {
  left: 16%;
  top: 11%;
  width: 78%;
  height: 16%;
}

.s4-artwork[data-active-spot="deodoro"] .painting-hotspot--deodoro,
.s4-artwork[data-active-spot="prudente"] .painting-hotspot--prudente,
.s4-artwork[data-active-spot="gallery"] .painting-hotspot--gallery {
  opacity: 1;
}

.s4-artwork__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-top: 10px;
  color: var(--ink-lo);
}

.text-link-sm {
  background: var(--panel-hi);
  border: 1px solid var(--line-strong);
  color: var(--accent);
  padding: 4px 10px;
  border-radius: 3px;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s, color 0.15s;
}

.text-link-sm:hover,
.text-link-sm.is-active {
  background: var(--accent);
  color: #ffffff;
  border-color: var(--accent);
}

.s4-title {
  font-size: clamp(2.8rem, 5.2vw, 4.5rem);
  line-height: 0.98;
  margin-top: 10px;
}

.s4-meta {
  font-size: 1.2rem;
  color: var(--ink-md);
  margin-top: 10px;
}

.s4-observations {
  list-style: none;
  padding: 0;
  margin: 22px 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.s4-observations li {
  padding: 10px 14px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 4px;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s, transform 0.2s;
}

.s4-observations li:hover,
.s4-observations li.is-active {
  border-color: var(--accent);
  background: var(--accent-soft);
  transform: translateX(4px);
}

.obs-en {
  font-size: clamp(1.35rem, 2.2vw, 1.85rem);
  line-height: 1.18;
  color: var(--ink);
}

.s4-footer {
  margin-top: 20px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
}

.s4-credit {
  font-size: 0.84rem;
  line-height: 1.45;
  color: var(--ink-lo);
}

/* ==========================================================================
   SLIDE 05 · A JUSTIÇA (1961 / 1962 JUXTAPOSITION)
   ========================================================================== */
.s5-layout {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items: start;
}

.s5-photo-wrap {
  background: var(--panel-solid);
  border: 1px solid var(--line);
  padding: 12px;
  border-radius: 4px;
}

.s5-photo-stage {
  overflow: hidden;
  max-height: 44dvh;
  background: #141619;
}

.s5-photo-stage img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform-origin: 50% 78%;
  transition: transform 0.75s cubic-bezier(0.19, 1, 0.22, 1);
}

.s5-photo-wrap.is-sword-focused .s5-photo-stage img {
  transform: scale(1.65) translateY(-8%);
}

.s5-photo-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-top: 10px;
}

.s5-photo-actions {
  display: flex;
  gap: 8px;
}

.s5-credit {
  font-size: 0.8rem;
  color: var(--ink-lo);
}

.s5-dates {
  margin-top: 22px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.s5-date-row {
  display: grid;
  grid-template-columns: 135px 1fr;
  gap: 20px;
  align-items: baseline;
  padding: 12px 16px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 4px;
}

.s5-year {
  font-size: clamp(2.6rem, 4.5vw, 3.8rem);
  line-height: 0.95;
  color: var(--accent);
  font-weight: 400;
}

.s5-date-en {
  font-size: clamp(1.25rem, 2vw, 1.65rem);
  line-height: 1.22;
  color: var(--ink);
}

.s5-title {
  font-size: clamp(3.2rem, 6vw, 5.2rem);
  line-height: 0.96;
  margin-top: 10px;
}

.s5-meta {
  font-size: 1.22rem;
  line-height: 1.38;
  color: var(--ink-md);
  margin-top: 10px;
}

.s5-juxtaposition {
  margin-top: 28px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.s5-retention {
  margin-top: 22px;
  padding: 16px 18px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 4px;
}

.s5-retention__en {
  font-size: 1.14rem;
  font-weight: 500;
  line-height: 1.38;
  color: var(--ink);
}

/* ==========================================================================
   SLIDE 06 · THE LIMITS OF LEGAL CAPACITY (ART. 6, II & 3-STEP CHRONOLOGY)
   ========================================================================== */
.s6-provision {
  margin-top: 16px;
}

.s6-quote {
  margin-top: 10px;
}

.s6-quote__pt {
  font-size: clamp(2.2rem, 4.4vw, 3.9rem);
  line-height: 1.08;
  color: var(--ink);
}

.s6-quote__footer {
  margin-top: 12px;
}

.s6-timeline {
  margin-top: 28px;
  padding-top: 22px;
  border-top: 2px solid var(--accent);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.s6-step {
  position: relative;
  background: var(--panel);
  border: 1px solid var(--line);
  padding: 18px 20px;
  border-radius: 4px;
}

.s6-step::before {
  content: '';
  position: absolute;
  top: -29px;
  left: 20px;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--accent);
}

.s6-step h3 {
  font-size: clamp(1.45rem, 2.3vw, 2rem);
  line-height: 1.14;
  margin-top: 8px;
  color: var(--ink);
}

.s6-step__detail {
  margin-top: 10px;
  font-size: 0.9rem;
  line-height: 1.48;
  color: var(--ink-md);
}

.s6-subclaim {
  margin-top: 6px;
  font-size: 1.02rem;
  color: var(--ink-md);
}

/* ==========================================================================
   SLIDE 07 · QUESTIONS FOR DISCUSSION (MOONLIT SEA)
   ========================================================================== */
.slide-canvas--nightsea {
  background: #070d17;
  color: #f4f1e9;
}

.nightsea-backdrop {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

.nightsea-backdrop img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.72;
}

.moonlight-shimmer {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 49% 43%, rgba(255, 245, 214, 0.14), transparent 36%),
              linear-gradient(180deg, rgba(6, 11, 20, 0.45) 0%, rgba(6, 11, 20, 0.62) 100%);
  animation: shimmer-pulse 6s ease-in-out infinite alternate;
}

@keyframes shimmer-pulse {
  0% { opacity: 0.82; }
  100% { opacity: 1; }
}

.slide-frame--dark {
  color: #f4f1e9;
}

.slide-frame--dark .slide-kicker,
.slide-frame--dark .source-tag,
.slide-frame--dark .s7-q__num {
  color: #9bb8ff;
}

.slide-frame--dark .t-pt {
  color: #b8c6db;
}

.slide-frame--dark .slide-footer-meta {
  border-top-color: rgba(244, 241, 233, 0.20);
  color: rgba(244, 241, 233, 0.72);
}

.slide-frame--dark .slide-num {
  color: #f4f1e9;
}

.s7-title {
  font-size: clamp(3.2rem, 6vw, 5.2rem);
  line-height: 0.98;
  color: #f4f1e9;
  margin-top: 10px;
}

.s7-tag {
  margin-top: 24px;
}

.s7-questions {
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  max-width: 960px;
}

.s7-q {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 20px;
  align-items: start;
  padding: 20px 24px;
  background: rgba(11, 18, 30, 0.66);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(244, 241, 233, 0.18);
  border-radius: 4px;
}

.s7-q__num {
  font-size: clamp(3.2rem, 5vw, 4.5rem);
  line-height: 0.88;
}

.s7-q h3 {
  font-size: clamp(1.55rem, 2.7vw, 2.3rem);
  line-height: 1.2;
  color: #f4f1e9;
}

.s7-q__elaboration {
  margin-top: 8px;
  font-size: 0.96rem;
  line-height: 1.5;
  color: #d5dce6;
}

/* ==========================================================================
   SOURCES & DOCUMENTARY REGISTER
   ========================================================================== */
.sources {
  position: relative;
  z-index: 5;
  padding: 64px 4vw 88px;
  background: var(--bg-sources);
}

.sources__inner {
  max-width: 1220px;
  margin: 0 auto;
}

.section-heading {
  margin-bottom: 32px;
}

.section-heading h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2rem, 3.5vw, 3rem);
  line-height: 1.08;
}

.method-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  padding: 24px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.method-grid h3 {
  font-family: Menlo, Consolas, monospace;
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent);
  margin-bottom: 8px;
}

.method-grid p {
  color: var(--ink-md);
  font-size: 0.9rem;
  line-height: 1.55;
}

.source-register {
  list-style: none;
  padding: 0;
  margin-top: 24px;
  border-top: 1px solid var(--line);
}

.source-register li {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line-lo);
}

.source-number {
  font-family: Menlo, Consolas, monospace;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 700;
}

.source-register p {
  color: var(--ink-md);
  font-size: 0.92rem;
  line-height: 1.55;
  overflow-wrap: anywhere;
}

.source-register strong {
  color: var(--ink);
}

.source-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 28px;
}

.download-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 42px;
  padding: 10px 18px;
  border: 1px solid var(--line-strong);
  background: var(--panel-solid);
  color: var(--ink);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  border-radius: 4px;
}

.download-link:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.download-link span {
  color: var(--accent);
  font-family: Menlo, Consolas, monospace;
}

.colophon {
  margin-top: 36px;
  padding-top: 20px;
  border-top: 1px solid var(--line-lo);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  color: var(--ink-lo);
  font-size: 0.82rem;
  line-height: 1.55;
}

/* ==========================================================================
   FLOATING SLIDE STEPPER & MODAL IMAGE VIEWER
   ========================================================================== */
.slide-stepper {
  position: fixed;
  bottom: 20px;
  right: 24px;
  z-index: 35;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--panel-solid);
  border: 1px solid var(--line-strong);
  padding: 6px 10px;
  border-radius: 999px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.slide-stepper__btn {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--panel-hi);
  color: var(--ink);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  transition: background 0.15s, color 0.15s;
}

.slide-stepper__btn:hover {
  background: var(--accent);
  color: #ffffff;
  border-color: var(--accent);
}

.slide-stepper__status {
  padding: 0 6px;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--ink);
}

.image-dialog {
  max-width: min(1160px, 94vw);
  max-height: 92vh;
  margin: auto;
  padding: 20px;
  background: var(--dialog-bg);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 4px;
}

.image-dialog::backdrop {
  background: var(--dialog-backdrop);
}

.image-dialog img {
  display: block;
  max-width: 100%;
  max-height: 75vh;
  width: auto;
  height: auto;
  margin: 12px auto;
}

.image-dialog p {
  color: var(--ink-md);
  font-family: Menlo, Consolas, monospace;
  font-size: 0.76rem;
  line-height: 1.55;
  text-align: center;
}

.dialog-close {
  display: block;
  margin-left: auto;
  min-height: 38px;
  padding: 6px 12px;
  background: var(--panel-hi);
  border: 1px solid var(--line);
  color: var(--ink);
  cursor: pointer;
  font-family: Menlo, Consolas, monospace;
  font-size: 0.74rem;
  text-transform: uppercase;
  border-radius: 3px;
}

/* ==========================================================================
   RESPONSIVE BREAKPOINTS & REDUCED MOTION
   ========================================================================== */
@media (max-width: 1120px) {
  .header__nav {
    display: none;
  }
  .contents-toggle {
    display: inline-flex;
  }
}

@media (max-width: 900px) {
  .slide-canvas--hero {
    padding-left: 4vw;
  }
  .hero-drapery {
    display: none;
  }
  .s1-grid,
  .s2-grid,
  .s3-grid,
  .s4-layout,
  .s5-layout,
  .s6-timeline,
  .method-grid,
  .colophon {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .oval-medallion {
    width: min(320px, 75vw);
  }
  .s5-date-row {
    grid-template-columns: 1fr;
    gap: 6px;
  }
  .s6-step::before {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reading-progress { display: none; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

/* Screen mode: hide print-only lecture header */
.print-lecture-header { display: none !important; }

/* ==========================================================================
   PRINT MEDIA QUERY
   Prints the academic lecture header followed by the 7 visual slides,
   bilingual takeaways, quotes, artwork plates, and source register.
   ========================================================================== */
@media print {
  @page {
    size: A4 portrait;
    margin: 16mm 14mm 16mm 14mm;
  }

  *, *::before, *::after {
    box-shadow: none !important;
    text-shadow: none !important;
    backdrop-filter: none !important;
    transition: none !important;
    animation: none !important;
  }

  html, body {
    background: #ffffff !important;
    color: #111111 !important;
    font-size: 9.5pt !important;
    line-height: 1.42 !important;
    overflow: visible !important;
  }

  /* ------------------------------------------------------------------------
     1. HIDE ALL NAVIGATION, BUTTONS, DIALOGS, DRAPERY & BACKGROUNDS
     ------------------------------------------------------------------------ */
  .header,
  .skip-link,
  .reading-progress,
  .contents-toggle,
  .mobile-contents,
  .action-btn,
  .theme-toggle,
  .slide-stepper,
  .text-link-sm,
  .s4-artwork__bar,
  .s5-photo-actions,
  .painting-hotspot,
  .dialog-close,
  .source-actions,
  dialog,
  .image-dialog,
  dialog::backdrop,
  .hero-drapery,
  .nightsea-backdrop,
  .bg {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
    width: 0 !important;
    opacity: 0 !important;
    pointer-events: none !important;
  }

  /* ------------------------------------------------------------------------
     2. DISPLAY AND FORMAT THE ACADEMIC EVENT BANNER (.print-lecture-header)
     ------------------------------------------------------------------------ */
  .print-lecture-header {
    display: block !important;
    visibility: visible !important;
    height: auto !important;
    width: 100% !important;
    opacity: 1 !important;
    padding: 0 0 18pt 0 !important;
    margin: 0 0 24pt 0 !important;
    border-bottom: 1pt solid #333333 !important;
    page-break-after: avoid;
    break-after: avoid;
  }

  .print-lecture-header__top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    border-bottom: 0.75pt solid #cccccc;
    padding-bottom: 6pt;
    margin-bottom: 8pt;
  }

  .print-lecture-header__kicker {
    font-family: Menlo, Consolas, monospace;
    font-size: 8pt;
    font-weight: 700;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    color: #000000;
    margin-bottom: 2pt;
  }

  .print-lecture-header__univ {
    font-size: 9.5pt;
    font-weight: 600;
    color: #111111;
    margin-bottom: 1pt;
  }

  .print-lecture-header__dates {
    font-size: 8pt;
    color: #555555;
  }

  .print-lecture-header__stamp {
    text-align: right;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 3pt;
  }

  .print-lecture-header__badge {
    display: inline-block;
    padding: 2pt 5pt;
    background: #000000;
    color: #ffffff;
    font-family: Menlo, Consolas, monospace;
    font-size: 7pt;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
  }

  .print-lecture-header__session {
    font-family: Menlo, Consolas, monospace;
    font-size: 7.5pt;
    color: #222222;
    font-weight: 600;
  }

  .print-lecture-header__main {
    margin-bottom: 8pt;
  }

  .print-lecture-header__event-title {
    font-family: var(--font-display);
    font-size: 15pt;
    line-height: 1.15;
    font-weight: 600;
    color: #000000;
    letter-spacing: -0.02em;
    margin: 3pt 0;
  }

  .print-lecture-header__topic {
    font-size: 9.5pt;
    color: #333333;
    margin-top: 2pt;
  }

  .print-lecture-header__topic strong {
    font-family: var(--font-display);
    font-size: 11.5pt;
    color: #000000;
  }

  .print-lecture-header__panel {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12pt;
    background: #f7f7f7;
    border: 0.75pt solid #dddddd;
    padding: 6pt 9pt;
    margin-bottom: 8pt;
  }

  .print-lecture-header__column {
    font-size: 8pt;
    line-height: 1.35;
  }

  .print-lecture-header__label {
    display: block;
    font-family: Menlo, Consolas, monospace;
    font-size: 6.5pt;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #555555;
    margin-bottom: 2pt;
  }

  .print-lecture-header__name {
    color: #000000;
    font-size: 8.5pt;
  }

  .print-lecture-header__affil {
    color: #555555;
    font-size: 7.5pt;
  }

  .print-lecture-header__paper {
    padding-top: 6pt;
    border-top: 0.75pt solid #dddddd;
  }

  .print-lecture-header__paper-title {
    font-family: var(--font-display);
    font-size: 12.5pt;
    font-weight: 600;
    color: #000000;
    margin: 2pt 0;
  }

  .print-lecture-header__paper-subtitle {
    font-family: var(--font-display);
    font-style: italic;
    font-size: 9.5pt;
    color: #333333;
  }

  .print-lecture-header__author {
    font-size: 8pt;
    color: #444444;
    margin-top: 2pt;
  }

  /* ------------------------------------------------------------------------
     3. SLIDE SECTIONS, BILINGUAL TEXT & ARTWORK PLATES IN PRINT
     ------------------------------------------------------------------------ */
  #report {
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  .slide-canvas,
  .slide-canvas--nightsea,
  .sources {
    min-height: auto !important;
    padding: 14pt 0 !important;
    background: #ffffff !important;
    color: #111111 !important;
    border-bottom: 0.75pt solid #cccccc !important;
    display: block !important;
    page-break-inside: avoid;
    break-inside: avoid;
  }

  .slide-frame,
  .slide-frame--dark {
    min-height: auto !important;
    color: #111111 !important;
  }

  .s1-grid,
  .s2-grid,
  .s3-grid,
  .s4-layout,
  .s5-layout {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 14pt !important;
    align-items: start !important;
  }

  .s1-grid {
    grid-template-columns: 1fr 130pt !important;
  }

  .oval-medallion {
    width: 115pt !important;
    padding: 3pt !important;
  }

  .s1-title,
  .s2-display,
  .s3-year,
  .s4-title,
  .s5-title,
  .s7-title {
    font-size: 20pt !important;
    line-height: 1.08 !important;
    color: #000000 !important;
  }

  .claim-blue,
  .power-highlight,
  .slide-kicker,
  .source-tag,
  .s5-year,
  .s7-q__num {
    color: #000000 !important;
  }

  .claim-blue {
    font-size: 13pt !important;
    font-weight: 600 !important;
  }

  .t-pt {
    color: #444444 !important;
    font-size: 8pt !important;
  }

  .s6-timeline {
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 10pt !important;
    border-top: 1pt solid #000000 !important;
  }

  .s6-step,
  .s7-q,
  .s2-quote,
  .s3-quote,
  .s4-observations li,
  .s5-date-row,
  .s5-retention,
  .s1-thread,
  .s2-note,
  .s3-distinctions {
    background: #ffffff !important;
    color: #111111 !important;
    border: 0.75pt solid #cccccc !important;
    padding: 6pt 8pt !important;
  }

  .s7-q h3,
  .s7-q__elaboration {
    color: #111111 !important;
  }

  .s4-artwork__stage img,
  .s5-photo-stage img {
    max-height: 165pt !important;
    width: auto !important;
    margin: 0 auto !important;
    object-fit: contain !important;
  }
}
