@import url("https://fonts.googleapis.com/css2?family=Sarabun:wght@300;400;500;600;700;800&display=swap");

:root {
  --ink: #1c2430;
  --ink-dim: rgba(28, 36, 48, 0.72);
  --ink-mute: rgba(28, 36, 48, 0.5);
  --stage: #f5f7fb;
  --stage-2: #e8eef6;
  --surface: #ffffff;
  --coral: #e85d2c;
  --amber: #d9941a;
  --rose: #d44d78;
  --violet: #6d4f85;
  --navy: #1a2f4a;
  --gold: #9a6b1f;
  --gold-deep: #7a5214;
  --line: rgba(28, 36, 48, 0.1);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --font: "Sarabun", sans-serif;
  --max: 1180px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--stage);
  overflow-x: hidden;
}

body.present-mode {
  overflow: hidden;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

strong {
  font-weight: 700;
}

.skip {
  position: absolute;
  left: -999px;
}

/* —— Ambient stage lights —— */
.ambient {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.55;
  animation: drift 18s ease-in-out infinite;
}

.orb-a {
  width: 52vw;
  height: 52vw;
  left: -14vw;
  top: -12vh;
  background: radial-gradient(circle, rgba(232, 93, 44, 0.22), transparent 68%);
}

.orb-b {
  width: 42vw;
  height: 42vw;
  right: -12vw;
  top: 18vh;
  background: radial-gradient(circle, rgba(217, 148, 26, 0.18), transparent 68%);
  animation-delay: -5s;
}

.orb-c {
  width: 38vw;
  height: 38vw;
  left: 28vw;
  bottom: -14vh;
  background: radial-gradient(circle, rgba(90, 140, 200, 0.16), transparent 68%);
  animation-delay: -9s;
}

.rays {
  position: absolute;
  inset: -20%;
  background: conic-gradient(
    from 210deg at 50% 40%,
    transparent 0deg,
    rgba(217, 148, 26, 0.06) 18deg,
    transparent 36deg,
    rgba(232, 93, 44, 0.05) 58deg,
    transparent 90deg,
    rgba(90, 140, 200, 0.05) 140deg,
    transparent 180deg,
    rgba(212, 77, 120, 0.04) 220deg,
    transparent 280deg,
    rgba(217, 148, 26, 0.05) 320deg,
    transparent 360deg
  );
  animation: raySpin 80s linear infinite;
  opacity: 0.9;
  mask-image: radial-gradient(ellipse at 50% 42%, #000 0%, transparent 72%);
}

.vignette {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at center, transparent 40%, rgba(245, 247, 251, 0.35) 78%, rgba(232, 238, 246, 0.85) 100%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.55), transparent 18%, transparent 78%, rgba(232, 238, 246, 0.65));
}

.grain {
  position: absolute;
  inset: 0;
  opacity: 0.035;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

@keyframes raySpin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes drift {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }
  50% {
    transform: translate(2vw, 3vh) scale(1.08);
  }
}

.story,
.topbar,
.deck,
.deck-chrome,
.spotlight {
  position: relative;
  z-index: 1;
}

/* —— Topbar —— */
.topbar {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem clamp(1rem, 3vw, 2rem);
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}

