/* ຂັບເຄື່ອນດ້ວຍຄີບອດ — Power by Keyboard
   Palette from logo A: charcoal + cream, with the page's archive red and amber.
   No black outlines on text. No letter-spacing on Lao script. */

:root {
  --ink: #141518;
  --ink-2: #1b1c20;
  --ink-3: #101113;
  --cream: #E8E2D6;
  --cream-2: #d8d1c3;
  --cream-70: rgba(232, 226, 214, 0.72);
  --cream-50: rgba(232, 226, 214, 0.5);
  --cream-18: rgba(232, 226, 214, 0.18);
  --cream-10: rgba(232, 226, 214, 0.1);
  --red: #B3122E;
  --red-deep: #7A0C1F;
  --amber: #D9A05B;
  --sepia: #F6C688;
  --font-display: "Fraunces", "Noto Serif Lao", Georgia, serif;
  --font-body: "Source Sans 3", "Noto Sans Lao", system-ui, sans-serif;
  --font-lo-sans: "Noto Sans Lao", "Source Sans 3", sans-serif;
  --font-lo-serif: "Noto Serif Lao", "Fraunces", serif;
  --wrap: 1160px;
  --header-h: 4.25rem;
  --ease: cubic-bezier(.22, 1, .36, 1);
}

@font-face {
  font-family: "Fraunces";
  src: url("../fonts/Fraunces-VF.ttf") format("truetype");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Source Sans 3";
  src: url("../fonts/SourceSans3-VF.ttf") format("truetype");
  font-weight: 200 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Noto Sans Lao";
  src: url("../fonts/NotoSansLao-VF.ttf") format("truetype");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Noto Serif Lao";
  src: url("../fonts/NotoSerifLao-VF.ttf") format("truetype");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

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

html {
  scroll-behavior: smooth;
  background: var(--ink);
}

body {
  margin: 0;
  background: var(--ink);
  color: var(--cream);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  font-weight: 400;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--cream); text-decoration-thickness: 1px; text-underline-offset: 0.22em; }
a:hover { color: var(--amber); }
:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 3px;
}

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  background: var(--cream);
  color: var(--ink);
  padding: 0.5rem 0.8rem;
  z-index: 100;
}
.skip:focus { top: 1rem; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.wrap {
  width: min(100% - 2rem, var(--wrap));
  margin-inline: auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  height: var(--header-h);
  background: rgba(20, 21, 24, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--cream-10);
}
.header-inner {
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.brand img {
  height: 2.15rem;
  width: auto;
}
.header-tools {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  flex-shrink: 0;
}
.lang-switch {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.86rem;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  isolation: isolate;
}
.lang-switch a {
  position: relative;
  z-index: 1;
  color: var(--cream-50);
  text-decoration: none;
  padding: 0.4rem 0.45rem;
  border-radius: 999px;
  transition: color 0.28s var(--ease);
}
.lang-pill {
  position: absolute;
  top: 0.12rem;
  bottom: 0.12rem;
  left: 0;
  z-index: 0;
  border-radius: 999px;
  background: var(--cream-18);
  box-shadow: inset 0 0 0 1px var(--cream-10);
  pointer-events: none;
  width: 0;
  transform: translateX(0);
  transition: transform 0.4s var(--ease), width 0.4s var(--ease);
}
.lang-switch a[href][lang="en"] {
  font-family: var(--font-body);
  letter-spacing: 0.08em;
}
.lang-switch a[lang="lo"] {
  font-family: var(--font-lo-sans);
  letter-spacing: 0;
  font-weight: 700;
  font-size: 1.02rem;
}
.lang-switch a[aria-current="page"] {
  color: var(--cream);
}
.lang-switch a:hover { color: var(--amber); }
.lang-switch .sep {
  color: var(--cream-50);
  font-weight: 400;
  user-select: none;
}
.site-nav {
  display: flex;
  gap: 1.5rem;
}
.site-nav a {
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--cream-70);
}
.site-nav a:hover { color: var(--cream); }

.nav-toggle {
  display: none;
  width: 2.5rem;
  height: 2.5rem;
  border: 0;
  background: transparent;
  color: var(--cream);
  cursor: pointer;
  padding: 0;
}
.nav-toggle .bar,
.nav-toggle .bar::before,
.nav-toggle .bar::after {
  display: block;
  width: 1.25rem;
  height: 1.5px;
  background: var(--cream);
  position: relative;
  margin-inline: auto;
  transition: transform 0.25s var(--ease);
}
.nav-toggle .bar::before,
.nav-toggle .bar::after {
  content: "";
  position: absolute;
  left: 0;
}
.nav-toggle .bar::before { top: -6px; }
.nav-toggle .bar::after { top: 6px; }
.site-header.is-open .nav-toggle .bar { background: transparent; }
.site-header.is-open .nav-toggle .bar::before { top: 0; transform: rotate(45deg); }
.site-header.is-open .nav-toggle .bar::after { top: 0; transform: rotate(-45deg); }

/* Hero */
.hero {
  position: relative;
  min-height: calc(100svh - var(--header-h));
  display: grid;
  place-items: center;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 70% 40%, rgba(179, 18, 46, 0.12), transparent 55%),
    linear-gradient(180deg, var(--ink-3), var(--ink) 55%, var(--ink-2));
  border-bottom: 1px solid var(--cream-10);
}
.hero-inner {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 4.5rem 0 5rem;
}
.hero-ghost {
  position: absolute;
  right: -8%;
  top: 8%;
  width: min(62vw, 720px);
  opacity: 0.07;
  pointer-events: none;
  z-index: 0;
  animation: drift 28s var(--ease) infinite alternate;
}
.hero-ghost img { width: 100%; height: auto; }
.grain {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: 0.18;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 0.55 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  background-size: 180px 180px;
}

