/* ==========================================================================
   Tales from Tibet — Lobsang Soepa
   Design concept: "Pecha & Lungta" (see README.md → Design concept)

   Paper and ink carry the page. Colour appears only where Tibetan craft
   would put it: the prayer-flag line, the painted window cornice, the
   thangka mount, the red seal. Everything else stays quiet so the
   artwork is the loudest thing on screen.
   ========================================================================== */

:root {
  /* paper & ink */
  --paper: #F3EDE3;
  --paper-2: #EAE1D2;
  --card: #FAF7F1;
  --ink: #1D1815;
  --ink-2: #3F3631;
  --muted: #6B6058;
  --rule: rgba(29, 24, 21, .13);
  --rule-strong: rgba(29, 24, 21, .26);

  /* monastery red & butter-lamp gold */
  --maroon: #8B2B24;
  --maroon-ink: #6E1F19;
  --saffron: #C98F22;

  /* lungta — the five prayer-flag colours, always in this order */
  --f-blue: #2B5C9E;
  --f-white: #F4EFE6;
  --f-red: #C23B2E;
  --f-green: #2F7A4E;
  --f-yellow: #E2B23A;

  /* night sections */
  --night: #17120F;
  --night-2: #221B17;
  --on-night: #EFE7DA;
  --on-night-2: #BDB1A4;
  --night-rule: rgba(239, 231, 218, .14);

  /* type */
  --serif: "Instrument Serif", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --sans: "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --tib: "Jomolhari", "Noto Serif Tibetan", "Kailasa", "Microsoft Himalaya", serif;

  /* layout */
  --wrap: 1240px;
  --gutter: clamp(16px, 4vw, 48px);
  --section: clamp(88px, 12vw, 168px);
  --hdr-h: 72px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* --------------------------------------------------------------------------
   Base
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--hdr-h) + 24px); }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1.0625rem/1.72 var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
/* handmade-paper grain */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: .5;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .45 0 0 0 0 .38 0 0 0 0 .3 0 0 0 .07 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
img, video, svg { display: block; max-width: 100%; }
img, video { height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; }
p { margin: 0 0 1.15em; }
p:last-child { margin-bottom: 0; }
h1, h2, h3, h4 { margin: 0; font-weight: 400; }
ul, ol { margin: 0; padding: 0; list-style: none; }
figure { margin: 0; }
em { font-style: italic; }
::selection { background: var(--maroon); color: var(--paper); }
:focus-visible { outline: 2px solid var(--maroon); outline-offset: 3px; }
.night :focus-visible { outline-color: var(--f-yellow); }

.skip {
  position: absolute; left: 12px; top: -80px; z-index: 100;
  padding: 12px 18px; background: var(--ink); color: var(--paper);
  font-weight: 600; text-decoration: none; transition: top .2s;
}
.skip:focus { top: 12px; }
.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.sec { padding-block: var(--section); }
.sec--tight { padding-top: 0; }

/* --------------------------------------------------------------------------
   Type
   -------------------------------------------------------------------------- */
.tib { font-family: var(--tib); font-weight: 400; letter-spacing: 0; line-height: 1.5; }
.h1, .h2, .h3 { font-family: var(--serif); font-weight: 400; letter-spacing: -.015em; }
.h1 { font-size: clamp(3.6rem, 10vw, 9rem); line-height: .88; letter-spacing: -.03em; }
.h2 { font-size: clamp(2.5rem, 5.4vw, 4.6rem); line-height: .98; }
.h3 { font-size: clamp(1.55rem, 2.4vw, 2rem); line-height: 1.1; }
.h1 em, .h2 em { color: var(--maroon); }
.night .h1 em, .night .h2 em { color: var(--f-yellow); }

.eyebrow {
  font: 600 .74rem/1.3 var(--sans);
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--muted);
}
.night .eyebrow { color: var(--on-night-2); }

.lead {
  font-family: var(--serif);
  font-size: clamp(1.5rem, 2.7vw, 2.3rem);
  line-height: 1.28;
  letter-spacing: -.005em;
  color: var(--ink);
}
.prose p { max-width: 64ch; color: var(--ink-2); }
.night .prose p { color: var(--on-night-2); }
.prose strong { font-weight: 600; color: var(--ink); }
.night .prose strong { color: var(--on-night); }

/* Section head: Tibetan numeral — rule — label */
.sh { display: flex; align-items: center; gap: 14px; margin-bottom: 28px; }
.sh__num { font-family: var(--tib); font-size: 3rem; line-height: 1; color: var(--maroon); min-width: .8em; }
.night .sh__num { color: var(--f-yellow); }
.sh__rule { flex: 0 0 44px; height: 1px; background: var(--rule-strong); }
.night .sh__rule { background: var(--night-rule); }

.tib-sub { display: block; margin-top: 16px; font-size: clamp(1.35rem, 2vw, 1.7rem); color: var(--muted); }
.night .tib-sub { color: var(--on-night-2); }

/* Ornamental opener: ༄༅། */
.kicker { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 14px; margin-bottom: 26px; }
.kicker .tib { color: var(--maroon); font-size: 1.35rem; line-height: 1; }

/* --------------------------------------------------------------------------
   Buttons & links
   -------------------------------------------------------------------------- */
