/* Shared frame and navigation */
/* The bundled font keeps Myanmar text readable offline. */
@font-face {
  font-family: "Museum Myanmar";
  src: url("assets/fonts/NotoSansMyanmar-Regular.ttf");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Museum Myanmar";
  src: url("assets/fonts/NotoSansMyanmar-Bold.ttf");
  font-weight: 700;
  font-display: swap;
}
/* Colors and shared styles */
:root {
  --ink: #30251b;
  --dark: #3d2816;
  --accent: #825027;
  --paper: #f6f0e4;
  --white: #fffdf8;
  --line: #dbcbb5;
  --gold: #ebbf66;
  --muted: #6d5b4b;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.22, 1.6, 0.45, 1);
  --shadow: 0 16px 32px #392c211c;
  background: linear-gradient(150deg, #fcf7ed, #f0e2cc);
  color: var(--ink);
  font-family: system-ui, "Museum Myanmar", sans-serif;
}
* {
  box-sizing: border-box;
}
html {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}
body {
  margin: 0;
  max-width: none;
  width: 100%;
  line-height: 1.65;
  overflow-x: hidden;
}
[hidden] {
  display: none !important;
}
h1,
h2,
h3,
h4,
p {
  margin: 0 0 0.75em;
}
a {
  color: inherit;
  text-decoration: none;
}
button,
select,
input {
  font: inherit;
}
button {
  color: inherit;
  cursor: pointer;
}
button:disabled {
  cursor: default;
}
img,
video {
  display: block;
  width: 100%;
  height: auto;
}
:focus-visible {
  outline: 3px solid #3276b3;
  outline-offset: 4px;
}
.skip {
  position: absolute;
  top: -80px;
  left: 12px;
  z-index: 5;
  padding: 10px;
  background: var(--white);
}
.skip:focus {
  top: 8px;
}
.eyebrow,
.scene-badge,
.image-label {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0;
}
.button,
.back-to-top {
  display: inline-block;
  padding: 11px 17px;
  border: 1px solid var(--line);
  background: var(--white);
  font-size: 0.86rem;
  font-weight: 750;
  transition:
    transform 0.4s var(--ease-spring),
    background 0.3s ease,
    box-shadow 0.35s ease;
}
.button {
  position: relative;
  overflow: hidden;
}
.button::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(
    115deg,
    transparent 20%,
    #ffffff40 48%,
    transparent 75%
  );
  transform: translateX(-150%);
  transition: transform 0.8s ease;
}
.button:hover::before,
.button:focus-visible::before {
  transform: translateX(150%);
}
.button:hover:not(:disabled),
.button:focus-visible,
.back-to-top:hover {
  transform: translateY(-5px) scale(1.02);
  background: var(--paper);
  box-shadow: 0 14px 25px #3d281628;
}
.button:active:not(:disabled) {
  transform: translateY(-1px) scale(0.98);
}
.gold {
  background: var(--dark);
  color: var(--white);
  border-color: var(--dark);
}
.button.gold:hover,
.button.gold:focus-visible {
  background: var(--accent);
}
.text-link {
  font-weight: 750;
  text-decoration: underline;
  text-underline-offset: 5px;
}
/* Header and home layout */
.site-header {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 82px;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  padding: 12px clamp(12px, 5%, 5%);
  background: var(--white);
  border-bottom: 1px solid var(--line);
}
.brand,
.header-tools,
#primary-nav {
  display: flex;
  align-items: center;
  gap: 14px;
}
.brand {
  line-height: 1.2;
  font-weight: 800;
}
.brand em {
  font-weight: 500;
  font-style: normal;
}
.brand-mark {
  color: var(--accent);
  font-size: 2rem;
  transition: color 0.35s ease;
}

.brand small {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 0.7rem;
  letter-spacing: 0;
}
#primary-nav {
  gap: clamp(3px, 0.9vw, 16px);
}
#primary-nav a {
  padding: 9px 12px;
  border-radius: 8px;
  color: var(--muted);
  font-size: 0.87rem;
  font-weight: 750;
  white-space: nowrap;
  position: relative;
  transition:
    background 0.25s ease,
    color 0.25s ease,
    transform 0.35s var(--ease-spring);
}
#primary-nav a::after {
  content: "";
  position: absolute;
  bottom: 4px;
  left: 12px;
  width: 0;
  height: 2px;
  background: currentColor;
  transition: width 0.4s var(--ease-out);
}
#primary-nav a:hover::after,
#primary-nav a:focus-visible::after,
#primary-nav a.active::after {
  width: calc(100% - 24px);
}
#primary-nav a.active {
  background: var(--dark);
  color: var(--white);
}
#primary-nav a:hover,
#primary-nav a:focus-visible {
  transform: translateY(-3px);
  background: var(--gold);
  color: var(--dark);
}
.header-tools button {
  padding: 8px 14px;
  border: 1px solid var(--dark);
  border-radius: 30px;
  background: var(--white);
  font-size: 0.78rem;
  font-weight: 800;
  transition:
    background 0.25s ease,
    transform 0.35s var(--ease-spring),
    box-shadow 0.3s ease;
}
.header-tools button:hover,
.header-tools button:focus-visible {
  transform: translateY(-3px);
  background: var(--gold);
  box-shadow: 0 6px 0 #3d281618;
}
.mobile-nav {
  display: none;
}


