/* 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);
}




.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-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 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 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 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;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
  .reveal {
    opacity: 1;
    transform: none;
  }
}
@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;
  }
  .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;
}
@keyframes ict-page-enter {
  from {
    opacity: 0.72;
    translate: 0 10px;
  }
  to {
    opacity: 1;
    translate: 0 0;
  }
}
/* 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;
    }
  }
}
@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);
}
.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;
  }
}
@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);
  }
}
@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 use the same simple layout. */
.home-routes .route {
  grid-template-columns: 38px minmax(0, 1fr) 34px;
  min-height: 96px;
}
@media (max-width: 600px) {
  .home-routes .route {
    grid-template-columns: 24px minmax(0, 1fr) 24px;
  }
}
/* Keep the artwork quiet so headings and photographs lead the page. */
.hero .hero-panel-secondary {
  animation: none;
}
/* 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; }
}