.btn {
  --bg: var(--ink); --fg: var(--paper); --bd: var(--ink);
  display: inline-flex; align-items: center; justify-content: center; gap: .6em;
  min-height: 50px; padding: 0 24px;
  background: var(--bg); color: var(--fg); border: 1px solid var(--bd); border-radius: 2px;
  font: 600 .95rem/1 var(--sans); letter-spacing: .01em; text-decoration: none; cursor: pointer;
  transition: background-color .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease), transform .25s var(--ease);
}
.btn:hover { --bg: var(--maroon); --bd: var(--maroon); }
.btn:active { transform: translateY(1px); }
.btn--maroon { --bg: var(--maroon); --bd: var(--maroon); }
.btn--maroon:hover { --bg: var(--maroon-ink); --bd: var(--maroon-ink); }
.btn--ghost { --bg: transparent; --fg: var(--ink); --bd: var(--rule-strong); }
.btn--ghost:hover { --bg: var(--ink); --fg: var(--paper); --bd: var(--ink); }
.btn--light { --bg: var(--on-night); --fg: var(--night); --bd: var(--on-night); }
.btn--light:hover { --bg: var(--f-yellow); --bd: var(--f-yellow); --fg: var(--night); }
.btn--sm { min-height: 40px; padding: 0 16px; font-size: .86rem; }
.btn .ic { transition: transform .25s var(--ease); }
.btn:hover .ic--ne { transform: translate(2px, -2px); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

.ic { width: 1.1em; height: 1.1em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.link {
  display: inline-flex; align-items: center; gap: .45em;
  font-weight: 600; text-decoration: none;
  background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat;
  padding-bottom: 3px;
  transition: background-size .35s var(--ease), color .2s;
}
.link:hover { background-size: 0 1px; background-position: 100% 100%; color: var(--maroon); }
.night .link:hover { color: var(--f-yellow); }

.badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px; border: 1px solid var(--rule-strong); border-radius: 2px;
  font-size: .85rem; font-weight: 500; color: var(--ink-2);
}
.badge .tib { font-size: 1rem; color: var(--maroon); line-height: 1; }

/* --------------------------------------------------------------------------
   Prayer-flag line
   -------------------------------------------------------------------------- */
.flagline { display: flex; height: 4px; }
.flagline i { flex: 1; }
.flagline i:nth-child(1) { background: var(--f-blue); }
.flagline i:nth-child(2) { background: var(--f-white); }
.flagline i:nth-child(3) { background: var(--f-red); }
.flagline i:nth-child(4) { background: var(--f-green); }
.flagline i:nth-child(5) { background: var(--f-yellow); }

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */
.hdr {
  position: sticky; top: 0; z-index: 50;
  background: rgba(243, 237, 227, .9);
  -webkit-backdrop-filter: saturate(1.3) blur(12px);
  backdrop-filter: saturate(1.3) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, transform .45s var(--ease);
}
.hdr.is-scrolled { border-bottom-color: var(--rule); }
.hdr.is-hidden { transform: translateY(-100%); }
.hdr__in { display: flex; align-items: center; gap: 20px; height: var(--hdr-h); }

.brand { display: flex; align-items: center; gap: 12px; margin-right: auto; text-decoration: none; }
.brand__mark { width: 30px; height: 30px; flex: none; }
.brand__txt { display: flex; flex-direction: column; }
.brand__name { font-family: var(--serif); font-size: 1.5rem; line-height: 1; letter-spacing: -.01em; }
.brand__sub { margin-top: 5px; font: 600 .62rem/1 var(--sans); letter-spacing: .22em; text-transform: uppercase; color: var(--muted); }

.nav { display: flex; align-items: center; gap: 2px; }
.nav a {
  position: relative; display: inline-flex; align-items: baseline; gap: 7px;
  padding: 10px 14px; font-size: .95rem; font-weight: 500; color: var(--ink-2); text-decoration: none;
  transition: color .2s;
}
.nav a:hover { color: var(--maroon); }
.nav .n { font-family: var(--tib); font-size: 1.5em; line-height: 1; color: var(--maroon); opacity: .8; }
.nav a[aria-current="page"] { color: var(--ink); }
.nav a[aria-current="page"]::after {
  content: ""; position: absolute; left: 50%; bottom: 3px;
  width: 5px; height: 5px; background: var(--maroon); transform: translateX(-50%) rotate(45deg);
}
.hdr__cta { display: flex; }

.burger {
  display: none; align-items: center; justify-content: center; gap: 10px;
  height: 44px; padding: 0 4px 0 12px; margin-right: -4px;
  background: none; border: 0; cursor: pointer;
  font-size: .8rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase;
}
.burger__bars { display: grid; gap: 5px; width: 22px; }
.burger__bars i { display: block; height: 1.5px; background: currentColor; }
.burger__bars i:last-child { width: 14px; justify-self: end; }

@media (max-width: 880px) {
  :root { --hdr-h: 64px; }
  .nav, .hdr__cta { display: none; }
  .burger { display: inline-flex; }
}

/* Mobile menu (a <dialog>) */
.menu {
  position: fixed; inset: 0; width: 100%; height: 100%; max-width: none; max-height: none;
  margin: 0; padding: 0; border: 0; background: var(--paper); color: var(--ink);
  overflow-y: auto;
}
.menu::backdrop { background: transparent; }
.menu[open] { animation: menu-in .35s var(--ease); }
@keyframes menu-in { from { opacity: 0; transform: translateY(-8px); } }
.menu__in { min-height: 100%; display: flex; flex-direction: column; }
.menu__top { display: flex; align-items: center; justify-content: space-between; height: var(--hdr-h); }
.menu__close {
  display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 4px 0 12px; margin-right: -4px;
  background: none; border: 0; cursor: pointer; font-size: .8rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase;
}
.menu__close .ic { width: 22px; height: 22px; }
.menu__nav { flex: 1; display: flex; flex-direction: column; justify-content: center; padding-block: 32px; }
.menu__nav a {
  display: flex; align-items: baseline; gap: 18px; padding: 14px 0;
  border-bottom: 1px solid var(--rule);
  font-family: var(--serif); font-size: clamp(2.4rem, 11vw, 3.6rem); line-height: 1.05; text-decoration: none;
}
.menu__nav a:first-child { border-top: 1px solid var(--rule); }
.menu__nav .n { font-family: var(--tib); font-size: 2rem; color: var(--maroon); width: 1.2em; }
.menu__nav a[aria-current="page"] em { color: var(--maroon); }
.menu__nav em { font-style: normal; }
.menu__foot { padding-bottom: 32px; display: grid; gap: 22px; }

/* --------------------------------------------------------------------------
   Tibetan window — hero media frame
   Black trapezoid (wider at the sill) under a painted cornice and a
   five-colour shambu valance.
   -------------------------------------------------------------------------- */
.window { position: relative; }
.window__cornice { position: relative; margin-inline: -4%; }
.window__cornice::before { /* painted beam */
  content: ""; display: block; height: 10px; background: var(--maroon);
  box-shadow: inset 0 -2px 0 rgba(0, 0, 0, .18);
}
.window__cornice::after { /* dentil blocks */
  content: ""; display: block; height: 9px; margin-inline: 2%;
  background:
    repeating-linear-gradient(90deg,
      var(--f-blue) 0 9px, transparent 9px 13px,
      var(--f-green) 13px 22px, transparent 22px 26px,
      var(--f-red) 26px 35px, transparent 35px 39px,
      var(--f-yellow) 39px 48px, transparent 48px 52px);
  border-bottom: 3px solid var(--ink);
}
.window__shambu { /* pleated valance */
  height: 16px; margin-inline: 3%;
  background: linear-gradient(90deg,
    var(--f-blue) 0 20%, var(--f-white) 0 40%, var(--f-red) 0 60%, var(--f-green) 0 80%, var(--f-yellow) 0);
  -webkit-mask: radial-gradient(10px 7px at 50% 100%, transparent 96%, #000) 0 0 / 20px 100% repeat-x;
          mask: radial-gradient(10px 7px at 50% 100%, transparent 96%, #000) 0 0 / 20px 100% repeat-x;
  position: relative; z-index: 2; margin-bottom: -10px;
}
.window__frame {
  position: relative; aspect-ratio: 4 / 5; background: var(--ink);
  clip-path: polygon(7% 0, 93% 0, 100% 100%, 0 100%);
}
.window__frame > img,
.window__frame > video {
  position: absolute; inset: 16px 18px; width: calc(100% - 36px); height: calc(100% - 32px);
  object-fit: cover;
  clip-path: polygon(6.6% 0, 93.4% 0, 100% 100%, 0 100%);
}
.window--tall .window__frame { aspect-ratio: 3 / 4.2; }
.window__cap { margin-top: 14px; font-size: .85rem; color: var(--muted); text-align: center; }

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */
.hero { padding-block: clamp(40px, 7vw, 96px) var(--section); }
.hero__grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .85fr); gap: clamp(40px, 7vw, 110px); align-items: center; }
.hero__title { margin-bottom: 28px; }
.hero__sub {
  max-width: 26ch; margin-bottom: 40px;
  font-family: var(--serif); font-style: italic; font-size: clamp(1.4rem, 2.3vw, 1.9rem); line-height: 1.25; color: var(--ink-2);
}
.hero__meta { margin-top: 44px; padding-top: 22px; border-top: 1px solid var(--rule); display: flex; flex-wrap: wrap; gap: 8px 28px; font-size: .9rem; color: var(--muted); }
.hero__meta b { font-weight: 600; color: var(--ink); }
.hero__media { max-width: 460px; justify-self: end; width: 100%; }

@media (max-width: 880px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__media { justify-self: center; max-width: 380px; }
}

/* --------------------------------------------------------------------------
   Home — intro
   -------------------------------------------------------------------------- */
.intro { padding-block: 0 var(--section); }
.intro__grid { display: grid; grid-template-columns: 1fr 2.4fr; gap: 32px clamp(32px, 6vw, 96px); padding-top: 40px; border-top: 1px solid var(--rule); }
.intro__label { display: grid; gap: 14px; align-content: start; }
.intro__label .tib { font-size: 2.6rem; color: var(--maroon); line-height: 1; }
.intro__q {
  margin-top: 40px; padding-left: 26px; border-left: 2px solid var(--maroon);
  font-family: var(--serif); font-style: italic; font-size: clamp(1.7rem, 3.4vw, 2.8rem); line-height: 1.15; color: var(--maroon);
}
@media (max-width: 760px) { .intro__grid { grid-template-columns: 1fr; } }

/* --------------------------------------------------------------------------
   Split (image + text)
   -------------------------------------------------------------------------- */
.split { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(40px, 7vw, 112px); align-items: center; }
.split--rev > :first-child { order: 2; }
.split h2 { margin-bottom: 32px; }
.art { position: relative; }
.art img { width: 100%; box-shadow: 0 1px 0 var(--rule), 0 30px 60px -30px rgba(29, 24, 21, .45); }
.art__cap { margin-top: 14px; font-size: .85rem; color: var(--muted); }
@media (max-width: 860px) {
  .split { grid-template-columns: 1fr; }
  .split--rev > :first-child { order: 0; }
  .split .art { max-width: 460px; }
}

/* --------------------------------------------------------------------------
   Comic covers (shelf)
   -------------------------------------------------------------------------- */
.debut__head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 32px clamp(40px, 7vw, 112px); align-items: end; margin-bottom: clamp(48px, 6vw, 80px); }
.debut__head .lead { font-size: clamp(1.3rem, 2.1vw, 1.75rem); }
@media (max-width: 860px) { .debut__head { grid-template-columns: 1fr; } }