.hero {
  display: grid;
  grid-template-columns: 54% 46%;
  background: linear-gradient(115deg, #fdf8ef, #ead4ad, #fffaf0);
}
.hero-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 0;
  padding: clamp(42px, 7vw, 110px) 6% 48px 13%;
}
.hero h1 {
  margin: 20px 0;
  font-size: clamp(2.6rem, 6.7vw, 6.2rem);
  line-height: 1.2;
}
.hero h1 em,
.home-routes h2 em,
.heading h2 em {
  color: var(--accent);
  font-family: inherit;
  font-style: normal;
  font-weight: 700;
}
.period {
  color: #ad6f2d;
}
.hero-lead,
.heading p,
.route-heading > p {
  max-width: 560px;
  color: var(--muted);
}
.hero-actions,
.hero-stats,
.machine-actions,
.view-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}
.hero-actions {
  margin: 17px 0 38px;
  gap: 20px;
}
.hero-stats {
  margin-top: auto;
  gap: clamp(12px, 3vw, 46px);
}
.hero-stats strong,
.hero-stats small {
  display: block;
}
.hero-stats strong {
  font-size: 2rem;
}
.hero-stats small {
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0;
}
.hero-art {
  position: relative;
  min-height: 540px;
  overflow: hidden;
  background: #896345;
  background-image:
    linear-gradient(#ffffff22 1px, transparent 1px),
    linear-gradient(90deg, #ffffff22 1px, transparent 1px);
  background-size: 32px 32px;
}
.art-float {
  position: absolute;
}
.art-card {
  position: relative;
  height: 100%;
  border: 7px solid var(--white);
  background: var(--paper);
  box-shadow: var(--shadow);
  transition:
    transform 0.6s var(--ease-out),
    box-shadow 0.35s ease;
}
.art-card img {
  height: 100%;
  object-fit: contain;
}
.art-card span {
  position: absolute;
  bottom: 8px;
  left: 8px;
  padding: 4px 7px;
  background: var(--dark);
  color: var(--white);
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0;
}
.art-first {
  inset: 17% 25% 34% 8%;
  transform: rotate(7deg);
  animation: first-drift 9s ease-in-out infinite;
}
.art-second {
  inset: 48% 9% 11% 49%;
  transform: rotate(-10deg);
  animation: second-drift 11s ease-in-out infinite;
}
.art-float:hover {
  z-index: 4;
  animation-play-state: paused;
}
.art-float:hover .art-card {
  box-shadow: 0 32px 70px #3d281660;
}
.art-first:hover .art-card {
  transform: rotate(-7deg) translateY(-14px) scale(1.055);
}
.art-second:hover {
  z-index: 5;
}
.art-second:hover .art-card {
  transform: rotate(7deg) translateY(-16px) scale(1.06);
}

.ticker {
  overflow: hidden;
  padding: 13px 0;
  background: var(--gold);
  color: var(--dark);
  text-align: center;
  font-size: clamp(0.59rem, 1.4vw, 0.84rem);
  font-weight: 850;
  letter-spacing: 0;
}
.ticker-track {
  display: flex;
  width: 100%;
  min-width: 0;
  justify-content: center;
  animation: none;
}
.ticker-track > div {
  flex: 0 1 auto;
  white-space: normal;
  overflow-wrap: anywhere;
}

.ticker span {
  margin: 0 1em;
  color: var(--accent);
}
.home-routes,
.home-end,
.section {
  padding: clamp(32px, 6vw, 95px) 8%;
}
.home-routes h2,
.home-end h2,
.heading h2 {
  margin: 15px 0;
  font-size: clamp(2.1rem, 5vw, 4.8rem);
  line-height: 1.35;
}
.route-list {
  margin-top: 32px;
  border-top: 1px solid var(--dark);
}
.route {
  display: grid;
  grid-template-columns: 38px 1fr minmax(105px, 19%) 34px;
  align-items: center;
  gap: 18px;
  min-height: 125px;
  padding: 15px 0;
  border-bottom: 1px solid var(--dark);
  position: relative;
  isolation: isolate;
  transition:
    padding 0.45s var(--ease-out),
    background 0.35s ease;
}
.route::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, #ebbf6672, transparent 80%);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.55s var(--ease-out);
}
.route:hover,
.route:focus-visible {
  padding-inline: 17px;
  background: #f2e1c2;
}
.route:hover::before,
.route:focus-visible::before {
  transform: scaleX(1);
}
.route-name,
.route-arrow {
  transition:
    transform 0.4s var(--ease-spring),
    color 0.3s ease;
}
.route:hover .route-name,
.route:focus-visible .route-name {
  transform: translateX(7px);
  color: var(--accent);
}
.route-number,
.route-name small {
  color: var(--muted);
  font-size: 0.8rem;
}
.route-name {
  font-size: clamp(1.02rem, 3vw, 2.4rem);
  font-weight: 800;
  line-height: 1.35;
}
.route-name small {
  display: block;
  margin-top: 5px;
  font-weight: 650;
}
.route img {
  height: 93px;
  border-radius: 50px 7px;
  object-fit: cover;
  transition:
    transform 0.65s var(--ease-out),
    filter 0.4s ease,
    border-radius 0.55s ease;
}
.route:hover img,
.route:focus-visible img {
  filter: saturate(1.2);
  border-radius: 65px 15px;
  transform: rotate(-4deg) scale(1.08);
}
.route-arrow {
  text-align: right;
  font-size: 1.5rem;
}
.route:hover .route-arrow,
.route:focus-visible .route-arrow {
  transform: translate(7px, -7px) rotate(8deg);
}
.home-end,
.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  background: var(--dark);
  color: var(--white);
}
.home-end h2 {
  margin-right: auto;
}
.home-end > .eyebrow {
  writing-mode: vertical-rl;
  color: var(--gold);
}
.round-link {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: clamp(51px, 7vw, 95px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--gold);
  color: var(--dark);
  font-size: 2rem;
  transition:
    transform 0.5s var(--ease-spring),
    background 0.3s ease,
    box-shadow 0.3s ease;
}
.round-link:hover,
.round-link:focus-visible {
  background: #f5d495;
  transform: rotate(45deg) scale(1.1);
  box-shadow: 0 0 0 12px #ffffff1a;
}
/* Lesson pages and exhibits */
.section {
  min-height: 72vh;
  background: linear-gradient(145deg, #fdf8ee, #f4e8d5);
}
.heading {
  margin-bottom: 32px;
}
.exhibit-layout,
.quiz-layout {
  display: grid;
  grid-template-columns: minmax(180px, 24%) minmax(0, 1fr);
  align-items: start;
  gap: 24px;
}
.view-controls {
  margin-bottom: 15px;
}
.view-controls button,
.machine-selector button,
.answer {
  padding: 10px 13px;
  border: 1px solid var(--line);
  background: var(--white);
  font-size: 0.88rem;
  font-weight: 750;
  transition:
    background 0.3s ease,
    color 0.25s ease,
    transform 0.4s var(--ease-spring),
    border-color 0.25s ease,
    box-shadow 0.3s ease;
}
.view-controls button:hover,
.machine-selector button:hover,
.answer:hover:not(:disabled) {
  background: #f4e5c8;
}
.view-controls button[aria-pressed="true"],
.machine-selector button[aria-pressed="true"] {
  border-color: var(--dark);
  background: var(--dark);
  color: var(--white);
}
.machine-selector button:not([aria-pressed="true"]):hover {
  transform: translateX(8px) scale(1.015);
  box-shadow: -5px 5px 0 #ebbf6672;
}
.machine-selector button[aria-pressed="true"] {
  box-shadow: inset 4px 0 var(--gold);
}
.answer:hover:not(:disabled) {
  transform: translate(3px, -5px);
  border-color: var(--accent);
  box-shadow: -4px 5px 0 #82502722;
}
.answer:active:not(:disabled) {
  transform: scale(0.985);
}
.machine-selector,
.machine-gallery,
.answers {
  display: grid;
  gap: 8px;
}
.machine-selector button,
.answer {
  text-align: left;
}
.machine-gallery.grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.exhibit-layout.grid-view {
  grid-template-columns: minmax(0, 1fr);
}
.machine-gallery {
  gap: 18px;
}
.js .spotlight .machine-card:not(.active) {
  display: none;
}
.machine-card,
.comparison-card,
.glossary-entry,
.quiz-toolbar,
.quiz-questions,
#reader {
  border: 1px solid var(--line);
  background: var(--white);
  box-shadow: var(--shadow);
}
.machine-scene {
  background: var(--dark);
  color: var(--white);
}
.diagram-link {
  display: block;
  cursor: zoom-in;
}
.scene-badge,
.scene-caption,
.image-label {
  padding: 5px 9px;
  background: var(--dark);
  color: var(--white);
}
.scene-badge,
.scene-caption {
  display: block;
}
.scene-caption {
  font-size: 0.74rem;
}
.image-label {
  position: absolute;
  top: 10px;
  left: 10px;
}
.machine-details,
.comparison-card,
.glossary-entry,
.quiz-toolbar,
.quiz-questions {
  padding: clamp(14px, 2.7vw, 31px);
}
.machine-details h3 {
  font-size: clamp(1.35rem, 2.8vw, 2.5rem);
  line-height: 1.28;
}
.inventor,
.transcript,
.example {
  color: var(--muted);
}
.machine-actions {
  margin: 20px 0;
}
details {
  border-top: 1px solid var(--line);
  padding: 12px 0;
}
summary {
  cursor: pointer;
  font-weight: 750;
}
.media-body {
  padding-top: 12px;
}
.media-body video {
  border-radius: 5px;
  background: var(--dark);
}
.media-body audio {
  width: 100%;
  margin-bottom: 10px;
}
.media-body p {
  margin: 10px 0 4px;
}
.transcript {
  font-size: 0.88rem;
}
#reader {
  width: min(92%, 780px);
  max-height: 84vh;
  padding: clamp(16px, 4vw, 36px);
  color: var(--ink);
}
#reader::backdrop {
  background: #231810a8;
}
.dialog-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
  border-bottom: 1px solid var(--line);
}
/* Before and after image slider */
.comparison-images {
  position: relative;
  overflow: hidden;
  height: clamp(220px, 37vw, 480px);
  background: var(--dark);
  cursor: ew-resize;
  touch-action: pan-y;
  user-select: none;
}
.comparison-images img {
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}
/* Keep the printed English border outside the visible comparison. */
.after-image img {
  transform: scale(1.28);
}
.after-image {
  position: absolute;
  inset: 0;
  clip-path: inset(0 0 0 var(--compare-position));
}
.right-label {
  right: 10px;
  left: auto;
}
.comparison-divider {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--compare-position);
  width: 3px;
  background: var(--white);
}
.comparison-grip {
  position: absolute;
  top: 50%;
  left: 50%;
  padding: 5px 12px;
  border-radius: 30px;
  background: var(--white);
  transform: translate(-50%, -50%);
}
.range-label,
.search-label {
  display: block;
  margin-top: 12px;
  font-weight: 700;
}
.range,
progress {
  width: 100%;
  accent-color: var(--accent);
}
.compare-grid,
.glossary-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 25px;
}
.before,
.after {
  padding: 12px 0 4px;
  border-top: 1px solid var(--line);
}
.before strong,
.after strong {
  color: var(--accent);
  font-size: 0.73rem;
  letter-spacing: 0;
}
/* Quiz, glossary and footer */
.quiz-layout {
  grid-template-columns: minmax(220px, 28%) minmax(0, 1fr);
}
.quiz-toolbar select,
.glossary-entry {
  overflow: hidden;
}
.glossary-picture {
  display: block;
  width: calc(100% + 48px);
  max-width: none;
  height: 170px;
  margin: -24px -24px 20px;
  object-fit: cover;
  background: #e9e3da;
  border-bottom: 1px solid var(--line);
  transition:
    transform 0.35s ease,
    filter 0.35s ease;
}
.glossary-entry:hover .glossary-picture {
  transform: scale(1.03);
  filter: saturate(1.06);
}
@media (max-width: 600px) {
  .glossary-picture {
    height: 160px;
  }
}
#glossary-search {
  width: 100%;
  padding: 9px;
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--ink);
}
.quiz-toolbar select,
.quiz-toolbar .button,
#quiz-next {
  margin-top: 10px;
}
.quiz-dashboard {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
  margin: 17px 0;
}
.quiz-dashboard span,
.quiz-dashboard strong {
  display: block;
}
.quiz-dashboard span,
.stage-indicator,
.question-number {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0;
}
.quiz-dashboard strong {
  font-size: 1.3rem;
}
.quiz-stage {
  margin-bottom: 14px;
  padding-bottom: 9px;
  border-bottom: 1px solid var(--line);
}
.answer.correct {
  background: #e4f0dc;
  border-color: #568345;
}
.answer.incorrect {
  background: #ffe8e1;
  border-color: #aa5540;
}
.answer-feedback:not(:empty),
#quiz-streak-message:not(:empty) {
  margin-top: 10px;
  color: var(--accent);
  font-weight: 750;
}
.answer-feedback:not(:empty) {
  animation: arrive 0.2s ease-out;
}
#quiz-result {
  display: grid;
  justify-items: center;
  gap: 6px;
  padding: 26px 10px;
  text-align: center;
  animation: arrive 0.45s ease-out;
}
.result-medal {
  display: grid;
  place-items: center;
  width: 62px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--gold);
  font-size: 2rem;
}
#quiz-rank {
  font-size: 1.7rem;
}
.glossary-entry {
  transition:
    translate 0.4s var(--ease-spring),
    rotate 0.4s var(--ease-spring),
    border-color 0.25s ease,
    box-shadow 0.3s ease;
}
.glossary-entry:hover {
  translate: 0 -9px;
  rotate: -0.45deg;
  border-color: var(--accent);
  box-shadow: 0 24px 36px #3d281620;
}
#glossary-search {
  max-width: 430px;
  margin-top: 7px;
}
.site-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px clamp(12px, 4vw, 48px);
  border-top: 1px solid #ffffff33;
  font-size: 0.95rem;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}