.eyebrow,
.kicker {
  margin: 0 0 1rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--amber);
}
.kicker .num {
  color: var(--red);
  letter-spacing: 0.08em;
  margin-right: 0.65rem;
  font-variant-numeric: tabular-nums;
}

.hero-logo {
  margin: 0 auto 1.1rem;
  max-width: 46rem;
}
.hero-logo img {
  width: 100%;
  height: auto;
  margin-inline: auto;
  filter: drop-shadow(0 18px 40px rgba(0, 0, 0, 0.35));
}

/* Thin red rule under the wordmark, like the official channel banner */
.hero-logo::after {
  content: "";
  display: block;
  width: min(100%, 36rem);
  height: 1px;
  margin: 0.85rem auto 0;
  background: var(--red);
  opacity: 0.9;
}

.subtitle {
  margin: 0.9rem 0 0.55rem;
  font-family: var(--font-display);
  font-weight: 500;
  font-optical-sizing: auto;
  font-size: clamp(1.65rem, 4.2vw, 2.55rem);
  letter-spacing: 0.02em;
  line-height: 1.2;
  color: var(--cream);
}
.bio {
  margin: 0 0 1.35rem;
  font-size: clamp(1rem, 2.2vw, 1.2rem);
  font-weight: 500;
  color: var(--amber);
  letter-spacing: 0.04em;
}
.lede {
  margin: 0 auto 2rem;
  max-width: 28rem;
  color: var(--cream-70);
  font-size: 1.125rem;
}

.btn {
  display: inline-block;
  background: var(--cream);
  color: var(--ink);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.95rem 1.55rem;
  transition: background 0.2s var(--ease), color 0.2s var(--ease), transform 0.2s var(--ease);
}
.btn:hover {
  background: var(--amber);
  color: var(--ink);
  transform: translateY(-1px);
}