.shelf { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(14px, 2.4vw, 32px); align-items: end; }
.shelf li { display: grid; gap: 14px; }
.cover {
  display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in;
  transition: transform .5s var(--ease);
}
.cover img {
  width: 100%;
  box-shadow: 0 1px 0 var(--rule), 0 24px 40px -24px rgba(29, 24, 21, .55);
  transition: box-shadow .5s var(--ease);
}
.cover:hover { transform: translateY(-8px) rotate(-.6deg); }
.cover:hover img { box-shadow: 0 1px 0 var(--rule), 0 40px 60px -28px rgba(29, 24, 21, .6); }
.cover__meta { display: flex; align-items: baseline; gap: 10px; font-size: .88rem; color: var(--muted); }
.cover__meta .tib { color: var(--maroon); font-size: 1.75rem; line-height: 1; }
.cover__meta b { color: var(--ink); font-weight: 600; }

@media (max-width: 760px) {
  .shelf {
    grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 62%;
    overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
    margin-inline: calc(var(--gutter) * -1); padding: 12px var(--gutter) 8px;
    scroll-padding-inline: var(--gutter);
  }
  .shelf::-webkit-scrollbar { display: none; }
  .shelf li { scroll-snap-align: start; }
  .cover:hover { transform: none; }
}
.swipe-hint { display: none; margin-top: 14px; font-size: .82rem; color: var(--muted); }
@media (max-width: 760px) { .swipe-hint { display: block; } }