.partner-logo-band {
  display: flex;
  flex: 0 0 100%;
  justify-content: center;
  width: 100%;
  min-width: 0;
}
.partner-logos {
  display: flex;
  flex: 0 1 auto;
  align-items: center;
  justify-content: center;
  gap: clamp(10px, 2.4vw, 24px);
  width: max-content;
  max-width: 100%;
  min-width: 0;
  padding: 0;
  background: transparent;
  border-radius: 0;
}
.partner-logos img {
  display: block;
  object-fit: contain;
}
.partner-logos img:nth-child(1) {
  width: 68px;
  height: 68px;
}
.partner-logos img:nth-child(2) {
  width: 64px;
  height: 104px;
}
.partner-logos img:nth-child(3) {
  width: 210px;
  height: 54px;
}
.site-footer p {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.5;
  font-weight: 600;
}
.back-to-top {
  color: var(--dark);
  flex-shrink: 0;
}
/* Motion shared with the reference layout */
.home:not([hidden]) .hero-copy > .eyebrow {
  animation: field-enter 0.75s var(--ease-out) both;
}
.home:not([hidden]) .hero h1 {
  animation: field-enter 1s 0.12s var(--ease-out) both;
}
.home:not([hidden]) .hero-lead {
  animation: field-enter 0.9s 0.26s var(--ease-out) both;
}
.home:not([hidden]) .hero-actions {
  animation: field-enter 0.8s 0.38s var(--ease-out) both;
}
.home:not([hidden]) .hero-stats {
  animation: field-enter 0.8s 0.48s var(--ease-out) both;
}
.hero-stats strong {
  transition:
    color 0.3s ease,
    transform 0.4s var(--ease-spring);
}
.hero-stats > div:hover strong {
  color: var(--accent);
  transform: translateY(-6px) rotate(-3deg);
}
/* Only elements registered for scroll reveals are hidden briefly. */
.reveal {
  opacity: 0;
  transform: translateY(35px);
  transition:
    opacity 0.75s var(--ease-out),
    transform 0.85s var(--ease-out);
  transition-delay: var(--reveal-delay, 0ms);
}
.reveal.is-visible,
.reveal:focus-within {
  opacity: 1;
  transform: none;
}
.glossary-entry.reveal {
  transition:
    opacity 0.75s var(--ease-out),
    transform 0.85s var(--ease-out),
    translate 0.4s var(--ease-spring),
    rotate 0.4s var(--ease-spring),
    border-color 0.25s ease,
    box-shadow 0.3s ease;
  transition-delay:
    var(--reveal-delay, 0ms), var(--reveal-delay, 0ms), 0ms, 0ms, 0ms, 0ms;
}
.route.reveal {
  transition-property: opacity, transform, padding, background;
  transition-duration: 0.75s, 0.85s, 0.45s, 0.35s;
  transition-delay:
    var(--reveal-delay, 0ms), var(--reveal-delay, 0ms), 0ms, 0ms;
}
.reveal:focus-within:not(.is-visible) {
  transition-delay: 0ms;
}


@keyframes first-drift {
  0%,
  100% {
    transform: rotate(7deg) translateY(0);
  }
  50% {
    transform: rotate(5deg) translateY(-11px);
  }
}
@keyframes second-drift {
  0%,
  100% {
    transform: rotate(-10deg) translateY(0);
  }
  50% {
    transform: rotate(-7deg) translateY(13px);
  }
}



@keyframes marquee {
  to {
    transform: translateX(-50%);
  }
}
@keyframes arrive {
  from {
    opacity: 0.82;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@media (max-width: 980px) {
  .mobile-nav {
    display: inline-block;
  }
  .site-header {
    padding: 10px 16px;
    gap: 8px;
  }
  #primary-nav {
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    display: none;
    flex-wrap: wrap;
    padding: 12px 16px;
    border-bottom: 1px solid var(--line);
    background: var(--white);
    gap: 6px;
  }
  #primary-nav.open {
    display: flex;
  }
  .hero-art {
    min-height: 460px;
  }
}
@media (max-width: 650px) {
  .site-header {
    min-height: 70px;
    padding: 8px 12px;
  }
  .site-footer {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 10px;
    padding: 16px 12px;
  }
  .hero,
  .exhibit-layout,
  .quiz-layout,
  .compare-grid,
  .glossary-grid,
  .machine-gallery.grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .hero-copy {
    padding: 36px 6%;
  }
  .hero-art {
    min-height: 305px;
  }
  .section,
  .home-routes,
  .home-end {
    padding-left: 6%;
    padding-right: 6%;
  }
  .machine-selector {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .route {
    grid-template-columns: 20px 1fr 25% 18px;
    gap: 8px;
    min-height: 91px;
  }
  .route img {
    height: 55px;
  }
  .ticker span {
    margin: 0 0.35em;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
  .reveal {
    opacity: 1;
    transform: none;
  }
  .ticker-track {
    min-width: 100%;
    width: 100%;
  }
  .ticker-track > div {
    white-space: normal;
  }

}
@media (max-width: 980px) {
  .site-header,
  #primary-nav,
  .site-footer {
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }
  #primary-nav {
    flex-wrap: wrap;
  }
  #primary-nav a,
  .site-footer > * {
    min-width: 0;
    max-width: 100%;
    overflow-wrap: anywhere;
    white-space: normal;
  }
  .partner-logos {
    gap: 8px;
    padding: 8px;
  }
  .partner-logos img:nth-child(1) {
    width: 46px;
    height: 46px;
  }
  .partner-logos img:nth-child(2) {
    width: 50px;
    height: 80px;
  }
  .partner-logos img:nth-child(3) {
    width: 128px;
    height: 33px;
  }
}
@media (max-width: 650px) {
  .brand {
    min-width: 0;
    flex: 1 1 auto;
  }
  .brand > span:last-child {
    min-width: 0;
    overflow-wrap: anywhere;
  }
  .header-tools {
    flex-shrink: 0;
  }
  #primary-nav.open {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
  }
  #primary-nav a {
    min-width: 0;
    padding: 9px 6px;
    text-align: center;
    white-space: normal;
    overflow-wrap: anywhere;
  }
  .ticker-track {
    width: 100%;
    min-width: 0;
    flex-wrap: wrap;
    justify-content: center;
    padding: 0 12px;
    animation: none;
  }
  .ticker-track > div {
    flex: 0 1 100%;
    white-space: normal;
    overflow-wrap: anywhere;
  }

.site-footer > * {
    min-width: 0;
    max-width: 100%;
    white-space: normal;
    overflow-wrap: anywhere;
  }
}
/* Logos: transparent PNGs, sized to sit quietly beside the brand */
.header-logo {
  display: block;
  width: 44px;
  height: 44px;
  object-fit: contain;
  flex: none;
}
@media (max-width: 640px) {
  .header-logo {
    width: 34px;
    height: 34px;
  }
}
.site-footer .partner-logo-band {
  background: transparent;
  padding: 6px 0;
}
.header-logo {
  display: block;
  width: 44px;
  height: 44px;
  object-fit: contain;
  flex: none;
}
@media (max-width: 640px) {
  .header-logo {
    width: 34px;
    height: 34px;
  }
}
.site-footer .partner-logos img {
  filter: drop-shadow(0 0 2px #fff)
    drop-shadow(0 0 6px rgba(255, 255, 255, 0.9));
}
/* Logo strip */
.logo-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: clamp(24px, 6vw, 72px);
  padding: 36px clamp(16px, 4vw, 60px);
  background: #fbfaf4;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
}
.logo-strip img {
  display: block;
  object-fit: contain;
}
.logo-strip img:nth-child(1) {
  width: 84px;
  height: 84px;
}
.logo-strip img:nth-child(2) {
  width: 68px;
  height: 110px;
}
.logo-strip img:nth-child(3) {
  width: 220px;
  height: 56px;
}
@media (max-width: 640px) {
  .logo-strip {
    gap: 20px;
    padding: 24px 16px;
  }
  .logo-strip img:nth-child(1) {
    width: 56px;
    height: 56px;
  }
  .logo-strip img:nth-child(2) {
    width: 46px;
    height: 74px;
  }
  .logo-strip img:nth-child(3) {
    width: 150px;
    height: 38px;
  }
}
.site-footer .partner-logo-band {
  display: none !important;
}
.header-logo {
  display: none !important;
}
/* About me */
.about-card {
  display: flex;
  align-items: center;
  gap: clamp(20px, 4vw, 48px);
  flex-wrap: wrap;
  max-width: 820px;
  margin: 32px auto 0;
  padding: clamp(20px, 4vw, 40px);
  background: #fbfaf4;
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 12px;
}
.about-card img {
  width: 120px;
  height: 120px;
  object-fit: contain;
  flex: none;
}
.about-card dl {
  margin: 0;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px 20px;
  font-size: 18px;
}
.about-card dt {
  font-weight: 700;
  opacity: 0.65;
}
.about-card dd {
  margin: 0;
  font-weight: 700;
}
.about-card p {
  flex: 1 1 100%;
  margin: 0;
  line-height: 1.7;
}
@media (max-width: 640px) {
  .about-card img {
    width: 84px;
    height: 84px;
  }
  .about-card dl {
    font-size: 16px;
  }
}
.about-card img.school-logo {
  width: 130px;
  height: auto;
  max-height: 150px;
}
.about-card dd a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
}
@media (max-width: 640px) {
  .about-card img.school-logo {
    width: 90px;
  }
}
.about-card dl {
  flex: 1 1 300px;
  min-width: 0;
}
.about-card dd {
  overflow-wrap: anywhere;
}
/* One-line Burmese title on all screen sizes */
#hero-title {
  font-size: clamp(1.18rem, 3.7vw, 3.45rem) !important;
  letter-spacing: -0.035em;
  white-space: nowrap;
  max-width: 100%;
  line-height: 1.4;
}
#hero-title > span {
  display: inline !important;
  white-space: nowrap;
}
@media (max-width: 650px) {
  #hero-title {
    font-size: clamp(1.12rem, 6vw, 2.15rem) !important;
  }
}
:root {
  --ict-motion-ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ict-motion-fast: 260ms;
  --ict-motion-medium: 420ms;
  --ict-motion-slow: 720ms;
  --ict-radius: 18px;
}
html {
  scroll-behavior: smooth;
}
[hidden] {
  display: none !important;
}
/* Fade the new page in when a visitor uses the menu. */
.view:not([hidden]).ict-page-enter {
  animation: ict-page-enter 480ms var(--ict-motion-ease) both !important;
}

