:root {
  --sl-blue: #33519e;
  --sl-lilac: #b7aed3;
  --sl-coral: #df6556;
  --sl-green: #69bc8c;
  --sl-sage: #aeba8f;
  --sl-yellow: #fbbb00;
  --sl-orange: #bb6918;
  --sl-pink: #eaa0ac;
  --sl-cream: #e3d9ce;
  --sl-paper: #f5f1ec;
  --sl-neutral: #ece8e2;
  --sl-ink: #1e1a16;
  --shadow: 0 8px 24px rgba(30, 26, 22, 0.04);
  --border: 1px solid rgba(30, 26, 22, 0.46);
  --radius: 8px;
  --radius-sm: 6px;
  --watermark-url: url("media/sustain-learn-watermark.png");
}

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

html {
  background: var(--sl-paper);
}

body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  color: var(--sl-ink);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.72), rgba(255,255,255,0.3)),
    radial-gradient(circle at top left, rgba(183, 174, 211, 0.2), transparent 22%),
    radial-gradient(circle at bottom right, rgba(105, 188, 140, 0.12), transparent 18%),
    var(--sl-paper);
}

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

button,
input,
select,
iframe {
  font: inherit;
}

button {
  cursor: pointer;
}

.app-shell {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  align-items: center;
  padding: 0.9rem 1rem;
  background: rgba(245, 241, 236, 0.92);
  border-bottom: var(--border);
  backdrop-filter: blur(14px);
}

.brand-area {
  display: flex;
  gap: 1rem;
  align-items: center;
  min-width: 0;
}

.brand-logo {
  width: 84px;
  height: auto;
  flex: 0 0 auto;
}

.brand-copy {
  min-width: 0;
}