.debut__body { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px clamp(28px, 4vw, 56px); margin-top: clamp(56px, 7vw, 96px); padding-top: 36px; border-top: 1px solid var(--rule); }
.debut__body p { font-size: 1rem; }
@media (max-width: 960px) { .debut__body { grid-template-columns: 1fr; } }
.debut__cta { margin-top: 44px; display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; }

/* --------------------------------------------------------------------------
   Media (videos)
   -------------------------------------------------------------------------- */
.media { position: relative; overflow: hidden; background: var(--ink); }
.media video, .media img { width: 100%; height: 100%; object-fit: cover; }
.vbtn {
  position: absolute; right: 14px; bottom: 14px; z-index: 2;
  display: grid; place-items: center; width: 44px; height: 44px;
  border: 1px solid rgba(255, 255, 255, .35); border-radius: 50%;
  background: rgba(23, 18, 15, .55); color: #fff; cursor: pointer;
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  transition: background-color .2s;
}
.vbtn:hover { background: rgba(23, 18, 15, .8); }
.vbtn .ic { width: 16px; height: 16px; fill: currentColor; stroke: none; }
.vbtn .ic--play { display: none; }
.vbtn[data-state="paused"] .ic--play { display: block; }
.vbtn[data-state="paused"] .ic--pause { display: none; }

.readers { display: grid; grid-template-columns: 2fr 1fr; gap: clamp(12px, 2vw, 24px); }
.readers .media { height: clamp(300px, 40vw, 540px); }
.readers__cap { margin-top: 16px; display: flex; gap: 12px; align-items: baseline; font-size: .9rem; color: var(--muted); }
.readers__cap .tib { color: var(--maroon); }
@media (max-width: 640px) {
  .readers { grid-template-columns: 1fr 1fr; }
  .readers .media:first-child { grid-column: 1 / -1; height: auto; aspect-ratio: 16 / 9; }
  .readers .media:last-child { grid-column: 1 / -1; height: auto; aspect-ratio: 4 / 5; }
}

/* --------------------------------------------------------------------------
   Night sections
   -------------------------------------------------------------------------- */
.night { background: var(--night); color: var(--on-night); position: relative; }
.night .btn--ghost { --fg: var(--on-night); --bd: var(--night-rule); }
.night .btn--ghost:hover { --bg: var(--on-night); --fg: var(--night); --bd: var(--on-night); }

/* Upcoming comic */
.upcoming { padding-block: var(--section); }
.upcoming__grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(48px, 8vw, 128px); align-items: center; }
.upcoming__cover { position: relative; max-width: 440px; }
.upcoming__cover .cover img { box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .8); }
.upcoming h2 { margin-bottom: 8px; }
.upcoming .tib-sub { margin-bottom: 36px; }
@media (max-width: 860px) {
  .upcoming__grid { grid-template-columns: 1fr; }
  .upcoming__cover { max-width: 340px; }
}