/* Reveal cards as they come into view. */
.ict-motion-ready .ict-reveal:not(.ict-visible) {
  opacity: 0;
  translate: 0 16px;
}
.ict-motion-ready .ict-reveal {
  transition:
    opacity 480ms var(--ict-motion-ease) var(--ict-delay, 0ms),
    translate 540ms var(--ict-motion-ease) var(--ict-delay, 0ms);
}
.ict-motion-ready .ict-reveal.ict-visible,
.ict-motion-ready .ict-reveal:focus-within {
  opacity: 1;
  translate: 0 0;
}
/* Cards, tabs and buttons share the same shape and timing. */
:where(
  .word-card,
  .machine-card,
  .route,
  .route-item,
  .lesson-tab,
  .quiz-options button,
  .choice-grid button,
  .button,
  .video-card,
  .about-card
) {
  border-radius: var(--ict-radius);
}
.site-header {
  transition:
    background var(--ict-motion-medium) var(--ict-motion-ease),
    box-shadow var(--ict-motion-medium) var(--ict-motion-ease);
}
:where(
  .nav a,
  #primary-nav a,
  .nav-toggle,
  .mobile-toggle,
  .button,
  .text-link,
  .round-link,
  .route,
  .route-item,
  .route-arrow,
  .lesson-tab,
  .word-card,
  .machine-card,
  .video-card,
  .about-card,
  .choice-grid button,
  .quiz-options button,
  .mini-options button,
  .answer,
  .sound,
  .view-controls button,
  .machine-selector button,
  .challenge-option,
  .art-card,
  .hero-stats > div,
  .habit-row,
  .lang-button,
  .quiz-option
) {
  transition-property:
    transform, translate, scale, background-color, color, border-color,
    box-shadow, filter, opacity, padding, width;
  transition-duration: var(--ict-motion-medium);
  transition-timing-function: var(--ict-motion-ease);
}
:where(.word-card, .machine-card, .route, .route-item, .video-card):hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 32px #00000016;
}
:where(.nav a, #primary-nav a)::after,
:where(.word-card, .route-item, .route)::before,
:where(.word-card, .route-item, .route)::after {
  transition:
    transform 420ms var(--ict-motion-ease),
    width 420ms var(--ict-motion-ease),
    opacity 420ms var(--ict-motion-ease),
    background-color 420ms var(--ict-motion-ease);
}
:where(.word-card, .route-item, .route, .video-card, .lesson-photo) img {
  transition:
    transform 550ms var(--ict-motion-ease),
    filter 420ms var(--ict-motion-ease);
}
:where(.word-picture, .route-photo, .lesson-photo) {
  object-fit: cover;
  image-rendering: auto;
}
:where(.button, .lang-button, .mobile-toggle):not(:disabled):active {
  scale: 0.97;
}
:where(.quiz-options button, .choice-grid button):not(:disabled):active {
  transform: scale(0.98);
}
:where(button, a, input, select, textarea):focus-visible {
  outline: 3px solid var(--accent, #337cbd);
  outline-offset: 4px;
}
/* Disable movement for visitors who prefer reduced motion. */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto !important;
  }
  .view:not([hidden]).ict-page-enter {
    animation: none !important;
  }
  .ict-motion-ready .ict-reveal,
  .ict-motion-ready .ict-reveal:not(.ict-visible) {
    opacity: 1 !important;
    translate: none !important;
    transition: none !important;
  }
  :where(
    .nav a,
    #primary-nav a,
    .button,
    .route-item,
    .route,
    .word-card,
    .machine-card,
    .video-card,
    .lesson-tab,
    .quiz-options button,
    .choice-grid button,
    .art-card,
    .lang-button,
    .mobile-toggle
  ),
  :where(.nav a, #primary-nav a)::after,
  :where(.word-card, .route-item, .route, .video-card, .lesson-photo) img {
    animation: none !important;
    transition: none !important;
    transform: none !important;
  }
}
/* Word Lab cards share one photo ratio and one hover rhythm. */
.view :is(.word-grid, .glossary-grid) {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 255px), 1fr));
  gap: 20px;
}
.word-card img.word-picture,
.glossary-entry img.glossary-picture {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  margin: 0 0 16px;
  object-fit: cover;
  border-radius: 12px;
  transition: filter var(--ict-motion-medium) var(--ict-motion-ease);
}
.word-card:hover img.word-picture,
.glossary-entry:hover img.glossary-picture {
  filter: brightness(1.07);
  transform: none;
}
.word-card:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 4px;
}
@media (prefers-reduced-motion: reduce) {
  .word-card img.word-picture,
  .glossary-entry img.glossary-picture {
    transition: none;
  }
}
@media (min-width: 900px) {
  .hero h1 {
    font-size: clamp(2.25rem, 4.1vw, 5.15rem);
    white-space: nowrap;
  }
}
/* Keep portrait photographs and exhibit details visible. */
img[src$="/capital.webp"],
img[src$="/dynamo.webp"],
img[src$="/oxygen.webp"],
img[src$="/reuse.webp"],
img[src$="/label.webp"] {
  object-fit: contain !important;
}
@media (min-width: 1101px) {
  .site-header {
    height: auto;
    min-height: 88px;
    padding: 10px clamp(16px, 4vw, 72px);
  }
  .site-header nav {
    gap: clamp(6px, 1vw, 16px);
  }
}
/* Crossfade the outgoing and incoming pages while the header stays in place. */
@supports (view-transition-name: ict-content) {
  @media (prefers-reduced-motion: no-preference) {
    main {
      view-transition-name: ict-content;
    }
    ::view-transition-old(root),
    ::view-transition-new(root) {
      animation: none;
    }
    ::view-transition-old(ict-content) {
      animation: ict-fade-out 240ms ease-out both;
    }
    ::view-transition-new(ict-content) {
      animation: ict-fade-in 420ms var(--ict-motion-ease) both;
    }
    .ict-crossfade .view:not([hidden]) {
      animation: none !important;
    }
  }
}


/* Use the same motion for equivalent controls on all three sites. */
:root {
  --interaction-time: 320ms;
  --interaction-ease: cubic-bezier(0.22, 1, 0.36, 1);
}
.site-header nav a,
:is(
  .button,
  .round-link,
  .vocab-pill,
  .answer,
  .quiz-options button,
  .choice-grid button,
  .mini-options button,
  .lesson-tab,
  .machine-selector button
),
:is(
  .word-card,
  .glossary-entry,
  .machine-card,
  .route,
  .route-item,
  .video-card,
  .lesson-photo
) {
  transition:
    translate var(--interaction-time) var(--interaction-ease),
    box-shadow var(--interaction-time) var(--interaction-ease),
    color var(--interaction-time) var(--interaction-ease),
    background-color var(--interaction-time) var(--interaction-ease),
    border-color var(--interaction-time) var(--interaction-ease);
}
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .site-header nav a:hover,
  :is(
      .button,
      .round-link,
      .vocab-pill,
      .answer,
      .quiz-options button,
      .choice-grid button,
      .mini-options button,
      .lesson-tab,
      .machine-selector button
    ):hover:not(:disabled) {
    translate: 0 -2px;
    transform: none;
  }
  :is(
    .word-card,
    .glossary-entry,
    .machine-card,
    .route,
    .route-item,
    .video-card,
    .lesson-photo
  ):hover {
    translate: 0 -4px;
    transform: none;
    box-shadow: 0 14px 28px rgb(0 0 0 / 12%);
  }
  :is(.route, .route-item):hover :is(img, .route-preview, .route-arrow),
  .lesson-photo:hover img {
    transform: none;
  }
}
/* Scroll-reveal cards also transition their shadow on hover. */
.ict-motion-ready .ict-reveal {
  transition:
    opacity 480ms var(--interaction-ease) var(--ict-delay, 0ms),
    translate 540ms var(--interaction-ease) var(--ict-delay, 0ms),
    box-shadow var(--interaction-time) var(--interaction-ease);
}
@media (prefers-reduced-motion: reduce) {
  .ict-motion-ready .ict-reveal:not(.ict-visible) {
    transition: none;
  }
}
/* Shared hero entrance and gentle hover movement. */
.view:not([hidden])
  .hero-copy
  :is(.eyebrow, h1, .hero-lead, .hero-actions, .hero-stats) {
  animation: hero-content-in 650ms var(--interaction-ease) both;
}
.view:not([hidden]) .hero-copy h1 {
  animation-delay: 70ms;
}
.view:not([hidden]) .hero-copy .hero-lead {
  animation-delay: 130ms;
}
.view:not([hidden]) .hero-copy .hero-actions {
  animation-delay: 190ms;
}
.view:not([hidden]) .hero-copy .hero-stats {
  animation-delay: 250ms;
}
.hero .hero-title-wrap {
  animation: none;
}
.hero .hero-panel {
  animation: none;
  transition:
    translate var(--hover-time) var(--hover-ease),
    scale var(--hover-time) var(--hover-ease),
    box-shadow var(--hover-time) var(--hover-ease);
}
.hero .hero-panel-secondary {
  animation-duration: 11s;
  animation-delay: -3s;
}
.hero .hero-panel .art-card,
.hero .hero-panel:hover .art-card {
  transform: none;
  box-shadow: none;
}
.hero .hero-panel:hover {
  animation-play-state: running;
  box-shadow: none;
}
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .hero .hero-panel:hover {
    translate: 0 -4px;
    scale: 1.01;
    box-shadow: 0 24px 48px rgb(0 0 0 / 22%);
    z-index: 5;
  }
}


@media (prefers-reduced-motion: reduce) {
  .view:not([hidden])
    .hero-copy
    :is(.eyebrow, h1, .hero-lead, .hero-actions, .hero-stats),
  .hero .hero-panel {
    animation: none !important;
  }
}
/* Lesson links are a numbered list. The original dynamo diagram is an exhibit preview. */
.home-routes .route {
  grid-template-columns: 38px minmax(0, 1fr) 34px;
  min-height: 96px;
}
.home-routes .route-with-diagram {
  grid-template-columns: 38px minmax(0, 1fr) minmax(105px, 19%) 34px;
}
.route-with-diagram img {
  width: 100%;
  object-fit: contain;
  border-radius: 8px;
}
@media (max-width: 600px) {
  .home-routes .route {
    grid-template-columns: 24px minmax(0, 1fr) 24px;
  }
  .home-routes .route-with-diagram {
    grid-template-columns: 24px minmax(0, 1fr) 25% 24px;
  }
}
/* Keep the artwork quiet so headings and photographs lead the page. */
.hero .hero-panel-secondary {
  animation: none;
}