.brand-lockup {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.brand-lockup img {
  height: 40px;
  width: auto;
  border-radius: 0.35rem;
}

.brand-lockup strong {
  display: block;
  font-size: 0.95rem;
  font-weight: 700;
}

.brand-lockup small {
  display: block;
  font-size: 0.72rem;
  color: var(--ink-mute);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.nav-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  justify-content: flex-end;
}

.btn {
  appearance: none;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 0.55rem 1.1rem;
  font-family: var(--font);
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  background: transparent;
  color: var(--ink);
  transition: transform 0.25s var(--ease), background 0.25s ease, border-color 0.25s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: linear-gradient(120deg, var(--coral), var(--rose));
  color: #fff;
  border: none;
}

.btn-ghost {
  border-color: var(--line);
  color: var(--ink-dim);
}

.btn-ghost:hover {
  border-color: rgba(28, 36, 48, 0.28);
  color: var(--ink);
  background: rgba(28, 36, 48, 0.04);
}

.btn-lg {
  padding: 0.85rem 1.45rem;
  font-size: 1rem;
}

.btn-sm {
  padding: 0.35rem 0.75rem;
  font-size: 0.82rem;
}

.filter-bar {
  width: min(var(--max), 100%);
  margin: 0 auto 1.25rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  justify-content: center;
}

.filter-chip {
  appearance: none;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink-dim);
  border-radius: 999px;
  padding: 0.45rem 0.95rem;
  font-family: var(--font);
  font-weight: 600;
  font-size: 0.88rem;
  cursor: pointer;
  transition: background 0.25s ease, border-color 0.25s ease, color 0.25s ease, transform 0.25s var(--ease);
}

.filter-chip:hover {
  border-color: rgba(232, 93, 44, 0.35);
  transform: translateY(-1px);
}

.filter-chip.is-on {
  background: linear-gradient(120deg, var(--coral), var(--rose));
  color: #fff;
  border-color: transparent;
}

.portal.is-dim {
  opacity: 0.38;
  filter: grayscale(0.25);
}

.hall.is-filtered-out {
  display: none;
}

/* —— Hero —— */
.hero {
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: 7rem 1.25rem 4rem;
  position: relative;
  isolation: isolate;
  overflow: hidden;
}

.hero-stage {
  position: absolute;
  inset: 0;
  z-index: -1;
  display: grid;
  place-items: center;
  pointer-events: none;
}

.hero-ring {
  position: absolute;
  width: min(78vw, 720px);
  aspect-ratio: 1;
  border-radius: 50%;
  border: 1px solid rgba(154, 107, 31, 0.28);
  box-shadow:
    inset 0 0 60px rgba(217, 148, 26, 0.06),
    0 0 80px rgba(232, 93, 44, 0.08);
  animation: ringPulse 9s ease-in-out infinite;
}

.hero-ring.delay {
  width: min(92vw, 900px);
  animation-delay: -3.5s;
  border-color: rgba(232, 93, 44, 0.18);
}

.hero-mark {
  font-size: clamp(12rem, 38vw, 30rem);
  font-weight: 800;
  line-height: 0.8;
  letter-spacing: -0.06em;
  color: transparent;
  background: linear-gradient(180deg, rgba(154, 107, 31, 0.18), rgba(232, 93, 44, 0.1), transparent 78%);
  -webkit-background-clip: text;
  background-clip: text;
  user-select: none;
  animation: markPulse 10s ease-in-out infinite;
}

@keyframes markPulse {
  0%,
  100% {
    opacity: 0.75;
    transform: scale(1);
  }
  50% {
    opacity: 1;
    transform: scale(1.035);
  }
}

@keyframes ringPulse {
  0%,
  100% {
    transform: scale(1);
    opacity: 0.55;
  }
  50% {
    transform: scale(1.04);
    opacity: 1;
  }
}

.hero-inner {
  width: min(940px, 100%);
  text-align: center;
}

.hero-kicker {
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.55rem;
  margin: 0;
  font-size: 0.92rem;
  letter-spacing: 0.12em;
  color: var(--gold);
  font-weight: 600;
  opacity: 0;
  animation: rise 1s var(--ease) 0.08s forwards;
}

.hero-kicker .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--amber), var(--coral));
  box-shadow: 0 0 12px rgba(240, 177, 74, 0.7);
}

.hero-rule {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.85rem;
  margin: 1.15rem auto 0;
  opacity: 0;
  animation: rise 1s var(--ease) 0.18s forwards;
}