/* Featured */
.featured {
  padding: 4.5rem 0 5rem;
  background: var(--ink);
}
.featured-grid {
  display: grid;
  gap: 2.25rem;
}
.player {
  position: relative;
  aspect-ratio: 9 / 16;
  max-height: min(72vh, 760px);
  width: min(100%, calc(min(72vh, 760px) * 9 / 16));
  margin-inline: auto;
  background: #000;
  outline: 1px solid var(--cream-18);
  outline-offset: 6px;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.5);
}
.player iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.film-title-lo {
  font-family: var(--font-lo-serif);
  font-weight: 650;
  font-size: clamp(1.55rem, 3.4vw, 2.15rem);
  line-height: 1.5;
  letter-spacing: 0;
  margin: 0 0 0.55rem;
}
.film-title-en {
  margin: 0 0 1.5rem;
  font-family: var(--font-display);
  font-optical-sizing: auto;
  font-weight: 500;
  font-size: clamp(1.2rem, 2.4vw, 1.55rem);
  line-height: 1.35;
  color: var(--cream-70);
}
.prose p { margin: 0 0 1rem; color: var(--cream-70); }
.prose p:last-child { margin-bottom: 0; }
.lo {
  font-family: var(--font-lo-serif);
  font-weight: 650;
  letter-spacing: 0;
  color: var(--cream);
}
.presented {
  margin: 1.4rem 0 0.6rem;
  color: var(--cream);
  font-weight: 500;
}
.presented .handle,
.presented .lo { font-family: var(--font-lo-sans); }
/* handle is latin - actually @powerbykeyboard is English. The channel name before it may be in the same sentence. */
.source-note {
  margin: 0;
  font-size: 0.92rem;
  color: var(--cream-50);
}
.source-note a { color: var(--amber); }

/* Films grid */
.films {
  padding: 4.5rem 0 5.5rem;
  background: var(--ink-2);
  border-block: 1px solid var(--cream-10);
}
.section-head { margin-bottom: 2rem; }
.section-head h2,
.about h2,
.channels h2,
.latest-articles h2,
.page-title {
  margin: 0;
  font-family: var(--font-display);
  font-optical-sizing: auto;
  font-weight: 550;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  line-height: 1.2;
}

.films-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 1fr;
}
.card {
  position: relative;
  z-index: 0;
  background: var(--ink);
  border: 1px solid var(--cream-10);
  display: flex;
  flex-direction: column;
  transform: translateY(0);
  box-shadow: 0 0 0 0 transparent;
  transition:
    transform 0.4s var(--ease),
    box-shadow 0.4s var(--ease),
    border-color 0.4s var(--ease);
}
.card:hover,
.card:focus-within {
  z-index: 1;
  transform: translateY(-5px);
  border-color: var(--cream-18);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.42);
}
.card-media {
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--ink-3);
  text-decoration: none;
}
.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1);
  transition: transform 1.1s var(--ease);
}
.card:hover .card-media img,
.card:focus-within .card-media img { transform: scale(1.05); }
.card-media--empty {
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 50% 45%, rgba(232, 226, 214, 0.06), transparent 60%),
    var(--ink-3);
}
.card-media--empty img {
  width: 28%;
  height: auto;
  object-fit: contain;
  opacity: 0.22;
}
.card--soon:hover .card-media img,
.card--soon:focus-within .card-media img { transform: none; }
.card--soon:hover,
.card--soon:focus-within {
  z-index: 0;
  transform: none;
  border-color: var(--cream-10);
  box-shadow: none;
}
.card-body { padding: 1.15rem 1.15rem 1.35rem; }
.card-body .kicker { margin-bottom: 0.55rem; }
.card-title-lo {
  font-family: var(--font-lo-serif);
  font-weight: 650;
  font-size: 1.15rem;
  line-height: 1.5;
  letter-spacing: 0;
  margin: 0 0 0.4rem;
}
.card-title-lo a { text-decoration: none; }
.card-title-lo a:hover { color: var(--amber); }
.card-title-en {
  margin: 0;
  font-size: 0.98rem;
  color: var(--cream-70);
  line-height: 1.4;
}
.card--soon h3 {
  margin: 0 0 0.35rem;
  font-family: var(--font-display);
  font-weight: 550;
  font-size: 1.45rem;
}
.card-note { margin: 0; color: var(--cream-50); }

/* About */
.about {
  padding: 4.5rem 0 5rem;
}
.about-grid {
  display: grid;
  gap: 1.5rem;
}
.about .prose { font-size: 1.2rem; max-width: 38rem; }
.about .prose p { color: var(--cream-70); }

/* Channels */
.channels {
  padding: 0 0 5.5rem;
}
.channel-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--cream-18);
}
.channel-list a {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  padding: 1.15rem 0;
  border-bottom: 1px solid var(--cream-18);
  text-decoration: none;
}
.ch-name {
  font-family: var(--font-display);
  font-optical-sizing: auto;
  font-weight: 550;
  font-size: 1.45rem;
}
.ch-handle {
  color: var(--cream-50);
  font-size: 0.95rem;
  font-family: var(--font-lo-sans);
}
.channel-list a:hover .ch-name { color: var(--amber); }