/* Subject content and colors */
/* Myanmar glyphs are available offline on any device. */
@font-face {
  font-family: "Noto Sans Myanmar";
  src: url("assets/fonts/NotoSansMyanmar-Regular.ttf");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Noto Sans Myanmar";
  src: url("assets/fonts/NotoSansMyanmar-Bold.ttf");
  font-weight: 700;
  font-display: swap;
}
:root {
  --ink: #493326;
  --deep: #31251d;
  --green: #97702a;
  --mint: #f1d8b0;
  --blue: #bd754a;
  --pale: #faf4e9;
  --white: #fffdf7;
  --line: #dfccae;
  --yellow: #f2cf83;
  --muted: #806b57;
  --shadow: 0 22px 60px rgba(10, 49, 38, 0.12);
  font-family: system-ui, "Noto Sans Myanmar", sans-serif;
  color: var(--ink);
  background: var(--pale);
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}
body {
  margin: 0;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}
button,
input {
  font: inherit;
}
button,
a {
  -webkit-tap-highlight-color: transparent;
}
a {
  color: inherit;
  text-decoration: none;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}
img {
  max-width: 100%;
}
h1,
h2,
h3,
p {
  margin-top: 0;
}
::selection {
  background: var(--yellow);
  color: var(--deep);
}
:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 4px;
}
.skip {
  position: absolute;
  z-index: 100;
  left: 1rem;
  top: -4rem;
  background: white;
  padding: 1rem;
}
.skip:focus {
  top: 1rem;
}
.page-frame {
  width: 100%;
  margin: auto;
  overflow: hidden;
}
.lang-button {
  border: 1px solid var(--ink);
  background: transparent;
  border-radius: 100px;
  padding: 10px 15px;
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
}
.lang-button:hover {
  background: var(--mint);
}
.view[hidden] {
  display: none !important;
}
.eyebrow,
.section-index,
.end-label {
  font:
    800 11px system-ui,
    "Noto Sans Myanmar",
    sans-serif;
  letter-spacing: 2px;
}
.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
}
.eyebrow-dot {
  width: 10px;
  height: 10px;
  background: #68b08e;
  border-radius: 50%;
  box-shadow: 0 0 0 6px #d7e9d7;
}
.section-heading h2 em,
.inner-intro h1 em {
  font-family: Georgia, serif;
  font-weight: 600;
  letter-spacing: -0.07em;
  color: var(--green);
}
.period {
  color: var(--blue);
}
.button {
  border: none;
  min-height: 53px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 38px;
  font-weight: 800;
  font-size: 12px;
  letter-spacing: 0.2px;
  padding: 14px 22px;
}
.button:hover {
  transform: translateY(-3px);
  box-shadow: 0 9px 20px #123e3722;
}
.button-primary {
  background: var(--deep);
  color: white;
}
.button-primary:hover {
  background: var(--green);
}
.button-outline {
  background: transparent;
  border: 1px solid var(--ink);
  color: var(--ink);
}
.text-link {
  font-weight: 800;
  font-size: 12px;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 5px;
  background: none;
  border: 0;
  padding: 10px 0;
}
.text-link:hover {
  color: var(--blue);
}
.photo-label {
  position: absolute;
  bottom: 19px;
  left: 20px;
  color: white;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 2px;
  z-index: 1;
}
.section-heading {
  padding: 90px clamp(24px, 8vw, 130px) 50px;
}
.section-heading h2,
.inner-intro h1 {
  font:
    700 clamp(45px, 5.2vw, 78px)/1.1 system-ui,
    "Noto Sans Myanmar",
    sans-serif;
  letter-spacing: -0.065em;
  margin: 24px 0;
}
.section-heading p,
.inner-intro p {
  font-size: 16px;
  color: var(--muted);
  max-width: 550px;
  line-height: 1.8;
}
.content-view {
  min-height: calc(100vh - 180px);
  padding: 65px clamp(24px, 7vw, 115px) 110px;
}
.inner-intro {
  margin-bottom: 50px;
}
.inner-intro h1 {
  margin-bottom: 15px;
}
.lesson-layout {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 35px;
  align-items: start;
}
.lesson-nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
  position: sticky;
  top: 24px;
}
.lesson-tab {
  display: flex;
  gap: 12px;
  text-align: left;
  align-items: center;
  border: 1px solid var(--line);
  padding: 17px 15px;
  background: var(--white);
  color: var(--ink);
}
.lesson-tab span {
  font-size: 11px;
  color: var(--green);
  font-weight: 800;
}
.lesson-tab b {
  font-size: 13px;
}
.lesson-tab:hover {
  transform: translateX(4px);
}
.lesson-tab.active {
  background: var(--deep);
  color: white;
}
.lesson-tab.active span {
  color: var(--yellow);
}
.lesson-paper {
  background: var(--white);
  border: 1px solid var(--line);
  padding: clamp(24px, 5vw, 65px);
  box-shadow: var(--shadow);
}
.lesson-banner {
  height: 245px;
  background-size: cover;
  background-position: center;
  margin-bottom: 35px;
  position: relative;
  overflow: hidden;
}
.lesson-banner:after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, #123e3799, transparent);
}
.lesson-banner span {
  position: absolute;
  bottom: 20px;
  left: 22px;
  color: white;
  font-weight: 800;
  letter-spacing: 2px;
  font-size: 11px;
  z-index: 1;
}
.lesson-paper h2 {
  font:
    700 clamp(36px, 5vw, 62px)/1.1 system-ui,
    "Noto Sans Myanmar",
    sans-serif;
  letter-spacing: -0.055em;
}
.lesson-paper .intro {
  font-size: 18px;
  line-height: 1.7;
  color: var(--green);
  font-weight: 600;
}
.lesson-paper h3 {
  font:
    700 20px system-ui,
    "Noto Sans Myanmar",
    sans-serif;
  margin-top: 35px;
}
.lesson-paper .paragraph {
  line-height: 1.95;
  color: #3c5851;
  font-size: 15px;
}
.lesson-vocab {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}
.vocab-pill {
  background: var(--mint);
  border: 0;
  border-radius: 30px;
  padding: 10px 15px;
  font-size: 12px;
  font-weight: 800;
  color: var(--deep);
}
.vocab-pill:hover {
  background: var(--yellow);
}
.mini-check {
  background: var(--pale);
  padding: 23px;
  margin-top: 34px;
}
.mini-check p {
  line-height: 1.6;
}
.mini-options {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.mini-options button {
  padding: 10px 14px;
  background: white;
  border: 1px solid var(--line);
  color: var(--ink);
  font-weight: 700;
}
.mini-options button:hover {
  background: var(--mint);
}
.mini-options button.correct {
  background: var(--mint);
  border-color: var(--green);
}
.mini-options button.incorrect {
  background: #ffdcce;
  border-color: #cf5d4e;
}
.mini-result {
  font-size: 13px;
  font-weight: 800;
  min-height: 20px;
  margin-top: 14px;
}
.word-tools {
  display: flex;
  align-items: center;
  gap: 20px;
  margin: 45px 0 30px;
  flex-wrap: wrap;
}
.word-tools label {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1.4px;
}
.word-tools input {
  flex: 1;
  min-width: 220px;
  max-width: 650px;
  background: white;
  border: 1px solid var(--line);
  padding: 17px;
  font-size: 14px;
  outline-color: var(--green);
}
.word-tools span {
  font-size: 12px;
  font-weight: 800;
  color: var(--green);
}
.word-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 13px;
}
.word-card {
  background: var(--white);
  padding: 24px;
  min-height: 160px;
  border: 1px solid var(--line);
  position: relative;
}
.word-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}
.word-card h3 {
  font:
    700 22px system-ui,
    "Noto Sans Myanmar",
    sans-serif;
  letter-spacing: -0.6px;
  padding-right: 35px;
  margin-bottom: 8px;
}
.word-card p {
  font-size: 13px;
  line-height: 1.6;
  color: var(--muted);
  margin-bottom: 6px;
}
.word-card small {
  font-size: 12px;
  color: var(--green);
}
.sound {
  position: absolute;
  right: 16px;
  top: 17px;
  background: var(--mint);
  border: 0;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-size: 14px;
}
.sound:hover {
  background: var(--yellow);
}
.challenge-board,
.quiz-shell {
  max-width: 800px;
  margin: auto;
  background: var(--white);
  border: 1px solid var(--line);
  padding: clamp(25px, 5vw, 55px);
  box-shadow: var(--shadow);
}
.challenge-top,
.quiz-progress {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font:
    800 11px system-ui,
    "Noto Sans Myanmar",
    sans-serif;
  letter-spacing: 1px;
  color: var(--green);
  gap: 20px;
}
.challenge-object {
  padding: 45px 0;
  text-align: center;
}
.object-symbol {
  font-size: 80px;
  line-height: 1.4;
}
.challenge-object h2,
.quiz-shell h2 {
  font:
    700 clamp(28px, 4vw, 47px)/1.16 system-ui,
    "Noto Sans Myanmar",
    sans-serif;
  letter-spacing: -1.6px;
  margin: 10px 0;
}
.challenge-object p {
  color: var(--muted);
  font-size: 14px;
}
.choice-grid,
.quiz-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.choice-grid button,
.quiz-options button {
  border: 1px solid var(--line);
  background: var(--pale);
  color: var(--deep);
  padding: 20px;
  text-align: left;
  font-size: 13px;
  font-weight: 800;
}
.choice-grid button:hover:not(:disabled),
.quiz-options button:hover:not(:disabled) {
  background: var(--mint);
  transform: translateY(-2px);
}
.choice-grid button.correct,
.quiz-options button.correct {
  background: #b7ebc8;
  border-color: #1d865e;
}
.choice-grid button.incorrect,
.quiz-options button.incorrect {
  background: #ffdfd2;
  border-color: #bc6350;
}
.feedback {
  min-height: 25px;
  margin: 20px 0 12px;
  font-weight: 700;
  font-size: 14px;
  line-height: 1.6;
}
.progress-track {
  height: 6px;
  background: #d9e7dc;
  margin: 20px 0 45px;
}
.progress-track span {
  display: block;
  height: 100%;
  width: 0;
  background: var(--green);
}
.quiz-shell h2 {
  margin-bottom: 30px;
}
.quiz-options {
  grid-template-columns: 1fr;
}
.quiz-options button {
  display: flex;
  gap: 15px;
}
.quiz-options .option-letter {
  color: var(--green);
}
.result-score {
  font:
    700 85px system-ui,
    "Noto Sans Myanmar",
    sans-serif;
  letter-spacing: -6px;
  margin: 15px 0;
  color: var(--green);
}
.result-score small {
  font-size: 25px;
  letter-spacing: 0;
}
.habit-layout {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 20px;
}
.habit-panel,
.impact-panel {
  background: var(--white);
  border: 1px solid var(--line);
  padding: 30px;
}
.habit-heading {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1px;
  margin-bottom: 25px;
}
.habit-row {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 20px 0;
  border-top: 1px solid var(--line);
  cursor: pointer;
}
.habit-row input {
  accent-color: var(--green);
  width: 19px;
  height: 19px;
  flex: 0 0 auto;
}
.habit-row span {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.habit-row b {
  font-size: 15px;
}
.habit-row small {
  color: var(--muted);
  font-size: 12px;
}
.habit-row:has(input:checked) b {
  text-decoration: line-through;
  opacity: 0.72;
}
.impact-panel {
  background: var(--deep);
  color: white;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.impact-orbit {
  width: 220px;
  height: 220px;
  border-radius: 50%;
  border: 2px dotted var(--mint);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle, #1e6653 0%, transparent 70%);
  position: relative;
}
.impact-orbit:after {
  content: "✳";
  position: absolute;
  right: -15px;
  top: 32px;
  font-size: 35px;
  color: var(--yellow);
}
.impact-orbit span {
  font:
    700 65px system-ui,
    "Noto Sans Myanmar",
    sans-serif;
}
.impact-orbit small {
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 1.6px;
}
.impact-panel h2 {
  font:
    700 31px/1.2 system-ui,
    "Noto Sans Myanmar",
    sans-serif;
  margin: 33px 0 15px;
}
.impact-panel p {
  color: #c5e0d7;
  font-size: 13px;
  line-height: 1.8;
  max-width: 240px;
}
.reset-link {
  color: var(--yellow);
}
.site-footer {
  display: flex;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  padding: 18px clamp(12px, 4vw, 60px);
  background: var(--yellow);
  border-top: 1px solid var(--deep);
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}
.partner-logo-band {
  display: flex;
  flex: 0 0 100%;
  justify-content: center;
  width: 100%;
  min-width: 0;
}
.partner-logos {
  display: flex;
  flex: 0 1 auto;
  align-items: center;
  justify-content: center;
  gap: clamp(10px, 2.4vw, 24px);
  width: max-content;
  max-width: 100%;
  min-width: 0;
  padding: 0;
  background: transparent;
  border-radius: 0;
}
.partner-logos img {
  display: block;
  object-fit: contain;
}
.partner-logos img:nth-child(1) {
  width: 68px;
  height: 68px;
}
.partner-logos img:nth-child(2) {
  width: 64px;
  height: 104px;
}
.partner-logos img:nth-child(3) {
  width: 210px;
  height: 54px;
}
.footer-brand {
  font:
    700 22px system-ui,
    "Noto Sans Myanmar",
    sans-serif;
  letter-spacing: -0.8px;
  min-width: 0;
}
.footer-brand span {
  color: var(--green);
}
.site-footer p {
  font-size: 14px;
  line-height: 1.5;
  font-weight: 700;
  margin: 0;
  min-width: 0;
}
.site-footer a {
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
  flex-shrink: 0;
}
@keyframes rotate {
  to {
    transform: rotate(360deg);
  }
}
@keyframes bob {
  50% {
    transform: rotate(9deg) translateY(10px);
  }
}
@keyframes marquee {
  to {
    transform: translateX(-35%);
  }
}
@media (max-width: 1100px) {
  .word-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 800px) {
  .lesson-layout,
  .habit-layout {
    grid-template-columns: 1fr;
  }
  .lesson-nav {
    position: static;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
  }
  .site-footer {
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    text-align: center;
  }
}
@media (max-width: 500px) {
  .lang-button {
    padding: 8px 10px;
    font-size: 10px;
  }
  .site-footer {
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 16px 12px;
  }
  .footer-brand {
    font-size: 18px;
  }
  .site-footer p {
    font-size: 13px;
  }
  .section-heading {
    padding-top: 65px;
  }
  .section-heading h2,
  .inner-intro h1 {
    font-size: 40px;
  }
  .content-view {
    padding: 40px 18px 75px;
  }
  .lesson-nav {
    gap: 5px;
  }
  .lesson-tab {
    padding: 12px 7px;
  }
  .lesson-tab b {
    font-size: 11px;
  }
  .word-grid,
  .choice-grid {
    grid-template-columns: 1fr;
  }
  .habit-panel,
  .impact-panel {
    padding: 22px;
  }
  .site-footer {
    gap: 12px;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
  }
  .site-footer p {
    width: auto;
    font-size: 13px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *:before,
  *:after {
    scroll-behavior: auto !important;
  }
}
@media (max-width: 800px) {
  .site-footer {
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }
  .site-footer > * {
    min-width: 0;
    max-width: 100%;
    overflow-wrap: anywhere;
  }
}
@media (max-width: 500px) {
  .site-footer {
    align-items: center;
    text-align: center;
  }
  .site-footer a {
    white-space: normal;
    text-align: center;
  }
  .partner-logos {
    gap: 8px;
    padding: 8px;
  }
  .partner-logos img:nth-child(1) {
    width: 46px;
    height: 46px;
  }
  .partner-logos img:nth-child(2) {
    width: 50px;
    height: 80px;
  }
  .partner-logos img:nth-child(3) {
    width: 128px;
    height: 33px;
  }
}
:root {
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.22, 1.6, 0.45, 1);
}
/* Navigation makes the active destination easier to identify. */
.lang-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 0 #123e3718;
}
/* Headline rises in stages as soon as Home is opened. */
/* The two photographic panels float independently. */
/* Small directional cues on actionable elements. */
.button {
  position: relative;
  overflow: hidden;
}
.button::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(
    115deg,
    transparent 20%,
    #ffffff40 48%,
    transparent 75%
  );
  transform: translateX(-150%);
}
.button:hover::before {
  transform: translateX(150%);
}
.button:hover:not(:disabled) {
  transform: translateY(-5px) scale(1.02);
  box-shadow: 0 14px 25px #123e3728;
}
.button:active:not(:disabled) {
  transform: translateY(-1px) scale(0.98);
}
.text-link:hover,
.site-footer a:hover {
  letter-spacing: 0.035em;
}
.lesson-tab:hover:not(.active) {
  transform: translateX(8px) scale(1.015);
  box-shadow: -5px 5px 0 var(--mint);
}
.lesson-tab.active {
  box-shadow: inset 4px 0 var(--yellow);
}
.word-card {
  overflow: hidden;
}
.word-card:hover {
  border-color: var(--green);
  box-shadow: 0 24px 36px #123e3720;
}
.word-card > * {
  position: relative;
  z-index: 1;
}
.sound:hover {
  transform: rotate(-13deg) scale(1.18);
  box-shadow: 0 4px 0 #24796129;
}
.lesson-banner:hover {
  filter: saturate(1.18) contrast(1.035);
}
.choice-grid button:hover:not(:disabled),
.quiz-options button:hover:not(:disabled),
.mini-options button:hover:not(:disabled) {
  transform: translateY(-5px) translateX(3px);
  box-shadow: -4px 5px 0 #24796122;
  border-color: var(--green);
}
.choice-grid button:active:not(:disabled),
.quiz-options button:active:not(:disabled),
.mini-options button:active:not(:disabled) {
  transform: scale(0.985);
}
.object-symbol {
  display: inline-block;
}
.habit-row:hover {
  background: #e1f2e57d;
  padding-inline: 12px;
}
.habit-row:hover input {
  transform: scale(1.22);
}
.progress-track {
  overflow: hidden;
}
/* Only reveal elements after the observer is installed.
   Unobserved content remains visible, preventing blank-scroll bugs. */