/* Red seal stamp */
.seal {
  position: absolute; top: -22px; right: -22px; z-index: 2;
  display: grid; place-items: center; width: 104px; height: 104px;
  background: var(--f-red); color: #FBEFE2; border-radius: 10px;
  box-shadow: inset 0 0 0 4px var(--f-red), inset 0 0 0 5.5px rgba(251, 239, 226, .85);
  font: 700 .72rem/1.25 var(--sans); letter-spacing: .16em; text-transform: uppercase; text-align: center;
  transform: rotate(8deg);
}
.seal .tib { display: block; margin-top: 4px; font-size: .95rem; letter-spacing: 0; text-transform: none; font-weight: 400; }
@media (max-width: 520px) { .seal { right: -8px; width: 88px; height: 88px; } }

.cast { margin-top: 40px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--night-rule); }
.cast div { padding: 18px 0; border-bottom: 1px solid var(--night-rule); }
.cast div:nth-child(odd) { padding-right: 20px; }
.cast dt { margin-bottom: 4px; font: 600 .7rem/1.2 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--on-night-2); }
.cast dd { margin: 0; font-family: var(--serif); font-size: 1.4rem; line-height: 1.15; }
@media (max-width: 480px) { .cast { grid-template-columns: 1fr; } }

/* --------------------------------------------------------------------------
   Portfolio — about & journey
   -------------------------------------------------------------------------- */
.about__grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(40px, 7vw, 112px); align-items: start; }
.about__aside { position: sticky; top: calc(var(--hdr-h) + 32px); }
.portrait { position: relative; }
.portrait img { width: 100%; aspect-ratio: 820 / 1100; object-fit: cover; filter: grayscale(1) contrast(1.02); }
.portrait::after { /* thin offset frame */
  content: ""; position: absolute; inset: 14px -14px -14px 14px; border: 1px solid var(--maroon); z-index: -1;
}
.portrait__cap { margin-top: 28px; display: grid; gap: 4px; }
.portrait__cap .tib { font-size: 1.35rem; color: var(--maroon); }
.portrait__cap span:last-child { font-size: .85rem; color: var(--muted); }
.tagline { margin: 18px 0 48px; font-family: var(--serif); font-style: italic; font-size: clamp(1.35rem, 2.2vw, 1.75rem); color: var(--maroon); }
@media (max-width: 860px) {
  .about__grid { grid-template-columns: 1fr; }
  .about__aside { position: static; max-width: 380px; }
}

.journey { position: relative; counter-reset: j; }
.journey::before { content: ""; position: absolute; left: 18px; top: 10px; bottom: 10px; width: 1px; background: var(--rule-strong); }
.journey li { position: relative; padding: 0 0 40px 64px; }
.journey li:last-child { padding-bottom: 0; }
.journey__n {
  position: absolute; left: 0; top: -2px; display: grid; place-items: center;
  width: 37px; height: 37px; background: var(--paper); border: 1px solid var(--maroon); border-radius: 50%;
  font-family: var(--tib); font-size: 1.45rem; line-height: 1; color: var(--maroon);
}
.journey__place { display: block; margin-bottom: 10px; font: 600 .74rem/1.3 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--ink); }
.journey p { color: var(--ink-2); max-width: 62ch; }

.welcome { margin-top: 56px; padding: 32px 0 0; border-top: 1px solid var(--rule); }
.welcome .tib { display: block; margin-bottom: 10px; font-size: 1.6rem; color: var(--maroon); }
.welcome p { font-family: var(--serif); font-size: clamp(1.35rem, 2.2vw, 1.8rem); line-height: 1.3; color: var(--ink); }

/* Studio band */
.studio { padding-block: var(--section); }
.studio__grid { display: grid; grid-template-columns: minmax(0, .7fr) minmax(0, 1.3fr); gap: clamp(40px, 8vw, 128px); align-items: center; }
.studio .media { aspect-ratio: 9 / 14; max-width: 420px; }
.quote { margin: 0; }
.quote .tib { display: block; margin-bottom: 20px; font-size: 1.6rem; color: var(--f-yellow); line-height: 1; }
.quote p { font-family: var(--serif); font-size: clamp(2rem, 4.2vw, 3.6rem); line-height: 1.08; letter-spacing: -.01em; color: var(--on-night); }
.quote footer { margin-top: 28px; font-size: .9rem; color: var(--on-night-2); }
@media (max-width: 760px) {
  .studio__grid { grid-template-columns: 1fr; }
  .studio .media { max-width: 320px; }
}

/* --------------------------------------------------------------------------
   Portfolio — works grid & filters
   -------------------------------------------------------------------------- */
.works__head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 28px 40px; margin-bottom: clamp(40px, 5vw, 64px); }
.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  min-height: 40px; padding: 0 16px; border: 1px solid var(--rule-strong); border-radius: 999px;
  background: transparent; cursor: pointer; font-size: .88rem; font-weight: 500; color: var(--ink-2);
  transition: background-color .2s, color .2s, border-color .2s;
}
.chip:hover { border-color: var(--ink); color: var(--ink); }
.chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.chip .count { margin-left: 6px; opacity: .55; font-variant-numeric: tabular-nums; }