/* Footer */
.site-footer {
  border-top: 1px solid var(--cream-10);
  padding: 3rem 0 3.25rem;
  background: var(--ink-3);
}
.footer-inner { text-align: center; }
.footer-logo {
  height: 2.4rem;
  width: auto;
  margin: 0 auto 0.85rem;
}
.footer-bio {
  margin: 0 0 1.4rem;
  color: var(--amber);
  letter-spacing: 0.04em;
}
.credits {
  margin: 0 auto;
  max-width: 38rem;
  font-size: 0.82rem;
  line-height: 1.55;
  color: var(--cream-50);
}
.credits em { font-style: italic; color: var(--cream-70); }

/* Responsive */
@media (min-width: 800px) {
  .site-nav { margin-left: auto; }
  .header-tools { margin-left: 1.75rem; }
  .films-grid { grid-template-columns: repeat(3, 1fr); }
  .films-grid:has(> :only-child) {
    grid-template-columns: minmax(240px, 22rem);
  }
  .films-grid:has(> :last-child:nth-child(2)):not(:has(> :last-child:nth-child(3))) {
    grid-template-columns: repeat(2, minmax(240px, 1fr));
    max-width: 52rem;
  }
  .featured-grid {
    grid-template-columns: minmax(240px, 380px) 1fr;
    gap: 3.5rem;
    align-items: start;
  }
  .copy-col { padding-top: 0.2rem; }
  .player {
    width: 100%;
    max-height: none;
  }
  .about-grid {
    grid-template-columns: 0.8fr 1.2fr;
    gap: 3rem;
    align-items: start;
  }
}

@media (max-width: 799px) {
  .header-tools { margin-left: auto; }
  .nav-toggle { display: grid; place-items: center; }
  .site-nav {
    display: none;
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    padding: 0.5rem 1rem 1rem;
    background: rgba(16, 17, 19, 0.97);
    border-bottom: 1px solid var(--cream-10);
  }
  .site-header.is-open .site-nav { display: flex; }
  .site-nav a { padding: 0.85rem 0; border-bottom: 1px solid var(--cream-10); }
  .hero-inner { padding: 3.25rem 0 4rem; }
  .channel-list a { flex-direction: column; gap: 0.2rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-ghost { animation: none; }
  .card-media img,
  .article-teaser-thumb img,
  .card,
  .article-teaser,
  .btn,
  .lang-pill,
  .lang-switch a,
  .play,
  .reveal { transition: none; }
  .card:hover,
  .card:focus-within,
  .article-teaser:hover,
  .article-teaser:focus-visible {
    transform: none;
    box-shadow: none;
  }
  .card:hover .card-media img,
  .card:focus-within .card-media img,
  .article-teaser:hover .article-teaser-thumb img,
  .article-teaser:focus-visible .article-teaser-thumb img,
  .article-teaser:focus-within .article-teaser-thumb img {
    transform: none;
  }
  @view-transition { navigation: none; }
  ::view-transition-old(root),
  ::view-transition-new(root) { animation: none !important; }
}

@keyframes drift {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to { transform: translate3d(-3%, 4%, 0) scale(1.06); }
}

.poster {
  position: absolute;
  inset: 0;
  padding: 0;
  border: 0;
  cursor: pointer;
  background: #000;
}
.poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.play {
  position: absolute;
  left: 50%;
  top: 78%;
  width: 4.25rem;
  height: 4.25rem;
  margin: 0;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: rgba(20, 21, 24, 0.72);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.35);
  transition: background 0.2s var(--ease), transform 0.2s var(--ease);
}
.play::after {
  content: "";
  position: absolute;
  left: 53%;
  top: 50%;
  transform: translate(-40%, -50%);
  border-style: solid;
  border-width: 0.7rem 0 0.7rem 1.15rem;
  border-color: transparent transparent transparent var(--cream);
}
.poster:hover .play,
.poster:focus-visible .play {
  background: var(--red);
  transform: translate(-50%, -50%) scale(1.06);
}
.player.is-playing .poster { display: none; }