.brand-name,
.course-subtitle,
.eyebrow,
.sidebar-eyebrow {
  margin: 0;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.course-name {
  margin: 0.2rem 0 0;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 700;
  letter-spacing: -0.02em;
  font-size: clamp(1.24rem, 3.6vw, 1.95rem);
  line-height: 1;
}

.course-subtitle {
  margin-top: 0.32rem;
  color: rgba(30, 26, 22, 0.72);
}

.topbar-actions {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  flex-shrink: 0;
}

.step-pill,
.menu-btn,
.nav-btn,
.close-btn,
.menu-item,
.dropzone,
.drag-card,
.hotspot,
.blank-input,
select,
.option-card,
.legend-pill {
  border: var(--border);
}

.step-pill {
  display: none;
  padding: 0.48rem 0.72rem;
  border-radius: 7px;
  background: #fff;
  font-size: 0.84rem;
  font-weight: 700;
  box-shadow: var(--shadow);
}

.menu-btn,
.nav-btn,
.close-btn {
  border-radius: 6px;
  background: #fff;
  color: var(--sl-ink);
  box-shadow: var(--shadow);
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}

.menu-btn,
.close-btn {
  padding: 0.58rem 0.8rem;
  font-weight: 700;
}

.menu-btn:hover,
.nav-btn:hover,
.close-btn:hover {
  transform: translateY(-1px);
}

.main-stage {
  width: min(1160px, 100%);
  margin: 0 auto;
  padding: 1rem 1rem 6.5rem;
  flex: 1;
}

.screen-shell {
  display: block;
}

.screen-card {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background: rgba(255, 255, 255, 0.94);
  border: var(--border);
  border-radius: 8px;
  padding: 1.05rem;
  box-shadow: var(--shadow);
}

.screen-card::after {
  content: "";
  position: absolute;
  right: -2rem;
  bottom: -2rem;
  width: clamp(160px, 30vw, 300px);
  aspect-ratio: 1;
  background-image: var(--watermark-url);
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  opacity: 0.055;
  pointer-events: none;
  z-index: 0;
}

.screen-card > * {
  position: relative;
  z-index: 1;
}

.screen-card h2 {
  margin: 0.15rem 0 0.75rem;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 700;
  letter-spacing: -0.025em;
  font-size: clamp(1.65rem, 4.8vw, 2.7rem);
  line-height: 1;
}

.lede {
  margin: 0 0 1rem;
  font-size: 1rem;
  line-height: 1.5;
}

.hint {
  margin-top: -0.25rem;
  margin-bottom: 1rem;
  color: rgba(30, 26, 22, 0.74);
  font-size: 0.96rem;
}

.content-grid,

img {
  max-width: 100%;
  height: auto;
  image-rendering: auto;
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
  backface-visibility: hidden;
}

.hero-photo,
.media-card,
.image-frame,
.comparison-stage,
.video-wrap {
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
  backface-visibility: hidden;
}

.fade-target.fade-media {
  transform: none;
}

.hero-grid,
.gallery-grid,
.cards-grid,
.mosaic-grid,
.timeline,
.video-layout {
  display: grid;
  gap: clamp(0.95rem, 1.8vw, 1.25rem);
  align-items: start;
}

.panel,
.media-card,
.quote-card,
.timeline-item,
.drag-bank,
.dropzone {
  background: #fff;
  border: var(--border);
  border-radius: var(--radius);
  padding: 0.95rem 1rem;
  box-shadow: var(--shadow);
  min-width: 0;
  overflow: hidden;
}

.panel h3,
.media-card strong,
.quote-card h3,
.dropzone h3,
.drag-bank h3 {
  margin: 0 0 0.5rem;
  font-size: 1.05rem;
}

.panel p,
.media-card figcaption,
.quote-card p,
.timeline-item p,
.drag-bank p,
.dropzone p {
  margin: 0;
  line-height: 1.5;
}

.hero-grid > *,
.content-grid > *,
.split-layout > *,
.two-up > *,
.video-layout > *,
.cards-grid > *,
.gallery-grid > *,
.mosaic-grid > *,
.timeline > *,
.facts-grid > * {
  min-width: 0;
}

.accent-panel {
  color: var(--sl-ink);
}

.tone-blue,
.timeline-item.tone-blue {
  background: rgba(51, 81, 158, 0.12);
}

.tone-lilac,
.timeline-item.tone-lilac {
  background: rgba(183, 174, 211, 0.35);
}

.tone-yellow,
.timeline-item.tone-yellow {
  background: rgba(251, 187, 0, 0.22);
}

.tone-green,
.timeline-item.tone-green {
  background: rgba(105, 188, 140, 0.22);
}

.tone-pink {
  background: rgba(234, 160, 172, 0.28);
}

.tone-orange {
  background: rgba(187, 105, 24, 0.2);
}

.tone-cream {
  background: rgba(227, 217, 206, 0.54);
}

.tone-sage {
  background: rgba(174, 186, 143, 0.26);
}

.layout-hero .hero-grid {
  align-items: center;
}

.hero-copy {
  min-width: 0;
}

.hero-media img,
.hero-photo img,
.media-card img,
.support-image {
  width: 100%;
  height: auto;
  border-radius: 6px;
}

.hero-media img,
.hero-photo img,
.video-wrap,
.hotspot-stage {
  border: var(--border);
  background: #fff;
  box-shadow: var(--shadow);
}

.hero-media img,
.hero-photo img {
  border-radius: 6px;
}

.hero-media img {
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.media-card img,
.support-image {
  max-height: clamp(240px, 52vh, 520px);
  object-fit: contain;
  padding: 0.35rem;
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1rem;
}

.chip,
.legend-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  border-radius: 999px;
  padding: 0.42rem 0.66rem;
  background: #fff;
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.01em;
  box-shadow: var(--shadow);
}

.legend-pill.active {
  background: var(--sl-yellow);
}

.check-list,
.bullet-list {
  display: grid;
  gap: 0.7rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.check-list li,
.bullet-list li {
  position: relative;
  padding-left: 1.7rem;
  line-height: 1.45;
}

.check-list li::before,
.bullet-list li::before {
  position: absolute;
  left: 0;
  top: 0.04rem;
  font-weight: 900;
}

.check-list li::before {
  content: "✓";
}

.bullet-list li::before {
  content: "•";
  font-size: 1.2rem;
  top: -0.08rem;
}

.video-wrap {
  position: relative;
  overflow: hidden;
  border-radius: 6px;
  aspect-ratio: 16 / 9;
}

.video-wrap iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.tile-icon {
  width: 84px;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 6px;
  margin-bottom: 0.75rem;
  border: var(--border);
  background: #fff;
}

.tile-icon-large {
  width: 112px;
}

.cards-grid,
.gallery-grid {
  grid-template-columns: 1fr;
}

.mosaic-grid {
  grid-template-columns: 1fr;
}

.mosaic-tile.wide {
  grid-column: span 1;
}

.timeline {
  gap: 0.8rem;
}

.timeline-item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.9rem;
  align-items: start;
}

.timeline-marker {
  width: 2.4rem;
  aspect-ratio: 1;
  border-radius: 6px;
  border: var(--border);
  background: #fff;
  display: grid;
  place-items: center;
  font-weight: 800;
}

.quote-card {
  background: linear-gradient(180deg, rgba(183, 174, 211, 0.24), rgba(255, 255, 255, 0.96));
}

.quote-card blockquote {
  margin: 0;
  font-size: clamp(1.35rem, 4vw, 1.9rem);
  line-height: 1.12;
  font-weight: 800;
}

.quote-by {
  margin-top: 0.8rem;
  font-weight: 700;
  color: rgba(30, 26, 22, 0.72);
}

.media-card figcaption {
  display: grid;
  gap: 0.25rem;
  margin-top: 0.8rem;
}

.hero-photo {
  margin: 1rem 0;
  display: grid;
  gap: 0.6rem;
}

.option-group,
.matching-list {
  display: grid;
  gap: 0.85rem;
}

.option-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.85rem;
  align-items: start;
  padding: 0.9rem 1rem;
  background: #fff;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.option-card input {
  margin-top: 0.12rem;
  accent-color: var(--sl-blue);
}