.works__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(28px, 4vw, 56px) clamp(16px, 2.6vw, 36px); }
.work[hidden] { display: none; }
.work__btn { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; }
.work__img { position: relative; overflow: hidden; background: var(--paper-2); }
.work__img img { width: 100%; aspect-ratio: 1414 / 2000; object-fit: cover; transition: transform .8s var(--ease); }
.work__btn:hover .work__img img { transform: scale(1.035); }
.work__meta { display: grid; gap: 4px; margin-top: 16px; }
.work__meta h3 { font-family: var(--serif); font-size: 1.4rem; line-height: 1.15; }
.work__meta p { font-size: .82rem; color: var(--muted); }
.work__tag { font: 600 .68rem/1.2 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--maroon); }
@media (max-width: 960px) { .works__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) {
  .works__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 12px; }
  .work__meta h3 { font-size: 1.12rem; }
  .work__meta p { display: none; }
}

/* --------------------------------------------------------------------------
   Acknowledgement — contents, press, folios, thangka, support
   -------------------------------------------------------------------------- */
.page-hero { padding-block: clamp(48px, 8vw, 112px) clamp(56px, 7vw, 96px); }
.page-hero__grid { display: grid; gap: clamp(40px, 5vw, 64px); }
.h1--long { font-size: clamp(2.9rem, 10.4vw, 9rem); }