.credits a { color: var(--cream-70); }


/* Lao pages: large readable Noto, no letter-spacing, no Latin uppercase tracking */
html[lang="lo"] body {
  font-family: var(--font-lo-sans);
  font-size: 1.125rem;
  line-height: 1.8;
}
html[lang="lo"] .eyebrow,
html[lang="lo"] .kicker {
  font-family: var(--font-lo-sans);
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
  font-size: 0.98rem;
}
html[lang="lo"] .kicker .num {
  font-family: var(--font-body);
  letter-spacing: 0;
  font-variant-numeric: tabular-nums;
}
html[lang="lo"] .site-nav a {
  font-family: var(--font-lo-sans);
  font-weight: 650;
  letter-spacing: 0;
  text-transform: none;
  font-size: 1.02rem;
}
html[lang="lo"] .btn {
  font-family: var(--font-lo-sans);
  font-weight: 700;
  letter-spacing: 0;
  text-transform: none;
  font-size: 1.05rem;
  padding: 0.95rem 1.45rem;
}
html[lang="lo"] .bio,
html[lang="lo"] .footer-bio {
  font-family: var(--font-lo-sans);
  letter-spacing: 0;
  font-weight: 600;
  font-size: clamp(1.05rem, 2.2vw, 1.28rem);
}
html[lang="lo"] .lede {
  font-size: 1.2rem;
  line-height: 1.75;
}
html[lang="lo"] .section-head h2,
html[lang="lo"] .about h2,
html[lang="lo"] .channels h2,
html[lang="lo"] .latest-articles h2,
html[lang="lo"] .page-title,
html[lang="lo"] .article-title,
html[lang="lo"] .card--soon h3 {
  font-family: var(--font-lo-serif);
  letter-spacing: 0;
  font-weight: 650;
  line-height: 1.45;
}
html[lang="lo"] .prose p,
html[lang="lo"] .presented,
html[lang="lo"] .source-note,
html[lang="lo"] .card-note,
html[lang="lo"] .credits {
  font-family: var(--font-lo-sans);
  letter-spacing: 0;
  line-height: 1.8;
}
html[lang="lo"] .credits { font-size: 0.9rem; line-height: 1.7; }
html[lang="lo"] .about .prose { font-size: 1.25rem; }
/* Latin brand names and the English subtitle keep their display font */
html[lang="lo"] .subtitle,
html[lang="lo"] .ch-name,
html[lang="lo"] .film-title-en,
html[lang="lo"] .card-title-en {
  font-family: var(--font-display);
}
html[lang="lo"] .handle,
html[lang="lo"] .ch-handle[lang],
html[lang="lo"] .lang-switch a[lang="en"] {
  font-family: var(--font-body);
}