.option-card.correct,
.match-row.correct {
  background: rgba(105, 188, 140, 0.22);
}

.option-card.incorrect,
.match-row.incorrect {
  background: rgba(223, 101, 86, 0.18);
}

.fill-wrap {
  display: grid;
  gap: 0.8rem;
}

.fill-sentence {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem;
  margin: 0;
  line-height: 1.8;
  font-size: 1.05rem;
}

.blank-input {
  min-width: 8rem;
  max-width: 100%;
  padding: 0.72rem 0.9rem;
  border-radius: 6px;
  background: #fff;
}

.blank-input.correct {
  background: rgba(105, 188, 140, 0.2);
}

.blank-input.incorrect {
  background: rgba(223, 101, 86, 0.18);
}

.feedback-inline {
  margin: 0;
  font-weight: 700;
}

.is-correct {
  color: #1f6a46;
}

.is-incorrect {
  color: #9c3d34;
}

.match-row {
  display: grid;
  gap: 0.55rem;
  padding: 0.9rem 1rem;
  background: #fff;
  border: var(--border);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.match-row label {
  font-weight: 700;
}

select {
  width: 100%;
  border-radius: 6px;
  padding: 0.8rem 0.9rem;
  background: #fff;
}

.hotspot-stage {
  position: relative;
  overflow: hidden;
  border-radius: 6px;
}

.hotspot-stage img {
  width: 100%;
  display: block;
}

.hotspot {
  position: absolute;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  transition: background 0.15s ease, transform 0.15s ease;
}

.hotspot:hover,
.hotspot.active {
  background: rgba(251, 187, 0, 0.28);
}

.hotspot.correct {
  background: rgba(105, 188, 140, 0.32);
}

.hotspot.incorrect {
  background: rgba(223, 101, 86, 0.28);
}

.hotspot-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 1rem;
}

.drag-layout {
  display: grid;
  gap: 1rem;
  align-items: start;
}

.drag-items {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  align-items: flex-start;
  align-content: flex-start;
}