.hero-rule i {
  display: block;
  width: clamp(2.5rem, 10vw, 5.5rem);
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.hero-rule b {
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 700;
}

.hero-logo-wrap {
  position: relative;
  width: min(520px, 90vw);
  margin: 1.35rem auto 1.1rem;
  opacity: 0;
  animation: riseScale 1.25s var(--ease) 0.28s forwards;
}

.hero-logo-wrap::before {
  content: "";
  position: absolute;
  inset: 8% 4% 6%;
  background: radial-gradient(ellipse at center, rgba(255, 255, 255, 0.98), rgba(217, 148, 26, 0.2) 42%, transparent 72%);
  z-index: -1;
  filter: blur(6px);
  animation: glowBreath 5.5s ease-in-out infinite;
}

.hero-logo {
  width: 100%;
  filter: drop-shadow(0 18px 36px rgba(28, 36, 48, 0.14));
}

@keyframes glowBreath {
  0%,
  100% {
    opacity: 0.85;
    transform: scale(1);
  }
  50% {
    opacity: 1;
    transform: scale(1.04);
  }
}

.hero h1 {
  margin: 0;
  font-weight: 800;
  font-size: clamp(2.7rem, 8vw, 5.2rem);
  line-height: 1.02;
  letter-spacing: -0.025em;
  text-shadow: none;
  opacity: 0;
  animation: rise 1s var(--ease) 0.48s forwards;
}

.hero h1 .line {
  display: block;
}

.hero h1 .accent {
  background: linear-gradient(100deg, #c98916, var(--coral), var(--rose));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-lead {
  margin: 1.2rem auto 0;
  max-width: 38rem;
  font-size: clamp(1.08rem, 2.4vw, 1.32rem);
  line-height: 1.8;
  color: var(--ink-dim);
  font-weight: 400;
  opacity: 0;
  animation: rise 1s var(--ease) 0.62s forwards;
}

.hero-cta {
  margin-top: 1.8rem;
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  flex-wrap: wrap;
  opacity: 0;
  animation: rise 0.9s var(--ease) 0.75s forwards;
}

.scroll-hint {
  margin-top: 2.4rem;
  font-size: 0.82rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-mute);
  opacity: 0;
  animation: rise 0.9s var(--ease) 0.95s forwards, bob 2.6s ease-in-out 1.6s infinite;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(22px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes riseScale {
  from {
    opacity: 0;
    transform: translateY(26px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes bob {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(7px);
  }
}

/* —— Shared heads —— */
.section-head {
  width: min(var(--max), 100%);
  margin: 0 auto 1.8rem;
  padding: 0 clamp(1rem, 4vw, 0);
}

.section-head.light {
  text-align: center;
}

.eyebrow {
  margin: 0 0 0.55rem;
  font-size: 0.8rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
}

.section-head h2,
.manifesto h2,
.closing h2,
.hall-head h3 {
  margin: 0;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.section-head h2 {
  font-size: clamp(1.9rem, 4.4vw, 3rem);
}

.section-sub {
  margin: 0.75rem auto 0;
  max-width: 36rem;
  color: var(--ink-dim);
  line-height: 1.65;
  font-size: 1.02rem;
}

/* —— Manifesto —— */
.manifesto {
  padding: 5.5rem clamp(1rem, 4vw, 2rem) 4.5rem;
  position: relative;
}

.manifesto::before {
  content: "";
  position: absolute;
  inset: 8% 10% auto;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(154, 107, 31, 0.35), transparent);
}

.manifesto-inner {
  width: min(860px, 100%);
  margin: 0 auto;
  text-align: center;
}

.manifesto h2 {
  font-size: clamp(2.15rem, 5.4vw, 3.5rem);
}

.manifesto-text {
  margin: 1.35rem auto 0;
  font-size: clamp(1.1rem, 2.2vw, 1.25rem);
  line-height: 1.9;
  color: var(--ink-dim);
}

.ticker {
  margin-top: 2.5rem;
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  border-block: 1px solid var(--line);
  padding-block: 0.9rem;
}

.ticker-track {
  display: flex;
  gap: 0;
  width: max-content;
  animation-name: marquee;
  animation-timing-function: linear;
  animation-iteration-count: infinite;
  animation-duration: 222s; /* fallback; JS จะเขียนทับเป็น 10 ตัวอักษร/วินาที */
  font-size: 0.95rem;
  color: var(--ink-mute);
  font-weight: 500;
  will-change: transform;
}

.ticker:hover .ticker-track {
  animation-play-state: paused;
}

.ticker-track .tick-item {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  padding-right: 3.5rem;
}

.ticker-track .tick-item::before {
  content: "◆";
  margin-right: 1.25rem;
  color: var(--coral);
  font-size: 0.65rem;
  flex-shrink: 0;
}

@keyframes marquee {
  to {
    transform: translateX(-50%);
  }
}

/* —— Portals —— */
.portals {
  padding: 2rem clamp(1rem, 4vw, 2rem) 3rem;
}

.portal-grid {
  width: min(var(--max), 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.85rem;
}

@media (max-width: 900px) {
  .portal-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.portal {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 250px;
  padding: 1.4rem;
  border: 1px solid rgba(28, 36, 48, 0.08);
  border-radius: 1.5rem;
  overflow: hidden;
  cursor: pointer;
  text-align: left;
  color: #fff;
  isolation: isolate;
  box-shadow: 0 14px 36px rgba(28, 36, 48, 0.12);
  transition: transform 0.45s var(--ease), border-color 0.35s ease, box-shadow 0.45s ease;
}

.portal::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  transition: transform 0.55s var(--ease);
}

.portal::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, transparent 35%, rgba(0, 0, 0, 0.35));
  pointer-events: none;
}

.portal[data-code="H"]::before {
  background: linear-gradient(160deg, #ff7a45, #c2410c 78%);
}
.portal[data-code="O"]::before {
  background: linear-gradient(160deg, #d9784a, #e45d86 82%);
}
.portal[data-code="P"]::before {
  background: linear-gradient(160deg, #e45d86, #ff6a35 85%);
}
.portal[data-code="E"]::before {
  background: linear-gradient(160deg, #2a4a6e, #1a2f4a 55%, #c2410c 120%);
}

.portal:hover {
  transform: translateY(-10px) scale(1.01);
  border-color: rgba(232, 93, 44, 0.35);
  box-shadow: 0 22px 50px rgba(232, 93, 44, 0.18);
}

.portal:hover::before {
  transform: scale(1.1);
}

.portal-code {
  font-size: clamp(3.5rem, 8vw, 5.5rem);
  font-weight: 800;
  line-height: 0.9;
}

.portal-heart {
  display: inline-flex;
  font-size: clamp(3.5rem, 8vw, 5.5rem);
  animation: heartBeat 1.8s ease-in-out infinite;
}

.portal-heart svg {
  width: 1em;
  height: 1em;
}

@keyframes heartBeat {
  0%,
  100% {
    transform: scale(1);
  }
  40% {
    transform: scale(1.1);
  }
}

.portal-title {
  margin-top: 0.7rem;
  font-size: 1.2rem;
  font-weight: 700;
}

.portal-sub {
  margin: 0.2rem 0 0;
  opacity: 0.9;
  font-size: 0.92rem;
}

.portal-n {
  position: absolute;
  top: 1rem;
  right: 1rem;
  font-weight: 700;
  opacity: 0.8;
}

/* —— Exhibition halls —— */
.hall {
  min-height: 100vh;
  padding: 5.5rem clamp(1rem, 4vw, 2rem) 4rem;
  position: relative;
  border-top: 1px solid var(--line);
}

.hall::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.35;
  pointer-events: none;
  z-index: 0;
}

.hall[data-code="H"]::before {
  background: radial-gradient(900px 500px at 10% 0%, rgba(232, 93, 44, 0.14), transparent 60%);
}
.hall[data-code="O"]::before {
  background: radial-gradient(900px 500px at 90% 10%, rgba(212, 77, 120, 0.12), transparent 60%);
}
.hall[data-code="P"]::before {
  background: radial-gradient(900px 500px at 20% 20%, rgba(212, 77, 120, 0.12), transparent 60%);
}
.hall[data-code="E"]::before {
  background: radial-gradient(900px 500px at 80% 0%, rgba(42, 74, 110, 0.14), transparent 55%);
}

.hall > * {
  position: relative;
  z-index: 1;
}

.hall-head {
  width: min(var(--max), 100%);
  margin: 0 auto 2rem;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.25rem 1.75rem;
  align-items: end;
}

.hall-giant {
  font-size: clamp(5rem, 14vw, 9rem);
  font-weight: 800;
  line-height: 0.8;
  background: linear-gradient(140deg, var(--amber), var(--coral), var(--rose));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hall-head h3 {
  font-size: clamp(1.7rem, 3.5vw, 2.5rem);
}

.hall-head p {
  margin: 0.55rem 0 0;
  color: var(--ink-dim);
  line-height: 1.7;
  max-width: 36rem;
}

.hall-meta {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.chip {
  display: inline-flex;
  align-items: center;
  padding: 0.28rem 0.7rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  border: 1px solid var(--line);
  color: var(--ink-dim);
}

/* Product images */
.product-media {
  overflow: hidden;
  background: linear-gradient(145deg, #eef2f7, #f8fafc);
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.product-media.is-empty {
  display: grid;
}

.product-ph {
  font-size: 0.78rem;
  color: var(--ink-mute);
  font-weight: 600;
  text-align: center;
  padding: 0.5rem;
  line-height: 1.35;
}

.product-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.plaque-media {
  width: 160px;
  height: 160px;
  border-radius: 1rem;
}

.spotlight-media {
  width: min(100%, 360px);
  aspect-ratio: 4 / 3;
  border-radius: 1rem;
  margin: 0.85rem 0 0.4rem;
}

.slide-media {
  width: min(320px, 38vw);
  aspect-ratio: 1;
  border-radius: 1.25rem;
  flex-shrink: 0;
}

.slide-feat-row {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  margin-top: 0.35rem;
}

.slide--work .slide-work-full {
  display: grid;
  grid-template-columns: minmax(220px, 320px) 1fr;
  gap: 1.6rem 2rem;
  align-items: center;
  margin-top: 0.4rem;
}

.slide--work .slide-work-no {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  color: var(--coral);
  line-height: 1;
  margin-bottom: 0.35rem;
}

.slide--work h2 {
  font-size: clamp(1.55rem, 3.4vw, 2.55rem);
}

.slide--work .meta {
  margin: 0.55rem 0 0;
  color: var(--ink-mute);
  font-size: 1rem;
  line-height: 1.5;
}

.slide--work .lead {
  margin-top: 0.85rem;
  max-width: 40rem;
}

.slide-work-tags {
  margin-top: 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

@media (max-width: 800px) {
  .slide--work .slide-work-full {
    grid-template-columns: 1fr;
  }
  .slide--work .slide-media {
    width: min(100%, 280px);
  }
}

/* Showcase — การ์ดขนาดเท่ากันทั้ง 10 ผลงาน */
.showcase {
  width: min(var(--max), 100%);
  margin: 0 auto;
  display: grid;
  gap: 0.85rem;
}

.plaque {
  display: grid;
  grid-template-columns: 4.2rem 160px 1fr auto;
  gap: 1.15rem 1.25rem;
  align-items: center;
  min-height: 188px;
  padding: 1.15rem 1.25rem;
  border-radius: 1.2rem;
  background: var(--surface);
  border: 1px solid var(--line);
  cursor: pointer;
  text-align: left;
  color: inherit;
  font: inherit;
  width: 100%;
  box-shadow: 0 6px 20px rgba(28, 36, 48, 0.05);
  transition: background 0.3s ease, border-color 0.3s ease, transform 0.3s var(--ease);
}

.plaque:hover {
  background: #fff;
  border-color: rgba(232, 93, 44, 0.3);
  transform: translateY(-2px);
}

.plaque-no {
  font-size: 1.65rem;
  font-weight: 800;
  color: var(--coral);
  line-height: 1;
}

.plaque-body {
  min-width: 0;
}

.plaque h5 {
  margin: 0;
  font-size: 1.18rem;
  font-weight: 700;
  line-height: 1.35;
}

.plaque .meta {
  margin: 0.4rem 0 0;
  font-size: 0.9rem;
  color: var(--ink-mute);
}

.plaque .value {
  margin: 0.5rem 0 0;
  font-size: 0.98rem;
  color: var(--ink-dim);
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.plaque-tags {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  align-items: flex-end;
}

.tag {
  display: inline-flex;
  padding: 0.18rem 0.5rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  background: rgba(232, 93, 44, 0.12);
  color: #b84316;
}

.tag.ec {
  background: rgba(26, 127, 84, 0.12);
  color: #1a7f54;
}

.tag.trl {
  background: rgba(26, 47, 74, 0.1);
  color: #1a2f4a;
}

@media (max-width: 800px) {
  .hall-head {
    grid-template-columns: 1fr;
  }
  .plaque {
    grid-template-columns: 3.2rem 120px 1fr;
    min-height: 156px;
  }
  .plaque-media {
    width: 120px;
    height: 120px;
  }
  .plaque-tags {
    grid-column: 2 / -1;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: flex-start;
  }
  .slide-feat-row {
    flex-direction: column;
  }
}

@media (max-width: 560px) {
  .plaque {
    grid-template-columns: 2.8rem 1fr;
  }
  .plaque-media {
    grid-column: 1 / -1;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 10;
  }
}

/* —— Impact —— */
.impact-wall {
  padding: 4rem clamp(1rem, 4vw, 2rem) 2rem;
}

.impact {
  width: min(var(--max), 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.85rem;
}

@media (max-width: 800px) {
  .impact {
    grid-template-columns: repeat(2, 1fr);
  }
}

.impact-item {
  padding: 1.75rem 1.25rem;
  border-radius: 1.35rem;
  background: var(--surface);
  border: 1px solid rgba(154, 107, 31, 0.18);
  text-align: center;
  box-shadow: 0 8px 24px rgba(28, 36, 48, 0.06);
}

.impact-item strong {
  display: block;
  font-size: clamp(2.5rem, 5.5vw, 3.6rem);
  font-weight: 800;
  line-height: 1;
  background: linear-gradient(120deg, #c98916, var(--coral), var(--rose));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.impact-item span {
  display: block;
  margin-top: 0.55rem;
  color: var(--ink-dim);
  font-size: 0.92rem;
}

/* —— Closing —— */
.closing {
  padding: 5.5rem 1.25rem 7rem;
  text-align: center;
  position: relative;
}

.closing .hero-rule {
  margin-bottom: 1.1rem;
  opacity: 1;
  animation: none;
}

.closing h2 {
  font-size: clamp(2.1rem, 5vw, 3.4rem);
}

.closing p {
  margin: 1.15rem auto 0;
  max-width: 40rem;
  color: var(--ink-dim);
  line-height: 1.85;
  font-size: 1.05rem;
}

/* —— Spotlight dialog —— */
.spotlight {
  width: min(720px, 94vw);
  border: 1px solid var(--line);
  border-radius: 1.4rem;
  padding: 1.25rem 1.4rem 1.6rem;
  background: var(--surface);
  color: var(--ink);
  box-shadow: 0 24px 60px rgba(28, 36, 48, 0.18);
}

.spotlight::backdrop {
  background: rgba(28, 36, 48, 0.35);
  backdrop-filter: blur(6px);
}

.spotlight-close-row {
  display: flex;
  justify-content: flex-end;
  margin: 0;
}

.spotlight .sp-no {
  font-size: 3rem;
  font-weight: 800;
  color: var(--coral);
  line-height: 1;
}

.spotlight h3 {
  margin: 0.4rem 0 0;
  font-size: 1.45rem;
  font-weight: 700;
  line-height: 1.35;
}

.spotlight .sp-meta {
  margin: 0.6rem 0 0;
  color: var(--ink-mute);
}

.spotlight .sp-value {
  margin: 1rem 0 0;
  font-size: 1.08rem;
  line-height: 1.7;
  color: var(--ink-dim);
}

.spotlight .sp-tags {
  margin-top: 1.1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

/* —— Present deck (interactive fullscreen) —— */
.deck[hidden] {
  display: none !important;
}

.deck {
  display: none;
}

body.present-mode {
  overflow: hidden;
}

body.present-mode .story,
body.present-mode .ambient {
  display: none;
}

body.present-mode .topbar {
  display: none;
}

body.present-mode .deck {
  display: block;
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  z-index: 80;
  background:
    radial-gradient(1000px 560px at 18% -5%, rgba(232, 93, 44, 0.12), transparent 55%),
    radial-gradient(820px 480px at 92% 95%, rgba(217, 148, 26, 0.1), transparent 52%),
    radial-gradient(700px 420px at 70% 20%, rgba(90, 140, 200, 0.08), transparent 50%),
    var(--stage);
  overflow: hidden;
}

body.present-mode .deck::before {
  content: "";
  position: absolute;
  inset: 0;
  background: conic-gradient(
    from 180deg at 50% 45%,
    transparent 0deg,
    rgba(217, 148, 26, 0.05) 24deg,
    transparent 50deg,
    rgba(232, 93, 44, 0.04) 110deg,
    transparent 160deg
  );
  pointer-events: none;
  animation: raySpin 90s linear infinite;
  mask-image: radial-gradient(ellipse at center, #000 20%, transparent 70%);
}

.deck-stage {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: clamp(1rem, 3vh, 2rem) clamp(3.2rem, 7vw, 5.5rem) clamp(4.8rem, 9vh, 6rem);
  z-index: 1;
  overflow: auto;
}

.deck-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  width: 3rem;
  height: 3rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.88);
  color: var(--ink);
  font-size: 1.8rem;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(28, 36, 48, 0.1);
  transition: background 0.2s ease, transform 0.2s var(--ease), opacity 0.2s ease;
}

.deck-nav:hover:not(:disabled) {
  background: #fff;
  transform: translateY(-50%) scale(1.05);
}

.deck-nav:disabled {
  opacity: 0.35;
  cursor: default;
}

.deck-prev {
  left: clamp(0.6rem, 1.5vw, 1.2rem);
}

.deck-next {
  right: clamp(0.6rem, 1.5vw, 1.2rem);
}

.slide {
  display: none;
  position: relative;
  width: min(1200px, 100%);
  max-height: calc(100dvh - 7.5rem);
  overflow: auto;
  z-index: 1;
  margin: auto;
}

.slide.is-on {
  display: block;
  animation: slideIn 0.55s var(--ease);
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(28px) scale(0.985);
    filter: blur(4px);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
}

.slide-kicker {
  font-size: 0.88rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 700;
  margin-bottom: 0.9rem;
}

.slide h2 {
  margin: 0;
  font-size: clamp(2.5rem, 6.2vw, 4.4rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.025em;
  text-shadow: none;
}

.slide .lead {
  margin: 1.15rem 0 0;
  font-size: clamp(1.15rem, 2.5vw, 1.48rem);
  line-height: 1.75;
  color: var(--ink-dim);
  max-width: 44rem;
}

.slide-logo {
  width: min(440px, 80vw);
  margin: 1.35rem 0;
  filter: drop-shadow(0 16px 36px rgba(28, 36, 48, 0.14));
}

.slide--title {
  text-align: center;
}

.slide--title .slide-logo {
  margin-left: auto;
  margin-right: auto;
}

.slide--title .lead {
  margin-left: auto;
  margin-right: auto;
}

.slide--monument .slide-feat {
  margin-top: 1.6rem;
  padding: 1.35rem 1.45rem;
  border-radius: 1.25rem;
  border: 1px solid rgba(154, 107, 31, 0.22);
  background: linear-gradient(135deg, rgba(217, 148, 26, 0.08), var(--surface));
}

.slide--monument .slide-feat b {
  display: block;
  color: var(--gold);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.78rem;
  margin-bottom: 0.55rem;
}

.slide-grid {
  margin-top: 1.85rem;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.9rem;
}

@media (max-width: 700px) {
  .slide-grid {
    grid-template-columns: 1fr;
  }
}

.slide-pill {
  padding: 1.25rem 1.2rem;
  border-radius: 1.2rem;
  background: var(--surface);
  border: 1px solid rgba(154, 107, 31, 0.18);
  box-shadow: 0 6px 18px rgba(28, 36, 48, 0.05);
}

.slide-pill b {
  font-size: clamp(1.55rem, 3vw, 2rem);
  font-weight: 800;
  background: linear-gradient(120deg, #c98916, var(--coral));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.slide-pill span {
  display: block;
  margin-top: 0.35rem;
  color: var(--ink-dim);
  line-height: 1.45;
}

.slide-works {
  margin-top: 1.2rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.55rem;
  max-height: 54vh;
  overflow: auto;
  padding-right: 0.25rem;
}

@media (max-width: 800px) {
  .slide-works {
    grid-template-columns: 1fr;
  }
}

.slide-work {
  display: grid;
  grid-template-columns: 2.6rem 1fr;
  gap: 0.55rem;
  padding: 0.7rem 0.8rem;
  border-radius: 0.85rem;
  background: var(--surface);
  border: 1px solid var(--line);
}

.slide-work strong {
  color: var(--coral);
  font-size: 1.05rem;
}

.slide-work h4 {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.35;
}

.slide-work p {
  margin: 0.25rem 0 0;
  font-size: 0.8rem;
  color: var(--ink-mute);
  line-height: 1.4;
}

.deck-chrome {
  position: fixed;
  inset: auto 0 0;
  z-index: 90;
}

.deck-chrome[hidden] {
  display: none !important;
}

.deck-progress {
  appearance: none;
  display: block;
  width: 100%;
  height: 6px;
  padding: 0;
  border: 0;
  background: rgba(28, 36, 48, 0.08);
  cursor: pointer;
}

.deck-progress > i {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--amber), var(--coral), var(--rose));
  box-shadow: 0 0 12px rgba(232, 93, 44, 0.35);
  transition: width 0.35s var(--ease);
  pointer-events: none;
}

.deck-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  padding: 0.55rem 1rem 0.7rem;
  font-size: 0.82rem;
  color: var(--ink-mute);
  background: rgba(255, 255, 255, 0.94);
  border-top: 1px solid var(--line);
  backdrop-filter: blur(10px);
}

.deck-meta-left,
.deck-meta-right {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  flex-wrap: wrap;
}

.deck-hint {
  opacity: 0.8;
}

@media (max-width: 700px) {
  .deck-hint {
    display: none;
  }
  .deck-stage {
    padding-left: 1rem;
    padding-right: 1rem;
  }
  .deck-nav {
    display: none;
  }
}

/* reveal */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}

.reveal.is-in {
  opacity: 1;
  transform: translateY(0);
}