/* ---------- Articles ---------- */
.latest-articles {
  padding: 4.5rem 0 5rem;
  background: var(--ink);
  border-top: 1px solid var(--cream-10);
}
.article-teasers {
  border-top: 1px solid var(--cream-18);
}
.article-teaser {
  display: grid;
  gap: 1.1rem;
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--cream-18);
  text-decoration: none;
  color: inherit;
}
.article-teaser:hover { color: inherit; }
.article-teaser-thumb {
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--ink-3);
}
.article-teaser {
  transform: translateY(0);
  transition:
    transform 0.4s var(--ease),
    box-shadow 0.4s var(--ease);
}
.article-teaser-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1);
  transition: transform 1.1s var(--ease);
}
.article-teaser:hover,
.article-teaser:focus-visible {
  transform: translateY(-3px);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.32);
  color: inherit;
}
.article-teaser:hover .article-teaser-thumb img,
.article-teaser:focus-visible .article-teaser-thumb img,
.article-teaser:focus-within .article-teaser-thumb img {
  transform: scale(1.05);
}
.article-teaser h3 {
  margin: 0 0 0.4rem;
  font-family: var(--font-display);
  font-optical-sizing: auto;
  font-weight: 550;
  font-size: 1.45rem;
  line-height: 1.3;
}
html[lang="lo"] .article-teaser h3 {
  font-family: var(--font-lo-serif);
  letter-spacing: 0;
  line-height: 1.45;
}
.article-teaser:hover h3 { color: var(--amber); }
.article-teaser .dek {
  margin: 0 0 0.55rem;
  color: var(--cream-70);
}
.article-teaser .meta,
.article-meta {
  margin: 0;
  font-size: 0.92rem;
  color: var(--cream-50);
}
.badge-sample {
  display: inline-block;
  margin: 0 0 0.55rem;
  padding: 0.15rem 0.5rem;
  border: 1px solid var(--amber);
  color: var(--amber);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
html[lang="lo"] .badge-sample {
  letter-spacing: 0;
  text-transform: none;
  font-family: var(--font-lo-sans);
  font-size: 0.9rem;
  font-weight: 600;
  padding: 0.2rem 0.55rem;
}
.section-more {
  margin: 1.5rem 0 0;
}
.section-more a {
  color: var(--amber);
  font-weight: 600;
  text-decoration: none;
}
.section-more a:hover { color: var(--cream); }

@media (min-width: 800px) {
  .article-teaser {
    grid-template-columns: 220px 1fr;
    align-items: center;
    gap: 1.75rem;
  }
}

/* Index / inner page frame */
.page-main {
  padding: 3rem 0 5rem;
}
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 0.55rem;
  margin: 0 0 1.75rem;
  padding: 0;
  list-style: none;
  font-size: 0.9rem;
  color: var(--cream-50);
}
.breadcrumb a { color: var(--cream-70); text-decoration: none; }
.breadcrumb a:hover { color: var(--amber); }
.breadcrumb li:not(:last-child)::after {
  content: "/";
  margin-left: 0.55rem;
  color: var(--cream-50);
}
.page-title {
  margin: 0 0 0.75rem;
  font-weight: 550;
  font-size: clamp(2rem, 5vw, 3rem);
  line-height: 1.2;
}
.page-dek {
  margin: 0 0 2.25rem;
  max-width: 38rem;
  color: var(--cream-70);
  font-size: 1.15rem;
}

/* Long-form article */
.article-page .article-wrap {
  width: min(100% - 2rem, 46rem);
  margin-inline: auto;
  padding: 3rem 0 5.5rem;
}
.article-title {
  margin: 0 0 0.85rem;
  font-family: var(--font-display);
  font-optical-sizing: auto;
  font-weight: 550;
  font-size: clamp(2.05rem, 6vw, 3.35rem);
  line-height: 1.15;
}
.article-dek {
  margin: 0 0 1.15rem;
  font-size: 1.25rem;
  line-height: 1.55;
  color: var(--cream-70);
}
.article-meta {
  margin: 0 0 2rem;
}
.article-hero {
  margin: 0 0 2.5rem;
}
.article-hero img {
  width: 100%;
  height: auto;
  display: block;
}
.article-hero figcaption,
.article-body figcaption {
  margin-top: 0.65rem;
  font-size: 0.92rem;
  line-height: 1.55;
  color: var(--cream-50);
}
.article-body {
  font-size: 1.2rem;
  line-height: 1.8;
  color: var(--cream-70);
}
.article-body > p { margin: 0 0 1.2rem; }
.article-body a { color: var(--amber); }
.article-body h2 {
  margin: 2.4rem 0 0.9rem;
  font-family: var(--font-display);
  font-optical-sizing: auto;
  font-weight: 550;
  font-size: clamp(1.45rem, 3vw, 1.8rem);
  line-height: 1.3;
  color: var(--cream);
}
.article-body .cite {
  font-size: 0.78em;
  font-weight: 600;
  color: var(--amber);
  text-decoration: none;
  margin-left: 0.12em;
}
.article-body .cite:hover { color: var(--cream); }
.pullquote {
  margin: 2rem 0;
  padding: 0.4rem 0 0.4rem 1.35rem;
  border-left: 2px solid var(--red);
  font-family: var(--font-display);
  font-optical-sizing: auto;
  font-weight: 500;
  font-size: clamp(1.35rem, 3vw, 1.7rem);
  line-height: 1.4;
  color: var(--cream);
}
.article-body figure {
  margin: 2rem 0;
}
.article-body figure img {
  width: 100%;
  height: auto;
  display: block;
}