/* page index — four entries across, like the contents leaf of a pecha */
.toc { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--ink); }
.toc a {
  display: grid; grid-template-columns: auto 1fr; gap: 2px 14px; align-items: center;
  height: 100%; padding: 20px 18px; border-bottom: 1px solid var(--rule); text-decoration: none;
  transition: background-color .2s;
}
.toc li:first-child a { padding-left: 0; }
.toc li + li a { border-left: 1px solid var(--rule); }
.toc a:hover { background: var(--paper-2); }
.toc .tib { grid-row: span 2; color: var(--maroon); font-size: 2.2rem; line-height: 1; }
.toc .t { font-family: var(--serif); font-size: 1.5rem; line-height: 1.1; }
.toc .c { font-size: .8rem; color: var(--muted); }
@media (max-width: 860px) {
  .toc { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .toc li:nth-child(3) a { padding-left: 0; border-left: 0; }
}
@media (max-width: 420px) {
  .toc { grid-template-columns: 1fr; }
  .toc a { padding-left: 0 !important; border-left: 0 !important; }
}

.sec-title { margin-bottom: clamp(36px, 5vw, 64px); }

/* press rows */
.press { border-top: 1px solid var(--ink); }
.press a {
  display: grid; grid-template-columns: 132px minmax(0, .5fr) minmax(0, 1.4fr) auto; gap: 28px; align-items: center;
  padding: 22px 8px; border-bottom: 1px solid var(--rule); text-decoration: none;
  transition: background-color .25s;
}
.press a:hover { background: var(--card); }
.press__logo { display: grid; place-items: center; height: 72px; background: #fff; border: 1px solid var(--rule); overflow: hidden; }
.press__logo img { width: 100%; height: 100%; object-fit: contain; }
.press__logo--fill img { object-fit: cover; }
.press__logo--print { background: #CF471F; border-color: #CF471F; }
.press__outlet { font: 600 .74rem/1.3 var(--sans); letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
.press__title { font-family: var(--serif); font-size: clamp(1.25rem, 2vw, 1.65rem); line-height: 1.2; }
.press__go { display: inline-flex; align-items: center; gap: 8px; font-size: .88rem; font-weight: 600; white-space: nowrap; color: var(--maroon); }
.press__go .ic { transition: transform .25s var(--ease); }
.press a:hover .press__go .ic { transform: translate(3px, -3px); }
@media (max-width: 820px) {
  .press a { grid-template-columns: 96px minmax(0, 1fr); gap: 6px 18px; padding: 18px 0; }
  .press__logo { grid-row: span 3; height: 96px; }
  .press__go { font-size: .82rem; }
}

/* pecha folio cards */
.folios { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(20px, 3vw, 40px); }
.folio {
  position: relative; display: flex; flex-direction: column;
  padding: 22px 22px 28px 72px; background: var(--card);
  border: 1px solid var(--rule-strong);
  box-shadow: inset 0 0 0 7px var(--card), inset 0 0 0 8px rgba(139, 43, 36, .38);
}
.folio__margin {
  position: absolute; left: 8px; top: 8px; bottom: 8px; width: 48px;
  display: flex; flex-direction: column; align-items: center; justify-content: space-between; padding: 18px 0;
  border-right: 1px solid rgba(139, 43, 36, .38);
  font-family: var(--tib); color: var(--maroon);
}
.folio__margin span:first-child { font-size: 2.1rem; line-height: 1; }
.folio__margin span:last-child { writing-mode: vertical-rl; font-family: var(--sans); font: 600 .64rem/1 var(--sans); letter-spacing: .22em; text-transform: uppercase; color: var(--muted); }
.folio h3 { margin: 26px 0 4px; }
.folio__sub { margin-bottom: 18px; font-size: .9rem; color: var(--muted); }
.folio .prose p { font-size: 1rem; }
.folio blockquote { margin: 0 0 1.15em; padding-left: 18px; border-left: 2px solid var(--maroon); font-family: var(--serif); font-style: italic; font-size: 1.3rem; line-height: 1.3; color: var(--ink); }
.folio .link { margin-top: auto; padding-top: 12px; align-self: flex-start; background-position: 0 100%; }
.folio__actions { margin-top: auto; padding-top: 22px; }
@media (max-width: 900px) { .folios { grid-template-columns: 1fr; } }
@media (max-width: 520px) {
  .folio { padding: 16px 16px 24px 16px; }
  .folio__margin { display: none; }
}

/* YouTube facade */
.yt { position: relative; aspect-ratio: 16 / 9; background: var(--ink); overflow: hidden; }
.yt img { width: 100%; height: 100%; object-fit: cover; opacity: .92; transition: opacity .3s, transform .8s var(--ease); }
.yt iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.yt__play {
  position: absolute; inset: 0; display: grid; place-items: center; width: 100%;
  background: none; border: 0; cursor: pointer; color: #fff;
}
.yt__play span {
  display: grid; place-items: center; width: 72px; height: 72px; border-radius: 50%;
  background: var(--maroon); box-shadow: 0 10px 30px -8px rgba(0, 0, 0, .6);
  transition: transform .3s var(--ease), background-color .2s;
}
.yt__play .ic { width: 24px; height: 24px; margin-left: 3px; fill: currentColor; stroke: none; }
.yt:hover img { opacity: 1; transform: scale(1.02); }
.yt:hover .yt__play span { transform: scale(1.06); background: var(--f-red); }

/* Award */
.award { padding-block: var(--section); }
.award__grid { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(48px, 8vw, 128px); align-items: center; }
.award h2 { margin-bottom: 32px; }
.award h3 { margin: 44px 0 16px; color: var(--on-night); }
.award__logos { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 36px; }
.award__logos span { display: grid; place-items: center; height: 64px; padding: 8px 16px; background: #fff; border-radius: 2px; }
.award__logos img { height: 48px; width: auto; }
.award .btn-row { margin-top: 32px; }
@media (max-width: 860px) {
  .award__grid { grid-template-columns: 1fr; }
  .award .thangka { max-width: 380px; }
}

/* Thangka mount: rainbow border → brocade → rods */
.thangka { position: relative; max-width: 460px; margin-inline: auto; }
.thangka__rod { display: block; height: 9px; margin-inline: -14px; border-radius: 5px; background: #3B2A1E; }
.thangka__rod--bottom {
  height: 12px; margin-inline: -22px;
  background:
    radial-gradient(circle at 7px 50%, var(--saffron) 6px, transparent 6.5px),
    radial-gradient(circle at calc(100% - 7px) 50%, var(--saffron) 6px, transparent 6.5px),
    linear-gradient(#3B2A1E, #3B2A1E) 14px 50% / calc(100% - 28px) 100% no-repeat;
}
.thangka__silk {
  position: relative; padding: 26px 26px 78px;
  background-color: #1E3263;
  background-image:
    radial-gradient(circle at 25% 25%, rgba(226, 178, 58, .16) 1.5px, transparent 2px),
    radial-gradient(circle at 75% 75%, rgba(226, 178, 58, .16) 1.5px, transparent 2px);
  background-size: 18px 18px;
}
.thangka__rainbow { box-shadow: 0 0 0 4px var(--f-yellow), 0 0 0 9px var(--f-red); }
.thangka__rainbow .cover img { aspect-ratio: 740 / 1043; box-shadow: none; }
.thangka__rainbow .cover:hover { transform: none; }
.thangka__door {
  position: absolute; left: 50%; bottom: 18px; width: 36%; height: 34px; transform: translateX(-50%);
  background: var(--maroon); box-shadow: 0 0 0 3px var(--f-yellow);
}
.thangka__cap { margin-top: 22px; text-align: center; font-size: .88rem; color: var(--on-night-2); }
.thangka__cap em { font-family: var(--serif); font-size: 1.2rem; color: var(--on-night); }

/* Support */
.support { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(16px, 2.4vw, 28px); }
.support li { display: grid; gap: 16px; align-content: start; }
.support__logo { position: relative; display: block; aspect-ratio: 16 / 10; background: #fff; border: 1px solid var(--rule); }
.support__logo img { position: absolute; inset: 14px; width: calc(100% - 28px); height: calc(100% - 28px); object-fit: contain; }
.support h3 { font-family: var(--serif); font-size: 1.35rem; line-height: 1.15; }
.support p { font-size: .85rem; color: var(--muted); }
@media (max-width: 900px) { .support { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* --------------------------------------------------------------------------
   Contact band + prayer-flag garland + footer
   -------------------------------------------------------------------------- */
.contact { padding-block: var(--section) clamp(48px, 6vw, 72px); text-align: center; }
.contact .tib { display: block; margin-bottom: 18px; font-size: 1.5rem; color: var(--maroon); }
.contact h2 { max-width: 14ch; margin: 0 auto 22px; }
.contact p { max-width: 46ch; margin: 0 auto 36px; color: var(--ink-2); }
.contact .btn-row { justify-content: center; }

.lungta { display: block; width: 100%; height: auto; overflow: visible; }
.lungta path { stroke: var(--on-night-2); stroke-width: 1.2; fill: none; opacity: .7; }
.lungta rect { transform-box: fill-box; transform-origin: 50% 0; animation: flutter 4.8s ease-in-out infinite alternate; }
.lungta g:nth-child(odd) rect { animation-duration: 3.9s; animation-delay: -1.3s; }
.lungta g:nth-child(3n) rect { animation-duration: 5.4s; animation-delay: -2.2s; }
@keyframes flutter { from { transform: skewX(-4deg) rotate(-2deg); } to { transform: skewX(4deg) rotate(2deg); } }

.ftr { background: var(--night); color: var(--on-night); }
.ftr__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; padding-block: 72px 56px; }
.ftr .brand__sub { color: var(--on-night-2); }
.ftr__about { margin-top: 20px; max-width: 30ch; font-family: var(--serif); font-size: 1.3rem; line-height: 1.3; color: var(--on-night-2); }
.ftr__h { margin-bottom: 18px; font: 600 .7rem/1.2 var(--sans); letter-spacing: .22em; text-transform: uppercase; color: var(--on-night-2); }
.ftr__list { display: grid; gap: 10px; }
.ftr__list a { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--on-night); transition: color .2s; }
.ftr__list a:hover { color: var(--f-yellow); }
.ftr__list .ic { width: 18px; height: 18px; opacity: .8; }
.ftr__list .n { font-family: var(--tib); font-size: 1.45em; line-height: 1; color: var(--f-yellow); opacity: .8; width: 1.2em; }
.ftr__base { position: relative; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; padding-block: 22px 26px; font-size: .82rem; color: var(--on-night-2); }
.ftr__base::before { content: ""; position: absolute; top: 0; left: var(--gutter); right: var(--gutter); height: 1px; background: var(--night-rule); }
.ftr__base .tib { font-size: 1rem; color: var(--on-night-2); }
@media (max-width: 900px) { .ftr__grid { grid-template-columns: 1fr 1fr; } .ftr__brandcol { grid-column: 1 / -1; } }
@media (max-width: 480px) { .ftr__grid { grid-template-columns: 1fr; gap: 36px; padding-block: 56px 40px; } }

/* socials in the mobile menu */
.socials { display: flex; flex-wrap: wrap; gap: 8px; }
.socials a {
  display: inline-grid; place-items: center; width: 46px; height: 46px;
  border: 1px solid var(--rule-strong); border-radius: 50%; text-decoration: none; transition: background-color .2s, color .2s;
}
.socials a:hover { background: var(--ink); color: var(--paper); }
.socials .ic { width: 19px; height: 19px; }

/* --------------------------------------------------------------------------
   Lightbox (a <dialog>)
   -------------------------------------------------------------------------- */
.lb {
  width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; padding: 0; border: 0;
  background: rgba(17, 13, 11, .96); color: var(--on-night);
}
.lb::backdrop { background: rgba(17, 13, 11, .6); }
.lb[open] { display: grid; grid-template-rows: auto 1fr auto; animation: lb-in .3s var(--ease); }
@keyframes lb-in { from { opacity: 0; } }
.lb__top { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px var(--gutter); }
.lb__count { font-size: .85rem; color: var(--on-night-2); font-variant-numeric: tabular-nums; }
.lb__stage { position: relative; min-height: 0; display: grid; place-items: center; padding: 0 clamp(8px, 7vw, 96px); }
.lb__img { max-width: 100%; max-height: calc(100vh - 160px); max-height: calc(100dvh - 160px); width: auto; height: auto; object-fit: contain; user-select: none; }
.lb__cap { padding: 16px var(--gutter) 24px; text-align: center; font-family: var(--serif); font-size: 1.25rem; line-height: 1.3; }
.lb__btn {
  display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%;
  border: 1px solid var(--night-rule); background: rgba(255, 255, 255, .04); color: var(--on-night); cursor: pointer;
  transition: background-color .2s;
}
.lb__btn:hover { background: rgba(255, 255, 255, .14); }
.lb__btn .ic { width: 22px; height: 22px; }
.lb__prev, .lb__next { position: absolute; top: 50%; transform: translateY(-50%); z-index: 2; }
.lb__prev { left: clamp(8px, 2vw, 28px); }
.lb__next { right: clamp(8px, 2vw, 28px); }
@media (max-width: 640px) {
  .lb__img { max-height: calc(100vh - 240px); max-height: calc(100dvh - 240px); }
  .lb__prev, .lb__next { position: fixed; top: auto; bottom: 18px; transform: none; }
  .lb__prev { left: calc(50% - 60px); }
  .lb__next { right: calc(50% - 60px); }
  .lb__cap { padding-bottom: 88px; font-size: 1.1rem; }
}

/* --------------------------------------------------------------------------
   Reveal on scroll (only when JS adds .reveal-on)
   -------------------------------------------------------------------------- */
.reveal-on [data-reveal] { opacity: 0; transform: translateY(22px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal-on [data-reveal].is-in { opacity: 1; transform: none; }
.reveal-on [data-reveal="2"] { transition-delay: .12s; }
.reveal-on [data-reveal="3"] { transition-delay: .24s; }
.reveal-on [data-reveal="4"] { transition-delay: .36s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

@media print {
  .hdr, .menu, .lb, .vbtn, .contact, .lungta { display: none !important; }
  body::before { display: none; }
  .night, .ftr { background: none; color: var(--ink); }
}