.drag-card {
  appearance: none;
  flex: 1 1 calc(50% - 0.35rem);
  width: calc(50% - 0.35rem);
  min-width: 118px;
  max-width: calc(50% - 0.35rem);
  display: grid;
  grid-template-rows: auto auto;
  align-content: start;
  gap: 0.45rem;
  text-align: left;
  padding: 0.5rem;
  border-radius: 8px;
  background: rgba(255,255,255,0.98);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.drag-card img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 6px;
  background: var(--sl-paper);
}

.drag-card span {
  font-size: 0.84rem;
  font-weight: 700;
  line-height: 1.3;
}

.drag-card.selected {
  background: rgba(251, 187, 0, 0.15);
  border-color: var(--sl-yellow);
}

.drag-card.correct {
  background: rgba(105, 188, 140, 0.22);
}

.drag-card.incorrect {
  background: rgba(223, 101, 86, 0.18);
}

.drag-zones {
  display: grid;
  gap: clamp(0.95rem, 1.8vw, 1.25rem);
  align-items: start;
}

.dropzone {
  text-align: left;
  min-height: 180px;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.dropzone.is-over {
  transform: translateY(-1px);
  background: rgba(251, 187, 0, 0.12);
}

.drop-head {
  margin-bottom: 0.8rem;
}

.result-screen {
  background:
    linear-gradient(180deg, rgba(255,255,255,0.9), rgba(255,255,255,0.96)),
    url("media/knowledge-test.png");
  background-size: cover;
  background-position: center;
}

.result-banner {
  border: var(--border);
  border-radius: 8px;
  padding: 0.9rem 1rem;
  box-shadow: var(--shadow);
  margin-top: 1rem;
}

.result-banner.pass {
  background: rgba(105, 188, 140, 0.2);
}

.result-banner.fail {
  background: rgba(223, 101, 86, 0.18);
}

.result-banner h3 {
  margin: 0 0 0.45rem;
  font-size: 1.25rem;
}

.result-banner p + p {
  margin-top: 0.55rem;
}

.result-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1rem;
}

.menu-backdrop {
  position: fixed;
  inset: 0;
  z-index: 24;
  background: rgba(30, 26, 22, 0.38);
}

.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: min(380px, 92vw);
  z-index: 25;
  background: var(--sl-paper);
  border-right: var(--border);
  transform: translateX(-102%);
  transition: transform 0.2s ease;
  padding: 0.9rem 1rem;
  overflow: auto;
}

.sidebar.open {
  transform: translateX(0);
}

.sidebar-head {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  align-items: start;
  margin-bottom: 1rem;
}

.sidebar-head h2 {
  margin: 0.2rem 0 0;
  font-size: 1.4rem;
  line-height: 1.05;
}

.menu-nav {
  display: grid;
  gap: 0.7rem;
}

.menu-item {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 0.75rem;
  align-items: center;
  padding: 0.8rem;
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
  text-align: left;
}

.menu-item.active {
  background: rgba(51, 81, 158, 0.12);
}

.menu-item.locked {
  opacity: 0.55;
}

.menu-index {
  width: 2rem;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border-radius: 6px;
  background: var(--sl-neutral);
  font-weight: 800;
}

.menu-copy {
  display: grid;
  gap: 0.1rem;
}

.menu-copy span,
.menu-state {
  font-size: 0.82rem;
  color: rgba(30, 26, 22, 0.72);
}

.sidebar-panel {
  margin-top: 1rem;
  padding: 0.9rem 1rem;
  background: #fff;
  border: var(--border);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.sidebar-panel h3 {
  margin: 0 0 0.45rem;
  font-size: 1rem;
}

.bottom-nav {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 18;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.65rem;
  padding: 0.8rem 1rem calc(0.8rem + env(safe-area-inset-bottom));
  background: rgba(245, 241, 236, 0.98);
  border-top: var(--border);
  backdrop-filter: blur(14px);
}

.nav-btn {
  padding: 0.66rem 0.84rem;
  font-weight: 800;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  justify-self: start;
  align-self: center;
  width: auto;
  min-width: 0;
  gap: 0.45rem;
  white-space: nowrap;
}

.nav-btn.primary {
  background: var(--sl-blue);
  color: #fff;
}

.nav-btn.secondary {
  background: #fff;
}

.nav-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.nav-message {
  grid-column: 2;
  margin: 0;
  font-size: 0.84rem;
  line-height: 1.35;
  color: rgba(30, 26, 22, 0.76);
}

#prevButton {
  grid-column: 1;
  justify-self: start;
}