/* Re-entering a navigation view is visibly intentional. */
@keyframes field-enter {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes view-arrive {
  from {
    opacity: 0.7;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes forest-drift {
  0%,
  100% {
    transform: rotate(7deg) translateY(0);
  }
  50% {
    transform: rotate(5deg) translateY(-11px);
  }
}
@keyframes ocean-drift {
  0%,
  100% {
    transform: rotate(-10deg) translateY(0);
  }
  50% {
    transform: rotate(-7deg) translateY(13px);
  }
}
@keyframes field-sheen {
  from {
    transform: translateX(-130%);
  }
  to {
    transform: translateX(130%);
  }
}
@keyframes field-breathe {
  0%,
  100% {
    transform: translateY(0) scale(1);
  }
  50% {
    transform: translateY(-7px) scale(1.035);
  }
}
@keyframes field-orbit {
  0%,
  100% {
    box-shadow: 0 0 0 0 #c6f0ca10;
  }
  50% {
    box-shadow: 0 0 0 16px #c6f0ca17;
  }
}
.word-card {
  min-width: 0;
  padding: 23px;
}
.word-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 11px;
}
.word-card-top h3 {
  flex: 1;
  min-width: 0;
  margin: 0;
  padding: 0;
  overflow-wrap: anywhere;
  line-height: 1.25;
}
.word-card .sound {
  position: static;
  flex: 0 0 42px;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  color: var(--deep);
}
.word-card .sound:hover {
  transform: scale(1.12) rotate(-7deg);
  box-shadow: 0 5px 16px #163b2a22;
}
.word-card .sound:active {
  transform: scale(0.94);
}
.audio-status {
  min-height: 1.3em;
  font-size: 12px;
  font-weight: 700;
  color: var(--green);
}
.object-symbol {
  width: min(165px, 42vw);
  height: min(165px, 42vw);
  margin: auto;
  display: grid;
  place-items: center;
  border-radius: 32px;
  background: linear-gradient(145deg, #f2faf1, #c9ebd5);
  border: 1px solid var(--line);
  box-shadow: 0 15px 40px #10453418;
}
.object-symbol img {
  display: block;
  width: 100px;
  height: 100px;
  max-width: 72%;
  max-height: 72%;
  object-fit: contain;
}
.challenge-object:hover .object-symbol {
  transform: translateY(-6px) rotate(3deg);
}
@media (prefers-reduced-motion: reduce) {
  .word-card .sound,
  .object-symbol {
  }
}
/* Lesson practice box: original, short exercises aligned to the official unit. */
.textbook-activity {
  margin: 1.8rem 0;
  padding: 1.2rem 1.5rem;
  background: #edf7ed;
  border-left: 4px solid #438a66;
  border-radius: 0.4rem;
}
.textbook-activity h3 {
  margin: 0 0 0.65rem;
}
.textbook-activity p {
  margin: 0;
  line-height: 1.8;
}
/* Homepage title repair: never split or crop the word Environment. */
/* Hero heading: the project name is the only homepage title. */
/* Image presentation: avoid aggressive zoom that magnifies small textbook scans. */
.lesson-banner {
  background-size: cover;
  background-position: center;
}
/* Bundled high-resolution nature photography. No network required. */
.lesson-photo-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 34px 0 26px;
}
.lesson-photo {
  margin: 0;
  overflow: hidden;
  background: var(--pale);
  border: 1px solid var(--line);
}
.lesson-photo img {
  display: block;
  width: 100%;
  height: 160px;
  object-fit: cover;
}
.lesson-photo:hover img {
  transform: scale(1.045);
}
.lesson-photo figcaption {
  padding: 11px 12px;
  font-size: 11px;
  line-height: 1.35;
  color: var(--muted);
}
@media (max-width: 600px) {
  .lesson-photo-grid {
    grid-template-columns: 1fr;
  }
  .lesson-photo img {
    height: 210px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .lesson-photo img {
  }
}
/* Larger main heading, with enough room to show the full project title. */
/* Life Skills adaptation: same layout patterns as Our Environment. */
:root {
  --shadow: 0 22px 60px rgba(73, 51, 38, 0.13);
}
body {
  font-family: system-ui, "Noto Sans Myanmar", sans-serif;
}
.lesson-paper p {
  line-height: 2.1;
}
.lesson-paper h2 {
  letter-spacing: -0.03em;
}
.lesson-paper .lesson-banner {
  background-size: cover;
}
.topic-note {
  margin: 24px 0;
  border-left: 4px solid var(--green);
  background: #f9edda;
  padding: 16px 20px;
  line-height: 1.9;
}
.lesson-text {
  font-size: 15px;
  line-height: 2.1;
}
.lesson-tag {
  color: var(--green);
  font-size: 12px;
  font-weight: 800;
}
.lesson-paper .lesson-figure {
  width: 100%;
  max-height: 320px;
  object-fit: cover;
  margin: 18px 0;
}
.word-grid {
  align-items: stretch;
}
.word-card {
  min-height: 190px;
}
.word-card p {
  line-height: 1.75;
}
.note-tag {
  display: inline-block;
  font-size: 10px;
  color: var(--green);
  font-weight: 800;
  letter-spacing: 1px;
  margin-bottom: 10px;
}
.challenge-symbol {
  font-size: 54px;
}
.source-foot {
  font-size: 12px;
  color: var(--muted);
  margin-top: 30px;
  line-height: 2;
}
.source-foot a {
  text-decoration: underline;
}
.progress-track {
  background: #eadcc8;
}
.quiz-shell,
.challenge-board {
  background: var(--white);
}
.question-visual {
  width: min(150px, 38vw);
  height: min(150px, 38vw);
  margin: 0 auto 18px;
  display: grid;
  place-items: center;
  border-radius: 30px;
  background: linear-gradient(145deg, #fff8eb, #efd9b8);
  border: 1px solid var(--line);
  box-shadow: 0 14px 34px rgba(73, 51, 38, 0.12);
}
.question-visual svg,
.object-symbol svg {
  width: 78%;
  height: 78%;
  display: block;
}
/* Final results: always show the score prominently and reset the picture. */
.quiz-result {
  margin: 22px 0;
  padding: 24px 16px;
  text-align: center;
  background: #fff2d9;
  border: 2px solid #c9a36a;
  border-radius: 18px;
}
.quiz-result-label {
  margin: 0;
  font-size: 16px;
  font-weight: 800;
  color: var(--deep);
}
.quiz-result .result-score {
  display: block;
  margin: 12px 0;
  color: var(--deep);
  font-size: clamp(44px, 9vw, 76px);
  font-weight: 900;
  letter-spacing: 0;
  line-height: 1.3;
}
.quiz-result-percent {
  margin: 0;
  color: var(--green);
  font-size: 25px;
  font-weight: 900;
}
.final-score-line {
  color: var(--deep) !important;
  font-size: clamp(18px, 4vw, 26px) !important;
  font-weight: 900;
}
.final-visual {
  background: #fff0cb;
}
.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
  padding: 8px 5vw 56px;
  max-width: 1200px;
  margin: 0 auto;
}
.video-card {
  background: var(--paper, #fff);
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.08);
}
.video-card video {
  display: block;
  width: 100%;
  aspect-ratio: 16/9;
  background: #111;
}
.video-card div {
  padding: 14px 18px 18px;
}
.video-card h3 {
  margin: 0 0 6px;
  font-size: 1.1rem;
}
.video-card p {
  margin: 0;
  opacity: 0.8;
  line-height: 1.5;
}
/* Logos: transparent PNGs, sized to sit quietly beside the brand */
.header-logo {
  display: block;
  width: 44px;
  height: 44px;
  object-fit: contain;
  flex: none;
}
@media (max-width: 640px) {
  .header-logo {
    width: 34px;
    height: 34px;
  }
}
.header-logo {
  display: block;
  width: 44px;
  height: 44px;
  object-fit: contain;
  flex: none;
}
@media (max-width: 640px) {
  .header-logo {
    width: 34px;
    height: 34px;
  }
}
/* Logo strip */
.logo-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: clamp(24px, 6vw, 72px);
  padding: 36px clamp(16px, 4vw, 60px);
  background: #fbfaf4;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
}
.logo-strip img {
  display: block;
  object-fit: contain;
}
.logo-strip img:nth-child(1) {
  width: 84px;
  height: 84px;
}
.logo-strip img:nth-child(2) {
  width: 68px;
  height: 110px;
}
.logo-strip img:nth-child(3) {
  width: 220px;
  height: 56px;
}
@media (max-width: 640px) {
  .logo-strip {
    gap: 20px;
    padding: 24px 16px;
  }
  .logo-strip img:nth-child(1) {
    width: 56px;
    height: 56px;
  }
  .logo-strip img:nth-child(2) {
    width: 46px;
    height: 74px;
  }
  .logo-strip img:nth-child(3) {
    width: 150px;
    height: 38px;
  }
}
.site-footer .partner-logo-band {
  display: none !important;
}
.header-logo {
  display: none !important;
}
/* About me */
.about-card {
  display: flex;
  align-items: center;
  gap: clamp(20px, 4vw, 48px);
  flex-wrap: wrap;
  max-width: 820px;
  margin: 32px auto 0;
  padding: clamp(20px, 4vw, 40px);
  background: #fbfaf4;
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 12px;
}
.about-card img {
  width: 120px;
  height: 120px;
  object-fit: contain;
  flex: none;
}
.about-card dl {
  margin: 0;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px 20px;
  font-size: 18px;
}
.about-card dt {
  font-weight: 700;
  opacity: 0.65;
}
.about-card dd {
  margin: 0;
  font-weight: 700;
}
.about-card p {
  flex: 1 1 100%;
  margin: 0;
  line-height: 1.7;
}
@media (max-width: 640px) {
  .about-card img {
    width: 84px;
    height: 84px;
  }
  .about-card dl {
    font-size: 16px;
  }
}
.about-card img.school-logo {
  width: 130px;
  height: auto;
  max-height: 170px;
}
.about-card dd a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
}
@media (max-width: 640px) {
  .about-card img.school-logo {
    width: 90px;
  }
}
.about-card dl {
  flex: 1 1 300px;
  min-width: 0;
}
.about-card dd {
  overflow-wrap: anywhere;
}
/* Offline illustrated photo thumbnails for the Word Lab */
.word-card {
  overflow: hidden;
}
.word-card .word-picture {
  display: block;
  width: calc(100% + 48px);
  max-width: none;
  height: 170px;
  margin: -24px -24px 20px;
  object-fit: cover;
  background: #e6eee9;
  border-bottom: 1px solid var(--line);
}
.word-card:hover .word-picture {
  filter: saturate(1.08);
}
@media (max-width: 600px) {
  .word-card .word-picture {
    height: 170px;
  }
}
.quiz-type {
  display: inline-block;
  margin: 4px 0 14px;
  padding: 7px 14px;
  border: 1px solid var(--line, #ddd);
  border-radius: 999px;
  font-weight: 800;
  font-size: 0.84rem;
  letter-spacing: 0.03em;
}
:root {
  --ict-motion-ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ict-motion-fast: 260ms;
  --ict-motion-medium: 420ms;
  --ict-motion-slow: 720ms;
  --ict-radius: 18px;
}
html {
  scroll-behavior: smooth;
}
[hidden] {
  display: none !important;
}
/* Fade the new page in when a visitor uses the menu. */
@keyframes ict-page-enter {
  from {
    opacity: 0.72;
    translate: 0 10px;
  }
  to {
    opacity: 1;
    translate: 0 0;
  }
}
/* Reveal cards as they come into view. */
/* Cards, tabs and buttons share the same shape and timing. */
:where(.quiz-options button, .choice-grid button):not(:disabled):active {
  transform: scale(0.98);
}
:where(button, a, input, select, textarea):focus-visible {
  outline: 3px solid var(--accent, #337cbd);
  outline-offset: 4px;
}
/* Disable movement for visitors who prefer reduced motion. */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto !important;
  }
}
/* Word Lab cards share one photo ratio and one hover rhythm. */
.view :is(.word-grid, .glossary-grid) {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 255px), 1fr));
  gap: 20px;
}
.word-card img.word-picture,
.glossary-entry img.glossary-picture {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  margin: 0 0 16px;
  object-fit: cover;
  border-radius: 12px;
}
.word-card:hover img.word-picture,
.glossary-entry:hover img.glossary-picture {
  filter: brightness(1.07);
  transform: none;
}
.word-card:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 4px;
}
@media (prefers-reduced-motion: reduce) {
  .word-card img.word-picture,
  .glossary-entry img.glossary-picture {
  }
}
/* Keep portrait photographs and exhibit details visible. */
img[src$="/capital.webp"],
img[src$="/dynamo.webp"],
img[src$="/oxygen.webp"],
img[src$="/reuse.webp"],
img[src$="/label.webp"] {
  object-fit: contain !important;
}
/* Give the editable text area room even when the Myanmar font is active. */
.word-tools input {
  min-height: 48px;
  padding: 10px 14px;
  font:
    400 16px/1.5 Arial,
    "Noto Sans Myanmar",
    sans-serif;
}
/* Crossfade the outgoing and incoming pages while the header stays in place. */
@supports (view-transition-name: ict-content) {
  @media (prefers-reduced-motion: no-preference) {
    main {
      view-transition-name: ict-content;
    }
    ::view-transition-old(root),
    ::view-transition-new(root) {
    }
    ::view-transition-old(ict-content) {
    }
    ::view-transition-new(ict-content) {
    }
  }
}
@keyframes ict-fade-out {
  to {
    opacity: 0;
  }
}
@keyframes ict-fade-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
/* Use the same motion for equivalent controls on all three sites. */
:root {
  --interaction-time: 320ms;
  --interaction-ease: cubic-bezier(0.22, 1, 0.36, 1);
}
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .lesson-photo:hover img {
    transform: none;
  }
}
/* Scroll-reveal cards also transition their shadow on hover. */
/* Shared hero motion. The two panels keep drifting as the hover lift eases in. */
@keyframes hero-content-in {
  from {
    opacity: 0;
    translate: 0 14px;
  }
  to {
    opacity: 1;
    translate: 0 0;
  }
}
@keyframes hero-panel-drift {
  0%,
  100% {
    rotate: 0deg;
  }
  50% {
    rotate: 2deg;
    transform: translateY(-9px);
  }
}
/* Subject colors for the Industrial Revolution frame. */
:root {
  --ink: #493326;
  --dark: #31251d;
  --accent: #97702a;
  --paper: #faf4e9;
  --white: #fffdf7;
  --line: #dfccae;
  --gold: #f2cf83;
  --muted: #806b57;
  --frame-art: #96613c;
  background: var(--paper);
}
.hero {
  background: var(--paper);
}
.hero-art {
  background-color: var(--frame-art);
}
.art-card img {
  object-fit: cover;
}
.hero h1 {
  white-space: normal;
}
.hero h1 > span {
  display: block;
}
/* Page headings use the same scale as the museum template. */
.heading h1 {
  font-size: clamp(2rem, 5.4vw, 4.8rem);
  line-height: 1.2;
}
/* Let captions carry the lesson, and keep the complete photo in view. */
.lesson-photo-grid {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 245px), 1fr));
  align-items: start;
}
.lesson-photo img {
  width: 100%;
  height: auto;
  max-height: 360px;
  aspect-ratio: auto;
  object-fit: contain;
  background: var(--paper);
}
/* The longer Myanmar title needs two lines inside its own column. */
#hero-title {
  white-space: normal;
  font-size: clamp(1.65rem, 3.1vw, 2.8rem);
  line-height: 1.65;
}
#hero-title > span {
  display: block;
  white-space: normal;
}
.hero .art-first img {
  object-fit: contain;
}
/* Dark footer text stays readable on the light subject accent. */
.site-footer, .site-footer a, .site-footer .footer-brand {
  color: var(--dark);
}
/* Consistent hover motion across the three subjects. */
:root {
  --hover-time: 380ms;
  --hover-ease: cubic-bezier(0.22, 1, 0.36, 1);
}
:is(.button, .round-link, .vocab-pill, .answer, .quiz-options button,
    .choice-grid button, .mini-options button, .lesson-tab,
    .machine-selector button, .view-controls button, .sound,
    .lang-button, .site-header nav a, .route, .route-item, .word-card,
    .glossary-entry, .machine-card, .video-card, .lesson-photo,
    .comparison-card, .hero-panel) {
  transition: transform var(--hover-time) var(--hover-ease),
    translate var(--hover-time) var(--hover-ease),
    scale var(--hover-time) var(--hover-ease),
    padding var(--hover-time) var(--hover-ease),
    box-shadow var(--hover-time) var(--hover-ease),
    color var(--hover-time) var(--hover-ease),
    background-color var(--hover-time) var(--hover-ease),
    border-color var(--hover-time) var(--hover-ease);
}
/* Keep the scroll reveal smooth and give the hover its own timing. */
.ict-motion-ready .ict-reveal {
  transition: opacity 480ms var(--hover-ease) var(--ict-delay, 0ms),
    translate 540ms var(--hover-ease) var(--ict-delay, 0ms),
    transform var(--hover-time) var(--hover-ease),
    box-shadow var(--hover-time) var(--hover-ease),
    border-color var(--hover-time) var(--hover-ease),
    background-color var(--hover-time) var(--hover-ease),
    padding var(--hover-time) var(--hover-ease);
}
#primary-nav a {
  transition: transform var(--hover-time) var(--hover-ease),
    background-color var(--hover-time) var(--hover-ease),
    color var(--hover-time) var(--hover-ease);
}
:is(.route-arrow, .route-name, .word-picture, .glossary-picture,
    .lesson-photo img, .video-card img) {
  transition: transform var(--hover-time) var(--hover-ease),
    filter var(--hover-time) var(--hover-ease),
    color var(--hover-time) var(--hover-ease);
}
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  :is(.button, .round-link, .vocab-pill, .answer, .quiz-options button,
      .choice-grid button, .mini-options button, .lesson-tab,
      .machine-selector button, .view-controls button, .sound,
      .lang-button):hover:not(:disabled) {
    transform: translateY(-4px);
    box-shadow: 0 10px 20px rgb(0 0 0 / 16%);
  }
  .site-header nav a:hover {
    transform: translateY(-3px);
  }
  :is(.route, .route-item, .word-card, .glossary-entry, .machine-card,
      .video-card, .lesson-photo, .comparison-card):hover {
    transform: translateY(-7px);
    box-shadow: 0 16px 30px rgb(0 0 0 / 16%);
  }
  :is(.route, .route-item):hover {
    background-color: color-mix(in srgb, var(--accent) 10%, var(--paper));
  }
  :is(.route, .route-item):hover .route-arrow {
    transform: translate(6px, -6px);
  }
  :is(.word-card, .glossary-entry, .lesson-photo, .video-card):hover
    :is(.word-picture, .glossary-picture, img) {
    transform: scale(1.04);
  }
  .hero .hero-panel:hover {
    translate: 0 -7px;
    scale: 1.02;
    box-shadow: 0 18px 35px rgb(0 0 0 / 20%);
  }
}
@media (prefers-reduced-motion: reduce) {
  :is(.button, .round-link, .vocab-pill, .answer, .quiz-options button,
      .choice-grid button, .mini-options button, .lesson-tab,
      .machine-selector button, .view-controls button, .sound,
      .lang-button, .site-header nav a, .route, .route-item, .word-card,
      .glossary-entry, .machine-card, .video-card, .lesson-photo,
      .comparison-card, .hero-panel, .word-picture, .glossary-picture,
      .lesson-photo img, .video-card img) {
    transition-duration: 0.01ms;
  }
  :is(.button, .round-link, .vocab-pill, .answer, .quiz-options button,
      .choice-grid button, .mini-options button, .lesson-tab,
      .machine-selector button, .view-controls button, .sound,
      .lang-button, .site-header nav a, .route, .route-item, .word-card,
      .glossary-entry, .machine-card, .video-card, .lesson-photo,
      .comparison-card, .hero .hero-panel):hover {
    transform: none;
    translate: none;
    scale: none;
  }
}

/* Lesson choices: photographs and matching hover movement on all sites. */
.home-routes .route {
  grid-template-columns: 38px minmax(0, 1fr) minmax(110px, 19%) 34px;
}
.home-routes .route-photo {
  display: block;
  width: 100%;
  height: 92px;
  object-fit: cover !important;
  border-radius: 8px;
  transition: transform 380ms var(--hover-ease), filter 380ms var(--hover-ease);
}
.home-routes .route::before {
  background: var(--accent);
  opacity: 0.15;
}
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .home-routes .route:hover .route-photo {
    transform: scale(1.04);
    filter: brightness(1.04);
    border-radius: 8px;
  }
}
@media (max-width: 600px) {
  .home-routes .route {
    grid-template-columns: 24px minmax(0, 1fr) 72px 24px;
    gap: 8px;
  }
  .home-routes .route-photo {
    height: 62px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .home-routes .route-photo { transition: none; }
}

/* The quiz uses the same sidebar and question cards as the history site. */
.quiz-toolbar label {
  display: block;
  font-weight: 700;
}
.quiz-toolbar select {
  width: 100%;
  padding: 10px;
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--ink);
  font: inherit;
}
.quiz-questions h3 {
  line-height: 1.7;
}