html[lang="lo"] .article-body {
  font-family: var(--font-lo-sans);
  font-size: 1.28rem;
  line-height: 2;
}
html[lang="lo"] .article-title {
  font-family: var(--font-lo-serif);
  letter-spacing: 0;
  line-height: 1.4;
}
html[lang="lo"] .article-dek,
html[lang="lo"] .page-dek,
html[lang="lo"] .article-meta,
html[lang="lo"] .breadcrumb {
  font-family: var(--font-lo-sans);
  letter-spacing: 0;
}
html[lang="lo"] .article-body h2,
html[lang="lo"] .pullquote,
html[lang="lo"] .sources h2,
html[lang="lo"] .related-clip h2 {
  font-family: var(--font-lo-serif);
  letter-spacing: 0;
  line-height: 1.45;
}

.related-clip {
  margin: 3rem 0 0;
  padding-top: 2rem;
  border-top: 1px solid var(--cream-10);
}
.related-clip h2,
.sources h2 {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-optical-sizing: auto;
  font-weight: 550;
  font-size: 1.45rem;
  color: var(--cream);
}
.related-clip .player {
  max-height: min(64vh, 680px);
  width: min(100%, calc(min(64vh, 680px) * 9 / 16));
}
.related-title {
  margin: 1rem 0 0;
  color: var(--cream);
  font-family: var(--font-lo-serif);
  letter-spacing: 0;
  line-height: 1.5;
}
.related-title-en {
  margin: 0.3rem 0 0;
  color: var(--cream-50);
  font-size: 0.98rem;
}

.sources {
  margin: 3rem 0 0;
  padding-top: 2rem;
  border-top: 1px solid var(--cream-10);
}
.sources ol {
  margin: 0;
  padding: 0 0 0 1.3rem;
  color: var(--cream-70);
}
.sources li {
  margin: 0 0 0.75rem;
  padding-left: 0.35rem;
  line-height: 1.55;
}
.sources li:target {
  outline: 1px solid var(--amber);
  outline-offset: 4px;
}
.sources a { color: var(--amber); word-break: break-word; }

.articles-index-list {
  border-top: 1px solid var(--cream-18);
}

.coming-note {
  margin: 1.5rem 0 0;
  color: var(--cream-70);
  font-size: 1.1rem;
  max-width: 36rem;
  line-height: 1.6;
}
.page-dek.coming-note { margin-top: 0; }
.films .coming-note { margin-top: 1.75rem; }
.latest-articles .coming-note {
  margin: 0;
  padding: 1.5rem 0 0.25rem;
  border-top: 1px solid var(--cream-18);
}

.player .watch-external {
  position: absolute;
  inset: auto 0.85rem 0.85rem;
  color: var(--cream);
  background: rgba(20, 21, 24, 0.8);
  padding: 0.45rem 0.7rem;
  font-weight: 600;
  text-align: center;
}

/* 404 page */
.not-found {
  padding: 4.5rem 0 6rem;
  min-height: 60vh;
}
.not-found h1 {
  margin: 0 0 0.75rem;
  font-family: var(--font-display);
  font-optical-sizing: auto;
  font-weight: 550;
  font-size: clamp(2rem, 5vw, 3.1rem);
  line-height: 1.2;
}
html[lang="lo"] .not-found h1,
.not-found .lo-heading {
  font-family: var(--font-lo-serif);
  font-weight: 650;
  letter-spacing: 0;
}
.not-found p {
  margin: 0 0 1rem;
  color: var(--cream-70);
  max-width: 32rem;
  font-size: 1.15rem;
}
.not-found .actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem 1.25rem;
  margin-top: 2rem;
}

/* ---------- Motion (subtle, documentary) ---------- */
@view-transition { navigation: auto; }

::view-transition-old(root) {
  animation: vt-fade 0.28s var(--ease) both;
}
::view-transition-new(root) {
  animation: vt-fade 0.32s var(--ease) both reverse;
}

@keyframes vt-fade {
  from { opacity: 1; }
  to { opacity: 0; }
}

.films-grid,
.article-teasers,
.articles-index-list {
  overflow: visible;
}

.reveal {
  opacity: 0;
  transform: translate3d(0, 1rem, 0);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveal.is-inview {
  opacity: 1;
  transform: none;
}