#nextButton {
  grid-column: 3;
  justify-self: end;
}

.stack {
  display: grid;
  gap: clamp(0.95rem, 1.8vw, 1.25rem);
  align-items: start;
}

@media (min-width: 720px) {
  .topbar {
    padding: 1rem 1.25rem;
  }

  .step-pill {
    display: inline-flex;
    align-items: center;
  }

  .main-stage {
    padding: 1.4rem 1.25rem 7rem;
  }

  .screen-card {
    padding: 1.35rem;
  }

  .hero-grid,
  .split-layout,
  .video-layout,
  .two-up {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  }

  .cards-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .facts-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .mosaic-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .mosaic-tile.wide {
    grid-column: span 2;
  }

  .drag-layout {
    grid-template-columns: minmax(240px, 300px) minmax(0, 1fr);
    align-items: start;
  }

  .drag-zones {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .drag-card {
    flex: 0 0 136px;
    width: 136px;
    max-width: 136px;
  }
}

@media (min-width: 1024px) {
  .main-stage {
    padding-top: 1.6rem;
  }

  .screen-card {
    padding: 1.6rem;
  }

  .cards-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .timeline {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .brand-logo {
    width: 108px;
  }

  .bottom-nav {
    left: 50%;
    right: auto;
    bottom: 1rem;
    width: min(680px, calc(100% - 2rem));
    transform: translateX(-50%);
    border: var(--border);
    border-radius: 10px;
    box-shadow: var(--shadow);
  }

  .main-stage {
    padding-bottom: 7rem;
  }
}


button.drag-card,
button.nav-btn,
button.menu-btn,
button.close-btn,
button.option-card,
button.dropzone {
  -webkit-appearance: none;
  appearance: none;
}

.menu-item,
.option-card,
.match-row,
.sidebar-panel,
.result-banner {
  backdrop-filter: blur(10px);
}

.brand-copy {
  display: grid;
  gap: 0.16rem;
}

.brand-name {
  color: rgba(30, 26, 22, 0.68);
}

.screen-card h3,
.quote-card h3,
.sidebar-head h2 {
  font-family: Georgia, "Times New Roman", serif;
  letter-spacing: -0.01em;
}

.menu-btn:hover,
.nav-btn:hover,
.close-btn:hover,
.menu-item:hover {
  border-color: rgba(30,26,22,0.84);
}

.hero-media img,
.hero-photo img,
.video-wrap,
.hotspot-stage,
.media-card img,
.support-image {
  background: rgba(255,255,255,0.92);
}

.drag-bank,
.dropzone {
  padding: 0.9rem;
}

.dropzone .drag-items {
  min-height: 110px;
}

.nav-message {
  text-align: center;
}

@media (max-width: 719px) {
  .brand-logo {
    width: 72px;
  }

  .course-subtitle {
    display: none;
  }

  .screen-card::after {
    width: 160px;
    right: -1rem;
    bottom: -1rem;
  }

  .bottom-nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  #prevButton,
  #nextButton {
    width: 100%;
    max-width: 100%;
  }

  #prevButton {
    grid-column: 1;
  }

  #nextButton {
    grid-column: 2;
  }

  .nav-message {
    grid-column: 1 / -1;
    order: 3;
  }
}



:root {
  --radius: 6px;
  --radius-sm: 4px;
}

html {
  scroll-behavior: smooth;
}

#app {
  min-height: 100svh;
}

.brand-area.minimal-branding {
  gap: 0;
}

.brand-logo.brand-logo-large {
  width: clamp(108px, 14vw, 150px);
}

.topbar-minimal {
  padding-block: 0.78rem;
}

.topbar-minimal .brand-copy {
  display: none;
}

.menu-btn,
.step-pill {
  min-height: 42px;
}

.screen-shell {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.22s ease, transform 0.22s ease;
}

.screen-shell.is-leaving {
  opacity: 0;
  transform: translateY(10px);
}

.screen-shell.is-entering {
  animation: shellIn 0.32s ease;
}

@keyframes shellIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.fade-target {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.55s ease, transform 0.55s ease;
  transition-delay: var(--fade-delay, 0ms);
}

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

.split-layout.reverse > .stack {
  order: 2;
}

.split-layout.reverse > .media-card {
  order: 1;
}

.image-frame {
  position: relative;
  overflow: hidden;
  border: var(--border);
  border-radius: 6px;
  background: #fff;
  box-shadow: var(--shadow);
  margin-bottom: 0.9rem;
}

.image-frame > img:first-child {
  width: 100%;
  display: block;
}

.animated-factory {
  background: linear-gradient(180deg, rgba(245,241,236,0.75), rgba(255,255,255,0.98));
}

.smoke-layer {
  position: absolute;
  width: 20%;
  opacity: 0;
  animation: smokeFloat 5.6s ease-in-out infinite;
}

.smoke-layer img {
  width: 100%;
  display: block;
}

.smoke-layer-1 {
  left: 58%;
  bottom: 31%;
  animation-delay: 0s;
}

.smoke-layer-2 {
  left: 66%;
  bottom: 26%;
  animation-delay: 1.15s;
}

.smoke-layer-3 {
  left: 72%;
  bottom: 22%;
  animation-delay: 2.3s;
}

@keyframes smokeFloat {
  0% { opacity: 0; transform: translateY(8px) scale(0.85); }
  18% { opacity: 0.9; }
  70% { opacity: 0.35; }
  100% { opacity: 0; transform: translateY(-64px) scale(1.2); }
}

.quote-layout .panel {
  align-self: stretch;
}

.comparison-stage {
  position: relative;
  min-height: 320px;
  display: grid;
  place-items: center;
  border: var(--border);
  border-radius: 6px;
  background: rgba(255,255,255,0.96);
  box-shadow: var(--shadow);
  padding: 1rem;
  overflow: hidden;
}

.comparison-stage img {
  max-width: 100%;
  height: auto;
}

.comparison-base {
  position: relative;
  z-index: 1;
  width: min(88%, 440px);
}

.comparison-hand,
.comparison-minus {
  position: absolute;
  inset: 50% auto auto 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  opacity: 0;
}

.comparison-hand {
  width: min(78%, 360px);
  animation: handReveal 9s ease forwards;
  animation-delay: 3s;
}

.comparison-minus {
  width: min(28%, 110px);
  z-index: 3;
  animation: minusStrike 3.2s ease-in-out forwards;
  animation-delay: 6.2s;
}

@keyframes handReveal {
  0% { opacity: 0; transform: translate(-50%, -45%) scale(0.96); }
  100% { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}

@keyframes minusStrike {
  0% { opacity: 0; transform: translate(-50%, -50%) scale(0.2); }
  10% { opacity: 1; transform: translate(-50%, -50%) scale(1.12); }
  22% { transform: translate(-50%, -50%) scale(0.9); }
  34% { transform: translate(-50%, -50%) scale(1.08); }
  46% { transform: translate(-50%, -50%) scale(0.92); }
  58% { transform: translate(-50%, -50%) scale(1.06); }
  70% { transform: translate(-50%, -50%) scale(0.94); }
  82% { transform: translate(-50%, -50%) scale(1.04); }
  100% { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}

.sidebar-panel h3:empty,
.sidebar-panel p:empty {
  display: none;
}

@media (max-width: 719px) {
  .brand-logo.brand-logo-large {
    width: 94px;
  }

  .comparison-stage {
    min-height: 250px;
  }
}


@media (hover: none), (pointer: coarse) {
  .fade-target {
    transform: none;
  }

  .menu-item,
  .option-card,
  .match-row,
  .sidebar-panel,
  .result-banner,
  .bottom-nav {
    backdrop-filter: none;
  }
}

