/* ── Fonts, served from this site (vendored 2026-09-22 - nothing loads from Google any more; guide 13).
   Newsreader (serif, display + body) and Hanken Grotesk (sans, UI). Open Font License. Latin + Latin-extended
   subsets; the browser fetches only the files a page's characters and weights need. ─────────────────────── */

/* 'Hanken Grotesk' — normal 400 700 — latin-ext (one variable-font file for every weight) */
@font-face {
  font-family: 'Hanken Grotesk';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url(/assets/fonts/hanken-grotesk-normal-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* 'Hanken Grotesk' — normal 400 700 — latin (one variable-font file for every weight) */
@font-face {
  font-family: 'Hanken Grotesk';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url(/assets/fonts/hanken-grotesk-normal-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* 'Newsreader' — italic 400 500 — latin-ext (one variable-font file for every weight) */
@font-face {
  font-family: 'Newsreader';
  font-style: italic;
  font-weight: 400 500;
  font-display: swap;
  src: url(/assets/fonts/newsreader-italic-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* 'Newsreader' — italic 400 500 — latin (one variable-font file for every weight) */
@font-face {
  font-family: 'Newsreader';
  font-style: italic;
  font-weight: 400 500;
  font-display: swap;
  src: url(/assets/fonts/newsreader-italic-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* 'Newsreader' — normal 400 600 — latin-ext (one variable-font file for every weight) */
@font-face {
  font-family: 'Newsreader';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url(/assets/fonts/newsreader-normal-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* 'Newsreader' — normal 400 600 — latin (one variable-font file for every weight) */
@font-face {
  font-family: 'Newsreader';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url(/assets/fonts/newsreader-normal-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* ==========================================================================
   kelabit.org — site stylesheet
   --------------------------------------------------------------------------
   FOR THE DESIGNER
   This is a *first build*, not a finished identity. Everything visual is
   driven by the tokens in :root below — swapping those against the Kelabit
   Dictionary site's real palette + type stack should re-skin the whole site
   without touching component CSS.

   Order:
     1. Tokens          2. Reset/base       3. Layout primitives
     4. Header / nav    5. Home + index     6. Article shell + chrome
     7. Article blocks (the block library from brief §4)
     8. Kelabit terms   9. Footer          10. Utilities + print
   ========================================================================== */


/* Beadwork-diamond divider (shared motif with the dictionary) */
.bead-divider { display:flex; align-items:center; justify-content:center; gap:8px; margin: 2.4rem auto 1.2rem; }
.bead-divider::before, .bead-divider::after { content:""; flex:0 0 72px; height:1px; background: var(--rule-strong); }
.bead-divider i { display:inline-block; transform:rotate(45deg); border-radius:1px; }
.bead-divider i.s { width:8px; height:8px; background: var(--gold); }
.bead-divider i.m { width:12px; height:12px; background: var(--clay); }
.bead-divider i.c { width:10px; height:10px; background: transparent; border:1.5px solid var(--forest); }
/* Text-size control (100 / 115 / 130 %) — the same AA pill as the dictionary's header (2026-09-19) */
.textsize-wrap { position:relative; display:inline-flex; flex:none; }
.textsize { appearance:none; display:inline-flex; align-items:center; gap:7px; font-family: var(--serif); font-weight:700; color:#4A4038;
  background:#F7F1E7; border:1px solid #C4AF80; border-radius:999px; min-height:40px; padding:5px 11px; cursor:pointer; line-height:1; }
.textsize:hover, .textsize[aria-expanded="true"] { background:#EFE3CC; }
.textsize__aa { display:inline-flex; align-items:baseline; gap:1px; }
.textsize__s { font-size:12px; }
.textsize__l { font-size:16px; }
.textsize__chev { transition: transform .18s ease; }
.textsize[aria-expanded="true"] .textsize__chev { transform: rotate(180deg); }
/* The menu: Normal / Medium / Large with a tick on the size in use — the dictionary's, to the pixel */
.textsize__menu { position:absolute; top:calc(100% + 10px); right:0; width:224px; z-index:60; padding:8px;
  background:#FFFDF8; border:1px solid #E0D4BE; border-radius:14px; box-shadow:0 22px 48px -20px rgba(40,30,20,.5); }
.textsize__menu[hidden] { display:none; }
.textsize__title { font: 700 10px/1.2 var(--sans); letter-spacing:.14em; text-transform:uppercase; color:#A6512C; padding:6px 10px 7px; }
.textsize__menu [role="menuitemradio"] { appearance:none; display:flex; width:100%; align-items:center; justify-content:space-between; gap:10px;
  padding:9px 11px; border:0; border-radius:9px; background:transparent; cursor:pointer; text-align:left; color:inherit; }
.textsize__menu [role="menuitemradio"]:hover { background:#F3EBDC; }
.textsize__menu [role="menuitemradio"][aria-checked="true"] { background:#EFE7D3; }
.textsize__row { display:flex; align-items:baseline; gap:9px; }
.textsize__glyph { font: 600 15px/1 var(--serif); color:#234539; }
.textsize__name { font: 600 13px/1.2 var(--sans); color:#3A342C; }
.textsize__check { width:14px; color:#2E5A49; font-size:13px; }

/* Footer "in progress" labels: plain gold small capitals (2026-10-04: the hanging gold tags of 2026-10-01 were
   retired on the consultant's advice, H9/NV-02; this is the style the live site kept). */
.foot-wip small { font: 500 .68rem/1 var(--sans); letter-spacing:.04em; text-transform:uppercase; color: var(--gold); margin-left:.35rem; }
/* 1. TOKENS ============================================================== */
:root {
  /* --- Colour ------------------------------------------------------------
     The Kelabit design system, shared with the dictionary (2026-09-14):
     warm paper, deep padi green, terracotta clay, beadwork gold, coral. */
  --paper:        #F6EFE3;   /* warm paper — one shade lighter than the dictionary's #F3EBDC (2026-09-15, retuned same day) */
  --paper-sunk:   #EDE4D3;
  --paper-raised: #FBF7EF;
  --forest:       #234539;   /* deep padi green — dark sections, footer (as the dictionary) */
  --ink:          #2A2520;   /* body text — the dictionary's warm near-black (2026-09-19; was cool #222c26) */
  --ink-soft:     #4E453A;   /* secondary text, nav, captions — warm dark (was grey-green #55605a) */
  --ink-faint:    #6E6353;   /* darkened 2026-09-30 for contrast: 5.1:1 on paper (was #7A6E5D, 4.4:1) */
  --rule:         #DDD1BA;   /* hairlines (beadwork neutrals, lighter) */
  --rule-strong:  #C9BB98;
  --river:        #2E5A49;   /* primary accent — links, chapter marks (padi green, as the dictionary) */
  --river-deep:   #234539;
  --river-pale:   #E6ECE6;
  --clay:         #9A4A27;   /* secondary accent — Kelabit terms (terracotta clay). Deepened 2026-09-30 from #C0673B (3.5:1) to pass text contrast on every background (≥4.9:1) */
  --clay-pale:    #F8ECE1;
  --gold:         #E8B14E;   /* beadwork gold: rules, dedication, active marks */
  --coral:        #C7472F;   /* coral accent (sparingly) */

  /* --- Type --------------------------------------------------------------
     Newsreader (display + body) and Hanken Grotesk (UI labels), as the dictionary.
     Loaded with display=swap; the system stacks below are the offline fallback. */
  --serif: "Newsreader", "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua",
           Georgia, "Times New Roman", serif;
  --sans:  "Hanken Grotesk", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto,
           "Helvetica Neue", Arial, sans-serif;

  --step--2: clamp(0.72rem, 0.70rem + 0.10vw, 0.78rem);
  --step--1: clamp(0.84rem, 0.81rem + 0.15vw, 0.92rem);
  --step-0:  clamp(1.05rem, 1.00rem + 0.22vw, 1.19rem);
  --step-1:  clamp(1.25rem, 1.16rem + 0.40vw, 1.50rem);
  --step-2:  clamp(1.50rem, 1.33rem + 0.75vw, 2.00rem);
  --step-3:  clamp(1.85rem, 1.55rem + 1.30vw, 2.75rem);
  --step-4:  clamp(2.25rem, 1.70rem + 2.40vw, 4.00rem);
  --step-5:  clamp(2.60rem, 1.75rem + 3.80vw, 5.25rem);

  /* --- Space / shape ---------------------------------------------------- */
  --gap:   clamp(1rem, 0.7rem + 1.4vw, 1.75rem);
  --bleed: clamp(1.1rem, 0.6rem + 2.4vw, 3rem);
  --radius: 3px;
  --shadow: 0 1px 2px rgba(27,42,34,.06), 0 8px 24px -12px rgba(27,42,34,.22);

  /* --- Measure ---------------------------------------------------------- */
  --measure: 68ch;
  --shell: 1240px;
  --head-h: 64px;      /* masthead height, kept in sync by site.js */
  --stick: 110px;      /* masthead + chapter bar, for scroll-margin */
}

/* 2. RESET / BASE ======================================================== */
*, *::before, *::after { box-sizing: border-box; }
/* No smooth scrolling: the journal is ~77,000px tall, so an animated jump to a
   late chapter would crawl for several seconds. Anchor jumps are instant. */
html { -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 var(--step-0)/1.7 var(--serif);
  font-synthesis-weight: none;
  text-rendering: optimizeLegibility;
}
img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: var(--river); text-underline-offset: .18em; text-decoration-thickness: from-font; }
a:hover { color: var(--clay); }
:focus-visible { outline: 2px solid var(--river); outline-offset: 3px; border-radius: 2px; }
h1, h2, h3, h4 { font-weight: 600; line-height: 1.12; letter-spacing: -0.012em; margin: 0; }
p { margin: 0 0 1.15em; }
hr { border: 0; border-top: 1px solid var(--rule); margin: var(--gap) 0; }
::selection { background: var(--river-pale); }
.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--forest); color: #fff; padding: .7rem 1rem; font: 600 var(--step--1)/1 var(--sans);
}
.skip-link:focus { left: .5rem; top: .5rem; }

/* 3. LAYOUT PRIMITIVES =================================================== */
.shell { width: min(100% - (var(--bleed) * 2), var(--shell)); margin-inline: auto; }
.shell--narrow { width: min(100% - (var(--bleed) * 2), 780px); }
.stack > * + * { margin-top: var(--gap); }
.eyebrow {
  font: 600 var(--step--2)/1.2 var(--sans);
  letter-spacing: .16em; text-transform: uppercase; color: var(--clay);
  margin: 0 0 .8rem;
}
.eyebrow--river { color: var(--river); }

/* 4. HEADER / NAV ======================================================== */
/* The header is the dictionary's header (2026-09-19): the same band colour and hairline, the same 26–32px
   mark / 22px title / uppercase kicker / beta pill row with everything centred on one axis, and the same
   AA + menu control group on the right. Keep the two in step. */
.masthead {
  position: sticky; top: 0; z-index: 40;
  background: rgba(226, 216, 195, .93);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border-bottom: 1px solid #D5C8AD;
}
.masthead__inner {
  display: flex; align-items: center; gap: 16px;
  min-height: 68px; padding-block: 14px;
}
.wordmark { display: flex; align-items: center; gap: 12px; min-width: 0; text-decoration: none; color: var(--forest); }
.wordmark__mark { width: 30px; height: 30px; flex: none; }
.wordmark__name { font: 600 22px/1 var(--serif); letter-spacing: -.01em; white-space: nowrap; color: var(--forest); }
.wordmark__tag {
  font: 600 11px/1 var(--sans); letter-spacing: .16em;
  text-transform: uppercase; color: #A6512C; white-space: nowrap;
}
.beta-pill {
  display: inline-flex; align-items: center; justify-content: center; flex: none;
  font: 700 10px/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; white-space: nowrap;
  color: #A6512C; background: rgba(232, 177, 78, .16); border: 1px solid #D9A24A; border-radius: 999px;
  padding: 4px 9px 4px 11px; cursor: help;
}
.beta-pill__short { display: none; }
/* Hide the tagline before it can collide with the menu (it overlapped between 861 and 1081px). */
@media (max-width: 1100px) { .wordmark__tag { display: none; } }
/* Short "Beta" badge below 1000px, so the name never squeezes into it at Large text (it did at 861–863px). */
@media (max-width: 1000px) { .beta-pill__full { display: none; } .beta-pill__short { display: inline; } }
.masthead__ctl { display: inline-flex; align-items: center; gap: 8px; flex: none; }

.nav { display: flex; align-items: center; gap: clamp(12px, 1.8vw, 26px); margin-left: auto; }
.nav a {
  font: 600 13.5px/1 var(--sans); letter-spacing: .01em; text-decoration: none; color: var(--ink-soft);
  padding: .5rem 0; white-space: nowrap;
}
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); }
.nav a[aria-current="page"] { box-shadow: inset 0 -2px 0 var(--clay); }
.nav .nav__dict {
  color: var(--river); border: 1px solid var(--rule-strong); border-radius: 999px;
  padding: .45rem .85rem; background: var(--paper-raised);
}
.nav .nav__dict:hover { border-color: var(--river); color: var(--river-deep); }
.nav__dict svg { display: inline-block; vertical-align: -1px; margin-left: .3em; }
.nav__group { position: relative; display: flex; }
.nav__trigger {
  display: inline-flex; align-items: center; gap: .35rem; background: none; border: 0; cursor: pointer;
  font: 600 13.5px/1 var(--sans); letter-spacing: .01em; color: var(--ink-soft); padding: .5rem 0; white-space: nowrap;
}
.nav__trigger:hover, .nav__group[data-open="true"] .nav__trigger, .nav__trigger[aria-current="page"] { color: var(--ink); }
.nav__trigger[aria-current="page"] { box-shadow: inset 0 -2px 0 var(--clay); }
.nav__trigger svg { transition: transform .18s ease; }
.nav__group[data-open="true"] .nav__trigger svg { transform: rotate(180deg); }
.nav__menu {
  position: absolute; top: calc(100% + .5rem); left: -.7rem; z-index: 60;
  display: none; flex-direction: column; min-width: 12rem; padding: .4rem;
  background: var(--paper-raised); border: 1px solid var(--rule-strong);
  border-radius: var(--radius); box-shadow: 0 22px 44px -24px rgba(20,28,24,.55);
}
.nav__group--end .nav__menu { left: auto; right: -.7rem; }
.nav__group[data-open="true"] .nav__menu { display: flex; }
.nav .nav__menu a { padding: .55rem .7rem; border-radius: calc(var(--radius) - 4px); }
.nav .nav__menu a:hover { background: var(--paper-sunk); }
.nav .nav__menu a[aria-current="page"] { box-shadow: none; color: var(--river); font-weight: 700; }
.nav .nav__menu a { display: flex; align-items: baseline; justify-content: space-between; gap: .9rem; white-space: nowrap; }
.nav .nav__menu small { font: 500 .62rem/1 var(--sans); letter-spacing: .04em; text-transform: uppercase; color: var(--gold); }
/* A menu group whose pages are still being written (add nav__group--wip to it): the trigger and page names are
   greyed so it reads as "not ready yet"; the gold "in progress" labels stay as they are. Still clickable; hover and
   the current page darken as usual. Used on Explore 2026-10-02, removed the same day; kept for future groups. */
.nav__group--wip .nav__trigger, .nav .nav__group--wip .nav__menu a { color: #A39A8A; }
.nav__group--wip .nav__trigger:hover, .nav__group--wip[data-open="true"] .nav__trigger { color: #8E8574; }
.nav .nav__group--wip .nav__menu a:hover { color: var(--ink-soft); }
.nav__group--wip .nav__trigger[aria-current="page"] { color: var(--ink); }
.nav .nav__group--wip .nav__menu a[aria-current="page"] { color: var(--river); }
/* A page in the group that is finished (its "in progress" label removed) shows in the normal colour. */
.nav .nav__group--wip .nav__menu a:not(:has(small)):not([aria-current="page"]) { color: var(--ink-soft); }
.nav .nav__group--wip .nav__menu a:not(:has(small)):hover { color: var(--ink); }

/* Collapsible nav pane on narrow screens */
.nav-toggle {
  display: none; align-items: center; justify-content: center;
  width: 44px; height: 44px; flex: none; cursor: pointer; padding: 0;
  background: transparent; color: #3A332C;
  border: 1px solid #C4AF80; border-radius: 12px;
}
.nav-toggle:hover, .nav-toggle[aria-expanded="true"] { background: #EFE3CC; }

@media (max-width: 860px) {
  .masthead__inner { flex-wrap: wrap; min-height: 0; padding-block: 10px; gap: 10px; }
  .masthead .shell { width: calc(100% - 28px); }
  .wordmark { gap: 8px; }
  .wordmark__mark { width: 26px; height: 26px; }
  .wordmark__name { font-size: 17px; }
  .wordmark__tag { display: none; }
  .beta-pill { font-size: 9px; letter-spacing: .08em; padding: 3px 7px; }
  .beta-pill__full { display: none; }
  .beta-pill__short { display: inline; }
  .masthead__ctl { order: 2; margin-left: auto; gap: 6px; }
  .textsize { padding: 5px 8px; gap: 4px; }
  .nav-toggle { display: inline-flex; }
  .nav {
    display: none; order: 3; width: 100%; flex-basis: 100%; margin-left: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    margin-top: .4rem; padding-top: .35rem; border-top: 1px solid #D5C8AD;
  }
  /* The open menu scrolls within itself when it is taller than the screen (small phones, large text). */
  .nav[data-open="true"] { display: flex; max-height: calc(100vh - 4.5rem); max-height: calc(100dvh - 4.5rem); overflow-y: auto; overscroll-behavior: contain; }
  .nav > *, .nav__group { width: 100%; }
  .nav > * + * { border-top: 1px solid var(--rule); }
  .nav__group { display: block; padding-block: .15rem; }
  .nav > a, .nav__trigger { padding: .85rem .25rem; min-height: 48px; display: flex; align-items: center; }
  .nav-toggle, .textsize { min-height: 44px; }
  .textsize__menu { right: 0; }
  .nav__trigger { width: 100%; justify-content: space-between; }
  .nav .nav__dict { display: inline-flex; width: auto; align-self: flex-start; margin: .55rem .25rem; }
  .nav__menu, .nav__group--end .nav__menu {
    position: static; display: none; min-width: 0;
    margin: 0 0 .5rem .3rem; padding: 0 0 0 .85rem;
    background: none; border: 0; border-left: 2px solid var(--rule-strong);
    border-radius: 0; box-shadow: none;
  }
  .nav__group[data-open="true"] .nav__menu { display: flex; }
  .nav .nav__menu a { padding: .7rem .5rem; }
}

/* 5. HOME + INDEX ======================================================== */
.home-hero {
  position: relative; color: #fff; isolation: isolate;
  min-height: clamp(440px, 74vh, 760px);
  display: grid; align-items: end;
  overflow: hidden;
}
.home-hero__media { position: absolute; inset: 0; z-index: -2; }
.home-hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 42%; }
.home-hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(178deg, rgba(15,24,19,.55) 0%, rgba(15,24,19,.15) 38%, rgba(15,24,19,.82) 100%);
}
.home-hero__body { padding-block: clamp(2.5rem, 8vh, 5rem); max-width: 48rem; }
.home-hero h1 {
  font-size: var(--step-5); letter-spacing: -.03em; margin-bottom: .5rem;
  text-wrap: balance; text-shadow: 0 2px 30px rgba(0,0,0,.35);
}
.home-hero p { font-size: var(--step-1); line-height: 1.45; color: #f0ece3; margin-bottom: 0; max-width: 36ch; }
.home-hero .eyebrow { color: #e8c98a; }

.mission { padding-block: clamp(3rem, 9vh, 6rem); }
.mission__lead {
  font-size: var(--step-2); line-height: 1.35; letter-spacing: -.015em;
  max-width: 26ch; margin: 0;
}
.mission__grid {
  display: grid; gap: clamp(1.5rem, 4vw, 3.5rem);
  grid-template-columns: 1fr;
}
@media (min-width: 860px) { .mission__grid { grid-template-columns: 1fr 1fr; align-items: start; } }
.mission__body p:last-child { margin-bottom: 0; }

.doors { display: grid; gap: var(--gap); grid-template-columns: 1fr; padding-bottom: clamp(3rem, 8vh, 5rem); }
@media (min-width: 760px) { .doors { grid-template-columns: 1fr 1fr; } }
.door {
  display: block; text-decoration: none; color: inherit; padding: clamp(1.4rem, 3vw, 2.2rem);
  border: 1px solid var(--rule); border-radius: var(--radius); background: var(--paper-raised);
  transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}
.door:hover { border-color: var(--river); transform: translateY(-2px); box-shadow: var(--shadow); color: inherit; }
.door h3 { font-size: var(--step-2); margin-bottom: .4rem; }
.door p { color: var(--ink-soft); font-size: var(--step--1); font-family: var(--sans); line-height: 1.6; margin: 0; }
.door__more { display: inline-block; margin-top: 1rem; font: 600 var(--step--1)/1 var(--sans); color: var(--river); }
.door--dict { background: var(--river-deep); border-color: var(--river-deep); color: #eef4f4; }
.door--dict h3, .door--dict .door__more { color: #fff; }
.door--dict p { color: #c9dade; }

.feature {
  display: grid; gap: clamp(1.5rem, 4vw, 3rem); align-items: center;
  padding-block: clamp(2.5rem, 7vh, 4.5rem); border-top: 1px solid var(--rule);
}
@media (min-width: 900px) { .feature { grid-template-columns: 1.15fr 1fr; } }
.feature__media img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--radius); }
.feature h2 { font-size: var(--step-3); letter-spacing: -.025em; margin-bottom: .6rem; text-wrap: balance; }
.feature__meta {
  font: 500 var(--step--1)/1.5 var(--sans); color: var(--ink-faint);
  display: flex; flex-wrap: wrap; gap: .4rem 1rem; margin-bottom: 1rem;
}

.journal-list { display: grid; gap: clamp(1.5rem, 4vw, 2.5rem); padding-block: clamp(2rem, 5vh, 3rem); }
.journal-card {
  display: grid; gap: clamp(1rem, 3vw, 2rem); align-items: start;
  padding-bottom: clamp(1.5rem, 4vw, 2.5rem); border-bottom: 1px solid var(--rule);
}
@media (min-width: 760px) { .journal-card { grid-template-columns: 300px 1fr; } }
.journal-card__media img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: var(--radius); }
/* the manuscript cover plate is a portrait page — show it whole, like a book cover */
.journal-card__media--cover img { aspect-ratio: 3 / 4; object-fit: contain; background: var(--paper-sunk);
  border: 1px solid var(--rule); box-shadow: var(--shadow); }
.journal-card h3 { font-size: var(--step-2); margin-bottom: .5rem; text-wrap: balance; }
.journal-card h3 a { text-decoration: none; color: inherit; background-image: linear-gradient(var(--clay), var(--clay));
  background-size: 0% 1px; background-repeat: no-repeat; background-position: 0 100%; transition: background-size .25s ease; }
.journal-card h3 a:hover { background-size: 100% 1px; }
.journal-card p { color: var(--ink-soft); }
.journal-card--soon { opacity: .8; }
.badge {
  display: inline-block; font: 600 var(--step--2)/1 var(--sans); letter-spacing: .1em;
  text-transform: uppercase; padding: .4rem .6rem; border-radius: 999px;
  background: var(--clay-pale); color: var(--clay);
}
.badge--river { background: var(--river-pale); color: var(--river-deep); }

/* 2026-10-20 (Owner: the page tops took too much room; on a laptop the first story sat below the fold). Tighter, after
   NN/g (the first content should show above the fold) and GOV.UK (a 48px inner-page title, a lead of about 1.3-1.45):
   less space above and below, a 50px title (32px on a phone), and a 21px intro at 1.45 over a 62-character line. */
.page-head { padding-block: clamp(1.75rem, 4.5vh, 3rem) clamp(1rem, 2.5vh, 1.75rem); }
.page-head h1 { font-size: clamp(2rem, 1.55rem + 1.9vw, 3.125rem); letter-spacing: -.03em; text-wrap: balance; }
.page-head p { font-size: var(--step-1); color: var(--ink-soft); max-width: 46ch; margin-top: .8rem; }
.page-head > p:not(.eyebrow) { font-size: clamp(1.125rem, 1.05rem + .3vw, 1.3rem); line-height: 1.45; max-width: 62ch; margin-top: .6rem; }   /* the intro */

.prose-page { padding-bottom: clamp(3rem, 8vh, 5rem); }
.prose-page h2 { font-size: var(--step-2); margin: 2.2em 0 .6em; }
.prose-page h3 { font-size: var(--step-1); margin: 1.8em 0 .4em; }
.prose-page ul { padding-left: 1.1em; }
.prose-page li { margin-bottom: .45em; }

.partners { display: grid; gap: var(--gap); grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); margin: 1.5rem 0 0; padding: 0; list-style: none; }
.partners li {
  border: 1px solid var(--rule); border-radius: var(--radius); padding: 1rem 1.1rem;
  background: var(--paper-raised); font: 500 var(--step--1)/1.5 var(--sans);
}
.partners strong { display: block; font: 600 var(--step-0)/1.3 var(--serif); margin-bottom: .2rem; }
.partners span { color: var(--ink-faint); }

/* 6. ARTICLE SHELL + CHROME ============================================== */
.progress {
  position: fixed; top: 0; left: 0; height: 3px; width: 0%; z-index: 60;
  background: linear-gradient(90deg, var(--river), var(--gold));
}
.article-hero {
  position: relative; isolation: isolate; color: #fff;
  min-height: clamp(560px, 92vh, 900px);
  display: grid; align-items: end;
}
.article-hero__media { position: absolute; inset: 0; z-index: -2; background: var(--forest); }
.article-hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.article-hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(12,20,16,.62) 0%, rgba(12,20,16,.12) 30%, rgba(12,20,16,.55) 62%, rgba(12,20,16,.9) 100%);
}
.article-hero__body { padding-block: clamp(2.5rem, 7vh, 4.5rem); max-width: 60rem; }
.article-hero h1 {
  font-size: var(--step-5); letter-spacing: -.032em; text-wrap: balance;
  margin-bottom: .35em; text-shadow: 0 2px 40px rgba(0,0,0,.4);
}
.article-hero__sub {
  font-size: var(--step-2); line-height: 1.28; font-style: italic; color: #f2ede2; margin-bottom: .8rem; max-width: 30ch;
}
.article-hero__meta {
  font: 500 var(--step--1)/1.6 var(--sans); color: #d8d2c6;
  display: flex; flex-wrap: wrap; gap: .3rem 1.2rem;
}
.article-hero__meta span + span::before { content: "·"; margin-right: 1.2rem; color: rgba(255,255,255,.45); }
.article-hero .eyebrow { color: #e8c98a; }
.hero-credit {
  position: absolute; right: var(--bleed); bottom: .6rem; z-index: 2;
  font: 400 var(--step--2)/1 var(--sans); color: rgba(255,255,255,.62);
}

/* chapter bar + contents drawer */
.chapterbar {
  position: sticky; top: var(--head-h); z-index: 30;
  background: color-mix(in srgb, var(--paper) 92%, transparent);
  backdrop-filter: blur(8px); border-bottom: 1px solid var(--rule);
}
.chapterbar__inner { display: flex; align-items: center; gap: 1rem; min-height: 46px; }
.chapterbar__now {
  font: 500 var(--step--1)/1 var(--sans); color: var(--ink-soft);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.chapterbar__now { display: flex; gap: .3em; min-width: 0; }
/* The chapter name shortens with "…" on its own, so "Reading:" never stands alone (the tick animation makes it an
   inline-block, which used to hide the whole name behind one "…"). */
.chapterbar__now b { color: var(--ink); font-weight: 600; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.toc-toggle {
  margin-left: auto; display: inline-flex; align-items: center; gap: .5rem;
  font: 600 var(--step--1)/1 var(--sans); color: var(--river);
  background: none; border: 1px solid var(--rule-strong); border-radius: 999px;
  padding: .45rem .85rem; cursor: pointer;
}
.toc-toggle:hover { border-color: var(--river); }
.toc-panel {
  position: fixed; inset: 0 0 0 auto; width: min(90vw, 380px); z-index: 50;
  background: var(--paper-raised); border-left: 1px solid var(--rule);
  padding: 1.5rem var(--bleed); overflow-y: auto;
  transform: translateX(100%); transition: transform .28s ease; visibility: hidden;
  box-shadow: -20px 0 50px -30px rgba(0,0,0,.5);
}
.toc-panel[data-open="true"] { transform: none; visibility: visible; }
.toc-panel h2 { font-size: var(--step-1); margin-bottom: 1rem; }
.toc-panel ol { list-style: none; margin: 0; padding: 0; counter-reset: ch; }
.toc-panel li { counter-increment: ch; border-top: 1px solid var(--rule); }
.toc-panel a {
  display: grid; grid-template-columns: 2.2rem 1fr; gap: .5rem; padding: .7rem 0;
  text-decoration: none; color: var(--ink); font: 500 var(--step--1)/1.4 var(--sans);
}
.toc-panel ol a::before { content: counter(ch, decimal-leading-zero); color: var(--ink-faint); font-variant-numeric: tabular-nums; }
.toc-panel p a { display: inline; }
.toc-panel a:hover { color: var(--river); }
.toc-panel a[aria-current="true"] { color: var(--river); font-weight: 700; }
.toc-close { position: absolute; top: 1rem; right: 1rem; background: none; border: 0; cursor: pointer; color: var(--ink-soft); font-size: 1.4rem; line-height: 1; }
.scrim { position: fixed; inset: 0; background: rgba(20,28,24,.45); z-index: 45; opacity: 0; pointer-events: none; transition: opacity .28s ease; }
.scrim[data-open="true"] { opacity: 1; pointer-events: auto; }

/* the article grid: text column by default, wide/full opt-in */
.article {
  --col-text: min(100% - (var(--bleed) * 2), var(--measure));
  --col-wide: min(100% - (var(--bleed) * 2), 1000px);
  --col-full: min(100% - (var(--bleed) * 2), var(--shell));
  display: grid;
  grid-template-columns:
    [full-start] minmax(var(--bleed), 1fr)
    [wide-start] minmax(0, calc((var(--col-wide) - var(--col-text)) / 2))
    [text-start] var(--col-text) [text-end]
    minmax(0, calc((var(--col-wide) - var(--col-text)) / 2)) [wide-end]
    minmax(var(--bleed), 1fr) [full-end];
  padding-block: clamp(2rem, 6vh, 4rem) clamp(3rem, 9vh, 6rem);
  row-gap: 0;
}
.article > * { grid-column: text; }
.article > .u-wide { grid-column: wide; }
.article > .u-full { grid-column: full; }
.article > .u-bleed { grid-column: full-start / full-end; width: 100%; }

/* 7. ARTICLE BLOCKS ====================================================== */

/* 7.1 epigraph / invitation */
.epigraph {
  font-size: var(--step-1); line-height: 1.55; color: var(--ink);
  border-left: 3px solid var(--gold); padding: .2rem 0 .2rem 1.4rem;
  margin: 0 0 clamp(2rem, 5vh, 3rem);
}
.epigraph p:last-child { margin-bottom: 0; }

/* 7.2 chapter + section headings */
.chapter { margin: clamp(2.6rem, 7vh, 4.5rem) 0 1.2rem; scroll-margin-top: var(--stick); }
.chapter__num {
  font: 600 var(--step--2)/1 var(--sans); letter-spacing: .18em; text-transform: uppercase;
  color: var(--clay); display: block; margin-bottom: .7rem;
}
.chapter h2 { font-size: var(--step-3); letter-spacing: -.025em; text-wrap: balance; }
.chapter::before {
  content: ""; display: block; width: 46px; height: 2px; background: var(--gold); margin-bottom: 1.3rem;
}
.section-head {
  font-size: var(--step-1); margin: clamp(1.8rem, 4vh, 2.6rem) 0 .9rem;
  color: var(--river-deep); text-wrap: balance; scroll-margin-top: var(--stick);
}

/* 7.3 body prose */
.article p { font-size: var(--step-0); line-height: 1.72; }
.article > p + p { text-indent: 0; }
.lede { font-size: var(--step-1); line-height: 1.55; color: var(--ink); }
.note {
  font: 400 var(--step--1)/1.65 var(--sans); color: var(--ink-soft);
  background: var(--paper-sunk); border: 1px solid var(--rule);
  border-radius: var(--radius); padding: 1rem 1.2rem; margin-block: 1.6rem;
}
.note strong { color: var(--ink); }
.note--review { background: #fff8ea; border-color: #ecd9ac; }

/* 7.4 figures: single, grid, map */
.figure { margin: clamp(1.8rem, 5vh, 3rem) 0; }
.figure img {
  width: 100%; border-radius: var(--radius); background: var(--paper-sunk);
  cursor: zoom-in;
}
.figure figcaption, .fig-caption {
  font: 400 var(--step--1)/1.6 var(--sans); color: var(--ink-soft);
  margin-top: .75rem; max-width: 62ch;
}
.figure figcaption b, .fig-caption b { color: var(--ink); font-weight: 600; }
.figure--portrait img { max-height: 86vh; width: auto; margin-inline: auto; }
.figure__grid { display: grid; gap: clamp(.4rem, 1.2vw, .9rem); }
.figure__grid img { height: 100%; object-fit: cover; }
.figure__grid[data-n="2"] { grid-template-columns: repeat(2, 1fr); }
.figure__grid[data-n="3"] { grid-template-columns: repeat(3, 1fr); }
.figure__grid[data-n="4"] { grid-template-columns: repeat(2, 1fr); }
.figure__grid[data-n="many"] { grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }
.figure__grid[data-n="2"] img,
.figure__grid[data-n="3"] img,
.figure__grid[data-n="4"] img,
.figure__grid[data-n="many"] img { aspect-ratio: 3 / 2; }
.figure__grid.is-portraits img { aspect-ratio: 3 / 4; }
@media (max-width: 620px) {
  .figure__grid[data-n="3"] { grid-template-columns: repeat(2, 1fr); }
  .figure__grid[data-n="3"] img:first-child { grid-column: span 2; aspect-ratio: 16 / 9; }
}
.figure--map img { background: #fff; border: 1px solid var(--rule); cursor: zoom-in; }
.figure--map figcaption { border-left: 2px solid var(--river); padding-left: .9rem; }
.figure--map .legend {
  display: flex; flex-wrap: wrap; gap: .4rem .9rem; margin-top: .6rem;
  font: 600 var(--step--2)/1 var(--sans); letter-spacing: .04em; text-transform: uppercase; color: var(--river-deep);
}
.figure--map .legend span { background: var(--river-pale); padding: .35rem .55rem; border-radius: var(--radius); }
.figure--heritage img { filter: sepia(.12); }

/* 7.5 pull-quote */
.pullquote {
  margin: clamp(2.2rem, 6vh, 3.4rem) 0; padding: 0; border: 0;
  border-top: 2px solid var(--gold); border-bottom: 2px solid var(--gold);
  padding-block: clamp(1.4rem, 3vh, 2rem);
}
.pullquote p {
  font-size: var(--step-2); line-height: 1.3; letter-spacing: -.02em;
  font-style: italic; margin: 0; text-wrap: balance; color: var(--forest);
}
.pullquote footer {
  font: 600 var(--step--1)/1.4 var(--sans); color: var(--ink-faint);
  margin-top: .9rem; font-style: normal;
}

/* 7.6 parallel text (Kelabit / English / Malay) */
.parallel {
  scroll-margin-top: var(--stick);
  margin: clamp(2rem, 6vh, 3.2rem) 0; border: 1px solid var(--rule);
  border-radius: var(--radius); background: var(--paper-raised); overflow: hidden;
}
.parallel__head {
  display: flex; flex-wrap: wrap; align-items: center; gap: .5rem;
  padding: .8rem 1rem; border-bottom: 1px solid var(--rule); background: var(--paper-sunk);
}
.parallel__title { font: 600 var(--step--1)/1.3 var(--sans); color: var(--ink); margin-right: auto; }
.parallel__tabs { display: flex; flex-wrap: wrap; gap: .3rem; min-width: 0; }
.parallel__tab {
  font: 600 var(--step--2)/1 var(--sans); letter-spacing: .08em; text-transform: uppercase;
  padding: .5rem .7rem; border: 1px solid transparent; border-radius: 999px;
  background: none; color: var(--ink-soft); cursor: pointer;
}
.parallel__tab[aria-selected="true"] { background: var(--river-deep); color: #fff; }
.parallel__panes { display: grid; }
.parallel__pane { padding: 1.2rem clamp(1rem, 2.5vw, 1.6rem); }
.parallel__pane + .parallel__pane { border-top: 1px solid var(--rule); }
.parallel__lang {
  font: 600 var(--step--2)/1 var(--sans); letter-spacing: .16em; text-transform: uppercase;
  color: var(--clay); display: block; margin-bottom: .7rem;
}
.parallel__pane[data-lang="kelabit"] p { font-style: italic; }
.parallel__pane p:last-child { margin-bottom: 0; }
/* Desktop: side-by-side columns. Mobile: tabbed (JS switches .is-tabbed). */
@media (min-width: 900px) {
  .parallel__panes { grid-auto-flow: column; grid-auto-columns: 1fr; }
  .parallel__pane + .parallel__pane { border-top: 0; border-left: 1px solid var(--rule); }
  .parallel__tabs { display: none; }
}
@media (max-width: 899px) {
  .parallel.is-tabbed .parallel__lang { display: none; }
  .parallel.is-tabbed .parallel__pane { display: none; }
  .parallel.is-tabbed .parallel__pane.is-active { display: block; border-top: 0; }
}

/* 7.6b reading-language control (chapter bar; visible only while passages are tabbed) */
.langpref { display: none; flex-wrap: wrap; gap: .25rem; margin-left: auto; min-width: 0; }
.langpref button {
  font: 600 var(--step--2)/1 var(--sans); letter-spacing: .06em; text-transform: uppercase;
  min-height: 34px; padding: .35rem .6rem; border: 1px solid var(--rule-strong); border-radius: 999px;
  background: var(--paper-raised); color: var(--ink-soft); cursor: pointer;
}
.langpref button[aria-pressed="true"] { background: var(--river-deep); border-color: var(--river-deep); color: #fff; }
@media (max-width: 899px) {
  .langpref.is-relevant { display: inline-flex; margin-left: 0; flex: 1 1 auto; }
  .langpref::before { content: "Passage"; align-self: center; font: 600 var(--step--2)/1 var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-faint); margin-right: .2rem; }
  .toc-toggle { margin-left: auto; } .chapterbar__now { flex: 1 1 100%; } .chapterbar__inner { flex-wrap: wrap; row-gap: .4rem; padding-block: .4rem; }
}
/* Phones: the passage switch and "Contents" share the second row, so the bar keeps one height when the switch
   appears beside a bilingual passage (it used to wrap to a third row and make the article jump 40 px). */
@media (max-width: 899px) {
  .langpref.is-relevant { flex: 0 1 auto; flex-wrap: nowrap; }
  .chapterbar .toc-toggle { min-height: 38px; }
}
/* Set by site.js only when the switch would otherwise wrap (small phone + Large text): a strip under the bar. */
.chapterbar .langpref.is-strip { position: absolute; top: 100%; left: 0; right: 0; justify-content: center; margin: 0;
  padding: .4rem var(--bleed); background: color-mix(in srgb, var(--paper) 94%, transparent); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--rule); }
@media (max-width: 439px) {
  .chapterbar__inner { column-gap: .5rem; }
  .langpref::before { display: none; }
  .langpref button { padding-inline: .4rem; letter-spacing: .03em; }
  .chapterbar .toc-toggle { padding-inline: .7rem; }
}
/* 7.6c previous / next chapter links at the end of each chapter */
.chapter-nav { display: flex; justify-content: space-between; gap: 1rem; margin: 2.4rem 0 .5rem; padding-top: 1rem; border-top: 1px solid var(--rule); font: 500 var(--step--1)/1.4 var(--sans); }
.chapter-nav a { color: var(--river); text-decoration: none; min-height: 44px; display: inline-flex; align-items: center; }
.chapter-nav a:hover { color: var(--clay); text-decoration: underline; }
.chapter-nav__next { margin-left: auto; text-align: right; }
/* 7.7 participant reflection cards */
.reflections { display: grid; gap: var(--gap); margin: clamp(1.5rem, 4vh, 2.5rem) 0; }
@media (min-width: 800px) { .reflections { grid-template-columns: 1fr 1fr; align-items: start; } }
.reflection {
  border: 1px solid var(--rule); border-top: 3px solid var(--clay);
  border-radius: var(--radius); background: var(--paper-raised); overflow: hidden;
  break-inside: avoid;
}
.reflection__media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; cursor: zoom-in; }
.reflection__body { padding: clamp(1rem, 2.5vw, 1.4rem); }
.reflection__name { font: 600 var(--step-0)/1.3 var(--serif); color: var(--forest); margin-bottom: .1rem; }
.reflection__role { font: 500 var(--step--2)/1.3 var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-faint); margin-bottom: .8rem; }
.reflection p { font-size: var(--step--1); font-family: var(--sans); line-height: 1.65; color: var(--ink-soft); }
.reflection p:last-child { margin-bottom: 0; }

/* 7.8 glossary panel */
.glossary { margin: clamp(2.5rem, 7vh, 4rem) 0 0; scroll-margin-top: var(--stick); }
.glossary__grid { display: grid; gap: .1rem; margin-top: 1.2rem; }
@media (min-width: 780px) { .glossary__grid { grid-template-columns: 1fr 1fr; gap: .1rem 2rem; } }
.glossary__row {
  display: grid; grid-template-columns: minmax(6.5rem, 9rem) 1fr; gap: .8rem;
  padding: .55rem 0; border-top: 1px solid var(--rule); align-items: baseline;
}
.glossary__term { font-style: italic; font-weight: 600; color: var(--clay); }
.glossary__term a { color: inherit; text-decoration: none; border-bottom: 1px dotted var(--clay); }
.glossary__gloss { font: 400 var(--step--1)/1.55 var(--sans); color: var(--ink-soft); }
.glossary__gloss em { color: var(--ink-faint); }

/* 7.9 credits / dedication footer of the article */
.credits {
  scroll-margin-top: var(--stick);
  margin-top: clamp(2.5rem, 7vh, 4rem); padding-top: 1.6rem; border-top: 2px solid var(--gold);
  font: 400 var(--step--1)/1.7 var(--sans); color: var(--ink-soft);
}
.credits h3 { font: 600 var(--step-0)/1.3 var(--serif); color: var(--ink); margin-bottom: .4rem; }
.credits > * + * { margin-top: 1.2rem; }

/* 8. KELABIT TERMS ======================================================= */
.kw {
  color: var(--clay); font-style: italic; font-weight: 600;
  text-decoration: none; border-bottom: 1px dotted var(--clay);
  cursor: help; position: relative;
}
a.kw:hover { color: var(--river); border-bottom-color: var(--river); }
.kw[data-nolink="true"] { cursor: default; border-bottom-style: dotted; opacity: .95; }
.kw-pop {
  position: absolute; z-index: 55; max-width: min(22rem, 88vw);
  background: var(--forest); color: #f2efe8; border-radius: var(--radius);
  padding: .8rem .95rem; font: 400 var(--step--1)/1.5 var(--sans);
  box-shadow: 0 18px 40px -18px rgba(0,0,0,.6); pointer-events: auto;
}
.kw-pop__term { font: 600 var(--step-0)/1.2 var(--serif); font-style: italic; color: #fff; display: block; margin-bottom: .25rem; }
.kw-pop__gloss { display: block; color: #ded8cb; }
.kw-pop__dict { display: block; margin-top: .6rem; padding-top: .6rem; border-top: 1px solid rgba(255,255,255,.18); color: #cfe1e4; }
.kw-pop__dict b { color: #fff; }
.kw-pop a { color: #9fd0d8; font-weight: 600; display: inline-flex; align-items: center; min-height: 44px; margin-top: .2rem; }

/* 9. FOOTER ============================================================== */
.sitefoot {
  background: var(--forest); color: #cdd4cf; margin-top: clamp(3rem, 8vh, 5rem);
  padding-block: clamp(2.5rem, 7vh, 4rem);
  font: 400 var(--step--1)/1.7 var(--sans);
}
.sitefoot a { color: #cfe1e4; }
.sitefoot__grid { display: grid; gap: var(--gap); grid-template-columns: 1fr; }
@media (min-width: 760px) { .sitefoot__grid { grid-template-columns: 1.4fr 1fr 1fr; } }
.sitefoot h4 { font: 600 var(--step--1)/1.3 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: #fff; margin-bottom: .7rem; }
.sitefoot ul { list-style: none; margin: 0; padding: 0; }
.sitefoot li { margin-bottom: .1rem; }
.sitefoot li > a { display: inline-flex; align-items: center; min-height: 32px; }
.sitefoot .u-quiet { color: #b9c2bc; }   /* quiet text on the dark footer: 5.8:1 */
.sitefoot__contact { margin-top: 1.4rem; padding-top: 1.2rem; border-top: 1px solid rgba(255,255,255,.14); }
.sitefoot a.sitefoot__btn { display: inline-flex; align-items: center; min-height: 48px; padding: .75rem 1.4rem;
  border-radius: 12px; background: var(--gold); color: #1F2A24; font: 700 1.05rem/1 var(--sans); text-decoration: none; }
.sitefoot a.sitefoot__btn:hover, .sitefoot a.sitefoot__btn:focus-visible { background: #F2C46A; }
.sitefoot a.sitefoot__btn:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.sitefoot__contact p { margin: .7rem 0 0; font-size: var(--step--1); color: #cbd6d0; }
.sitefoot__mark { font: 600 var(--step-1)/1.2 var(--serif); color: #fff; margin-bottom: .5rem; }
.sitefoot__fine { margin-top: 2rem; padding-top: 1.2rem; border-top: 1px solid rgba(255,255,255,.14); color: #b9c2bc; font-size: var(--step--2); }

/* 10. LIGHTBOX + UTILITIES + PRINT ====================================== */
.lightbox {
  position: fixed; inset: 0; z-index: 70; display: none;
  background: rgba(14, 22, 18, .94); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); padding: clamp(.5rem, 2vw, 2rem);
  place-items: center; grid-template-rows: 1fr auto;
}
.lightbox[data-open="true"] { display: grid; }
.lightbox img { max-width: 100%; max-height: 82vh; object-fit: contain; border-radius: var(--radius); }
.lightbox__cap {
  color: #ded8cb; font: 400 var(--step--1)/1.6 var(--sans); text-align: center;
  max-width: 70ch; margin: 1rem auto 0; padding-inline: 1rem;
}
.lightbox__count { color: #8c968f; font-size: var(--step--2); display: block; margin-top: .4rem; }
.lightbox button {
  position: absolute; background: rgba(255,255,255,.1); color: #fff; border: 0;
  width: 46px; height: 46px; border-radius: 50%; cursor: pointer; font-size: 1.3rem; line-height: 1;
}
.lightbox button:hover { background: rgba(255,255,255,.22); }
.lightbox__close { top: 1rem; right: 1rem; }
.lightbox__prev { left: 1rem; top: 50%; transform: translateY(-50%); }
.lightbox__next { right: 1rem; top: 50%; transform: translateY(-50%); }

.to-top {
  position: fixed; right: 1rem; bottom: 1rem; z-index: 35;
  width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--rule-strong);
  background: var(--paper-raised); color: var(--river); cursor: pointer; font-size: 1.1rem;
  box-shadow: var(--shadow); opacity: 0; pointer-events: none; transition: opacity .25s ease;
}
.to-top[data-show="true"] { opacity: 1; pointer-events: auto; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.u-center { text-align: center; }
.u-quiet { color: var(--ink-faint); }

/* Justified body prose — long measures only, with hyphenation so the word
   spacing stays even. Captions, meta and narrow screens stay ragged-right.
   The home page's "Who are the Kelabit" (.krow) went back to ragged-right on 2026-10-02: its long
   paragraphs showed wide gaps between words. */
@media (min-width: 700px) {
  .article > p, .prose-page > p {
    text-align: justify; text-justify: inter-word;
    hyphens: auto; -webkit-hyphens: auto;
  }
}

/* "The Kelabit" primer (home) ============================================ */
.primer { border-top: 1px solid var(--rule); padding-block: clamp(2.5rem, 7vh, 4.5rem); }
.primer__head { max-width: var(--measure); margin-bottom: clamp(1.6rem, 4vh, 2.6rem); }
.primer__head h2 { font-size: var(--step-3); letter-spacing: -.025em; text-wrap: balance; }
.krow { display: grid; gap: clamp(1.2rem, 3vw, 2.6rem); align-items: start; }
.krow + .krow { margin-top: clamp(2rem, 5vh, 3.4rem); padding-top: clamp(2rem, 5vh, 3.4rem); border-top: 1px solid var(--rule); }
@media (min-width: 900px) {
  .krow { grid-template-columns: 1fr 1.15fr; }
  .krow--flip .krow__media { order: 2; }
}
.krow h3 { font-size: var(--step-2); letter-spacing: -.02em; margin-bottom: .7rem; text-wrap: balance; }
.krow p + p { margin-top: .9rem; }
.krow__media { position: sticky; top: calc(var(--head-h) + 1.2rem); }
@media (max-width: 899px) { .krow__media { position: static; } }
.krow__img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); display: block; }
.ph {
  display: grid; place-items: center; aspect-ratio: 4 / 3;
  border: 1px dashed var(--rule-strong); border-radius: var(--radius);
  background: var(--paper-sunk); color: var(--ink-faint);
  font: 500 var(--step--2)/1.4 var(--sans); letter-spacing: .14em; text-transform: uppercase;
  text-align: center; padding: 1rem;
}

/* map placeholder grid (Territory) ======================================= */

/* elder recordings (Oral History) ======================================== */
.elder__name { display: block; font: 600 var(--step-0)/1.3 var(--serif); margin-top: .75rem; }
.elder__note { display: block; font: 500 var(--step--1)/1.4 var(--sans); color: var(--ink-faint); margin-top: .15rem; }

/* video cards (Publications) ============================================= */
.video-list { display: grid; gap: var(--gap); grid-template-columns: repeat(auto-fill, minmax(min(20rem, 100%), 1fr)); padding-bottom: 3rem; }
.video-card { display: block; text-decoration: none; color: inherit; }
.video-card__media {
  display: block; position: relative; aspect-ratio: 16 / 9; overflow: hidden;
  border-radius: var(--radius); background: #10140f; border: 1px solid var(--rule-strong);
}
.video-card__media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s ease, opacity .3s ease; }
.video-card:hover .video-card__media img { transform: scale(1.03); opacity: .85; }
.video-card__play {
  position: absolute; inset: 0; margin: auto; width: 68px; height: 48px;
  display: grid; place-items: center; border-radius: 12px;
  background: rgba(210,32,32,.92); box-shadow: 0 10px 30px -10px rgba(0,0,0,.7);
  transition: background .2s ease, transform .2s ease;
}
.video-card:hover .video-card__play { background: #e62117; transform: scale(1.06); }
.video-card__play svg { display: block; }
.video-card__poster {
  position: absolute; inset: 0; display: grid; align-content: center; justify-items: center;
  gap: .3rem; padding: 1.5rem; text-align: center;
  background: radial-gradient(120% 100% at 50% 0%, #24382c 0%, #10140f 70%);
}
.video-card__poster-kicker {
  font: 600 var(--step--2)/1 var(--sans); letter-spacing: .18em; text-transform: uppercase; color: #E8B14E;
}
.video-card__poster-title { font: 600 var(--step-2)/1.1 var(--serif); color: #fff; letter-spacing: -.02em; }
.video-card__poster-by { font: 400 var(--step--1)/1.4 var(--sans); font-style: italic; color: #9aa79f; }
.video-card:hover .video-card__poster-title { color: #e8c98a; }
.video-card__poster ~ .video-card__play { inset: auto 14px 14px auto; margin: 0; }
.video-card__title { display: block; font: 600 var(--step-1)/1.25 var(--serif); margin: .85rem 0 .25rem; }
.video-card:hover .video-card__title { color: var(--river-deep); }
.video-card__meta { display: block; font: 500 var(--step--1)/1.4 var(--sans); color: var(--ink-faint); }

@media print {
  .masthead, .chapterbar, .to-top, .toc-panel, .scrim, .progress, .lightbox { display: none !important; }
  body { background: #fff; }
  .article-hero { min-height: 0; color: var(--ink); }
  .article-hero::after, .article-hero__media { display: none; }
  .figure, .reflection, .parallel { break-inside: avoid; }
}


/* --- single-file build: the five pages live in one document -------------- */
.page[hidden] { display: none; }
.onefile-note {
  background: var(--forest); color: #cfe1e4; font: 500 var(--step--2)/1.5 var(--sans);
  padding: .55rem 1rem; text-align: center;
}
.onefile-note b { color: #fff; }
.onefile-note a { color: #9fd0d8; font-weight: 600; }

/* 11. MOTION (2026-09-15) ================================================
   Reveal-on-scroll, chapter entrances, hero parallax, pane cross-fades. Transforms + opacity only.
   The classes below are added by site.js, so with JavaScript off nothing is hidden; and site.js
   skips all of it when the reader prefers reduced motion. */
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
/* 2026-10-09: the rise is an animation of `translate`, not a transition of `transform`, so it no longer overrides a
   card's own hover lift or transition (the Home doors had lost theirs). */
.reveal:not(.is-in) { opacity: 0; }
.reveal.is-in { animation: reveal-in .5s cubic-bezier(0, 0, .38, .9) var(--d, 0ms) backwards; }   /* .5s: entrances 300-500 ms (NN/g, Carbon) */
@keyframes reveal-in { from { opacity: 0; translate: 0 14px; } }
.chapter.reveal .chapter__num { display: inline-block; opacity: 0; transform: translateX(-14px); transition: opacity .5s ease .15s, transform .5s cubic-bezier(.2, .7, .2, 1) .15s; }
.chapter.reveal.is-in .chapter__num { opacity: 1; transform: none; }
.chapter.reveal h2 { opacity: 0; transform: translateY(10px); transition: opacity .6s ease .3s, transform .6s cubic-bezier(.2, .7, .2, 1) .3s; }
.chapter.reveal.is-in h2 { opacity: 1; transform: none; }
.bead-divider.reveal-beads i { opacity: 0; transform: rotate(45deg) scale(.3); transition: opacity .4s ease, transform .45s cubic-bezier(.3, 1.4, .4, 1); }
.bead-divider.reveal-beads i:nth-child(1) { transition-delay: .05s } .bead-divider.reveal-beads i:nth-child(2) { transition-delay: .13s }
.bead-divider.reveal-beads i:nth-child(3) { transition-delay: .21s } .bead-divider.reveal-beads i:nth-child(4) { transition-delay: .29s } .bead-divider.reveal-beads i:nth-child(5) { transition-delay: .37s }
.bead-divider.reveal-beads.is-in i { opacity: 1; transform: rotate(45deg) scale(1); }
.article-hero__media, .home-hero__media { overflow: hidden; }
.article-hero__media img.parallax, .home-hero__media img.parallax { will-change: transform; transform: scale(1.08); }
@keyframes pane-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.parallel.is-tabbed .parallel__pane.is-active { animation: pane-in .35s ease both; }
@keyframes label-tick { from { opacity: .2; transform: translateY(4px); } to { opacity: 1; transform: none; } }
.chapterbar__now b.tick { display: inline-block; animation: label-tick .4s ease both; }
@media (hover: hover) and (pointer: fine) {
  .figure img { transition: transform .6s cubic-bezier(.2, .7, .2, 1), filter .4s ease; }
  .figure:hover img { transform: translateY(-2px); filter: brightness(1.03) saturate(1.03); }
  .reflection { transition: transform .35s cubic-bezier(.2, .7, .2, 1), box-shadow .35s ease; }
  .reflection:hover { transform: translateY(-3px); box-shadow: 0 12px 28px rgba(35, 69, 57, .12); }
}
.lightbox img { transition: transform .3s cubic-bezier(.2, .7, .2, 1); transform: scale(.96); }
.lightbox[data-open="true"] img { transform: scale(1); }

/* 12. SLIDESHOW (2026-09-15): the lightbox steps through every photograph on the page */
@keyframes lb-from-right { from { opacity: 0; transform: translateX(28px) scale(.98); } to { opacity: 1; transform: none; } }
@keyframes lb-from-left  { from { opacity: 0; transform: translateX(-28px) scale(.98); } to { opacity: 1; transform: none; } }
.lightbox.slide-left img  { animation: lb-from-right .32s cubic-bezier(.2, .7, .2, 1) both; }
.lightbox.slide-right img { animation: lb-from-left  .32s cubic-bezier(.2, .7, .2, 1) both; }
.lightbox { touch-action: none; user-select: none; }
.lightbox img { touch-action: none; transform-origin: center center; cursor: zoom-in; }
.lightbox.is-zoomed img { cursor: grab; transition: none; animation: none; max-height: none; max-width: none; width: auto; height: auto; }
.lightbox.is-zoomed .lightbox__cap, .lightbox.is-zoomed .lightbox__prev, .lightbox.is-zoomed .lightbox__next { opacity: 0; pointer-events: none; }
.lightbox__prev, .lightbox__next { min-width: 48px; min-height: 48px; font-size: 1.4rem; }
@media (max-width: 640px) { .lightbox__prev { left: .4rem; } .lightbox__next { right: .4rem; } }
/* 13. VIEWER FITS ANY SCREEN SHAPE (2026-09-30): the photo takes the space left after the caption, instead of a fixed
   share of the screen height, so turning the phone sideways just works. A long caption scrolls on its own. */
.lightbox { height: 100vh; height: 100dvh; grid-template-rows: minmax(0, 1fr) auto; }
.lightbox img { max-height: 100%; }
.lightbox__cap { max-height: 32vh; max-height: 32dvh; overflow-y: auto; overscroll-behavior: contain; touch-action: pan-y; }
@media (orientation: landscape) and (max-height: 520px) {
  .lightbox { padding: .4rem 4rem; }
  .lightbox__cap { margin-top: .35rem; font-size: var(--step--2); line-height: 1.45; max-height: 26vh; max-height: 26dvh; }
  .lightbox__count { display: inline; margin: 0 0 0 .6rem; }
  .lightbox__hint { display: none; }
  .lightbox__close { top: .4rem; right: .4rem; }
  .lightbox__prev { left: .4rem; } .lightbox__next { right: .4rem; }
}
.lightbox__hint { position: absolute; bottom: .6rem; left: 50%; transform: translateX(-50%); font: 500 var(--step--2)/1 var(--sans); color: #b9c2bc; letter-spacing: .04em; }
/* 14. THE BUTTONS STAY ON TOP OF THE PHOTO (2026-12-05): on a phone or tablet the photo fills the screen and was
   drawn over the close button and the arrows, so they could be neither seen nor tapped. They now sit above the
   photo, and where they can overlap it they get a darker disc with a thin ring, to show on a bright photo too. */
.lightbox button { z-index: 2; }
@media (max-width: 1100px), (pointer: coarse) {
  .lightbox button { background: rgba(14, 22, 18, .58); box-shadow: 0 0 0 1px rgba(255, 255, 255, .38); }
  .lightbox button:hover { background: rgba(14, 22, 18, .72); }
}

/* Embedded players (guide 13): a YouTube video or an Internet Archive recording, one block like a photo.
   The iframe fills the column; video keeps a 16:9 shape, audio gets a short fixed height. */
.embed { margin: 1.5rem 0; }
.embed iframe { display: block; width: 100%; aspect-ratio: 16 / 9; border: 0; border-radius: var(--radius); background: var(--paper-sunk); }
.embed--audio iframe { aspect-ratio: auto; height: 120px; }
.embed figcaption { margin-top: .5rem; font: 500 .85rem/1.45 var(--sans); color: var(--ink-soft); }

/* --- Contact page form (2026-09-28) --------------------------------------- */
.contact-form { display: grid; gap: .4rem; margin: 0 0 2rem; }
.contact-form label { font-family: var(--sans); font-size: .8rem; font-weight: 700; letter-spacing: .06em;
  text-transform: uppercase; color: var(--ink-soft); margin-top: .9rem; }
.contact-form input, .contact-form textarea { width: 100%; box-sizing: border-box; font: inherit; font-family: var(--sans);
  font-size: 1rem; color: var(--ink); background: var(--paper-raised); border: 1px solid var(--rule-strong);
  border-radius: 10px; padding: .75rem .9rem; }
.contact-form textarea { resize: vertical; min-height: 7rem; max-height: 60vh; line-height: 1.5; overflow-y: auto; }
.contact-form [aria-invalid="true"] { border-color: var(--coral); }
.contact-form input:focus, .contact-form textarea:focus { outline: 2px solid var(--gold); outline-offset: 1px; border-color: var(--river); }
.contact-form__trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.contact-form__error { margin: .8rem 0 0; color: var(--coral); font-family: var(--sans); font-size: .95rem; }
.contact-form__send { justify-self: start; margin-top: 1.2rem; font-family: var(--sans); font-size: 1rem; font-weight: 700;
  color: #fff; background: var(--forest); border: 0; border-radius: 12px; padding: .85rem 1.6rem; min-height: 48px; cursor: pointer; }
.contact-form__send:hover { background: var(--river); }
.contact-form__send[disabled] { opacity: .65; cursor: progress; }
.contact-form__done { margin: 0 0 2rem; padding: 1.2rem 1.4rem; background: var(--river-pale); border-radius: 12px; }
.contact-form[hidden] { display: none; }   /* display:grid above would otherwise keep a sent form on screen (2026-10-02) */
.contact-form__done h2 { margin-top: 0; }
/* Contact page on phones (2026-09-28): tighter label spacing, full-width Send (easier to tap). Desktop unchanged.
   (The smaller page top of 2026-09-28 went on 2026-10-10: Contact now has the emblem page top, section 33.) */
@media (max-width: 600px) {
  .contact-form { gap: .3rem; margin-bottom: 1.5rem; }
  .contact-form label { margin-top: .55rem; }
  .contact-form input, .contact-form textarea { padding: .65rem .8rem; }
  .contact-form textarea { min-height: 6rem; }
  .contact-form__send { justify-self: stretch; margin-top: .9rem; }
}

/* 14. BUG SWEEP 2026-09-30: easier tapping (WCAG 2.5.8) and readable small labels (WCAG 1.4.3) */
a.door__more { display: inline-flex; align-items: center; min-height: 44px; margin-top: .5rem; }
.sitefoot p > a:first-child { display: inline-flex; align-items: center; min-height: 32px; }
.wordmark__tag, .beta-pill { color: #8E431E; }   /* 5.0:1 on the header (was 3.9:1) */

/* 15. LEGAL PAGES (2026-09-30): Copyright & Terms laid out like the dictionary's — a contents list beside the text
   (sticky on wide screens, a folding card on phones), a notice box, green section headings with hairlines. */
.legal__wrap { display: grid; gap: clamp(1.25rem, 3vw, 3.5rem); padding-block: clamp(1.5rem, 5vh, 3.5rem) 0; max-width: 1080px; }
@media (min-width: 900px) { .legal__wrap { grid-template-columns: 250px minmax(0, 1fr); align-items: start; } }
.legal__toc-box { background: var(--paper-raised); border: 1px solid var(--rule); border-radius: 16px; padding: .35rem 1rem .6rem; }
@media (min-width: 900px) {
  .legal__toc { position: sticky; top: 88px; max-height: calc(100vh - 110px); overflow-y: auto; }
  .legal__toc-box { background: none; border: 0; padding: 0; }
  .legal__toc-box > summary { pointer-events: none; }
  .legal__toc-sign { display: none; }
}
.legal__toc-box > summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; min-height: 44px;
  font: 700 var(--step--2)/1.2 var(--sans); letter-spacing: .18em; text-transform: uppercase; color: var(--clay);
}
.legal__toc-box > summary::-webkit-details-marker { display: none; }
.legal__toc-sign::before { content: "+"; font: 600 1.1rem/1 var(--sans); color: var(--ink-soft); }
.legal__toc-box[open] .legal__toc-sign::before { content: "–"; }
.legal__toc ol { list-style: none; margin: .35rem 0 0; padding: 0; counter-reset: sec; }
.legal__toc li { counter-increment: sec; }
.legal__toc a {
  display: flex; gap: .45em; align-items: baseline; min-height: 36px; padding: .45rem .75rem; border-radius: 10px;
  font: 500 var(--step--1)/1.35 var(--sans); color: var(--ink-soft); text-decoration: none;
}
.legal__toc a::before { content: counter(sec) "."; color: var(--ink-faint); min-width: 1.4em; }
.legal__toc a:hover { background: var(--paper-sunk); color: var(--ink); }
.legal__toc a[aria-current="true"] { background: #EFE3CC; color: var(--forest); font-weight: 600; }
.legal__body { min-width: 0; max-width: 44rem; }
.legal__body > .eyebrow { margin: 0 0 .4rem; }
.legal__body h1 { font-size: var(--step-4); letter-spacing: -.03em; color: var(--forest); text-wrap: balance; margin: 0; }
.legal__lead { font-size: var(--step-1); line-height: 1.55; color: var(--ink-soft); margin-top: .9rem; }
.legal__notice {
  margin: 1.6rem 0 .5rem; padding: 1rem 1.25rem; background: var(--paper-raised);
  border: 1px solid var(--rule); border-left: 4px solid var(--clay); border-radius: 12px;
}
.legal__notice p { margin: 0; font-size: var(--step-0); }
.legal__body h2 {
  color: var(--forest); font-size: var(--step-2); scroll-margin-top: 96px;
  margin: 2.4rem 0 .7rem; padding-top: 1.6rem; border-top: 1px solid var(--rule);
}

/* 16. QA PROTOCOL 2026-09-30 ================================================
   QA-06: at 200% text size or 200% zoom a single long word ("Expedition", "PUBLICATIONS") was wider than the
   column and pushed the page sideways. Long words now wrap only when they cannot fit, and the big titles never
   grow wider than the screen allows. Nothing changes at normal sizes (min() only bites when text is enlarged).
   QA-10: quick repeated taps on controls never trigger double-tap zoom; pinch-zoom still works. */
body { overflow-wrap: break-word; }
h1, h2, h3, h4, .eyebrow, .door, .feature, .video-card, .partners li, .legal__toc a { overflow-wrap: anywhere; }
/* Only when the screen is narrow for the reader's text size (large text or heavy zoom; em here follows the
   browser's text-size setting): previous / next chapter stack instead of pushing the page sideways. */
@media (max-width: 19.9em) {
  .chapter-nav { flex-wrap: wrap; }
  .glossary__row { grid-template-columns: minmax(0, 1fr); gap: 0; }   /* term above its meaning */
}
/* Fixed minimum widths that only matter when space runs out: cards and grids may shrink to the screen,
   and the decorative lines either side of the bead divider give way first. */
.partners { grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)); }
.figure__grid[data-n="many"] { grid-template-columns: repeat(auto-fit, minmax(min(190px, 100%), 1fr)); }
.video-list > *, .partners > *, .glossary__row > * { min-width: 0; }
.bead-divider::before, .bead-divider::after { flex: 0 1 72px; min-width: 0; }
.ph { overflow-wrap: anywhere; min-width: 0; }   /* the grey "PLACEHOLDER" boxes on sections still waiting for content */
.article-hero h1, .home-hero h1 { font-size: min(var(--step-5), 13vw); }
a, button, input, select, textarea, summary, label, [role="button"], [tabindex="0"] { touch-action: manipulation; }

/* 17. EVENTS PAGE (2026-10-02): three bands — Coming up, Past, Classes & recordings — then an invitation.
   Each event is one copy-and-edit block (guide 03): .event-feature for the next big event,
   .event-card for everything else (with a date tile, or an icon: .event-icon--zoom / --video). The
   "days to go" line is filled in by site.js from data-countdown and stays hidden without JavaScript or once
   the day has passed. */
.events { padding-bottom: 4rem; }
.events__h { display: flex; align-items: center; gap: .8rem; margin: 3rem 0 1.1rem;
  font: 600 var(--step--1)/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--clay); }
.events__h::before { content: ""; width: 8px; height: 8px; background: var(--gold); transform: rotate(45deg); }
.events__h::after { content: ""; flex: 1; height: 1px; background: var(--rule-strong); }
.events h3 { margin: 0; }
/* Two events stacked under one heading (Coming up, Past) get the same gap as cards in a grid (2026-10-10). */
.events > article + article { margin-top: var(--gap); }
.events__grid { display: grid; gap: var(--gap); grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr)); }
.event-feature { display: grid; grid-template-columns: minmax(0, 300px) minmax(0, 1fr); overflow: hidden;
  background: var(--paper-raised); border: 1px solid var(--rule); border-radius: 6px; box-shadow: var(--shadow); }
.event-feature__date { position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: center; gap: .2rem;
  padding: 2rem 1.8rem 2.6rem; background: var(--forest); color: #F6EFE3; }
.event-feature__date::before { content: ""; position: absolute; left: 1.8rem; bottom: 1.3rem; width: 66px; height: 10px;   /* five beads */
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='66' height='10'%3E%3Cg transform='translate(5 5) rotate(45)'%3E%3Crect x='-3' y='-3' width='6' height='6' fill='%23E8B14E'/%3E%3C/g%3E%3Cg transform='translate(19 5) rotate(45)'%3E%3Crect x='-3' y='-3' width='6' height='6' fill='%23C7472F'/%3E%3C/g%3E%3Cg transform='translate(33 5) rotate(45)'%3E%3Crect x='-3' y='-3' width='6' height='6' fill='%23E8B14E'/%3E%3C/g%3E%3Cg transform='translate(47 5) rotate(45)'%3E%3Crect x='-3' y='-3' width='6' height='6' fill='%23C7472F'/%3E%3C/g%3E%3Cg transform='translate(61 5) rotate(45)'%3E%3Crect x='-3' y='-3' width='6' height='6' fill='%23E8B14E'/%3E%3C/g%3E%3C/svg%3E") no-repeat; }
.event-feature__date::after { content: ""; position: absolute; right: -40px; bottom: -40px; width: 150px; height: 150px;
  border: 1.5px solid rgba(232,177,78,.35); transform: rotate(45deg); }
.event-feature__date .d { font: 600 clamp(3rem, 2rem + 4vw, 4.6rem)/.9 var(--serif); color: var(--gold); letter-spacing: -.02em; }
.event-feature__date .m { font: 600 var(--step-1)/1.1 var(--serif); }
.event-feature__date .y { margin-top: .4rem; font: 500 var(--step--1)/1 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: #cfe1e4; }
.event-feature__body { display: flex; flex-direction: column; justify-content: center; padding: 2rem 2.2rem; }
.event-feature__body h3 { font: 600 var(--step-2)/1.15 var(--serif); margin-bottom: .6rem; }
.event-feature__body p { margin: 0; color: var(--ink-soft); }
/* An event's own logo (optional, 2026-11-01): one <img class="event-feature__logo"> after the body, in a third column on
   the right; under the words on phones. White in the logo takes on the card's colour. */
.event-feature:has(> .event-feature__logo) { grid-template-columns: minmax(0, 300px) minmax(0, 1fr) auto; }
.event-feature__logo { align-self: center; width: 190px; margin: 1.5rem 2rem 1.5rem 0; mix-blend-mode: multiply; }
.event-kicker { font: 600 var(--step--2)/1 var(--sans) !important; letter-spacing: .12em; text-transform: uppercase; color: var(--river) !important; margin-bottom: .7rem !important; }
.event-count { align-self: flex-start; display: inline-flex; align-items: baseline; gap: .45rem; margin-top: 1.3rem !important;
  padding: .45rem .9rem; border-radius: 999px; background: #F3E6C8; color: var(--forest) !important; font: 600 var(--step--1)/1 var(--sans); }
.event-count[hidden] { display: none; }
.event-count b { font: 600 1.35rem/1 var(--serif); }
.event-card { display: flex; gap: 1.1rem; align-items: flex-start; padding: 1.3rem 1.4rem;
  background: var(--paper-raised); border: 1px solid var(--rule); border-radius: 6px; }
.event-card > div { min-width: 0; }
.event-card h3 { font: 600 var(--step-1)/1.2 var(--serif); margin-bottom: .25rem; }
.event-card p { margin: 0; font: 400 var(--step--1)/1.5 var(--sans); color: var(--ink-faint); }
.event-tile { flex: 0 0 74px; text-align: center; overflow: hidden; background: #fff; border: 1.5px solid var(--clay); border-radius: 4px; }
.event-tile b { display: block; padding: .35rem 0; background: var(--clay); color: #fff; font: 700 .68rem/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; }
.event-tile span { display: block; padding-top: .25rem; font: 600 1.9rem/1.1 var(--serif); color: var(--ink); }
.event-tile small { display: block; padding: .1rem 0 .45rem; font: 500 .7rem/1 var(--sans); letter-spacing: .08em; color: var(--ink-faint); }
.event-press { margin-top: .8rem !important; padding: .5rem .8rem; border-left: 3px solid var(--gold); background: var(--paper-sunk);
  font: 400 var(--step--1)/1.45 var(--serif) !important; color: var(--ink) !important; }
.event-press a { color: var(--river); }
.event-icon { flex: 0 0 52px; height: 52px; border-radius: 50%; background: var(--river-pale) no-repeat center / 24px 24px; }
.event-icon--zoom { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232E5A49' stroke-width='1.8' stroke-linejoin='round'%3E%3Crect x='3' y='6' width='12' height='12' rx='2'/%3E%3Cpath d='M15 10.5 21 7v10l-6-3.5'/%3E%3C/svg%3E"); }
.event-icon--video { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none'%3E%3Ccircle cx='12' cy='12' r='9' stroke='%232E5A49' stroke-width='1.8'/%3E%3Cpath d='M10 8.5v7l6-3.5-6-3.5Z' fill='%232E5A49'/%3E%3C/svg%3E"); }
.events-invite { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-top: 3rem; padding: 1.4rem 1.6rem;
  border: 2px dashed var(--rule-strong); border-radius: 8px; text-decoration: none; color: var(--ink); font: 600 var(--step-1)/1.3 var(--serif); }
.events-invite span { flex: none; padding: .7rem 1.1rem; border-radius: 999px; background: var(--gold); color: var(--forest); font: 600 var(--step--1)/1 var(--sans); }
.events-invite:hover, .events-invite:focus-visible { border-color: var(--gold); background: #FBF3E2; }
@media (max-width: 640px) {
  .event-feature { grid-template-columns: minmax(0, 1fr); }
  .event-feature__date { flex-direction: row; flex-wrap: wrap; align-items: baseline; gap: .2rem .7rem; padding: 1.4rem 1.3rem 2.4rem; }
  .event-feature__date::before { left: 1.3rem; bottom: 1rem; }
  .event-feature__date::after { opacity: .4; }
  .event-feature__body { padding: 1.4rem 1.3rem; }
  .event-feature:has(> .event-feature__logo) { grid-template-columns: minmax(0, 1fr); }
  .event-feature__logo { justify-self: center; width: 150px; margin: 0 0 1.4rem; }
  .events-invite { flex-direction: column; align-items: flex-start; }
}

/* 18. GALLERY PAGE (2026-10-02): a beadwork mosaic as the cover, then albums. The mosaic has 20 fixed places
   (2 large feature photos, 13 photos, 5 beads) laid out by position below: seven across on computers, three
   across on phones. An operator only ever swaps a photo inside a place.
   Albums are cards that jump to their section further down; each section is a run of figures, so the photo
   viewer steps through one album at a time. */
.gal-cover { display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: 2.4rem; align-items: center; padding-bottom: 1rem; }
.gal-mosaic { --w: min(134px, calc((100vw - 380px) / 7)); display: grid; justify-content: center;
  grid-template-columns: repeat(14, calc(var(--w) / 2)); grid-auto-rows: calc(var(--w) / 2); }
.gal-mosaic > .figure { margin: 3px; clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%); }
.gal-mosaic > .gal-tile--big { margin: 4px; }
.gal-mosaic > :nth-child(1) { grid-area: 1 / 1 / span 2 / span 2; }
.gal-mosaic > :nth-child(2) { grid-area: 1 / 2 / span 4 / span 4; }
.gal-mosaic > :nth-child(3) { grid-area: 1 / 5 / span 2 / span 2; }
.gal-mosaic > :nth-child(4) { grid-area: 1 / 7 / span 2 / span 2; }
.gal-mosaic > :nth-child(5) { grid-area: 1 / 9 / span 2 / span 2; }
.gal-mosaic > :nth-child(6) { grid-area: 1 / 11 / span 2 / span 2; }
.gal-mosaic > :nth-child(7) { grid-area: 1 / 13 / span 2 / span 2; }
.gal-mosaic > :nth-child(8) { grid-area: 2 / 6 / span 2 / span 2; }
.gal-mosaic > :nth-child(9) { grid-area: 2 / 8 / span 2 / span 2; }
.gal-mosaic > :nth-child(10) { grid-area: 2 / 9 / span 4 / span 4; }
.gal-mosaic > :nth-child(11) { grid-area: 2 / 12 / span 2 / span 2; }
.gal-mosaic > :nth-child(12) { grid-area: 3 / 1 / span 2 / span 2; }
.gal-mosaic > :nth-child(13) { grid-area: 3 / 5 / span 2 / span 2; }
.gal-mosaic > :nth-child(14) { grid-area: 3 / 7 / span 2 / span 2; }
.gal-mosaic > :nth-child(15) { grid-area: 3 / 13 / span 2 / span 2; }
.gal-mosaic > :nth-child(16) { grid-area: 4 / 2 / span 2 / span 2; }
.gal-mosaic > :nth-child(17) { grid-area: 4 / 4 / span 2 / span 2; }
.gal-mosaic > :nth-child(18) { grid-area: 4 / 6 / span 2 / span 2; }
.gal-mosaic > :nth-child(19) { grid-area: 4 / 8 / span 2 / span 2; }
.gal-mosaic > :nth-child(20) { grid-area: 4 / 12 / span 2 / span 2; }
.gal-tile { position: relative; overflow: hidden; }
.gal-tile img { width: 100%; height: 100%; object-fit: cover; display: block; border-radius: 0; }
/* The tile's caption is not drawn on the photo (it would hide it); the photo viewer reads it, and on hover
   site.js copies it into .gal-now beside the mosaic. */
.gal-tile figcaption { display: none; }
/* Fixed height (three lines, longer captions end in "…") so the text beside the mosaic never moves. */
.gal-now { height: 4.35em; overflow: hidden; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3;
  margin: 0 0 1rem !important; padding-left: .9rem; border-left: 2px solid var(--gold);
  font: italic 400 var(--step-0)/1.45 var(--serif); color: var(--forest) !important; opacity: 0; transition: opacity .25s ease; }
.gal-now.is-on { opacity: 1; }
/* Hover: only the hovered tile changes. It grows smoothly and stays above its neighbours until it has shrunk
   back (z-index changes after the shrink). Nothing else moves. Only transform changes, on its own layer, so it
   stays smooth on modest hardware. any-hover: also touchscreen laptops with a trackpad or mouse. */
@media (any-hover: hover) {
  .gal-mosaic > .gal-tile { will-change: transform; transition: transform .45s cubic-bezier(.2, .7, .2, 1), z-index 0s linear .45s; }
  .gal-mosaic > .gal-tile:hover { transform: scale(1.1); z-index: 2; transition: transform .45s cubic-bezier(.2, .7, .2, 1), z-index 0s; }
  .gal-mosaic > .gal-tile--big:hover { transform: scale(1.05); }
}
.gal-bead { position: relative; overflow: hidden; margin: 22% !important; }
.gal-bead--gold { background: var(--gold); }
.gal-bead--coral { background: var(--coral); }
.gal-bead--green { background: var(--forest); }
.gal-bead--ring { clip-path: none !important; transform: rotate(45deg) scale(.72); box-shadow: inset 0 0 0 3px var(--forest); }
/* Metallic gold (Owner's choice, 2026-10-02): a burnished gradient with a soft sheen that passes across every
   few seconds. The sheen moves with transform only, so it costs almost nothing; it stops for reduced motion. */
.gal-bead--metal, .gal-bead--pat, .gal-beads i:nth-child(odd) {
  background: linear-gradient(135deg, #8A6420 0%, #E9C46A 20%, #FFF0B8 34%, #C9952F 50%, #F3D27A 68%, #9C7426 86%, #E2B755 100%); }
.gal-bead--metal::after, .gal-bead--pat::after { content: ""; position: absolute; inset: 0; z-index: 2;
  background: linear-gradient(115deg, transparent 38%, rgba(255,255,255,.6) 50%, transparent 62%);
  transform: translateX(-130%); animation: bead-sheen 7s ease-in-out 3; }
.gal-mosaic > .gal-bead--metal ~ .gal-bead--metal::after { animation-delay: 2.4s; }
.gal-bead--pat::after { animation-delay: 4.6s; }
@keyframes bead-sheen { 0%, 72% { transform: translateX(-130%); } 100% { transform: translateX(130%); } }
/* The "beadwork" bead: metallic gold, with a forest-green diamond and a coral centre. */
.gal-bead--pat::before { content: ""; position: absolute; inset: 24%; z-index: 1;
  background: var(--forest) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 10'%3E%3Cpath d='M5 0 10 5 5 10 0 5Z' fill='%23C7472F'/%3E%3C/svg%3E") center / 42% no-repeat;
  clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%); }
@media (prefers-reduced-motion: reduce) { .gal-bead--metal::after, .gal-bead--pat::after { animation: none; display: none; } }
.gal-cover__text h2 { font: 600 var(--step-2)/1.15 var(--serif); margin: 0 0 .6rem; }
.gal-cover__text p { margin: 0 0 1rem; color: var(--ink-soft); }
.gal-cover__text .gal-credit { font: 500 var(--step--1)/1.5 var(--sans); color: var(--ink-faint); }
.gal-beads { display: flex; gap: 7px; margin-bottom: 1.2rem !important; }
.gal-beads i { width: 9px; height: 9px; transform: rotate(45deg); display: block; }
.gal-beads i:nth-child(odd) { background: var(--gold); }
.gal-beads i:nth-child(even) { background: var(--coral); }
.gal-h { display: flex; align-items: center; gap: .8rem; margin: 3rem 0 1.4rem; font: 600 var(--step--1)/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--clay); }
.gal-h::before { content: ""; width: 8px; height: 8px; background: var(--gold); transform: rotate(45deg); }
.gal-h::after { content: ""; flex: 1; height: 1px; background: var(--rule-strong); }
.gal-albums__grid { display: grid; gap: 2.2rem 1.6rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); }
.gal-album { display: block; text-decoration: none; color: var(--ink); }
.gal-album__stack { position: relative; display: block; margin: 10px 10px 1rem 0; }
.gal-album__stack::before, .gal-album__stack::after { content: ""; position: absolute; inset: 0; border-radius: 5px; background: var(--paper-raised); border: 1px solid var(--rule-strong); }
.gal-album__stack::before { transform: translate(10px, -10px) rotate(2.5deg); }
.gal-album__stack::after { transform: translate(5px, -5px) rotate(1.2deg); }
.gal-album__cover { position: relative; z-index: 1; display: grid; grid-template-columns: 2fr 1fr; grid-template-rows: 1fr 1fr; gap: 3px;
  aspect-ratio: 4 / 3; overflow: hidden; border-radius: 5px; background: #fff; box-shadow: var(--shadow); transition: transform .2s ease; }
.gal-album__cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gal-album__cover img:first-child { grid-row: span 2; }
.gal-album--old img { filter: sepia(.2); }
.gal-album:hover .gal-album__cover, .gal-album:focus-visible .gal-album__cover { transform: translateY(-3px); }
.gal-album__empty { position: relative; z-index: 1; display: grid; place-items: center; aspect-ratio: 4 / 3; border-radius: 5px;
  border: 2px dashed var(--rule-strong); background: var(--paper-sunk); font: 600 var(--step--2)/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-faint); }
.gal-album__title { display: block; font: 600 var(--step-1)/1.2 var(--serif); margin-bottom: .2rem; }
a.gal-album .gal-album__title { text-decoration: underline; text-decoration-color: var(--rule-strong); text-underline-offset: .2em; }
.gal-album__note { display: block; font: 400 var(--step--1)/1.4 var(--sans); color: var(--ink-faint); }
.gal-set { margin-top: 3.4rem; scroll-margin-top: var(--stick); }
.gal-set + .gal-set { margin-top: 2.6rem; }
.gal-albums { scroll-margin-top: var(--stick); }
.gal-set__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: .4rem 1rem;
  padding-top: 1.4rem; border-top: 1px solid var(--rule-strong); margin-bottom: 1rem; }
.gal-set__head h2 { font: 600 var(--step-2)/1.15 var(--serif); margin: 0; }
.gal-set__head p { margin: 0; font: 500 var(--step--1)/1.4 var(--sans); color: var(--ink-faint); }
.gal-grid { display: grid; gap: .6rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr)); padding-bottom: 1rem; }
.gal-grid:last-child { padding-bottom: 4rem; }
.gal-photo { position: relative; margin: 0; aspect-ratio: 1; overflow: hidden; border-radius: 3px; }
.gal-photo img { width: 100%; height: 100%; object-fit: cover; display: block; border-radius: 0; }
/* Captions off (default): each caption sits over the bottom of its photo, out of sight; on a screen with a
   mouse it slides up on hover. Phones have no hover — tapping opens the viewer, which shows the caption. */
.gal-photo figcaption { position: absolute; left: 0; right: 0; bottom: 0; margin: 0; padding: 2.2rem .7rem .6rem;
  font: 500 var(--step--2)/1.35 var(--sans); color: #fff; background: linear-gradient(transparent, rgba(20,34,28,.88));
  opacity: 0; transform: translateY(8px); transition: opacity .2s ease, transform .2s ease; pointer-events: none; }
@media (any-hover: hover) { .gal-photo:hover figcaption { opacity: 1; transform: none; } }
/* Captions on: the album becomes a photo wall — each photo keeps its own shape, caption underneath. */
.gal-set[data-captions="on"] .gal-grid { display: block; columns: 4 200px; column-gap: .9rem; }
.gal-set[data-captions="on"] .gal-photo { aspect-ratio: auto; overflow: visible; break-inside: avoid; margin: 0 0 1rem; }
.gal-set[data-captions="on"] .gal-photo img { height: auto; border-radius: 3px; }
.gal-set[data-captions="on"] .gal-photo figcaption { position: static; padding: .45rem 0 0; background: none; color: var(--ink-faint);
  font: 400 var(--step--1)/1.45 var(--sans); opacity: 1; transform: none; }
.gal-capbtn { order: 2; margin-left: auto; display: inline-flex; align-items: center; gap: .5rem; min-height: 40px; padding: .5rem .95rem;
  border: 1px solid var(--rule-strong); border-radius: 999px; background: var(--paper-raised); color: var(--ink-soft); cursor: pointer;
  font: 600 var(--step--1)/1 var(--sans); }
.gal-capbtn::before { content: ""; width: 28px; height: 16px; border-radius: 999px; background: var(--rule-strong);
  box-shadow: inset 0 0 0 2px var(--rule-strong), inset -12px 0 0 2px #fff; transition: box-shadow .2s ease, background .2s ease; }
.gal-capbtn[aria-pressed="true"] { color: var(--forest); border-color: var(--forest); }
.gal-capbtn[aria-pressed="true"]::before { background: var(--forest); box-shadow: inset 0 0 0 2px var(--forest), inset 12px 0 0 2px #fff; }
.gal-capbtn:hover { border-color: var(--forest); }
.gal-capbtn[hidden] { display: none; }
.gal-set__head p { order: 3; flex-basis: 100%; }
@media (max-width: 1180px) {
  .gal-cover { grid-template-columns: minmax(0, 1fr); }
  .gal-cover__text { order: -1; }
  .gal-mosaic { --w: min(134px, calc((100vw - 5rem) / 7)); }
}
@media (max-width: 600px) {
  .gal-mosaic { --w: calc((100vw - 2.6rem) / 3); grid-template-columns: repeat(6, calc(var(--w) / 2)); }
  .gal-mosaic > :nth-child(1) { grid-area: 1 / 3 / span 2 / span 2; }
  .gal-mosaic > :nth-child(2) { grid-area: 2 / 1 / span 4 / span 4; }
  .gal-mosaic > :nth-child(3) { grid-area: 3 / 5 / span 2 / span 2; }
  .gal-mosaic > :nth-child(4) { grid-area: 2 / 4 / span 2 / span 2; }
  .gal-mosaic > :nth-child(5) { grid-area: 4 / 4 / span 2 / span 2; }
  .gal-mosaic > :nth-child(6) { grid-area: 5 / 1 / span 2 / span 2; }
  .gal-mosaic > :nth-child(7) { grid-area: 5 / 3 / span 2 / span 2; }
  .gal-mosaic > :nth-child(8) { grid-area: 5 / 5 / span 2 / span 2; }
  .gal-mosaic > :nth-child(9) { grid-area: 6 / 2 / span 2 / span 2; }
  .gal-mosaic > :nth-child(10) { grid-area: 6 / 3 / span 4 / span 4; }
  .gal-mosaic > :nth-child(11) { grid-area: 7 / 1 / span 2 / span 2; }
  .gal-mosaic > :nth-child(12) { grid-area: 9 / 1 / span 2 / span 2; }
  .gal-mosaic > :nth-child(13) { grid-area: 8 / 2 / span 2 / span 2; }
  .gal-mosaic > :nth-child(14) { grid-area: 9 / 3 / span 2 / span 2; }
  .gal-mosaic > :nth-child(15) { grid-area: 9 / 5 / span 2 / span 2; }
  .gal-mosaic > :nth-child(16) { grid-area: 10 / 2 / span 2 / span 2; }
  .gal-mosaic > :nth-child(17) { grid-area: 10 / 4 / span 2 / span 2; }
  .gal-mosaic > :nth-child(18) { grid-area: 11 / 3 / span 2 / span 2; }
  .gal-mosaic > :nth-child(19) { grid-area: 11 / 1 / span 2 / span 2; }
  .gal-mosaic > :nth-child(20) { grid-area: 11 / 5 / span 2 / span 2; }
  .gal-now { display: none; }
  .gal-albums__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.6rem 1rem; }
  .gal-album__title { font-size: var(--step-0); }
  .gal-album__empty { font-size: .6rem; letter-spacing: .1em; text-align: center; }
  .gal-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .35rem; }
  .gal-set[data-captions="on"] .gal-grid { columns: 2; column-gap: .7rem; }
  .gal-set__head h2 { flex-basis: 100%; }
  .gal-capbtn { margin-left: 0; order: 3; }
  .gal-set__head p { order: 2; }
}
/* Reduce motion: the site-wide rule stops animation. The cover tile keeps a short, gentle size change (no
   travel across the screen), so hovering never snaps. */
@media (prefers-reduced-motion: reduce) and (any-hover: hover) {
  .gal-mosaic > .gal-tile, .gal-mosaic > .gal-tile:hover { transition-duration: .25s, 0s !important; }
}
@media (prefers-reduced-motion: reduce) { .gal-photo figcaption { transition: none; } }

/* 19. PUBLICATIONS PAGE (2026-10-02): the Dictionary featured, then "Also on the shelf", then an invitation.
   Book covers are drawn here (no image files) and their lettering scales with the cover (cqi units), so the
   same cover works large or small. Kinds: .book--dict (the Dictionary's maroon and gold), .book--green,
   .book--film, and .book--image for a real cover photo (an <img> inside). Guide 03. */
.book { position: relative; display: block; aspect-ratio: 2 / 3; overflow: hidden; border-radius: 2px 6px 6px 2px; color: #F6EFE3; container-type: inline-size;
  box-shadow: inset 7px 0 0 rgba(0,0,0,.22), inset 9px 0 0 rgba(255,255,255,.07), 0 1px 1px rgba(0,0,0,.15), 0 22px 30px -18px rgba(30,20,10,.55); }
.book::after { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(100deg, rgba(255,255,255,.10) 0%, rgba(255,255,255,0) 18%, rgba(0,0,0,0) 80%, rgba(0,0,0,.12) 100%); }
.book__in { position: absolute; inset: 0; display: flex; flex-direction: column; padding: 14% 11% 12% 15%; }
.book__kicker { font: 700 .55rem/1.25 var(--sans); font-size: 3.6cqi; letter-spacing: .2em; text-transform: uppercase; color: var(--gold); }
.book__title { font: 600 1.4rem/1.06 var(--serif); font-size: 11.5cqi; margin-top: 5cqi; }
.book__sub { margin-top: auto; font: 500 .7rem/1.3 var(--sans); font-size: 4.6cqi; color: #CFE1E4; }
.book--dict { background: radial-gradient(120% 80% at 30% 20%, #8E3A2B, #6B2519); }
.book--dict .book__mark { width: 10cqi; height: 10cqi; margin: 0 0 12% 1cqi; background: var(--gold); transform: rotate(45deg); box-shadow: inset 0 0 0 2cqi #B8862F; }
.book--dict .book__kicker { color: #E9C77F; }
.book--dict .book__title i { display: block; color: var(--gold); font-weight: 500; }
.book--dict .book__sub { font: italic 400 .8rem/1.3 var(--serif); font-size: 5.2cqi; color: #EAD9C6; }
.book--green { background: radial-gradient(120% 80% at 30% 20%, #2E5A49, #1F3D32); }
.book__beads { display: block; height: 4cqi; margin: 12% 0; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='10'%3E%3Cg fill='%23E8B14E'%3E%3Crect x='2' y='2' width='6' height='6' transform='rotate(45 5 5)'/%3E%3Crect x='26' y='2' width='6' height='6' transform='rotate(45 29 5)'/%3E%3Crect x='50' y='2' width='6' height='6' transform='rotate(45 53 5)'/%3E%3C/g%3E%3Cg fill='%23C7472F'%3E%3Crect x='14' y='2' width='6' height='6' transform='rotate(45 17 5)'/%3E%3Crect x='38' y='2' width='6' height='6' transform='rotate(45 41 5)'/%3E%3C/g%3E%3C/svg%3E") no-repeat left center / contain; }
.book--film { background: #141B17; }
.book--film .book__in { justify-content: center; text-align: center; padding: 12%; }
.book--film .book__title { font-style: italic; font-size: 13cqi; margin: 5cqi 0; }
.book--film .book__sub { margin-top: 0; color: #B9C2BC; }
.book__play { width: 18cqi; height: 18cqi; margin: 7cqi auto 0; border-radius: 50%; border: 1.5px solid var(--gold); background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9 6.5v11l9-5.5z' fill='%23E8B14E'/%3E%3C/svg%3E") no-repeat center / 40%; }
.book--image { background: #222; }
.book--image img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pubs { padding-bottom: 4rem; }
.pub-feature { display: grid; grid-template-columns: minmax(0, 300px) minmax(0, 1fr); gap: clamp(1.6rem, 4vw, 4rem); align-items: center;
  padding: clamp(1.6rem, 4vw, 3.2rem); border-radius: 10px; background: radial-gradient(120% 120% at 0% 0%, #FBF3E2, #F1E6D0); border: 1px solid var(--rule); }
.pub-feature__cover { display: block; }
.pub-feature__cover .book { transform: perspective(900px) rotateY(14deg) rotateZ(-1deg); transition: transform .5s cubic-bezier(.2, .7, .2, 1);
  box-shadow: inset 7px 0 0 rgba(0,0,0,.22), -18px 30px 40px -24px rgba(60,30,20,.55); }
@media (any-hover: hover) { .pub-feature:hover .pub-feature__cover .book { transform: perspective(900px) rotateY(4deg); } }
.pub-feature__kicker { margin: 0 0 .8rem; font: 700 var(--step--2)/1 var(--sans); letter-spacing: .18em; text-transform: uppercase; color: var(--clay); }
.pub-feature h2 { margin: 0 0 .6rem; font: 600 var(--step-3)/1.05 var(--serif); color: var(--forest); }
.pub-feature h2 i { color: var(--clay); font-weight: 500; }
.pub-feature p { margin: 0 0 1rem; max-width: 36rem; color: var(--ink-soft); }
.pub-feature__stats { display: flex; flex-wrap: wrap; gap: .6rem 2rem; margin: 1.2rem 0 1.4rem; }
.pub-feature__stats div { font: 500 var(--step--1)/1.3 var(--sans); color: var(--ink-faint); }
.pub-feature__stats b { display: block; font: 600 var(--step-2)/1 var(--serif); color: var(--ink); }
.pub-feature__chips { display: flex; flex-wrap: wrap; gap: .45rem; margin-bottom: 1.6rem !important; }
.pub-feature__chips a { display: inline-flex; align-items: center; min-height: 36px; padding: .4rem .8rem; border-radius: 999px; text-decoration: none;
  background: var(--paper-raised); border: 1px solid var(--rule-strong); color: var(--ink-soft); font: 600 var(--step--2)/1 var(--sans); }
.pub-feature__chips a:hover { border-color: var(--river); color: var(--river); }
.pub-feature__btn { display: inline-flex; align-items: center; min-height: 48px; padding: .85rem 1.4rem; border-radius: 999px; text-decoration: none;
  background: #7A2E22; color: #fff; font: 600 var(--step--1)/1 var(--sans); }
.pub-feature__btn:hover, .pub-feature__btn:focus-visible { background: #8E3A2B; }
.pubs__h { display: flex; align-items: center; gap: .8rem; margin: 3rem 0 1.4rem; font: 600 var(--step--1)/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--clay); }
.pubs__h::before { content: ""; width: 8px; height: 8px; background: var(--gold); transform: rotate(45deg); }
.pubs__h::after { content: ""; flex: 1; height: 1px; background: var(--rule-strong); }
.pubs__shelf { display: grid; gap: 1.4rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.pub-card { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 1.1rem; align-items: center; padding: 1.1rem; border-radius: 8px; text-decoration: none; color: var(--ink);
  background: var(--paper-raised); border: 1px solid var(--rule); transition: border-color .2s ease; }
.pub-card:hover, .pub-card:focus-visible { border-color: var(--rule-strong); }
.pub-card__text > span { display: block; }
.pub-card__type { margin-bottom: .4rem; font: 700 .62rem/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--clay); }
.pub-card__title { font: 600 var(--step-1)/1.2 var(--serif); }
.pub-card__meta { margin-top: .2rem; font: 400 var(--step--1)/1.45 var(--sans); color: var(--ink-faint); }
.pub-card__go { margin-top: .5rem; font: 600 var(--step--1)/1 var(--sans); color: var(--river); }
.pubs__invite { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-top: 3rem; padding: 1.4rem 1.6rem;
  border: 2px dashed var(--rule-strong); border-radius: 8px; text-decoration: none; color: var(--ink); font: 600 var(--step-1)/1.3 var(--serif); }
.pubs__invite span { flex: none; padding: .7rem 1.1rem; border-radius: 999px; background: var(--gold); color: var(--forest); font: 600 var(--step--1)/1 var(--sans); }
.pubs__invite:hover, .pubs__invite:focus-visible { border-color: var(--gold); background: #FBF3E2; }
/* The printed dictionary (2026-10-02, made prominent at the Owner's request): a large "Also available in print"
   ribbon on the Dictionary feature that jumps to a forest-green band. The band asks visitors to support the
   language, and "Order a copy" opens the order page. */
.pub-feature { position: relative; }
.pub-feature__ribbon { position: absolute; top: 1.6rem; right: -8px; z-index: 2; display: inline-flex; align-items: center; min-height: 44px;
  padding: .7rem 1.3rem .7rem 1.1rem; background: var(--gold); color: var(--forest); text-decoration: none;
  font: 800 var(--step--1)/1 var(--sans); letter-spacing: .1em; text-transform: uppercase; box-shadow: 0 6px 14px -6px rgba(60,40,10,.45); }
.pub-feature__ribbon span { margin-left: .45em; font-weight: 600; letter-spacing: .04em; }   /* flex trims the leading space */
.pub-feature__ribbon::after { content: ""; position: absolute; right: 0; bottom: -8px; border-left: 8px solid #B8862F; border-bottom: 8px solid transparent; }
.pub-feature__ribbon:hover, .pub-feature__ribbon:focus-visible { background: #F2C46A; }
.pub-print { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: clamp(1.2rem, 3vw, 2.4rem); align-items: center; margin-top: 1.4rem;
  padding: clamp(1.4rem, 3vw, 2.2rem) clamp(1.4rem, 3.5vw, 2.6rem); border-radius: 12px; scroll-margin-top: var(--stick);
  background: radial-gradient(120% 140% at 0% 0%, #2E5A49, var(--forest)); color: #EAF0EC; box-shadow: 0 22px 40px -28px rgba(20,40,30,.7); }
.pub-print__stack { position: relative; display: block; width: 92px; height: 138px; }
.pub-print__stack .book { position: absolute; inset: 0; width: 92px; }
.pub-print__stack .book:first-child { transform: translate(12px, -8px) rotate(7deg); filter: brightness(.8); }
.pub-print__kicker { margin: 0 0 .5rem; font: 800 var(--step--1)/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--gold); }
.pub-print h3 { margin: 0 0 .6rem; font: 600 var(--step-2)/1.15 var(--serif); color: #fff; }
.pub-print__lead { margin: 0 0 .7rem; font: 400 var(--step-0)/1.55 var(--serif); color: #DCE6E0; }
.pub-print__fine { margin: 0; font: 500 var(--step--2)/1.5 var(--sans); color: #AFC0B7; }
.pub-print__price { max-width: 16rem; text-align: right; }
.pub-print__price b { display: block; font: 600 var(--step-4)/1 var(--serif); color: var(--gold); }
.pub-print__price small { display: block; margin: .45rem 0 1rem; font: 500 var(--step--2)/1.45 var(--sans); color: #C9D6CF; }
.pub-print__price small a { color: #fff; }
.pub-print__btn { display: inline-flex; align-items: center; min-height: 48px; padding: .85rem 1.4rem; border-radius: 999px; text-decoration: none;
  background: var(--gold); color: var(--forest); font: 800 var(--step--1)/1 var(--sans); }
.pub-print__btn:hover, .pub-print__btn:focus-visible { background: #F2C46A; }
@media (max-width: 860px) {
  .pub-print { grid-template-columns: auto minmax(0, 1fr); }
  .pub-print__price { grid-column: 1 / -1; max-width: none; text-align: left; display: flex; flex-wrap: wrap; align-items: center; gap: .4rem 1.2rem; }
  .pub-print__price small { flex: 1 1 14rem; margin: 0; }
  .pub-print__btn { flex: 0 0 auto; }
}
@media (max-width: 700px) {
  .pub-feature__ribbon { top: 1rem; font-size: .72rem; }
  .pub-print { grid-template-columns: minmax(0, 1fr); }
  .pub-print__stack { margin: .4rem 0 .2rem; }
}
@media (max-width: 700px) {
  .pub-feature { grid-template-columns: minmax(0, 1fr); }
  .pub-feature__cover { width: 100%; max-width: 220px; margin: 2.6rem auto 0; }   /* explicit width: a cover has no size of its own (cqi); top space clears the ribbon */
  .pubs__invite { flex-direction: column; align-items: flex-start; }
}

/* 20. ORDER PAGE (2026-10-02): the printed dictionary. The form reuses the contact form's look; the side card
   shows the book, price and the three steps. After "Place order" the form is replaced by a summary and the
   bank-transfer details (or, for orders outside Malaysia, a note that a shipping quote comes first). */
.order { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: clamp(1.6rem, 4vw, 3.6rem); align-items: start; padding-bottom: 4rem; }
.order-form { margin: 0; }
.order-form select { width: 100%; box-sizing: border-box; font: inherit; font-family: var(--sans); padding: .75rem .9rem; border: 1px solid var(--rule-strong);
  border-radius: 10px; background: var(--paper-raised); color: var(--ink); min-height: 48px; }
.order-form select:focus { outline: 2px solid var(--gold); outline-offset: 1px; border-color: var(--river); }
.order-form__two { display: grid; grid-template-columns: 1fr 1fr; gap: .4rem 1rem; }
.order-form__two > div { display: grid; gap: .4rem; }
.order-form__short { max-width: 12rem; }
.order-form__opt { font-weight: 500; letter-spacing: 0; text-transform: none; color: var(--ink-faint); }
.order-form__total { margin: 1.2rem 0 0; padding: .9rem 1.1rem; border-radius: 10px; background: #F3E6C8; font: 600 var(--step-0)/1.3 var(--sans); color: var(--forest); }
.order-form__total b { font: 600 var(--step-1)/1 var(--serif); }
.order-form__total span { font-weight: 500; font-size: var(--step--1); color: var(--ink-soft); }
.order-form__fine { margin: .8rem 0 0; font: 400 var(--step--1)/1.5 var(--sans); color: var(--ink-faint); }
.order-done { padding: 1.6rem 1.8rem; border-radius: 12px; background: var(--river-pale); }
.order-done:focus { outline: none; }
.order-done { scroll-margin-top: calc(var(--head-h) + 1rem); }
.order-done h2 { margin: 0 0 .5rem; }
.order-done h3 { margin: 1.4rem 0 .4rem; font: 600 var(--step-1)/1.2 var(--serif); }
.order-done__summary { margin: 1rem 0 .4rem; padding: 1rem 1.1rem; border-radius: 10px; background: var(--paper-raised); }
.order-done__ref { margin: 0 0 1rem; font: 600 var(--step--1)/1.3 var(--sans); color: var(--ink-soft); }
.order-done__ref b { display: inline-block; margin-left: .5rem; padding: .35rem .7rem; border-radius: 6px; background: var(--paper-raised);
  border: 1px dashed var(--forest); font: 700 var(--step-1)/1 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .04em; color: var(--forest); user-select: all; }
.order-done__send { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: .6rem; }
.order-wa, .order-mail { display: inline-flex; align-items: center; min-height: 44px; padding: .65rem 1.1rem; border-radius: 999px; text-decoration: none;
  font: 700 var(--step--1)/1 var(--sans); }
.order-wa { background: #1F7A4D; color: #fff; }
.order-wa:hover { background: #18663F; }
.order-mail { background: var(--paper-raised); border: 1px solid var(--rule-strong); color: var(--forest); }
.order-wa[hidden] { display: none; }
.order-qr { margin: 0 0 1rem; max-width: 220px; }
/* Placeholders for details the Owner has not supplied yet (bank, WhatsApp, DuitNow QR): clearly marked, never
   mistaken for real details. Remove them as each detail is filled in (guide 14). */
.order-todo { margin: 0 0 1rem; padding: .7rem .9rem; border: 2px dashed var(--coral); border-radius: 8px; background: #FFF3EE;
  font: 700 var(--step--1)/1.3 var(--sans); color: #9A2F1C; }
.order-todo--inline { display: inline-flex; align-items: center; min-height: 44px; margin: 0; padding: .5rem .9rem; border-radius: 999px; }
.order-todo[hidden] { display: none; }
.order-qr img { width: 100%; height: auto; border-radius: 8px; background: #fff; }
.order-qr figcaption { margin-top: .4rem; font: 400 var(--step--2)/1.4 var(--sans); color: var(--ink-faint); }
.order-bank { display: grid; grid-template-columns: auto 1fr; gap: .45rem 1.2rem; margin: .8rem 0 1rem; padding: 1rem 1.2rem; border-radius: 10px;
  background: var(--paper-raised); border: 1px solid var(--rule-strong); font-family: var(--sans); }
.order-bank dt { font-size: var(--step--1); color: var(--ink-faint); }
.order-bank dd { margin: 0; font-weight: 700; color: var(--ink); overflow-wrap: anywhere; }
.order-side { position: sticky; top: calc(var(--head-h) + 1.5rem); padding: 1.6rem; border-radius: 12px; background: radial-gradient(120% 120% at 0% 0%, #FBF3E2, #F1E6D0); border: 1px solid var(--rule); }
.order-side__cover { display: block; width: 120px; margin: 0 0 1.2rem; }
.order-side__cover .book { width: 120px; transform: rotate(-2deg); }
.order-side__kicker { margin: 0 0 .4rem; font: 700 var(--step--2)/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--clay); }
.order-side h2 { margin: 0 0 .5rem; font: 600 var(--step-2)/1.1 var(--serif); color: var(--forest); }
.order-side h2 i { color: var(--clay); font-weight: 500; }
.order-side p { margin: 0 0 .8rem; font: 400 var(--step--1)/1.5 var(--sans); color: var(--ink-soft); }
.order-side__price b { font: 600 var(--step-2)/1 var(--serif); color: var(--forest); margin-right: .2rem; }
.order-side__steps { margin: 1rem 0; padding-left: 1.2rem; font: 400 var(--step--1)/1.5 var(--sans); color: var(--ink-soft); }
.order-side__steps li { margin-bottom: .35rem; }
.order-side__free { margin: 0 !important; }
.order-side__support { padding: .7rem .9rem; border-left: 3px solid var(--gold); background: rgba(255,255,255,.5); color: var(--forest) !important; font-weight: 600 !important; }
@media (max-width: 860px) {
  .order { grid-template-columns: minmax(0, 1fr); }
  .order-side { position: static; order: -1; display: grid; grid-template-columns: 90px minmax(0, 1fr); gap: 0 1.1rem; padding: 1.2rem; }
  .order-side__cover { width: 90px; margin: 0; }
  .order-side__cover .book { width: 90px; }
  .order-side__cover { grid-row: span 2; }
  .order-side > p:not(.order-side__kicker), .order-side__steps { grid-column: 1 / -1; }
  .order-side > p:nth-of-type(2) { margin-top: 1rem; }
}
@media (max-width: 560px) { .order-form__two { grid-template-columns: minmax(0, 1fr); } }

/* 21. ABOUT PAGE (2026-10-02; top made lighter 2026-10-04): a half-screen river photograph with the title and the
   mission; two slim "doors" (the Dictionary, this site) overlapping it; the figures; Mutang Urud's words from the
   Dictionary's preface; a timeline of real milestones; who the site is for, as circles (Kelabit people at the
   centre); how we work; partners; credits; and a get-in-touch band. Photographs and type only; hover effects are
   transform-only and mouse-only. */
.about-hero { position: relative; display: flex; align-items: flex-end; min-height: min(56vh, 520px); overflow: hidden; color: #fff; background: #1d3a30; }
.about-hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 80%; }
.about-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(14,26,21,.15) 0%, rgba(14,26,21,.25) 45%, rgba(14,26,21,.9) 100%); }
.about-hero .shell { position: relative; z-index: 1; padding-block: 2rem clamp(3.8rem, 8vh, 4.6rem); }
.about-hero .eyebrow { color: var(--gold); }
.about-hero h1 { margin: .3rem 0 .8rem; font: 600 clamp(2.2rem, 1.4rem + 3vw, 3.8rem)/.95 var(--serif); letter-spacing: -.02em; color: #fff; }
.about-hero p { max-width: 40rem; margin: 0; font: 400 var(--step-1)/1.45 var(--serif); color: #E6ECE8; }
.about-hero em { color: var(--gold); }
.about-hero p.about-hero__lead { max-width: 44rem; font-size: clamp(1.05rem, .95rem + .5vw, 1.3rem); }   /* the mission, read first (2026-10-04) */
.about-doors { position: relative; z-index: 2; display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; margin-top: -2.4rem; }
.about-door { display: flex; flex-direction: column; gap: .35rem; padding: 1.1rem 1.5rem; border-radius: 14px; color: #fff; text-decoration: none;
  box-shadow: 0 30px 50px -30px rgba(10,20,15,.8); transition: transform .4s cubic-bezier(.2, .7, .2, 1); }
@media (any-hover: hover) { .about-door:hover { transform: translateY(-6px); } }
.about-door--dict { background: radial-gradient(120% 120% at 0% 0%, #8E3A2B, #5E2016); }
.about-door--site { background: radial-gradient(120% 120% at 0% 0%, #2E5A49, #18332A); }
.about-door__k { font: 800 var(--step--2)/1 var(--sans); letter-spacing: .18em; text-transform: uppercase; color: var(--gold); }
.about-door__q { font: 600 var(--step-1)/1.15 var(--serif); }
.about-door__go { margin-top: .3rem; font: 700 var(--step--1)/1 var(--sans); color: var(--gold); }
.about-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: 1.4rem; overflow: hidden; border-radius: 14px; border: 1px solid var(--rule); box-shadow: 0 24px 44px -32px rgba(20,30,25,.55); }
.about-stats div { padding: 1.5rem 1.4rem; background: #FFFDF8; border-right: 1px solid var(--rule); }
.about-stats div:last-child { border: 0; background: #F7E9D9; }
.about-stats b { display: block; margin-bottom: .5rem; font: 600 clamp(1.6rem, 1.1rem + 1.8vw, 2.6rem)/1 var(--serif); color: var(--forest); }
.about-stats div:last-child b { font-size: clamp(1.1rem, .9rem + .8vw, 1.5rem); line-height: 1.15; color: var(--clay); }
.about-stats span { display: block; font: 500 var(--step--2)/1.4 var(--sans); color: var(--ink-faint); }
.about-sec { padding-top: clamp(2.8rem, 6vw, 4.4rem); }
.about-h { display: flex; align-items: center; gap: .8rem; margin: 0 0 1.6rem; font: 700 var(--step--1)/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--clay); }
.about-h::before { content: ""; width: 9px; height: 9px; background: var(--gold); transform: rotate(45deg); }
.about-h::after { content: ""; flex: 1; height: 1px; background: var(--rule-strong); }
.about-quote { margin: 0; padding: clamp(2rem, 5vw, 3.4rem); border-radius: 16px; text-align: center; background: radial-gradient(120% 140% at 0% 0%, #FBF3E2, #F1E3C4); }
.about-quote p { max-width: 46rem; margin: 0 auto; font: italic 400 clamp(1.4rem, 1rem + 1.4vw, 2.2rem)/1.35 var(--serif); color: var(--forest); }
.about-quote cite { display: block; margin-top: 1rem; font: 700 var(--step--2)/1.3 var(--sans); font-style: normal; letter-spacing: .14em; text-transform: uppercase; color: var(--clay); }
.about-tl { position: relative; list-style: none; margin: 0; padding: 0; }
.about-tl::before { content: ""; position: absolute; left: 140px; top: .6rem; bottom: .6rem; width: 2px; background: linear-gradient(var(--gold), var(--clay)); }
.about-tl__ev { display: grid; grid-template-columns: 120px 40px minmax(0, 1fr); align-items: start; padding-bottom: 1.8rem; }
.about-tl__y { text-align: right; font: 600 var(--step-1)/1.2 var(--serif); color: var(--forest); }
.about-tl__dot { position: relative; z-index: 1; justify-self: center; width: 16px; height: 16px; margin-top: .35rem; transform: rotate(45deg); background: var(--paper); border: 2px solid var(--clay); }
.about-tl__ev--next .about-tl__dot { background: var(--gold); border-color: var(--gold); box-shadow: 0 0 0 6px #E8B14E40; }
.about-tl__ev p { max-width: 46rem; margin: 0; font: 400 var(--step-0)/1.55 var(--serif); color: var(--ink-soft); }
.about-who { display: grid; grid-template-columns: minmax(0, 420px) minmax(0, 1fr); gap: 3rem; align-items: center; }
.about-rings { position: relative; aspect-ratio: 1; }
.about-ring { position: absolute; border-radius: 50%; }
/* 2026-11-01 (Isaac, from a mockup: "Lets use this"). Three rings - a cream outer ring with a gold rim, a sand middle
   ring and a green centre - and all three labels in bold sans in one SVG laid over them: the two outer labels set
   along circles in the middle of their bands, the centre one straight. Sizes are in the drawing's units, so the
   words grow and shrink with the rings. */
.about-ring--3 { inset: 0; z-index: 0; background: #F6EFD9; border: 2px solid #BA850F; }
.about-ring--2 { inset: 18.7%; z-index: 1; background: #E2D1B0; }
.about-ring--1 { inset: 35%; z-index: 2; background: #235440; }
.about-rings__words { position: absolute; inset: 0; z-index: 3; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.about-rings__words text { font-family: var(--sans); font-weight: 700; fill: #1F1D1A; }
.about-rings__w3 { font-size: 5.4px; }
.about-rings__w2 { font-size: 6.1px; }
.about-rings__words .about-rings__w1 { font-size: 4.9px; fill: #fff; text-anchor: middle; }
.about-who__big { margin: 0 0 1rem !important; font: 600 var(--step-3)/1.08 var(--serif); color: var(--ink) !important; }
.about-who p { color: var(--ink-soft); }
.about-prs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.2rem; }
.about-pr { position: relative; overflow: hidden; padding: 1.8rem 1.8rem 1.6rem; border-radius: 14px; background: var(--paper-raised); border: 1px solid var(--rule);
  transition: transform .35s cubic-bezier(.2, .7, .2, 1), box-shadow .35s ease; }
@media (any-hover: hover) { .about-pr:hover { transform: translateY(-4px); box-shadow: 0 20px 40px -26px rgba(40,30,20,.5); } }
.about-pr__n { position: absolute; right: 1.2rem; top: .4rem; font: 600 4.6rem/1 var(--serif); color: #EFE4CC; }
.about-pr__icon { position: relative; display: grid; place-items: center; width: 52px; height: 52px; margin-bottom: 1rem; border-radius: 50%; background: var(--forest); color: var(--gold); }
.about-pr h3 { position: relative; margin: 0 0 .5rem; font: 600 var(--step-1)/1.2 var(--serif); }
.about-pr p { position: relative; margin: 0; font: 400 var(--step--1)/1.6 var(--sans); color: var(--ink-soft); }
.about-sub { margin: -.6rem 0 1.2rem; color: var(--ink-faint); font: 400 var(--step--1)/1.5 var(--sans); }
.about-pa { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; }
.about-pa li { display: flex; flex-direction: column; gap: .4rem; padding: 1.4rem; border-radius: 12px; border: 1px solid var(--rule); background: #FFFDF8; }
.about-pa__icon { display: grid; place-items: center; width: 48px; height: 48px; margin-bottom: .4rem; border-radius: 50%; border: 1.5px solid var(--gold); color: var(--clay); }
.about-pa b { font: 600 var(--step-0)/1.25 var(--serif); }
.about-pa small { font: 400 var(--step--2)/1.45 var(--sans); color: var(--ink-faint); }
.about-credits { display: grid; grid-template-columns: 1fr 1fr; gap: .2rem 1.6rem; max-width: 46rem; margin: 0 auto; }
.about-credits dt { text-align: right; font: 700 var(--step--2)/2 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-faint); }
.about-credits dd { margin: 0; font: 400 var(--step-0)/1.6 var(--serif); }
/* Footnote for the "Definitely endangered" figure: an asterisk in the figures band links down to the note under the credits. */
.about-fn { margin-left: .08em; color: inherit; text-decoration: none; font-size: .8em; vertical-align: super; line-height: 0; scroll-margin-top: 96px; }
.about-fn:hover, .about-fn:focus-visible { color: var(--forest); }
.about-note { max-width: 46rem; margin: 2.2rem auto 0; padding-top: 1.1rem; border-top: 1px solid var(--rule); font: 400 var(--step--1)/1.6 var(--sans); color: var(--ink-faint); scroll-margin-top: 96px; }
.about-note a { color: var(--forest); white-space: nowrap; }
.about-note__back { margin-left: .2rem; text-decoration: none; }
.about-note:target { color: var(--ink-soft); }
.about-cta { margin-top: clamp(3rem, 7vw, 4.6rem); padding: clamp(2.6rem, 6vw, 4.2rem) 0; text-align: center; background: radial-gradient(120% 160% at 50% 0%, #2E5A49, var(--forest)); color: #E3EBE6; }
.about-cta h2 { margin: 0 0 .4rem; font: 600 var(--step-3)/1.1 var(--serif); color: #fff; }
.about-cta p { margin: 0 0 1.6rem; color: #B9C9C0; }
.about-cta a { display: inline-flex; align-items: center; min-height: 48px; margin: .3rem; padding: .85rem 1.5rem; border-radius: 999px; text-decoration: none;
  background: var(--gold); color: var(--forest); font: 700 var(--step--1)/1 var(--sans); }
.about-cta a.about-cta__ghost { background: transparent; border: 1px solid rgba(255,255,255,.35); color: #fff; }
body:has(#main-about) .sitefoot { margin-top: 0; border-top: 1px solid rgba(255,255,255,.12); }   /* the band runs straight into the footer */
@media (max-width: 860px) {
  .about-doors, .about-prs, .about-who { grid-template-columns: minmax(0, 1fr); }
  .about-stats { grid-template-columns: 1fr 1fr; }
  .about-stats div:nth-child(2) { border-right: 0; }
  .about-stats div:nth-child(-n+2) { border-bottom: 1px solid var(--rule); }
  .about-rings { width: 100%; max-width: 340px; margin: 0 auto; }
  .about-pa { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .about-pa { grid-template-columns: minmax(0, 1fr); }
  .about-credits { grid-template-columns: minmax(0, 1fr); }
  .about-credits dt, .about-credits dd { text-align: center; }
  .about-credits dd { margin-bottom: .6rem; }
  .about-tl::before { left: 7px; }
  .about-tl__ev { grid-template-columns: 16px minmax(0, 1fr); gap: .3rem 1rem; }
  .about-tl__dot { grid-column: 1; grid-row: 1 / span 2; }
  .about-tl__y { grid-column: 2; text-align: left; }
  .about-tl__ev p { grid-column: 2; }
}

/* 22. HOME PAGE ADDITIONS (2026-10-02): a heading and pull line in "Who are the Kelabit", and "More to discover":
   three cards for the Gallery, Events and the printed dictionary. */
.krow__pull { margin: 1.4rem 0 0; padding: .2rem 0 0 1.1rem; border-left: 3px solid var(--gold);
  font: italic 500 var(--step-1)/1.35 var(--serif); color: var(--forest); text-wrap: balance; }
@media (max-width: 899px) { .krow__pull { display: none; } }

.discover { padding-block: clamp(1rem, 3vh, 2rem) clamp(2rem, 5vh, 3rem); }
.discover__head { margin-bottom: clamp(1.2rem, 3vh, 1.8rem); }
.discover__head h2 { font-size: var(--step-3); letter-spacing: -.025em; }
.discover__grid { display: grid; gap: var(--gap); grid-template-columns: repeat(3, minmax(0, 1fr)); }
.disc { display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--rule); border-radius: 10px;
  background: var(--paper-raised); color: inherit; text-decoration: none;
  transition: transform .3s cubic-bezier(.2,.7,.2,1), box-shadow .3s ease, border-color .3s ease; }
.disc:hover { transform: translateY(-3px); box-shadow: 0 22px 40px -28px rgba(20,30,25,.55); border-color: var(--rule-strong); color: inherit; }
.disc__media { position: relative; display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--paper-sunk); }
.disc__media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .6s cubic-bezier(.2,.7,.2,1); }
.disc:hover .disc__media img { transform: scale(1.04); }
.disc__media--date { display: flex; flex-direction: column; justify-content: center; padding: 0 1.6rem;
  background: radial-gradient(120% 140% at 0% 0%, #2E5A49, var(--forest)); color: #fff; }
.disc__media--date::after { content: ""; position: absolute; right: -36px; bottom: -36px; width: 130px; height: 130px;
  border: 14px solid rgba(232,177,78,.16); transform: rotate(45deg); }
.disc__media--date .d { font: 600 clamp(2.6rem, 1.8rem + 2.4vw, 3.6rem)/.95 var(--serif); color: var(--gold); letter-spacing: -.02em; }
.disc__media--date .m { margin-top: .3rem; font: 600 var(--step-1)/1.1 var(--serif); }
.disc__media--date .y { margin-top: .5rem; font: 500 var(--step--2)/1 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: #CFE1E4; }
.disc__media--book { display: grid; place-items: center; background: radial-gradient(110% 120% at 50% 0%, #FBF3E4, #EBDCC2); }
.disc__media--book .book { width: 92px; box-shadow: 0 16px 26px -14px rgba(60,20,10,.6); transform: rotate(-4deg); transition: transform .4s cubic-bezier(.2,.7,.2,1); }
.disc:hover .disc__media--book .book { transform: rotate(0deg) translateY(-3px); }
.disc__body { display: flex; flex: 1; flex-direction: column; padding: 1.2rem 1.3rem 1.3rem; }
.disc__kicker { font: 700 var(--step--2)/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--clay); }
.disc__title { margin-top: .55rem; font: 600 var(--step-1)/1.2 var(--serif); color: var(--ink); text-wrap: balance; }
.disc__text { margin-top: .45rem; font: 400 var(--step--1)/1.55 var(--sans); color: var(--ink-soft); }
.disc__go { margin-top: auto; padding-top: .9rem; font: 700 var(--step--1)/1 var(--sans); color: var(--river); }
@media (max-width: 899px) { .discover__grid { grid-template-columns: minmax(0, 1fr); }
  .disc { flex-direction: row; } .disc__media { flex: 0 0 34%; aspect-ratio: auto; min-height: 140px; }
  .disc__media--date { padding: 0 .9rem; } .disc__media--date .d { font-size: 2rem; } .disc__media--date .m { font-size: var(--step-0); }
  .disc__media--date .y { letter-spacing: .1em; } .disc__media--book .book { width: 66px; }
  .disc__body { padding: 1rem 1rem 1.1rem; } .disc__text { display: none; } }
@media (prefers-reduced-motion: reduce) { .disc, .disc:hover, .disc:hover .disc__media img, .disc:hover .disc__media--book .book { transform: none; } }

/* Small fixes (2026-10-02): Oral History says "Recording to come" instead of showing players that do not play;
   Stories' Myth & Legends is a "coming" card like Expedition 2027; Contact points book buyers to the order form;
   on phones the journal's date and credit lines stack without stray dots. */
.elder__soon::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--gold); }
.journal-list--more { padding-top: 0; }
.journal-list--more .section-head { margin-bottom: 0; }
.journal-list--more .journal-card__media img { aspect-ratio: 3 / 2; }
/* 2026-10-21 (Owner: "change the myths and legend from actual photo to something minimal"). A card whose story is not
   written yet shows a quiet panel instead of a photo: plain paper with the site's beadwork diamond in the middle and a
   faint hint of the Stories weave in two corners, like the cards on About. Markup: <span class="journal-card__blank" aria-hidden="true"></span> inside .journal-card__media. */
.journal-card__blank { position: relative; display: block; aspect-ratio: 3 / 2; overflow: hidden; border-radius: var(--radius);
  background: var(--paper-sunk); }
.journal-card__blank::before { content: ""; position: absolute; inset: 0; opacity: .2;
  -webkit-mask-image: radial-gradient(150px 110px at 0 0, #000, transparent), radial-gradient(150px 110px at 100% 100%, #000, transparent);
  mask-image: radial-gradient(150px 110px at 0 0, #000, transparent), radial-gradient(150px 110px at 100% 100%, #000, transparent); background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='64' height='64'%3E%3Cpath d='M63.6 1.2 78.8 16.4 72.4 22.8 57.2 7.6ZM47.6 1.2 62.8 16.4 56.4 22.8 41.2 7.6ZM31.6 1.2 46.8 16.4 40.4 22.8 25.2 7.6ZM63.6 33.2 78.8 48.4 72.4 54.8 57.2 39.6ZM15.6 1.2 30.8 16.4 24.4 22.8 9.2 7.6ZM47.6 33.2 62.8 48.4 56.4 54.8 41.2 39.6ZM-0.4 1.2 14.8 16.4 8.4 22.8 -6.8 7.6ZM31.6 33.2 46.8 48.4 40.4 54.8 25.2 39.6ZM15.6 33.2 30.8 48.4 24.4 54.8 9.2 39.6ZM-0.4 33.2 14.8 48.4 8.4 54.8 -6.8 39.6Z' fill='%23B59D6E'/%3E%3Cpath d='M0.4 -14.8 -14.8 0.4 -8.4 6.8 6.8 -8.4ZM32.4 -14.8 17.2 0.4 23.6 6.8 38.8 -8.4ZM0.4 17.2 -14.8 32.4 -8.4 38.8 6.8 23.6ZM56.4 -6.8 49.2 0.4 55.6 6.8 62.8 -0.4ZM32.4 17.2 17.2 32.4 23.6 38.8 38.8 23.6ZM0.4 49.2 -14.8 64.4 -8.4 70.8 6.8 55.6ZM64.4 17.2 49.2 32.4 55.6 38.8 70.8 23.6ZM32.4 49.2 17.2 64.4 23.6 70.8 38.8 55.6ZM64.4 49.2 49.2 64.4 55.6 70.8 70.8 55.6Z' fill='%239A4A27'/%3E%3Cpath d='M16.4 -14.8 1.2 0.4 7.6 6.8 22.8 -8.4ZM48.4 -14.8 33.2 0.4 39.6 6.8 54.8 -8.4ZM16.4 17.2 1.2 32.4 7.6 38.8 22.8 23.6ZM48.4 17.2 33.2 32.4 39.6 38.8 54.8 23.6ZM16.4 49.2 1.2 64.4 7.6 70.8 22.8 55.6ZM48.4 49.2 33.2 64.4 39.6 70.8 54.8 55.6Z' fill='%23234539'/%3E%3C/svg%3E") 0 0 / 64px 64px repeat; }
.journal-card__blank::after { content: ""; position: absolute; left: 50%; top: 50%; width: 40px; height: 40px; translate: -50% -50%;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Cpath d='M16 1.5 30.5 16 16 30.5 1.5 16Z' fill='%23234539'/%3E%3Cpath d='M16 7.5 24.5 16 16 24.5 7.5 16Z' fill='%23E8B14E'/%3E%3Cpath d='M3.4 18.1 28.6 18.1' stroke='%23C0673B' stroke-width='2.4' stroke-linecap='round'/%3E%3Cpath d='M16 13l3 3-3 3-3-3Z' fill='%23234539'/%3E%3C/svg%3E") center / contain no-repeat; }
/* 2026-10-21 (Owner: "a simple abstract drawing ... of the mountain that is mythical", option A, Batu Lawi). The
   Myth & Legends card shows Batu Lawi in the site's colours. It replaces the plain panel: no weave, no diamond.
   2026-11-01 (Isaac, from a photograph of Batu Lawi, variant 2 of five): redrawn to the real shape - the craggy dome on the
   left, the tall rounded spire right of centre with its shaded side and stepped shoulder, forest up to the foot of the
   rock - with soft clouds behind and across the spire and no sun. */
.journal-card__blank--lawi { background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 300 200'%3E%3Crect width='300' height='200' fill='%23EDE4D3'/%3E%3Cg transform='translate(180 62) scale(1.25)' fill='%23F6EFE3'%3E%3Cellipse cx='0' cy='0' rx='34' ry='10'/%3E%3Ccircle cx='-12' cy='-6' r='11'/%3E%3Ccircle cx='8' cy='-10' r='14'/%3E%3Ccircle cx='24' cy='-3' r='9'/%3E%3C/g%3E%3Cg transform='translate(64 44) scale(0.9)' fill='%23F6EFE3'%3E%3Cellipse cx='0' cy='0' rx='34' ry='10'/%3E%3Ccircle cx='-12' cy='-6' r='11'/%3E%3Ccircle cx='8' cy='-10' r='14'/%3E%3Ccircle cx='24' cy='-3' r='9'/%3E%3C/g%3E%3Cg transform='translate(262 96) scale(0.7)' fill='%23F6EFE3'%3E%3Cellipse cx='0' cy='0' rx='34' ry='10'/%3E%3Ccircle cx='-12' cy='-6' r='11'/%3E%3Ccircle cx='8' cy='-10' r='14'/%3E%3Ccircle cx='24' cy='-3' r='9'/%3E%3C/g%3E%3Cg transform=''%3E%3Cpath d='M48 152 L54 144 L57 137 L62 133 L65 126 L70 121 L73 115 L79 111 L86 109 L92 110 L97 113 L101 118 L104 124 L108 128 L111 134 L116 138 L120 134 L123 126 L126 116 L128 104 L131 90 L134 78 L137 69 L141 63 L146 60 L151 61 L155 66 L157 75 L158 88 L158 100 L160 110 L163 115 L167 116 L170 121 L175 122 L178 127 L184 129 L188 134 L194 136 L200 142 L212 150Z' fill='%23D8CCB1'/%3E%3Cpath d='M48 152 L54 144 L57 137 L62 133 L65 126 L70 121 L73 115 L79 111 L82 116 L78 124 L80 132 L76 140 L78 150Z M120 134 L123 126 L126 116 L128 104 L131 90 L134 78 L137 69 L141 63 L146 60 L143 70 L141 84 L140 100 L138 114 L139 128 L136 140Z M163 115 L167 116 L170 121 L175 122 L178 127 L184 129 L188 134 L194 136 L200 142 L190 144 L180 138 L172 132 L166 124Z' fill='%23C4B48E' opacity='.85'/%3E%3Cpath d='M90 114 L92 126 M98 118 L99 130 M150 66 L151 84 M153 72 L155 98 M147 80 L148 104' stroke='%23C4B48E' stroke-width='1.4' stroke-linecap='round' opacity='.8'/%3E%3Cpath d='M0 174 L26 166 L44 156 L56 150 L66 144 L74 146 L82 140 L92 146 L104 140 L114 144 L124 138 L134 144 L144 136 L156 142 L168 134 L180 140 L192 140 L204 148 L224 156 L252 164 L280 170 L300 174 V200 H0Z' fill='%232E5A49' opacity='.85'/%3E%3C/g%3E%3Cpath d='M0 186 L60 180 L120 186 L190 178 L250 184 L300 180 V200 H0Z' fill='%23234539'/%3E%3Cg opacity='.92'%3E%3Cg transform='translate(118 70) scale(0.8)' fill='%23F6EFE3'%3E%3Cellipse cx='0' cy='0' rx='34' ry='10'/%3E%3Ccircle cx='-12' cy='-6' r='11'/%3E%3Ccircle cx='8' cy='-10' r='14'/%3E%3Ccircle cx='24' cy='-3' r='9'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E") center / cover no-repeat; }
.journal-card__blank--lawi::before, .journal-card__blank--lawi::after { display: none; }
/* 2026-11-01 (Isaac: "a long boat cruising over the river", kept simple and abstract). The Expedition 2027 card shows a
   slim longboat crossing three flat lines of water, a short wake behind it and a low sun, in place of a photograph. */
.journal-card__blank--longboat { background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 300 200'%3E%3Crect width='300' height='200' fill='%23EDE4D3'/%3E%3Ccircle cx='228' cy='58' r='13' fill='%23E8B14E' opacity='.85'/%3E%3Cpath d='M62 110 C92 124 200 124 240 104 C234 118 214 128 150 129 C96 129 72 122 62 110Z' fill='%23234539'/%3E%3Cpath d='M86 119 C122 125 190 125 222 116' fill='none' stroke='%23C0673B' stroke-width='2' stroke-linecap='round'/%3E%3Cpath d='M20 116 H50 M32 124 H58' stroke='%232E5A49' stroke-width='2' stroke-linecap='round' opacity='.5'/%3E%3Cpath d='M40 131 H260' stroke='%232E5A49' stroke-width='3' stroke-linecap='round' opacity='.7'/%3E%3Cpath d='M72 146 H228' stroke='%232E5A49' stroke-width='3' stroke-linecap='round' opacity='.45'/%3E%3Cpath d='M110 160 H190' stroke='%232E5A49' stroke-width='3' stroke-linecap='round' opacity='.3'/%3E%3C/svg%3E") center / cover no-repeat; }
.journal-card__blank--longboat::before, .journal-card__blank--longboat::after { display: none; }
@media (max-width: 600px) {
  .article-hero__meta { flex-direction: column; gap: .1rem; }
  .article-hero__meta span + span::before { content: none; }
}

/* 23. TERRITORY AND ORAL HISTORY (2026-10-02): both pages still wait for most of their content, so the
   placeholders are designed rather than grey boxes. Territory: a dark hero with the Lung Repenu’ map as a plate,
   Mutang Urud's line on land and language, the three maps already in the journal (they open in the photo viewer),
   and the map archive still to come, oldest first. Oral History: a dark hero with a sound-wave band, his line on
   the Elders, and a card for each Elder: portrait, name, and "Recording to come". The contour lines and sound
   waves are drawn in the stylesheet, so they cost no downloads. */
.terr-sec, .oral-sec { padding-top: clamp(2.6rem, 6vw, 4.2rem); }
.terr-sec:last-child, .oral-sec:last-child { padding-bottom: clamp(3rem, 7vw, 5rem); }
.terr-sec .events-invite, .oral-sec .events-invite { margin-top: 0; }
.terr-head { max-width: 44rem; margin-bottom: clamp(1.2rem, 3vh, 1.8rem); }
.terr-head h2 { font-size: var(--step-3); letter-spacing: -.025em; }
.terr-head p:not(.eyebrow) { margin: .5rem 0 0; color: var(--ink-soft); }

.terr-hero { position: relative; overflow: hidden; color: #E3EBE6; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='400' height='340'%3E%3Cg fill='none' stroke='rgba%28232%2C177%2C78%2C0.14%29' stroke-width='1.2'%3E%3Cpath d='M230.0%2C170.0 L234.5%2C175.9 L234.0%2C182.1 L228.4%2C186.5 L220.8%2C188.5 L214.0%2C189.3 L208.3%2C190.4 L202.8%2C191.4 L197.2%2C191.4 L191.7%2C190.4 L186.0%2C189.3 L179.2%2C188.5 L171.6%2C186.5 L166.0%2C182.1 L165.5%2C175.9 L170.0%2C170.0 L175.8%2C165.9 L179.2%2C162.6 L179.9%2C158.3 L180.7%2C152.8 L184.0%2C147.8 L189.7%2C144.8 L196.5%2C143.7 L203.5%2C143.7 L210.3%2C144.8 L216.0%2C147.8 L219.3%2C152.8 L220.1%2C158.3 L220.8%2C162.6 L224.2%2C165.9 L230.0%2C170.0Z'/%3E%3Cpath d='M266.3%2C170.0 L268.2%2C181.6 L259.9%2C191.3 L246.6%2C197.1 L234.3%2C200.5 L224.6%2C204.2 L215.4%2C208.0 L205.3%2C210.3 L194.7%2C210.5 L183.6%2C210.3 L170.7%2C210.5 L156.1%2C209.0 L144.1%2C202.5 L140.3%2C191.3 L145.7%2C179.2 L154.3%2C170.0 L158.7%2C163.0 L157.6%2C154.9 L156.0%2C144.4 L159.4%2C133.9 L168.6%2C126.6 L180.8%2C122.8 L193.6%2C121.2 L206.4%2C121.4 L218.2%2C125.1 L226.7%2C132.9 L231.1%2C142.4 L234.7%2C149.8 L242.7%2C154.8 L255.3%2C160.6 L266.3%2C170.0Z'/%3E%3Cpath d='M302.5%2C170.0 L293.8%2C185.9 L276.3%2C197.2 L259.8%2C204.8 L247.6%2C212.3 L236.4%2C220.4 L223.1%2C226.9 L207.9%2C230.3 L191.8%2C232.7 L173.3%2C235.7 L152.0%2C236.5 L132.7%2C229.8 L123.3%2C214.6 L126.5%2C196.2 L135.1%2C181.0 L138.5%2C170.0 L133.3%2C158.7 L126.5%2C143.8 L127.1%2C127.6 L137.8%2C114.8 L154.4%2C106.8 L172.4%2C102.1 L190.8%2C99.8 L208.9%2C102.2 L224.0%2C110.9 L234.0%2C122.8 L242.4%2C132.3 L255.9%2C137.5 L276.3%2C142.8 L295.5%2C153.8 L302.5%2C170.0Z'/%3E%3Cpath d='M326.0%2C170.0 L306.6%2C188.1 L287.5%2C201.2 L274.6%2C213.4 L263.9%2C226.7 L249.6%2C238.8 L231.3%2C247.2 L211.0%2C253.8 L188.0%2C261.1 L161.0%2C266.0 L134.2%2C261.2 L117.1%2C243.6 L115.0%2C219.4 L120.8%2C198.2 L121.1%2C183.4 L110.0%2C170.0 L95.3%2C152.2 L90.2%2C130.9 L99.9%2C111.8 L119.3%2C98.3 L141.6%2C89.1 L164.6%2C82.8 L188.4%2C82.0 L210.6%2C89.2 L227.8%2C101.6 L242.2%2C111.5 L261.7%2C115.2 L289.7%2C117.8 L318.1%2C127.9 L332.4%2C147.5 L326.0%2C170.0Z'/%3E%3Cpath d='M334.0%2C170.0 L314.5%2C189.5 L303.1%2C206.7 L295.5%2C225.5 L283.1%2C243.9 L264.0%2C258.6 L241.0%2C271.0 L214.9%2C283.8 L183.7%2C294.2 L149.9%2C293.3 L123.9%2C275.5 L113.6%2C246.8 L113.6%2C220.2 L108.9%2C202.5 L90.4%2C188.6 L66.0%2C170.0 L52.4%2C144.9 L58.3%2C119.5 L78.6%2C99.5 L103.8%2C84.5 L130.0%2C73.0 L158.2%2C67.1 L186.9%2C70.5 L211.7%2C81.0 L232.8%2C89.4 L257.9%2C89.8 L292.9%2C87.5 L330.4%2C94.2 L353.7%2C115.3 L352.5%2C144.1 L334.0%2C170.0Z'/%3E%3Cpath d='M337.6%2C170.0 L330.1%2C192.1 L328.4%2C215.7 L321.1%2C240.4 L303.9%2C262.3 L280.4%2C281.4 L253.1%2C300.7 L219.4%2C317.8 L180.0%2C322.6 L144.4%2C306.9 L123.6%2C275.9 L115.2%2C245.3 L103.8%2C225.9 L77.1%2C213.8 L41.9%2C196.9 L17.6%2C170.0 L17.1%2C138.9 L36.0%2C111.6 L62.3%2C89.9 L89.8%2C72.1 L120.4%2C59.7 L154.2%2C57.2 L186.0%2C63.2 L213.4%2C68.0 L243.3%2C63.4 L283.6%2C54.2 L329.3%2C55.1 L362.6%2C75.5 L369.5%2C109.6 L354.9%2C143.7 L337.6%2C170.0Z'/%3E%3Cpath d='M352.7%2C170.0 L359.5%2C197.1 L360.6%2C227.2 L348.5%2C256.3 L326.9%2C282.8 L300.4%2C309.1 L266.5%2C333.7 L223.1%2C345.8 L178.4%2C334.7 L145.6%2C304.1 L126.7%2C271.5 L107.5%2C252.2 L72.8%2C243.9 L26.7%2C231.7 L-9.7%2C205.7 L-19.3%2C170.0 L-4.4%2C135.2 L20.8%2C106.2 L47.6%2C81.4 L78.0%2C61.6 L114.4%2C51.3 L151.5%2C50.6 L184.2%2C49.8 L217.2%2C38.8 L260.5%2C21.0 L312.7%2C13.8 L356.4%2C31.1 L373.8%2C69.0 L366.5%2C110.7 L354.1%2C143.8 L352.7%2C170.0Z'/%3E%3C/g%3E%3C/svg%3E") right -60px center / 620px auto no-repeat, radial-gradient(120% 140% at 0% 0%, #2E5A49, var(--forest)); }
.terr-hero__in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(2rem, 5vw, 4rem); align-items: center; padding-block: clamp(3.2rem, 8vw, 5.6rem); }
.terr-hero .eyebrow, .oral-hero .eyebrow { color: var(--gold); }
.terr-hero h1, .oral-hero h1 { margin: .3rem 0 .9rem; font: 600 clamp(2.8rem, 1.8rem + 4.4vw, 5.4rem)/.95 var(--serif); letter-spacing: -.02em; color: #fff; }
.terr-hero p, .oral-hero p { max-width: 34rem; margin: 0; font: 400 var(--step-1)/1.45 var(--serif); color: #E6ECE8; }
.terr-hero__note { margin-top: 1.1rem !important; padding-left: 1rem; border-left: 2px solid var(--gold); font: 500 var(--step--1)/1.55 var(--sans) !important; color: #B9C9C0 !important; }
.terr-hero__plate { margin: 0; padding: 10px; background: #F6EFE0; border-radius: 4px; transform: rotate(1.6deg); box-shadow: 0 30px 60px -28px rgba(0,0,0,.7), 0 2px 0 rgba(0,0,0,.08); }
.terr-hero__plate img { display: block; width: 100%; height: auto; border-radius: 2px; }

.terr-maps { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); grid-template-rows: auto auto; gap: var(--gap); }
.terr-map { display: flex; flex-direction: column; margin: 0; overflow: hidden; border: 1px solid var(--rule); border-radius: 12px; background: var(--paper-raised); }
.terr-map--wide { grid-row: 1 / span 2; }
.terr-map img { display: block; width: 100%; height: 220px; object-fit: cover; border-radius: 0; background: #fff; }
.terr-map--wide img { flex: 1 1 0; height: 0; min-height: 300px; object-fit: cover; }
.terr-map figcaption { flex: none; margin: .85rem 1.1rem 1rem; padding: 0; max-width: none; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.terr-more { margin: 1.1rem 0 0; font: 700 var(--step--1)/1 var(--sans); }
.terr-more a { color: var(--river); }

.terr-quote p { max-width: 36rem; }
.terr-archive { position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--gap); margin: 0; padding: 1.6rem 0 0; list-style: none; }
.terr-archive::before { content: ""; position: absolute; left: 0; right: 0; top: .45rem; height: 2px; background: linear-gradient(90deg, var(--gold), var(--rule-strong)); }
.terr-archive li { position: relative; }
.terr-archive li::before { content: ""; position: absolute; left: 1rem; top: -1.45rem; width: 10px; height: 10px; transform: rotate(45deg); background: var(--gold); box-shadow: 0 0 0 4px var(--paper); }
.terr-rec__plate { position: relative; display: grid; place-items: center; aspect-ratio: 4 / 3; overflow: hidden; border-radius: 10px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='400' height='340'%3E%3Cg fill='none' stroke='rgba%28232%2C177%2C78%2C0.22%29' stroke-width='1.2'%3E%3Cpath d='M230.0%2C170.0 L234.5%2C175.9 L234.0%2C182.1 L228.4%2C186.5 L220.8%2C188.5 L214.0%2C189.3 L208.3%2C190.4 L202.8%2C191.4 L197.2%2C191.4 L191.7%2C190.4 L186.0%2C189.3 L179.2%2C188.5 L171.6%2C186.5 L166.0%2C182.1 L165.5%2C175.9 L170.0%2C170.0 L175.8%2C165.9 L179.2%2C162.6 L179.9%2C158.3 L180.7%2C152.8 L184.0%2C147.8 L189.7%2C144.8 L196.5%2C143.7 L203.5%2C143.7 L210.3%2C144.8 L216.0%2C147.8 L219.3%2C152.8 L220.1%2C158.3 L220.8%2C162.6 L224.2%2C165.9 L230.0%2C170.0Z'/%3E%3Cpath d='M266.3%2C170.0 L268.2%2C181.6 L259.9%2C191.3 L246.6%2C197.1 L234.3%2C200.5 L224.6%2C204.2 L215.4%2C208.0 L205.3%2C210.3 L194.7%2C210.5 L183.6%2C210.3 L170.7%2C210.5 L156.1%2C209.0 L144.1%2C202.5 L140.3%2C191.3 L145.7%2C179.2 L154.3%2C170.0 L158.7%2C163.0 L157.6%2C154.9 L156.0%2C144.4 L159.4%2C133.9 L168.6%2C126.6 L180.8%2C122.8 L193.6%2C121.2 L206.4%2C121.4 L218.2%2C125.1 L226.7%2C132.9 L231.1%2C142.4 L234.7%2C149.8 L242.7%2C154.8 L255.3%2C160.6 L266.3%2C170.0Z'/%3E%3Cpath d='M302.5%2C170.0 L293.8%2C185.9 L276.3%2C197.2 L259.8%2C204.8 L247.6%2C212.3 L236.4%2C220.4 L223.1%2C226.9 L207.9%2C230.3 L191.8%2C232.7 L173.3%2C235.7 L152.0%2C236.5 L132.7%2C229.8 L123.3%2C214.6 L126.5%2C196.2 L135.1%2C181.0 L138.5%2C170.0 L133.3%2C158.7 L126.5%2C143.8 L127.1%2C127.6 L137.8%2C114.8 L154.4%2C106.8 L172.4%2C102.1 L190.8%2C99.8 L208.9%2C102.2 L224.0%2C110.9 L234.0%2C122.8 L242.4%2C132.3 L255.9%2C137.5 L276.3%2C142.8 L295.5%2C153.8 L302.5%2C170.0Z'/%3E%3Cpath d='M326.0%2C170.0 L306.6%2C188.1 L287.5%2C201.2 L274.6%2C213.4 L263.9%2C226.7 L249.6%2C238.8 L231.3%2C247.2 L211.0%2C253.8 L188.0%2C261.1 L161.0%2C266.0 L134.2%2C261.2 L117.1%2C243.6 L115.0%2C219.4 L120.8%2C198.2 L121.1%2C183.4 L110.0%2C170.0 L95.3%2C152.2 L90.2%2C130.9 L99.9%2C111.8 L119.3%2C98.3 L141.6%2C89.1 L164.6%2C82.8 L188.4%2C82.0 L210.6%2C89.2 L227.8%2C101.6 L242.2%2C111.5 L261.7%2C115.2 L289.7%2C117.8 L318.1%2C127.9 L332.4%2C147.5 L326.0%2C170.0Z'/%3E%3Cpath d='M334.0%2C170.0 L314.5%2C189.5 L303.1%2C206.7 L295.5%2C225.5 L283.1%2C243.9 L264.0%2C258.6 L241.0%2C271.0 L214.9%2C283.8 L183.7%2C294.2 L149.9%2C293.3 L123.9%2C275.5 L113.6%2C246.8 L113.6%2C220.2 L108.9%2C202.5 L90.4%2C188.6 L66.0%2C170.0 L52.4%2C144.9 L58.3%2C119.5 L78.6%2C99.5 L103.8%2C84.5 L130.0%2C73.0 L158.2%2C67.1 L186.9%2C70.5 L211.7%2C81.0 L232.8%2C89.4 L257.9%2C89.8 L292.9%2C87.5 L330.4%2C94.2 L353.7%2C115.3 L352.5%2C144.1 L334.0%2C170.0Z'/%3E%3Cpath d='M337.6%2C170.0 L330.1%2C192.1 L328.4%2C215.7 L321.1%2C240.4 L303.9%2C262.3 L280.4%2C281.4 L253.1%2C300.7 L219.4%2C317.8 L180.0%2C322.6 L144.4%2C306.9 L123.6%2C275.9 L115.2%2C245.3 L103.8%2C225.9 L77.1%2C213.8 L41.9%2C196.9 L17.6%2C170.0 L17.1%2C138.9 L36.0%2C111.6 L62.3%2C89.9 L89.8%2C72.1 L120.4%2C59.7 L154.2%2C57.2 L186.0%2C63.2 L213.4%2C68.0 L243.3%2C63.4 L283.6%2C54.2 L329.3%2C55.1 L362.6%2C75.5 L369.5%2C109.6 L354.9%2C143.7 L337.6%2C170.0Z'/%3E%3Cpath d='M352.7%2C170.0 L359.5%2C197.1 L360.6%2C227.2 L348.5%2C256.3 L326.9%2C282.8 L300.4%2C309.1 L266.5%2C333.7 L223.1%2C345.8 L178.4%2C334.7 L145.6%2C304.1 L126.7%2C271.5 L107.5%2C252.2 L72.8%2C243.9 L26.7%2C231.7 L-9.7%2C205.7 L-19.3%2C170.0 L-4.4%2C135.2 L20.8%2C106.2 L47.6%2C81.4 L78.0%2C61.6 L114.4%2C51.3 L151.5%2C50.6 L184.2%2C49.8 L217.2%2C38.8 L260.5%2C21.0 L312.7%2C13.8 L356.4%2C31.1 L373.8%2C69.0 L366.5%2C110.7 L354.1%2C143.8 L352.7%2C170.0Z'/%3E%3C/g%3E%3C/svg%3E") center / 260% auto no-repeat, radial-gradient(120% 140% at 0% 0%, #2E5A49, var(--forest)); }
.terr-archive li:nth-child(2) .terr-rec__plate { background-position: 20% 30%, 0 0; }
.terr-archive li:nth-child(3) .terr-rec__plate { background-position: 80% 70%, 0 0; }
.terr-archive li:nth-child(4) .terr-rec__plate { background-position: 30% 90%, 0 0; }
.terr-archive li:nth-child(5) .terr-rec__plate { background-position: 70% 10%, 0 0; }
.terr-rec__year { font: 600 clamp(2rem, 1.4rem + 1.8vw, 2.8rem)/1 var(--serif); color: var(--gold); letter-spacing: -.01em; }
.terr-rec__mark { width: 34px; height: 34px; transform: rotate(45deg); border: 2px solid var(--gold); box-shadow: inset 0 0 0 7px var(--forest), inset 0 0 0 20px var(--gold); }
.terr-rec h3 { margin: .8rem 0 .4rem; font: 600 var(--step-0)/1.3 var(--serif); text-wrap: balance; }
.terr-rec__soon, .elder__soon { display: inline-flex; align-items: center; gap: .45rem; padding: .3rem .7rem; border: 1px dashed var(--rule-strong); border-radius: 999px;
  font: 600 var(--step--2)/1.2 var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-faint); }
.terr-rec__soon::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--gold); }

.oral-hero { position: relative; overflow: hidden; color: #E3EBE6; background: radial-gradient(120% 140% at 0% 0%, #2E5A49, var(--forest)); }
.oral-hero__in { position: relative; z-index: 1; padding-block: clamp(3.4rem, 8vw, 5.8rem) clamp(5.4rem, 10vw, 7.4rem); }
.oral-hero__wave { position: absolute; left: 0; right: 0; bottom: clamp(1.4rem, 3vw, 2.2rem); height: 56px; opacity: .55;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='384' height='32'%3E%3Cg fill='%23E8B14E'%3E%3Crect x='0' y='4.5' width='3' height='23' rx='1.5'/%3E%3Crect x='6' y='3.5' width='3' height='25' rx='1.5'/%3E%3Crect x='12' y='5.5' width='3' height='21' rx='1.5'/%3E%3Crect x='18' y='3.0' width='3' height='26' rx='1.5'/%3E%3Crect x='24' y='1.0' width='3' height='30' rx='1.5'/%3E%3Crect x='30' y='5.0' width='3' height='22' rx='1.5'/%3E%3Crect x='36' y='9.5' width='3' height='13' rx='1.5'/%3E%3Crect x='42' y='8.5' width='3' height='15' rx='1.5'/%3E%3Crect x='48' y='8.0' width='3' height='16' rx='1.5'/%3E%3Crect x='54' y='12.0' width='3' height='8' rx='1.5'/%3E%3Crect x='60' y='11.0' width='3' height='10' rx='1.5'/%3E%3Crect x='66' y='5.5' width='3' height='21' rx='1.5'/%3E%3Crect x='72' y='4.0' width='3' height='24' rx='1.5'/%3E%3Crect x='78' y='5.5' width='3' height='21' rx='1.5'/%3E%3Crect x='84' y='3.5' width='3' height='25' rx='1.5'/%3E%3Crect x='90' y='1.0' width='3' height='30' rx='1.5'/%3E%3Crect x='96' y='4.0' width='3' height='24' rx='1.5'/%3E%3Crect x='102' y='8.5' width='3' height='15' rx='1.5'/%3E%3Crect x='108' y='8.0' width='3' height='16' rx='1.5'/%3E%3Crect x='114' y='7.5' width='3' height='17' rx='1.5'/%3E%3Crect x='120' y='11.5' width='3' height='9' rx='1.5'/%3E%3Crect x='126' y='12.0' width='3' height='8' rx='1.5'/%3E%3Crect x='132' y='6.5' width='3' height='19' rx='1.5'/%3E%3Crect x='138' y='4.5' width='3' height='23' rx='1.5'/%3E%3Crect x='144' y='6.0' width='3' height='20' rx='1.5'/%3E%3Crect x='150' y='4.0' width='3' height='24' rx='1.5'/%3E%3Crect x='156' y='1.0' width='3' height='30' rx='1.5'/%3E%3Crect x='162' y='3.0' width='3' height='26' rx='1.5'/%3E%3Crect x='168' y='8.0' width='3' height='16' rx='1.5'/%3E%3Crect x='174' y='7.5' width='3' height='17' rx='1.5'/%3E%3Crect x='180' y='7.0' width='3' height='18' rx='1.5'/%3E%3Crect x='186' y='11.0' width='3' height='10' rx='1.5'/%3E%3Crect x='192' y='12.5' width='3' height='7' rx='1.5'/%3E%3Crect x='198' y='8.0' width='3' height='16' rx='1.5'/%3E%3Crect x='204' y='5.0' width='3' height='22' rx='1.5'/%3E%3Crect x='210' y='7.0' width='3' height='18' rx='1.5'/%3E%3Crect x='216' y='4.5' width='3' height='23' rx='1.5'/%3E%3Crect x='222' y='1.0' width='3' height='30' rx='1.5'/%3E%3Crect x='228' y='2.0' width='3' height='28' rx='1.5'/%3E%3Crect x='234' y='7.0' width='3' height='18' rx='1.5'/%3E%3Crect x='240' y='7.0' width='3' height='18' rx='1.5'/%3E%3Crect x='246' y='6.0' width='3' height='20' rx='1.5'/%3E%3Crect x='252' y='10.5' width='3' height='11' rx='1.5'/%3E%3Crect x='258' y='13.0' width='3' height='6' rx='1.5'/%3E%3Crect x='264' y='8.5' width='3' height='15' rx='1.5'/%3E%3Crect x='270' y='6.0' width='3' height='20' rx='1.5'/%3E%3Crect x='276' y='7.5' width='3' height='17' rx='1.5'/%3E%3Crect x='282' y='5.5' width='3' height='21' rx='1.5'/%3E%3Crect x='288' y='1.0' width='3' height='30' rx='1.5'/%3E%3Crect x='294' y='1.5' width='3' height='29' rx='1.5'/%3E%3Crect x='300' y='6.0' width='3' height='20' rx='1.5'/%3E%3Crect x='306' y='6.5' width='3' height='19' rx='1.5'/%3E%3Crect x='312' y='5.5' width='3' height='21' rx='1.5'/%3E%3Crect x='318' y='9.5' width='3' height='13' rx='1.5'/%3E%3Crect x='324' y='13.0' width='3' height='6' rx='1.5'/%3E%3Crect x='330' y='9.5' width='3' height='13' rx='1.5'/%3E%3Crect x='336' y='6.5' width='3' height='19' rx='1.5'/%3E%3Crect x='342' y='8.0' width='3' height='16' rx='1.5'/%3E%3Crect x='348' y='6.5' width='3' height='19' rx='1.5'/%3E%3Crect x='354' y='1.5' width='3' height='29' rx='1.5'/%3E%3Crect x='360' y='1.0' width='3' height='30' rx='1.5'/%3E%3Crect x='366' y='5.5' width='3' height='21' rx='1.5'/%3E%3Crect x='372' y='5.5' width='3' height='21' rx='1.5'/%3E%3Crect x='378' y='4.5' width='3' height='23' rx='1.5'/%3E%3C/g%3E%3C/svg%3E") 0 50% / auto 100% repeat-x;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 18%, #000 82%, transparent); mask-image: linear-gradient(90deg, transparent, #000 18%, #000 82%, transparent); }
.oral-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--gap); margin: 0; padding: 0; list-style: none; }
.oral-card { height: 100%; overflow: hidden; border: 1px solid var(--rule); border-radius: 12px; background: var(--paper-raised); }
.oral-card__portrait { position: relative; display: grid; place-items: center; aspect-ratio: 4 / 5;
  background: radial-gradient(90% 70% at 50% 35%, rgba(232,177,78,.14), transparent 70%), radial-gradient(120% 140% at 0% 0%, #2E5A49, var(--forest)); }
.oral-card__mark { width: 46px; height: 46px; transform: rotate(45deg); border: 2px solid rgba(232,177,78,.8); box-shadow: inset 0 0 0 9px var(--forest), inset 0 0 0 30px rgba(232,177,78,.8); }
.oral-card__ph { position: absolute; left: 0; right: 0; bottom: 1rem; text-align: center; font: 600 var(--step--2)/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: rgba(227,235,230,.6); }
.oral-card__img { display: block; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.oral-card__body { padding: 1rem 1.1rem 1.2rem; }
.oral-card .elder__name { margin: 0; }
.oral-card .elder__note { margin: .2rem 0 0; }
.oral-card__wave { height: 26px; margin: .9rem 0 .7rem; opacity: .7; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='384' height='32'%3E%3Cg fill='%23C9BB98'%3E%3Crect x='0' y='4.5' width='3' height='23' rx='1.5'/%3E%3Crect x='6' y='3.5' width='3' height='25' rx='1.5'/%3E%3Crect x='12' y='5.5' width='3' height='21' rx='1.5'/%3E%3Crect x='18' y='3.0' width='3' height='26' rx='1.5'/%3E%3Crect x='24' y='1.0' width='3' height='30' rx='1.5'/%3E%3Crect x='30' y='5.0' width='3' height='22' rx='1.5'/%3E%3Crect x='36' y='9.5' width='3' height='13' rx='1.5'/%3E%3Crect x='42' y='8.5' width='3' height='15' rx='1.5'/%3E%3Crect x='48' y='8.0' width='3' height='16' rx='1.5'/%3E%3Crect x='54' y='12.0' width='3' height='8' rx='1.5'/%3E%3Crect x='60' y='11.0' width='3' height='10' rx='1.5'/%3E%3Crect x='66' y='5.5' width='3' height='21' rx='1.5'/%3E%3Crect x='72' y='4.0' width='3' height='24' rx='1.5'/%3E%3Crect x='78' y='5.5' width='3' height='21' rx='1.5'/%3E%3Crect x='84' y='3.5' width='3' height='25' rx='1.5'/%3E%3Crect x='90' y='1.0' width='3' height='30' rx='1.5'/%3E%3Crect x='96' y='4.0' width='3' height='24' rx='1.5'/%3E%3Crect x='102' y='8.5' width='3' height='15' rx='1.5'/%3E%3Crect x='108' y='8.0' width='3' height='16' rx='1.5'/%3E%3Crect x='114' y='7.5' width='3' height='17' rx='1.5'/%3E%3Crect x='120' y='11.5' width='3' height='9' rx='1.5'/%3E%3Crect x='126' y='12.0' width='3' height='8' rx='1.5'/%3E%3Crect x='132' y='6.5' width='3' height='19' rx='1.5'/%3E%3Crect x='138' y='4.5' width='3' height='23' rx='1.5'/%3E%3Crect x='144' y='6.0' width='3' height='20' rx='1.5'/%3E%3Crect x='150' y='4.0' width='3' height='24' rx='1.5'/%3E%3Crect x='156' y='1.0' width='3' height='30' rx='1.5'/%3E%3Crect x='162' y='3.0' width='3' height='26' rx='1.5'/%3E%3Crect x='168' y='8.0' width='3' height='16' rx='1.5'/%3E%3Crect x='174' y='7.5' width='3' height='17' rx='1.5'/%3E%3Crect x='180' y='7.0' width='3' height='18' rx='1.5'/%3E%3Crect x='186' y='11.0' width='3' height='10' rx='1.5'/%3E%3Crect x='192' y='12.5' width='3' height='7' rx='1.5'/%3E%3Crect x='198' y='8.0' width='3' height='16' rx='1.5'/%3E%3Crect x='204' y='5.0' width='3' height='22' rx='1.5'/%3E%3Crect x='210' y='7.0' width='3' height='18' rx='1.5'/%3E%3Crect x='216' y='4.5' width='3' height='23' rx='1.5'/%3E%3Crect x='222' y='1.0' width='3' height='30' rx='1.5'/%3E%3Crect x='228' y='2.0' width='3' height='28' rx='1.5'/%3E%3Crect x='234' y='7.0' width='3' height='18' rx='1.5'/%3E%3Crect x='240' y='7.0' width='3' height='18' rx='1.5'/%3E%3Crect x='246' y='6.0' width='3' height='20' rx='1.5'/%3E%3Crect x='252' y='10.5' width='3' height='11' rx='1.5'/%3E%3Crect x='258' y='13.0' width='3' height='6' rx='1.5'/%3E%3Crect x='264' y='8.5' width='3' height='15' rx='1.5'/%3E%3Crect x='270' y='6.0' width='3' height='20' rx='1.5'/%3E%3Crect x='276' y='7.5' width='3' height='17' rx='1.5'/%3E%3Crect x='282' y='5.5' width='3' height='21' rx='1.5'/%3E%3Crect x='288' y='1.0' width='3' height='30' rx='1.5'/%3E%3Crect x='294' y='1.5' width='3' height='29' rx='1.5'/%3E%3Crect x='300' y='6.0' width='3' height='20' rx='1.5'/%3E%3Crect x='306' y='6.5' width='3' height='19' rx='1.5'/%3E%3Crect x='312' y='5.5' width='3' height='21' rx='1.5'/%3E%3Crect x='318' y='9.5' width='3' height='13' rx='1.5'/%3E%3Crect x='324' y='13.0' width='3' height='6' rx='1.5'/%3E%3Crect x='330' y='9.5' width='3' height='13' rx='1.5'/%3E%3Crect x='336' y='6.5' width='3' height='19' rx='1.5'/%3E%3Crect x='342' y='8.0' width='3' height='16' rx='1.5'/%3E%3Crect x='348' y='6.5' width='3' height='19' rx='1.5'/%3E%3Crect x='354' y='1.5' width='3' height='29' rx='1.5'/%3E%3Crect x='360' y='1.0' width='3' height='30' rx='1.5'/%3E%3Crect x='366' y='5.5' width='3' height='21' rx='1.5'/%3E%3Crect x='372' y='5.5' width='3' height='21' rx='1.5'/%3E%3Crect x='378' y='4.5' width='3' height='23' rx='1.5'/%3E%3C/g%3E%3C/svg%3E") 0 50% / auto 100% repeat-x; }
.oral-card .elder__soon { margin: 0; }

@media (max-width: 899px) {
  .terr-hero__in { grid-template-columns: minmax(0, 1fr); }
  .terr-hero__plate { transform: rotate(1deg); max-width: 520px; }
  .terr-maps { grid-template-columns: minmax(0, 1fr); }
  .terr-map--wide { grid-row: auto; }
  .terr-map--wide img { height: 240px; min-height: 0; flex: none; }
  .terr-archive { grid-template-columns: repeat(2, minmax(0, 1fr)); padding-top: 0; }
  .terr-archive::before, .terr-archive li::before { display: none; }
  .oral-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 520px) {
  .oral-grid { grid-template-columns: minmax(0, 1fr); }
  .oral-card { display: grid; grid-template-columns: 38% minmax(0, 1fr); }
  .oral-card__portrait { aspect-ratio: auto; min-height: 100%; }
  .oral-card__img { aspect-ratio: auto; height: 100%; }
  .oral-card__mark { width: 30px; height: 30px; box-shadow: inset 0 0 0 6px var(--forest), inset 0 0 0 20px rgba(232,177,78,.8); }
  .oral-card__ph { font-size: .55rem; letter-spacing: .1em; bottom: .7rem; }
}

/* 24. THE PRINTED DICTIONARY, AROUND THE SITE (2026-10-02, Owner's choices): a card at the end of the journal, a
   support band above the footer (not on Order, Publications, the journal or About, which already offer the book),
   "Thank you to our supporters" on About (a thank-you only; no names are listed, Owner 2026-10-09), and on the
   Order page a WhatsApp share after ordering. */
.buy-card { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 1.6rem; align-items: center; margin: clamp(2rem, 5vh, 3rem) 0;
  padding: 1.6rem 1.8rem; border: 1px solid #E6D3A8; border-radius: 16px; background: radial-gradient(120% 140% at 0% 0%, #FBF3E2, #F1E3C4); }
.buy-card__book .book { transform: rotate(-4deg); box-shadow: 0 18px 30px -16px rgba(60,20,10,.6); }
.buy-card__kicker { margin: 0; font: 700 var(--step--2)/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--clay); }
.buy-card__title { margin: .5rem 0 .4rem; font: 600 var(--step-2)/1.2 var(--serif); color: var(--forest); text-wrap: balance; }
.buy-card p:not(.buy-card__kicker) { margin: 0 0 1rem; color: var(--ink-soft); font: 400 var(--step--1)/1.55 var(--sans); text-align: left; }
.buy-card__btn, .about-thanks__btn { display: inline-flex; align-items: center; min-height: 44px; padding: .7rem 1.2rem; border-radius: 999px;
  background: var(--forest); color: #fff !important; font: 700 var(--step--1)/1 var(--sans); text-decoration: none; }
.buy-card__btn:hover, .about-thanks__btn:hover { background: #2E5A49; }

.support-band { margin-top: clamp(3rem, 8vh, 5rem); background: #EFE3CB; border-top: 1px solid #E2CFA6; }
.support-band + .sitefoot { margin-top: 0; }
.support-band__in { display: flex; align-items: center; gap: 1.4rem; padding-block: 1.3rem; }
.support-band__book { flex: none; width: 46px; }
.support-band__book .book { transform: rotate(-6deg); box-shadow: 0 10px 18px -10px rgba(60,20,10,.6); }
.support-band p { flex: 1; margin: 0; font: 500 var(--step--1)/1.45 var(--sans); color: var(--ink-soft); }
.support-band b { display: block; font: 600 var(--step-0)/1.3 var(--serif); color: var(--forest); }
/* Forest with gold lettering, a fine gold edge and a soft gold sheen now and then (Owner's choice E, 2026-10-02). */
.support-band__btn { position: relative; overflow: hidden; flex: none; display: inline-flex; align-items: center; min-height: 44px; padding: .65rem 1.1rem;
  border: 1px solid #C9952F; border-radius: 999px; background: var(--forest); color: #F3D27A !important; font: 700 var(--step--1)/1 var(--sans);
  text-decoration: none; box-shadow: inset 0 0 0 1px rgba(255,240,184,.15); }
.support-band__btn::after { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(115deg, transparent 38%, rgba(243,210,122,.35) 50%, transparent 62%);
  transform: translateX(-130%); animation: btn-sheen 6s ease-in-out 3; }
@keyframes btn-sheen { 0%, 70% { transform: translateX(-130%); } 100% { transform: translateX(130%); } }
.support-band__btn:hover { background: #2E5A49; color: #FFE3A0 !important; }
@media (prefers-reduced-motion: reduce) { .support-band__btn::after { animation: none; display: none; } }
/* 2026-10-20 (Owner): Contact too, which points to the order form beside its own form; and on Contact the footer's
   "Contact us" button and line are hidden, since they lead to the page the reader is on. */
body:has(#main-order) .support-band, body:has(#main-publications) .support-band, body:has(#main-contact) .support-band,
body:has(#main-journal) .support-band, body:has(#main-about) .support-band { display: none; }
body:has(#main-order) .sitefoot, body:has(#main-publications) .sitefoot, body:has(#main-contact) .sitefoot, body:has(#main-journal) .sitefoot { margin-top: clamp(3rem, 8vh, 5rem); }
body:has(#main-contact) .sitefoot__contact { display: none; }

.about-thanks { position: relative; max-width: 52rem; margin: 0 auto; padding: clamp(1.8rem, 4vw, 2.6rem); text-align: center;
  border: 1px solid #E6D3A8; border-radius: 16px; background: radial-gradient(120% 140% at 50% 0%, #FBF3E2, #F1E3C4); }
.about-thanks__mark { position: relative; overflow: hidden; display: block; width: 24px; height: 24px; margin: 0 auto 1rem; transform: rotate(45deg);
  background: linear-gradient(135deg, #8A6420 0%, #E9C46A 20%, #FFF0B8 34%, #C9952F 50%, #F3D27A 68%, #9C7426 86%, #E2B755 100%);
  box-shadow: 0 4px 10px -4px rgba(120,80,20,.6); animation: thanks-glow 4.5s ease-in-out 3; }
/* A soft sheen crosses the gold diamond every few seconds, with a gentle glow (like the Gallery's metallic beads). */
.about-thanks__mark::after { content: ""; position: absolute; inset: -20%;
  background: linear-gradient(90deg, transparent 35%, rgba(255,255,255,.75) 50%, transparent 65%);
  transform: translateX(-120%); animation: thanks-sheen 4.5s ease-in-out 3; }
@keyframes thanks-sheen { 0%, 55% { transform: translateX(-120%); } 85%, 100% { transform: translateX(120%); } }
@keyframes thanks-glow { 0%, 50%, 100% { box-shadow: 0 4px 10px -4px rgba(120,80,20,.6); }
  70% { box-shadow: 0 4px 10px -4px rgba(120,80,20,.6), 0 0 16px 2px rgba(243,210,122,.55); } }
@media (prefers-reduced-motion: reduce) { .about-thanks__mark, .about-thanks__mark::after { animation: none; } .about-thanks__mark::after { display: none; } }
.about-thanks .about-h { justify-content: center; margin-bottom: .2rem; }
.about-thanks .about-h::before { display: none; }
.about-thanks .about-h::after { display: none; }
.about-thanks p { max-width: 38rem; margin: .6rem auto 1.2rem; color: var(--ink-soft); }

.contact-form .order-form__check { font-size: var(--step--1); font-weight: 500; letter-spacing: 0; text-transform: none; color: var(--ink-soft); }
.order-form__check { display: flex; align-items: flex-start; gap: .6rem; margin-top: 1rem; font: 500 var(--step--1)/1.45 var(--sans);
  text-transform: none; letter-spacing: 0; color: var(--ink-soft); cursor: pointer; }
.order-form__check input { width: 20px; height: 20px; margin: .05rem 0 0; flex: none; accent-color: var(--forest); }
.order-share { margin-top: 1.6rem; padding: 1.2rem 1.3rem; border-radius: 12px; background: var(--paper-sunk); }
.order-share h3 { margin: 0 0 .3rem; }
.order-share p { margin: 0 0 .9rem; color: var(--ink-soft); }
.order-share__btn { display: inline-flex; align-items: center; gap: .5rem; min-height: 44px; padding: .65rem 1.1rem; border-radius: 999px;
  background: #1F7A4D; color: #fff !important; font: 700 var(--step--1)/1 var(--sans); text-decoration: none; }
.order-share__btn::before { content: ""; width: 16px; height: 16px; border-radius: 50%; border: 2px solid #fff; border-bottom-left-radius: 2px; }
@media (max-width: 600px) {
  .buy-card { grid-template-columns: 76px minmax(0, 1fr); gap: 1rem; padding: 1.2rem; }
  .buy-card__kicker { line-height: 1.4; }
  .support-band__in { flex-wrap: wrap; gap: .9rem 1.1rem; }
  .support-band p { flex: 1 1 calc(100% - 46px - 1.1rem); }
  .support-band__btn { margin-left: calc(46px + 1.1rem); }
}

/* Order page, second round (2026-10-02): a gift option (recipient's name and phone), the address split into
   street, town, and a Malaysian state (or a country, outside Malaysia), a 5-digit postcode check, and on the
   thank-you screen "Email me a copy" and "Print or save as PDF". Printing shows only the order and how to pay. */
.order-form [hidden] { display: none !important; }
.order-form__gift { margin-top: .4rem; padding: .9rem 1rem 1rem; border-left: 3px solid var(--gold); border-radius: 0 10px 10px 0; background: rgba(255,255,255,.45); }
.order-form__gift .order-form__two > div label { margin-top: 0; }
.order-done__keep { margin: 1.6rem 0 .6rem; color: var(--ink-soft); }
.order-done__keepbtns { display: flex; flex-wrap: wrap; gap: .6rem; margin: 0; }
.order-keep { display: inline-flex; align-items: center; min-height: 44px; padding: .6rem 1.05rem; border: 1px solid var(--forest); border-radius: 999px;
  background: transparent; color: var(--forest) !important; font: 700 var(--step--1)/1 var(--sans); text-decoration: none; cursor: pointer; }
.order-keep:hover { background: var(--forest); color: #fff !important; }
@media print {
  .support-band, .sitefoot, .order-side, .order-share, .order-done__keep, .order-done__keepbtns, .order-done__send, #klt-gate, .page-head > p:not(.eyebrow) { display: none !important; }
  .order { display: block !important; }
  .order-done { border: 0 !important; box-shadow: none !important; padding: 0 !important; }
}

/* Order review step (2026-10-02): "Review my order" shows the details on one card before anything is sent. */
.order-review { padding: 1.6rem 1.8rem; border: 1px solid var(--rule-strong); border-radius: 12px; background: var(--paper-raised);
  scroll-margin-top: calc(var(--head-h) + 1rem); }
.order-review:focus { outline: none; }
.order-review h2 { margin: 0 0 .3rem; }
.order-review__lead { margin: 0 0 1.2rem; color: var(--ink-soft); }
.order-review__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem 1.6rem; }
.order-review__grid section { padding-top: .8rem; border-top: 1px solid var(--rule); }
.order-review__grid h3 { margin: 0 0 .5rem; font: 700 var(--step--2)/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--clay); }
.order-review__grid dl { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: .3rem .9rem; margin: 0; font: 400 var(--step--1)/1.45 var(--sans); }
.order-review__grid dt { color: var(--ink-faint); }
.order-review__grid dd { margin: 0; color: var(--ink); font-weight: 600; overflow-wrap: anywhere; }
.order-review__total { margin: 1.3rem 0 0; padding: .9rem 1.1rem; border-radius: 10px; background: #F3E6C8; font: 600 var(--step-0)/1.3 var(--sans); color: var(--forest); }
.order-review__total b { font: 600 var(--step-1)/1 var(--serif); }
.order-review__total span { font-weight: 500; font-size: var(--step--1); color: var(--ink-soft); }
.order-review__btns { display: flex; flex-wrap: wrap; align-items: center; gap: .8rem; margin: 1.2rem 0 .4rem; }
.order-review__btns .contact-form__send { margin: 0; }
.order-review__edit { min-height: 44px; padding: .6rem 1rem; border: 1px solid var(--rule-strong); border-radius: 999px; background: transparent;
  color: var(--ink-soft); font: 700 var(--step--1)/1 var(--sans); cursor: pointer; }
.order-review__edit:hover { border-color: var(--forest); color: var(--forest); }
@media (max-width: 600px) {
  .order-review { padding: 1.2rem; }
  .order-review__grid { grid-template-columns: minmax(0, 1fr); }
  .order-review__btns { flex-direction: column-reverse; align-items: stretch; }
  .order-review__btns .contact-form__send, .order-review__edit { width: 100%; justify-content: center; }
}

/* Order page, third round (2026-10-02): "Already ordered? How to pay" (always on the page, the one place for the bank
   details and the DuitNow QR), and "Your order on this device" at the top for a buyer who comes back. */
.order-howpay { padding-top: clamp(2rem, 5vw, 3rem); }
.order-howpay__card { max-width: 46rem; padding: 1.6rem 1.8rem; border: 1px solid var(--rule-strong); border-radius: 12px; background: var(--paper-raised); }
.order-howpay h2 { margin: 0 0 .5rem; font: 600 var(--step-2)/1.15 var(--serif); }
.order-howpay p { color: var(--ink-soft); }
.order-howpay .order-bank { margin: 1rem 0; }
.order-howpay__abroad { margin-top: 1rem; padding-top: .9rem; border-top: 1px solid var(--rule); font-size: var(--step--1); }
.order-last { max-width: 46rem; margin-top: 1.2rem; padding: 1rem 1.2rem; border-left: 4px solid var(--gold); border-radius: 0 10px 10px 0;
  background: #F3E6C8; font: 500 var(--step--1)/1.5 var(--sans); color: var(--ink); }
.order-last p { margin: 0; max-width: none; font: inherit; color: inherit; }
.order-last p + p { margin-top: .4rem; }
.order-last__ref { font: 700 1em/1 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .04em; color: var(--forest); }
.order-last a { color: var(--forest); font-weight: 700; }
.order-last__hide { margin-left: .4rem; padding: .2rem .6rem; border: 1px solid var(--rule-strong); border-radius: 999px; background: transparent;
  font: 600 var(--step--2)/1.4 var(--sans); color: var(--ink-faint); cursor: pointer; }
@media (max-width: 600px) { .order-howpay__card { padding: 1.2rem; } }
@media print { .order-howpay, .order-last { display: none !important; } }

/* Order page, fourth round (2026-10-02): the note shown when the form cannot work (no JavaScript, very old browser),
   and "Send to my WhatsApp" first among the keep-a-copy buttons. */
.order-nojs { margin: 1rem 0 0; padding: .8rem 1rem; border-left: 3px solid var(--coral); border-radius: 0 8px 8px 0; background: #FFF3EE;
  font: 500 var(--step--1)/1.5 var(--sans); color: var(--ink); }
.order-nojs a { color: var(--forest); font-weight: 700; }
.order-form .contact-form__send:disabled { opacity: .55; cursor: not-allowed; }
.order-keep--wa { border-color: #1F7A4D; background: #1F7A4D; color: #fff !important; }
.order-keep--wa:hover { background: #17633E; }

/* Order page language switch (2026-10-02): English | Bahasa Melayu, top right of the page heading. */
.lang-switch { display: inline-flex; float: right; margin: 0 0 .8rem 1rem; padding: 3px; border: 1px solid var(--rule-strong); border-radius: 999px; background: var(--paper-raised); }
.lang-switch[hidden] { display: none; }
/* Shown only to buyers who arrive from the Kelabit Dictionary (?from=dictionary). */
.order-from { display: inline-flex; align-items: center; min-height: 36px; margin: 0 0 .9rem; font: 700 var(--step--1)/1.2 var(--sans); color: var(--clay); text-decoration: none; }
.order-from:hover { text-decoration: underline; }
.order-from[hidden] { display: none; }
.lang-switch button { min-height: 36px; padding: .35rem .85rem; border: 0; border-radius: 999px; background: transparent; color: var(--ink-soft);
  font: 700 var(--step--1)/1 var(--sans); cursor: pointer; }
.lang-switch button[aria-pressed="true"] { background: var(--forest); color: #fff; }
@media (max-width: 600px) { .lang-switch { float: none; display: flex; width: max-content; margin: 0 0 1rem; } }
@media print { .lang-switch { display: none !important; } }

/* 25. PRE-LAUNCH FIXES (2026-10-04, consultant review round 2 and the Owner's decisions A–H):
   the beta markings follow the gate, the home hero leads to the journal, "Who are the Kelabit" has its own page with
   a three-card teaser on Home, bigger targets for elders, a close button on word
   cards, and Copy buttons on the order page. */
/* functions/_middleware.js adds data-public to <html> when admin/access.md says "Gate: off" */
[data-public] [data-beta] { display: none !important; }

.home-hero__cta { margin-top: 1.4rem; }
.hero-btn { display: inline-flex; align-items: center; min-height: 48px; padding: .75rem 1.3rem; border-radius: 999px;
  background: var(--gold); color: var(--forest); font: 700 var(--step--1)/1.2 var(--sans); text-decoration: none;
  box-shadow: 0 10px 26px -14px rgba(0,0,0,.6); transition: background .2s ease, transform .2s ease; }
.hero-btn:hover { background: #F2C46A; color: var(--forest); transform: translateY(-1px); }
.home-hero p.home-hero__cta { max-width: none; }

.primer--teaser .doors { padding-bottom: 0; }
@media (min-width: 900px) { .doors--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.primer--page { border-top: 0; padding-top: 0; }
.primer--page .krow { scroll-margin-top: calc(var(--head-h) + 1rem); }

/* Targets for elders (AC-02, PD-03): 44 px where the layout allows; where a bar's height must not change (the
   journal's Reading bar, 2026-10-02), the tap area grows invisibly instead. */
.legal__toc a { min-height: 44px; }
.lang-switch button { min-height: 44px; }
.toc-toggle, .parallel__tab { position: relative; }
.toc-toggle::after, .parallel__tab::after { content: ""; position: absolute; inset: -7px -3px; }

.kw-pop { padding-right: 2.6rem; }
.kw-pop__x { position: absolute; top: 0; right: 0; width: 44px; height: 44px; border: 0; background: none; color: #f2efe8;
  font: 400 1.5rem/1 var(--sans); cursor: pointer; opacity: .8; }
.kw-pop__x:hover, .kw-pop__x:focus-visible { opacity: 1; }

.copy-btn { margin-left: .5rem; min-height: 36px; padding: .3rem .8rem; border: 1px solid var(--rule-strong); border-radius: 999px;
  background: var(--paper-raised); color: var(--river); font: 700 var(--step--2)/1 var(--sans); letter-spacing: .02em;
  cursor: pointer; vertical-align: middle; position: relative; }
.copy-btn::after { content: ""; position: absolute; inset: -4px -2px; }
.copy-btn.is-done { background: var(--river-deep); border-color: var(--river-deep); color: #fff; }
@media print { .copy-btn, .kw-pop__x { display: none !important; } }

/* 26. GALLERY ALBUMS (2026-10-04): one row and "Show all N photographs" (site.js, "Gallery albums"). */
.gal-photo[hidden] { display: none !important; }
.gal-set.is-collapsed .gal-grid { position: relative; padding-bottom: 0; }
.gal-more { display: flex; align-items: center; justify-content: center; gap: .5rem; width: 100%; min-height: 48px; margin: .9rem 0 .4rem;
  border: 1px solid var(--rule-strong); border-radius: 999px; background: var(--paper-raised); color: var(--river-deep);
  font: 700 var(--step--1)/1 var(--sans); letter-spacing: .02em; cursor: pointer; transition: border-color .2s ease, background .2s ease; }
.gal-more:hover { border-color: var(--river); background: #fff; }
.gal-more[hidden] { display: none; }
@media (min-width: 760px) { .gal-more { width: auto; margin-inline: auto; padding: 0 1.6rem; } }

/* 27. PAGE TOPS WITH AN EMBLEM (2026-10-09, Owner's choice: option 5 with the rattan mat). The plain page tops
   (Events, Who are the Kelabit, Publications, Journals, Gallery) carry a small drawing in the beadwork diamond
   beside the kicker, over a faint woven-mat pattern that fades out behind the title. The mat is a twill: strips
   pass over and under each other so the weave makes rings of stepped diamonds round a coral centre. Markup:
   <section class="shell page-head page-head--mat"> and, inside the kicker, <span class="emblem emblem--events"
   aria-hidden="true"></span> (guide 03). The emblems are events, people, publications, journals, gallery, and contact (2026-10-10). */
main:has(> .page-head--mat) { overflow-x: clip; }   /* the mat runs edge to edge; this stops a sideways scroll */
.page-head--mat { position: relative; isolation: isolate; padding-bottom: clamp(1.25rem, 3vh, 2rem); }
.page-head--mat::before { content: ""; position: absolute; z-index: -1; top: 0; bottom: 0; left: calc(50% - 50vw); right: calc(50% - 50vw); opacity: .28;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='112' height='112'%3E%3Cpath d='M3.5 0.3v6.4M3.5 21.3v6.4M3.5 28.3v6.4M3.5 49.3v6.4M3.5 56.3v6.4M3.5 63.3v6.4M3.5 84.3v6.4M3.5 91.3v6.4M10.5 14.3v6.4M10.5 21.3v6.4M10.5 42.3v6.4M10.5 49.3v6.4M10.5 63.3v6.4M10.5 70.3v6.4M10.5 91.3v6.4M10.5 98.3v6.4M17.5 7.3v6.4M17.5 14.3v6.4M17.5 35.3v6.4M17.5 42.3v6.4M17.5 70.3v6.4M17.5 77.3v6.4M17.5 98.3v6.4M17.5 105.3v6.4M24.5 0.3v6.4M24.5 7.3v6.4M24.5 28.3v6.4M24.5 35.3v6.4M24.5 56.3v6.4M24.5 77.3v6.4M24.5 84.3v6.4M24.5 105.3v6.4M31.5 0.3v6.4M31.5 21.3v6.4M31.5 28.3v6.4M31.5 49.3v6.4M31.5 56.3v6.4M31.5 63.3v6.4M31.5 84.3v6.4M31.5 91.3v6.4M38.5 14.3v6.4M38.5 21.3v6.4M38.5 42.3v6.4M38.5 49.3v6.4M38.5 63.3v6.4M38.5 70.3v6.4M38.5 91.3v6.4M38.5 98.3v6.4M45.5 7.3v6.4M45.5 14.3v6.4M45.5 35.3v6.4M45.5 42.3v6.4M45.5 70.3v6.4M45.5 77.3v6.4M45.5 98.3v6.4M45.5 105.3v6.4M52.5 0.3v6.4M52.5 7.3v6.4M52.5 28.3v6.4M52.5 35.3v6.4M52.5 77.3v6.4M52.5 84.3v6.4M52.5 105.3v6.4M59.5 0.3v6.4M59.5 21.3v6.4M59.5 28.3v6.4M59.5 84.3v6.4M59.5 91.3v6.4M66.5 0.3v6.4M66.5 7.3v6.4M66.5 28.3v6.4M66.5 35.3v6.4M66.5 77.3v6.4M66.5 84.3v6.4M66.5 105.3v6.4M73.5 7.3v6.4M73.5 14.3v6.4M73.5 35.3v6.4M73.5 42.3v6.4M73.5 70.3v6.4M73.5 77.3v6.4M73.5 98.3v6.4M73.5 105.3v6.4M80.5 14.3v6.4M80.5 21.3v6.4M80.5 42.3v6.4M80.5 49.3v6.4M80.5 63.3v6.4M80.5 70.3v6.4M80.5 91.3v6.4M80.5 98.3v6.4M87.5 0.3v6.4M87.5 21.3v6.4M87.5 28.3v6.4M87.5 49.3v6.4M87.5 56.3v6.4M87.5 63.3v6.4M87.5 84.3v6.4M87.5 91.3v6.4M94.5 0.3v6.4M94.5 7.3v6.4M94.5 28.3v6.4M94.5 35.3v6.4M94.5 56.3v6.4M94.5 77.3v6.4M94.5 84.3v6.4M94.5 105.3v6.4M101.5 7.3v6.4M101.5 14.3v6.4M101.5 35.3v6.4M101.5 42.3v6.4M101.5 70.3v6.4M101.5 77.3v6.4M101.5 98.3v6.4M101.5 105.3v6.4M108.5 14.3v6.4M108.5 21.3v6.4M108.5 42.3v6.4M108.5 49.3v6.4M108.5 63.3v6.4M108.5 70.3v6.4M108.5 91.3v6.4M108.5 98.3v6.4' stroke='%239A4A27' stroke-width='4'/%3E%3Cpath d='M0.3 10.5h6.4M0.3 17.5h6.4M0.3 38.5h6.4M0.3 45.5h6.4M0.3 73.5h6.4M0.3 80.5h6.4M0.3 101.5h6.4M0.3 108.5h6.4M7.3 3.5h6.4M7.3 10.5h6.4M7.3 31.5h6.4M7.3 38.5h6.4M7.3 59.5h6.4M7.3 80.5h6.4M7.3 87.5h6.4M7.3 108.5h6.4M14.3 3.5h6.4M14.3 24.5h6.4M14.3 31.5h6.4M14.3 52.5h6.4M14.3 59.5h6.4M14.3 66.5h6.4M14.3 87.5h6.4M14.3 94.5h6.4M21.3 17.5h6.4M21.3 24.5h6.4M21.3 45.5h6.4M21.3 52.5h6.4M21.3 66.5h6.4M21.3 73.5h6.4M21.3 94.5h6.4M21.3 101.5h6.4M28.3 10.5h6.4M28.3 17.5h6.4M28.3 38.5h6.4M28.3 45.5h6.4M28.3 73.5h6.4M28.3 80.5h6.4M28.3 101.5h6.4M28.3 108.5h6.4M35.3 3.5h6.4M35.3 10.5h6.4M35.3 31.5h6.4M35.3 38.5h6.4M35.3 59.5h6.4M35.3 80.5h6.4M35.3 87.5h6.4M35.3 108.5h6.4M42.3 3.5h6.4M42.3 24.5h6.4M42.3 31.5h6.4M42.3 52.5h6.4M42.3 59.5h6.4M42.3 66.5h6.4M42.3 87.5h6.4M42.3 94.5h6.4M49.3 17.5h6.4M49.3 24.5h6.4M49.3 45.5h6.4M49.3 52.5h6.4M49.3 66.5h6.4M49.3 73.5h6.4M49.3 94.5h6.4M49.3 101.5h6.4M56.3 10.5h6.4M56.3 17.5h6.4M56.3 38.5h6.4M56.3 45.5h6.4M56.3 73.5h6.4M56.3 80.5h6.4M56.3 101.5h6.4M56.3 108.5h6.4M63.3 17.5h6.4M63.3 24.5h6.4M63.3 45.5h6.4M63.3 52.5h6.4M63.3 66.5h6.4M63.3 73.5h6.4M63.3 94.5h6.4M63.3 101.5h6.4M70.3 3.5h6.4M70.3 24.5h6.4M70.3 31.5h6.4M70.3 52.5h6.4M70.3 59.5h6.4M70.3 66.5h6.4M70.3 87.5h6.4M70.3 94.5h6.4M77.3 3.5h6.4M77.3 10.5h6.4M77.3 31.5h6.4M77.3 38.5h6.4M77.3 59.5h6.4M77.3 80.5h6.4M77.3 87.5h6.4M77.3 108.5h6.4M84.3 10.5h6.4M84.3 17.5h6.4M84.3 38.5h6.4M84.3 45.5h6.4M84.3 73.5h6.4M84.3 80.5h6.4M84.3 101.5h6.4M84.3 108.5h6.4M91.3 17.5h6.4M91.3 24.5h6.4M91.3 45.5h6.4M91.3 52.5h6.4M91.3 66.5h6.4M91.3 73.5h6.4M91.3 94.5h6.4M91.3 101.5h6.4M98.3 3.5h6.4M98.3 24.5h6.4M98.3 31.5h6.4M98.3 52.5h6.4M98.3 59.5h6.4M98.3 66.5h6.4M98.3 87.5h6.4M98.3 94.5h6.4M105.3 3.5h6.4M105.3 10.5h6.4M105.3 31.5h6.4M105.3 38.5h6.4M105.3 59.5h6.4M105.3 80.5h6.4M105.3 87.5h6.4M105.3 108.5h6.4' stroke='%23B59D6E' stroke-width='4'/%3E%3Cpath d='M49.5 56.5h6v6h-6zM56.5 49.5h6v6h-6zM56.5 56.5h6v6h-6zM56.5 63.5h6v6h-6zM63.5 56.5h6v6h-6z' fill='%23C7472F'/%3E%3C/svg%3E") 0 0 / 112px repeat;
  -webkit-mask-image: linear-gradient(205deg, #000 0%, rgba(0,0,0,.45) 35%, transparent 68%); mask-image: linear-gradient(205deg, #000 0%, rgba(0,0,0,.45) 35%, transparent 68%); }
.page-head--mat::after { content: ""; position: absolute; z-index: -1; bottom: 0; height: 1px; left: calc(50% - 50vw); right: calc(50% - 50vw); background: var(--rule); }
/* 2026-10-20 (Owner: a different mat for different pages). Four more weaves beside the twill: only the picture
   changes, so the colours, the .28 strength, the fade and the slide-in above and in section 29 stay the same.
   Who are the Kelabit and Contact keep the twill; each other page is named below (Stories, Events and Gallery moved to
   the weaves of 2026-10-21, below). A new page may choose one with
   a second class on its <section>, e.g. "shell page-head page-head--mat page-head--plain" (guide 05). Plain,
   basketweave and herringbone add one coral bead per repeat, as the twill and the lattice have. */
.page-head--plain::before {   /* plain weave: over one, under one */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='112' height='112'%3E%3Crect x='60' y='60' width='6' height='6' fill='%23C7472F'/%3E%3C/svg%3E"),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='28'%3E%3Cpath d='M1 0h12v14H1zM15 14h12v14H15z' fill='%239A4A27'/%3E%3Cpath d='M14 1h14v12H14zM0 15h14v12H0z' fill='%23B59D6E'/%3E%3C/svg%3E");
  background-size: 112px 112px, 28px 28px; }
#main-publications .page-head--mat::before, #main-order .page-head--mat::before, .page-head--basket::before {   /* basketweave: strips in pairs */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='128' height='128'%3E%3Crect x='69' y='69' width='6' height='6' fill='%23C7472F'/%3E%3C/svg%3E"),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32'%3E%3Cpath d='M1 0h6v16H1zM9 0h6v16H9zM17 16h6v16h-6zM25 16h6v16h-6z' fill='%239A4A27'/%3E%3Cpath d='M16 1h16v6H16zM16 9h16v6H16zM0 17h16v6H0zM0 25h16v6H0z' fill='%23B59D6E'/%3E%3C/svg%3E");
  background-size: 128px 128px, 32px 32px; }
.page-head--herringbone::before {   /* herringbone twill: zigzag rows of short strips */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='128' height='112'%3E%3Crect x='45' y='53' width='6' height='6' fill='%23C7472F'/%3E%3C/svg%3E"),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='16'%3E%3Cg fill='none' stroke-width='5' stroke-dasharray='7 2'%3E%3Cpath d='M-1 -8 16 0 33 -8M-1 8 16 16 33 8' stroke='%23B59D6E'/%3E%3Cpath d='M-1 0 16 8 33 0M-1 16 16 24 33 16' stroke='%239A4A27'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 128px 112px, 32px 16px; }
.page-head--lattice::before {   /* rattan lattice: split strips crossing, a coral bead in each gap */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32'%3E%3Cg fill='none'%3E%3Cpath d='M-2 -2 34 34' stroke='%239A4A27' stroke-width='5'/%3E%3Cpath d='M-2 -2 34 34' stroke='%23F6EFE3' stroke-width='1'/%3E%3Cpath d='M-2 34 34 -2' stroke='%23B59D6E' stroke-width='5'/%3E%3Cpath d='M-2 34 34 -2' stroke='%23F6EFE3' stroke-width='1'/%3E%3C/g%3E%3Cg fill='%23C7472F'%3E%3Ccircle cx='16' cy='0' r='2.2'/%3E%3Ccircle cx='0' cy='16' r='2.2'/%3E%3Ccircle cx='32' cy='16' r='2.2'/%3E%3Ccircle cx='16' cy='32' r='2.2'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 32px 32px; }
/* 2026-10-21 (Owner: three weaves drawn after the Designer's weaving sheet, "just maintain the weaving"). Stories
   has a bias twill with green-dyed strips, Events a chevron and Gallery a rattan cane with open octagons. These three
   carry no coral bead. Same colours, strength, fade and slide-in as the other mats; a new page may choose one with
   page-head--dyed, page-head--chevron or page-head--cane (guide 05). */
#main-journals .page-head--mat::before, .page-head--dyed::before {   /* bias twill: natural strips one way, green and clay the other */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='64' height='64'%3E%3Cpath d='M63.6 1.2 78.8 16.4 72.4 22.8 57.2 7.6ZM47.6 1.2 62.8 16.4 56.4 22.8 41.2 7.6ZM31.6 1.2 46.8 16.4 40.4 22.8 25.2 7.6ZM63.6 33.2 78.8 48.4 72.4 54.8 57.2 39.6ZM15.6 1.2 30.8 16.4 24.4 22.8 9.2 7.6ZM47.6 33.2 62.8 48.4 56.4 54.8 41.2 39.6ZM-0.4 1.2 14.8 16.4 8.4 22.8 -6.8 7.6ZM31.6 33.2 46.8 48.4 40.4 54.8 25.2 39.6ZM15.6 33.2 30.8 48.4 24.4 54.8 9.2 39.6ZM-0.4 33.2 14.8 48.4 8.4 54.8 -6.8 39.6Z' fill='%23B59D6E'/%3E%3Cpath d='M0.4 -14.8 -14.8 0.4 -8.4 6.8 6.8 -8.4ZM32.4 -14.8 17.2 0.4 23.6 6.8 38.8 -8.4ZM0.4 17.2 -14.8 32.4 -8.4 38.8 6.8 23.6ZM56.4 -6.8 49.2 0.4 55.6 6.8 62.8 -0.4ZM32.4 17.2 17.2 32.4 23.6 38.8 38.8 23.6ZM0.4 49.2 -14.8 64.4 -8.4 70.8 6.8 55.6ZM64.4 17.2 49.2 32.4 55.6 38.8 70.8 23.6ZM32.4 49.2 17.2 64.4 23.6 70.8 38.8 55.6ZM64.4 49.2 49.2 64.4 55.6 70.8 70.8 55.6Z' fill='%239A4A27'/%3E%3Cpath d='M16.4 -14.8 1.2 0.4 7.6 6.8 22.8 -8.4ZM48.4 -14.8 33.2 0.4 39.6 6.8 54.8 -8.4ZM16.4 17.2 1.2 32.4 7.6 38.8 22.8 23.6ZM48.4 17.2 33.2 32.4 39.6 38.8 54.8 23.6ZM16.4 49.2 1.2 64.4 7.6 70.8 22.8 55.6ZM48.4 49.2 33.2 64.4 39.6 70.8 54.8 55.6Z' fill='%23234539'/%3E%3C/svg%3E");
  background-size: 64px 64px; }
#main-events .page-head--mat::before, .page-head--chevron::before {   /* chevron: the twill turns every four rows */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='56'%3E%3Cpath d='M0.42 0.84 13.58 0.84 13.58 6.16 0.42 6.16ZM0.42 7.84 6.58 7.84 6.58 13.16 0.42 13.16ZM21.42 7.84 27.58 7.84 27.58 13.16 21.42 13.16ZM14.42 14.84 27.58 14.84 27.58 20.16 14.42 20.16ZM7.42 21.84 20.58 21.84 20.58 27.16 7.42 27.16ZM0.42 28.84 13.58 28.84 13.58 34.16 0.42 34.16ZM7.42 35.84 20.58 35.84 20.58 41.16 7.42 41.16ZM14.42 42.84 27.58 42.84 27.58 48.16 14.42 48.16ZM0.42 49.84 6.58 49.84 6.58 55.16 0.42 55.16ZM21.42 49.84 27.58 49.84 27.58 55.16 21.42 55.16Z' fill='%23B59D6E'/%3E%3Cpath d='M0.84 14.42 0.84 27.58 6.16 27.58 6.16 14.42ZM0.84 35.42 0.84 48.58 6.16 48.58 6.16 35.42ZM7.84 7.42 7.84 20.58 13.16 20.58 13.16 7.42ZM7.84 42.42 7.84 55.58 13.16 55.58 13.16 42.42ZM14.84 0.42 14.84 13.58 20.16 13.58 20.16 0.42ZM14.84 28.42 14.84 34.58 20.16 34.58 20.16 28.42ZM14.84 49.42 14.84 55.58 20.16 55.58 20.16 49.42ZM21.84 0.42 21.84 6.58 27.16 6.58 27.16 0.42ZM21.84 21.42 21.84 41.58 27.16 41.58 27.16 21.42Z' fill='%239A4A27'/%3E%3C/svg%3E");
  background-size: 28px 56px; }
#main-gallery .page-head--mat::before, .page-head--cane::before {   /* rattan cane: paired strips and diagonals round open octagons */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='28'%3E%3Cpath d='M-2.4 0V28M2.4 0V28M25.6 0V28M30.4 0V28M0 -2.4H28M0 2.4H28M0 25.6H28M0 30.4H28' stroke='%239A4A27' stroke-width='2.4'/%3E%3Cpath d='M-14 0L14 28M14 0L42 28M14 0L-14 28M42 0L14 28' stroke='%23B59D6E' stroke-width='2.2'/%3E%3C/svg%3E");
  background-size: 28px 28px; }
/* 2026-10-10 (Owner: a heading sitting right on the band's line looks untidy; 3rem below it was too much; a photo or
   card may overlap it). Below an emblem band: a photo or card rises over the line by --lap, and a heading starts
   --gap below it. The band grows by --lap at the bottom so its own words keep their distance from the card. */
.page { --lap: clamp(1rem, 2vw, 1.5rem); --gap: clamp(1.25rem, 2vw, 1.5rem); }
.page-head--mat:has(+ :is(.primer--page, .pubs, .journal-list, .contact-grid)) { padding-bottom: calc(clamp(1.25rem, 3vh, 2rem) + var(--lap)); }
.page-head--mat + .primer--page { padding-top: var(--gap); }                                   /* People: the heading */
.page-head--mat + .primer--page > .krow:first-child .krow__media { margin-top: calc(-1 * (var(--gap) + var(--lap))); }   /* its photo */
@media (max-width: 899px) { .page-head--mat + .primer--page > .krow:first-child .krow__media { position: relative; top: auto; } }   /* drawn over the band where it is not sticky */
.page-head--mat + :is(.pubs, .journal-list, .contact-grid) { position: relative; padding-top: 0; margin-top: calc(-1 * var(--lap)); }
.page-head--mat + .gal-cover { padding-top: var(--gap); }   /* Gallery: on phones its heading comes first, so it keeps clear of the line */
.page-head--mat + .events > .events__h:first-child { margin-top: var(--gap); }                 /* Events: "Coming up" */
.page-head--mat .eyebrow { display: flex; align-items: center; gap: .9rem; margin-bottom: .75rem; }
.emblem { display: block; flex: none; width: clamp(2.75rem, 2.5rem + 1vw, 3.5rem); aspect-ratio: 1; background: no-repeat center / contain;
  filter: drop-shadow(0 6px 8px rgba(35,69,57,.18)); }
.emblem--events { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64'%3E%3Cpath d='M32 2 62 32 32 62 2 32Z' fill='%23234539'/%3E%3Cpath d='M32 7.5 56.5 32 32 56.5 7.5 32Z' fill='none' stroke='%23E8B14E' stroke-opacity='.55'/%3E%3Cg transform='translate(18 18) scale(.875)' fill='none' stroke='%23E8B14E' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='6' y='8' width='20' height='17' rx='2'/%3E%3Cpath d='M6 13h20M11 5v5M21 5v5'/%3E%3Cpath d='M16 15.5l3 3-3 3-3-3z' fill='%23E8B14E'/%3E%3C/g%3E%3C/svg%3E"); }
.emblem--people { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64'%3E%3Cpath d='M32 2 62 32 32 62 2 32Z' fill='%23234539'/%3E%3Cpath d='M32 7.5 56.5 32 32 56.5 7.5 32Z' fill='none' stroke='%23E8B14E' stroke-opacity='.55'/%3E%3Cg transform='translate(18 18) scale(.875)' fill='none' stroke='%23E8B14E' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 14 16 6l13 8M6 13v6h20v-6M9 19v7M14 19v7M18 19v7M23 19v7M4 23h24'/%3E%3C/g%3E%3C/svg%3E"); }
.emblem--publications { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64'%3E%3Cpath d='M32 2 62 32 32 62 2 32Z' fill='%23234539'/%3E%3Cpath d='M32 7.5 56.5 32 32 56.5 7.5 32Z' fill='none' stroke='%23E8B14E' stroke-opacity='.55'/%3E%3Cg transform='translate(18 18) scale(.875)' fill='none' stroke='%23E8B14E' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M16 9c-4-3-8-3-12-2v17c4-1 8-1 12 2 4-3 8-3 12-2V7c-4-1-8-1-12 2zM16 9v17'/%3E%3C/g%3E%3C/svg%3E"); }
.emblem--journals { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64'%3E%3Cpath d='M32 2 62 32 32 62 2 32Z' fill='%23234539'/%3E%3Cpath d='M32 7.5 56.5 32 32 56.5 7.5 32Z' fill='none' stroke='%23E8B14E' stroke-opacity='.55'/%3E%3Cg transform='translate(18 18) scale(.875)' fill='none' stroke='%23E8B14E' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 17q13 6 26-3M5 17.6q11 2.4 22-3M14 11v5M10 8l6 11M4 25q3-2 6 0t6 0 6 0 6 0'/%3E%3Ccircle cx='14' cy='9' r='1.6'/%3E%3C/g%3E%3C/svg%3E"); }
.emblem--gallery { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64'%3E%3Cpath d='M32 2 62 32 32 62 2 32Z' fill='%23234539'/%3E%3Cpath d='M32 7.5 56.5 32 32 56.5 7.5 32Z' fill='none' stroke='%23E8B14E' stroke-opacity='.55'/%3E%3Cg transform='translate(18 18) scale(.875)' fill='none' stroke='%23E8B14E' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='5' y='8' width='22' height='16' rx='1.5'/%3E%3Cpath d='M7 22l6-7 4 4 3-3 5 6'/%3E%3Cpath d='M21 10.5l2 2-2 2-2-2z' fill='%23E8B14E'/%3E%3C/g%3E%3C/svg%3E"); }
.emblem--contact { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64'%3E%3Cpath d='M32 2 62 32 32 62 2 32Z' fill='%23234539'/%3E%3Cpath d='M32 7.5 56.5 32 32 56.5 7.5 32Z' fill='none' stroke='%23E8B14E' stroke-opacity='.55'/%3E%3Cg transform='translate(18 18) scale(.875)' fill='none' stroke='%23E8B14E' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='4' y='8' width='24' height='16' rx='2'/%3E%3Cpath d='M4.5 9.5 14 16.5M27.5 9.5 18 16.5'/%3E%3Cpath d='M16 15l3 3-3 3-3-3z' fill='%23E8B14E'/%3E%3C/g%3E%3C/svg%3E"); }   /* an envelope sealed with a bead (Contact, 2026-10-10) */
@media print { .page-head--mat::before, .page-head--mat::after, .emblem { display: none !important; } }

/* 28. ORAL HISTORY, THE MOVING WAVE (2026-10-09, Owner: "make the audio wave move, or play/pause"). site.js replaces
   the still picture with bars that rise and fall like a voice, and adds a round play/pause button at the right.
   It moves on arrival, except for people whose device asks for less motion; they can press play. */
.oral-hero__wave.is-live { display: flex; align-items: center; gap: 5.5px; overflow: hidden; background: none; transition: opacity .4s ease; }
.oral-hero__wave.is-live i { flex: none; width: 5px; height: var(--h); border-radius: 3px; background: var(--gold); transform-origin: 50% 50%;
  animation: oral-voice var(--d) ease-in-out var(--dl) infinite alternate; animation-play-state: paused; }
.oral-hero.is-playing .oral-hero__wave.is-live { opacity: .75; }
.oral-hero.is-playing .oral-hero__wave.is-live i { animation-play-state: running; }
@keyframes oral-voice { from { transform: scaleY(var(--lo)); } to { transform: scaleY(1); } }
.oral-wave__btn { position: absolute; z-index: 2; right: var(--bleed); bottom: calc(clamp(1.4rem, 3vw, 2.2rem) + 6px); display: grid; place-items: center;
  width: 44px; height: 44px; padding: 0; border: 1px solid rgba(232,177,78,.6); border-radius: 50%; background: #1F3D33; color: var(--gold);
  cursor: pointer; transition: background .2s ease, border-color .2s ease; }
.oral-wave__btn:hover { background: rgba(232,177,78,.18); border-color: var(--gold); }
.oral-wave__btn:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
.oral-wave__btn svg { width: 18px; height: 18px; }
@media (prefers-reduced-motion: reduce) { .oral-hero.is-chosen .oral-hero__wave.is-live i { animation-duration: var(--d) !important; } }
@media print { .oral-wave__btn { display: none !important; } .oral-hero__wave.is-live i { animation: none; } }

/* 29. GENTLE MOTION (2026-10-09, Owner: "do all six recommended ones"). Six small touches, all position and fade
   only, all switched off when the device asks for less motion (the finished page shows at once):
   1 pages fade into each other (browsers that support it; others load as before); 2 the emblem page tops settle
   in; 3 sections rise into view on every page (site.js, section 8); 4 cards and buttons answer a touch; 5 the About
   timeline draws itself; 6 the About figures and the Events "days to go" count (site.js, "Motion, part 2"). */
@media (prefers-reduced-motion: no-preference) {
  /* 1. Page to page: the old page fades out, the new one rises in; the header stays put. */
  @view-transition { navigation: auto; }
  .masthead { view-transition-name: masthead; }
  /* 2026-10-09: made quick after the Owner found page changes sluggish: a 0.15 s cross-fade, both pages at once,
     no delay and no rise (it was 0.18 s out, then 0.34 s in after a pause). */
  ::view-transition-group(*) { animation-duration: .15s; }
  ::view-transition-old(root) { animation: vt-out .12s ease-out both; }
  ::view-transition-new(root) { animation: fade-in .15s ease-out both; }
  @keyframes vt-out { to { opacity: 0; } }

  /* 2. The emblem page tops: the mat slides in, the diamond turns into place, the words rise. Once, under a second. */
  /* The title and lead never start fully transparent: browsers time a page's main paint (LCP) from when its biggest
     text is visible, and these pages have no photo above the fold. */
  /* 2026-10-09: quicker and with no waiting, so the words are readable at once: only the mat and the diamond move. */
  .page-head--mat::before { animation: mat-in .4s ease-out both; }
  .page-head--mat .emblem { animation: emblem-in .35s cubic-bezier(.3, 1.4, .4, 1) both; }
  @keyframes mat-in { from { opacity: 0; translate: 16px 0; } }
  @keyframes emblem-in { from { opacity: 0; rotate: -45deg; scale: .4; } }

  /* 4. Cards answer a touch: links that are cards lift under the pointer; cards and buttons press in when tapped;
     a trailing arrow (site.js wraps it in .arw) nudges forward. */
  @media (any-hover: hover) {
    .pub-card, .events-invite, .pubs__invite { transition: border-color .2s ease, background-color .2s ease, translate .3s cubic-bezier(.2, .7, .2, 1), box-shadow .3s ease; }
    .pub-card:hover, .events-invite:hover, .pubs__invite:hover { translate: 0 -3px; box-shadow: 0 16px 30px -22px rgba(35,69,57,.55); }
  }
  :is(.door, .disc, .about-door, .pub-card, .events-invite, .pubs__invite, .gal-album, .hero-btn, .about-thanks__btn, .support-band__btn,
      .pub-feature__btn, .pub-print__btn, .pub-feature__ribbon, .buy-card__btn, .contact-form__send, .gal-more, .sitefoot__btn, .order-keep):active { scale: .98; }
  .arw { display: inline-block; transition: translate .25s cubic-bezier(.2, .7, .2, 1); }
  a:hover .arw, a:focus-visible .arw, button:hover .arw { translate: 3px 0; }

  /* 5. The About timeline: the gold line grows downwards and each year appears in turn (site.js adds the classes). */
  .about-tl.tl-draw::before { transform-origin: 50% 0; transition: transform 1.2s cubic-bezier(0, 0, .38, .9); }
  .about-tl.tl-draw:not(.is-in)::before { transform: scaleY(0); }
  .about-tl.tl-draw:not(.is-in) .about-tl__ev { opacity: 0; }
  .about-tl.tl-draw.is-in .about-tl__ev { animation: reveal-in .45s cubic-bezier(0, 0, .38, .9) calc(var(--i, 0) * .12s + .1s) backwards; }
  .about-tl.tl-draw.is-in .about-tl__dot { animation: tl-dot .35s cubic-bezier(.3, 1.6, .4, 1) calc(var(--i, 0) * .12s + .1s) backwards; }
  @keyframes tl-dot { from { scale: 0; } }

  /* 6. Counting numbers keep their width steady while they change. */
  .is-counting { font-variant-numeric: tabular-nums; }
}

/* 30. MOTION, ROUND TWO (2026-10-09, Owner: "like all of these"). Timings follow NN/g and IBM Carbon: open in 0.2 s,
   close in 0.15 s, feedback near 0.1 s; slow down on the way in, speed up on the way out. Where the device asks for
   less motion, the same moments become a short fade with no movement (Apple HIG, WebKit), instead of a jump.
   A menus open and close smoothly (browsers without `transition-behavior` simply show and hide them, as before);
   B a Kelabit word's meaning grows from the word; C photos fade in as they arrive (now section 31); D the photo viewer
   opens from the photo and shrinks back to it (site.js); E form errors slide in, the wrong field glows once, a
   sent form draws a tick; F the shimmers run three times, then rest (WCAG 2.2.2), in their own sections above;
   G reduce motion gets fades; H "Show all photographs" fades the rest of the album in (site.js). */
@keyframes fade-in { from { opacity: 0; } }
@keyframes drop-in { from { opacity: 0; translate: 0 -6px; } }
@keyframes pop-in { from { opacity: 0; scale: .94; } }
@keyframes field-ring { from { box-shadow: 0 0 0 0 rgba(199,71,47,.45); } to { box-shadow: 0 0 0 10px rgba(199,71,47,0); } }
@keyframes tick-draw { from { stroke-dashoffset: 40; } }

/* A. The closed state is see-through, so a menu can fade; it is still display:none, as before. */
.nav__menu, .textsize__menu { transition: opacity .15s cubic-bezier(.2, 0, 1, .9), translate .15s cubic-bezier(.2, 0, 1, .9), display .15s allow-discrete; }
.nav__group:not([data-open="true"]) .nav__menu, .textsize__menu[hidden] { opacity: 0; }
.nav__group[data-open="true"] .nav__menu, .textsize__menu:not([hidden]) { transition-duration: .2s; transition-timing-function: cubic-bezier(0, 0, .38, .9); }
@starting-style { .nav__group[data-open="true"] .nav__menu, .textsize__menu:not([hidden]) { opacity: 0; } }
@media (max-width: 860px) {
  .nav { transition: opacity .15s cubic-bezier(.2, 0, 1, .9), translate .15s cubic-bezier(.2, 0, 1, .9), display .15s allow-discrete; }
  .nav:not([data-open="true"]) { opacity: 0; }
  .nav[data-open="true"] { transition-duration: .2s; transition-timing-function: cubic-bezier(0, 0, .38, .9); }
  @starting-style { .nav[data-open="true"] { opacity: 0; } }
}

/* E. The tick on a sent form (site.js adds the drawing; it shows still when motion is reduced). */
.done-tick { display: block; width: 48px; height: 48px; margin: 0 0 .7rem; }
.done-tick circle { fill: none; stroke: var(--river); stroke-width: 2.5; }
.done-tick path { fill: none; stroke: var(--forest); stroke-width: 3.5; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 40; }

@media (prefers-reduced-motion: no-preference) {
  .nav__group:not([data-open="true"]) .nav__menu, .textsize__menu[hidden] { translate: 0 -6px; }
  @starting-style { .nav__group[data-open="true"] .nav__menu, .textsize__menu:not([hidden]) { translate: 0 -8px; } }
  @media (max-width: 860px) {
    .nav:not([data-open="true"]) { translate: 0 -6px; }
    @starting-style { .nav[data-open="true"] { translate: 0 -8px; } }
  }
  /* B */ .kw-pop { animation: pop-in .16s cubic-bezier(0, 0, .38, .9) both; }
  /* C is now section 31, 5: the photo fades in over its rattan-mat bed (2026-10-09). */
  /* D */ .lightbox[data-open="true"] { animation: fade-in .25s ease both; }
  /* E */ .contact-form__error:not([hidden]) { animation: drop-in .2s cubic-bezier(0, 0, .38, .9) both; }
          .contact-form [aria-invalid="true"] { animation: field-ring .9s ease-out 1; }
          :is(#contact-done, #order-done):not([hidden]) { animation: fade-in .25s ease both; }
          :is(#contact-done, #order-done):not([hidden]) .done-tick path { animation: tick-draw .45s cubic-bezier(0, 0, .38, .9) .15s both; }
  /* H */ .gal-photo.is-new { animation: fade-in .3s ease both; animation-delay: calc(var(--i, 0) * 40ms); }
}

/* G. Reduce motion: fades instead of jumps. These beat the site-wide "no animation" rule at the top of the file,
   and none of them moves anything. */
@media (prefers-reduced-motion: reduce) {
  @view-transition { navigation: auto; }
  ::view-transition-group(*) { animation-duration: .12s; }
  ::view-transition-old(root) { animation: vt-out .1s linear both; }
  ::view-transition-new(root) { animation: fade-in .12s linear both; }
  @keyframes vt-out { to { opacity: 0; } }
  .nav__menu, .textsize__menu { transition-property: opacity, display !important; transition-duration: .12s !important; }
  .nav { transition-property: opacity, display !important; transition-duration: .12s !important; }
  .kw-pop, .lightbox[data-open="true"] { animation: fade-in .15s linear both !important; }
}

/* 31. LOADING (2026-10-09, Owner's choice: options 3, 5 and 8 of the loading proposals). Three pieces, none of
   which ever hides words that are already there. The script that drives them is inline in the page head
   (templates/base.html), so it works from the first paint without waiting for site.js. Without JavaScript none
   of this appears. Guide 13, "Movement on the pages".
   3 The bead thread: if a page is still loading after half a second, beads along the foot of the header fill in
     (gold, every fourth clay) as the first screen's photos arrive, then the thread fades. --load runs 0 to 1.
   5 Photo beds: until a photo arrives, its space shows the rattan mat with a beadwork diamond; the diamond
     breathes while the photo is on screen, and the photo fades in when it lands.
   8 The journal's opening card: a green title card with a longboat on the river and a count of the opening
     photos. Once per visit; only on a page whose front matter has "opening" (today the Meri'it journal). */

/* 3. The bead thread sits on the header's bottom hairline. */
.mh-thread { position: absolute; left: 0; right: 0; bottom: -4.5px; height: 8px; pointer-events: none;
  opacity: 0; visibility: hidden; transition: opacity .5s ease .2s, visibility 0s .7s;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='8'%3E%3Cpath d='M12 .8 15.2 4 12 7.2 8.8 4Z' fill='%23C9BB98'/%3E%3C/svg%3E") repeat-x 0 0 / 24px 8px; }
.mh-thread::after { content: ""; position: absolute; top: 0; bottom: 0; left: 0;
  width: calc(var(--load, 0) * 100%); width: round(down, calc(var(--load, 0) * 100%), 24px);
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='96' height='8'%3E%3Cg fill='%23E8B14E'%3E%3Cpath d='M12 .5 15.5 4 12 7.5 8.5 4Z'/%3E%3Cpath d='M36 .5 39.5 4 36 7.5 32.5 4Z'/%3E%3Cpath d='M60 .5 63.5 4 60 7.5 56.5 4Z'/%3E%3C/g%3E%3Cpath d='M84 .5 87.5 4 84 7.5 80.5 4Z' fill='%23C0673B'/%3E%3C/svg%3E") repeat-x 0 0 / 96px 8px;
  transition: width .35s ease-out; }
.is-loading .mh-thread { opacity: 1; visibility: visible; transition: none; }

/* 5. Photo beds. Every photograph on the site is opaque (checked 2026-10-09), so the bed is hidden the moment the
   photo paints; it is also removed once the photo has arrived, so a photo that fails shows its words only. */
.js main img:not(.ph-done) {
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Cpath d='M16 1 31 16 16 31 1 16Z' fill='%23234539'/%3E%3Cpath d='M16 6.5 25.5 16 16 25.5 6.5 16Z' fill='%23E8B14E'/%3E%3Cpath d='M16 11.5 20.5 16 16 20.5 11.5 16Z' fill='%23C7472F'/%3E%3C/svg%3E") no-repeat 50% 50% / 24px 24px,
    linear-gradient(rgba(237, 228, 211, .74), rgba(237, 228, 211, .74)), url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='112' height='112'%3E%3Cpath d='M3.5 0.3v6.4M3.5 21.3v6.4M3.5 28.3v6.4M3.5 49.3v6.4M3.5 56.3v6.4M3.5 63.3v6.4M3.5 84.3v6.4M3.5 91.3v6.4M10.5 14.3v6.4M10.5 21.3v6.4M10.5 42.3v6.4M10.5 49.3v6.4M10.5 63.3v6.4M10.5 70.3v6.4M10.5 91.3v6.4M10.5 98.3v6.4M17.5 7.3v6.4M17.5 14.3v6.4M17.5 35.3v6.4M17.5 42.3v6.4M17.5 70.3v6.4M17.5 77.3v6.4M17.5 98.3v6.4M17.5 105.3v6.4M24.5 0.3v6.4M24.5 7.3v6.4M24.5 28.3v6.4M24.5 35.3v6.4M24.5 56.3v6.4M24.5 77.3v6.4M24.5 84.3v6.4M24.5 105.3v6.4M31.5 0.3v6.4M31.5 21.3v6.4M31.5 28.3v6.4M31.5 49.3v6.4M31.5 56.3v6.4M31.5 63.3v6.4M31.5 84.3v6.4M31.5 91.3v6.4M38.5 14.3v6.4M38.5 21.3v6.4M38.5 42.3v6.4M38.5 49.3v6.4M38.5 63.3v6.4M38.5 70.3v6.4M38.5 91.3v6.4M38.5 98.3v6.4M45.5 7.3v6.4M45.5 14.3v6.4M45.5 35.3v6.4M45.5 42.3v6.4M45.5 70.3v6.4M45.5 77.3v6.4M45.5 98.3v6.4M45.5 105.3v6.4M52.5 0.3v6.4M52.5 7.3v6.4M52.5 28.3v6.4M52.5 35.3v6.4M52.5 77.3v6.4M52.5 84.3v6.4M52.5 105.3v6.4M59.5 0.3v6.4M59.5 21.3v6.4M59.5 28.3v6.4M59.5 84.3v6.4M59.5 91.3v6.4M66.5 0.3v6.4M66.5 7.3v6.4M66.5 28.3v6.4M66.5 35.3v6.4M66.5 77.3v6.4M66.5 84.3v6.4M66.5 105.3v6.4M73.5 7.3v6.4M73.5 14.3v6.4M73.5 35.3v6.4M73.5 42.3v6.4M73.5 70.3v6.4M73.5 77.3v6.4M73.5 98.3v6.4M73.5 105.3v6.4M80.5 14.3v6.4M80.5 21.3v6.4M80.5 42.3v6.4M80.5 49.3v6.4M80.5 63.3v6.4M80.5 70.3v6.4M80.5 91.3v6.4M80.5 98.3v6.4M87.5 0.3v6.4M87.5 21.3v6.4M87.5 28.3v6.4M87.5 49.3v6.4M87.5 56.3v6.4M87.5 63.3v6.4M87.5 84.3v6.4M87.5 91.3v6.4M94.5 0.3v6.4M94.5 7.3v6.4M94.5 28.3v6.4M94.5 35.3v6.4M94.5 56.3v6.4M94.5 77.3v6.4M94.5 84.3v6.4M94.5 105.3v6.4M101.5 7.3v6.4M101.5 14.3v6.4M101.5 35.3v6.4M101.5 42.3v6.4M101.5 70.3v6.4M101.5 77.3v6.4M101.5 98.3v6.4M101.5 105.3v6.4M108.5 14.3v6.4M108.5 21.3v6.4M108.5 42.3v6.4M108.5 49.3v6.4M108.5 63.3v6.4M108.5 70.3v6.4M108.5 91.3v6.4M108.5 98.3v6.4' stroke='%239A4A27' stroke-width='4'/%3E%3Cpath d='M0.3 10.5h6.4M0.3 17.5h6.4M0.3 38.5h6.4M0.3 45.5h6.4M0.3 73.5h6.4M0.3 80.5h6.4M0.3 101.5h6.4M0.3 108.5h6.4M7.3 3.5h6.4M7.3 10.5h6.4M7.3 31.5h6.4M7.3 38.5h6.4M7.3 59.5h6.4M7.3 80.5h6.4M7.3 87.5h6.4M7.3 108.5h6.4M14.3 3.5h6.4M14.3 24.5h6.4M14.3 31.5h6.4M14.3 52.5h6.4M14.3 59.5h6.4M14.3 66.5h6.4M14.3 87.5h6.4M14.3 94.5h6.4M21.3 17.5h6.4M21.3 24.5h6.4M21.3 45.5h6.4M21.3 52.5h6.4M21.3 66.5h6.4M21.3 73.5h6.4M21.3 94.5h6.4M21.3 101.5h6.4M28.3 10.5h6.4M28.3 17.5h6.4M28.3 38.5h6.4M28.3 45.5h6.4M28.3 73.5h6.4M28.3 80.5h6.4M28.3 101.5h6.4M28.3 108.5h6.4M35.3 3.5h6.4M35.3 10.5h6.4M35.3 31.5h6.4M35.3 38.5h6.4M35.3 59.5h6.4M35.3 80.5h6.4M35.3 87.5h6.4M35.3 108.5h6.4M42.3 3.5h6.4M42.3 24.5h6.4M42.3 31.5h6.4M42.3 52.5h6.4M42.3 59.5h6.4M42.3 66.5h6.4M42.3 87.5h6.4M42.3 94.5h6.4M49.3 17.5h6.4M49.3 24.5h6.4M49.3 45.5h6.4M49.3 52.5h6.4M49.3 66.5h6.4M49.3 73.5h6.4M49.3 94.5h6.4M49.3 101.5h6.4M56.3 10.5h6.4M56.3 17.5h6.4M56.3 38.5h6.4M56.3 45.5h6.4M56.3 73.5h6.4M56.3 80.5h6.4M56.3 101.5h6.4M56.3 108.5h6.4M63.3 17.5h6.4M63.3 24.5h6.4M63.3 45.5h6.4M63.3 52.5h6.4M63.3 66.5h6.4M63.3 73.5h6.4M63.3 94.5h6.4M63.3 101.5h6.4M70.3 3.5h6.4M70.3 24.5h6.4M70.3 31.5h6.4M70.3 52.5h6.4M70.3 59.5h6.4M70.3 66.5h6.4M70.3 87.5h6.4M70.3 94.5h6.4M77.3 3.5h6.4M77.3 10.5h6.4M77.3 31.5h6.4M77.3 38.5h6.4M77.3 59.5h6.4M77.3 80.5h6.4M77.3 87.5h6.4M77.3 108.5h6.4M84.3 10.5h6.4M84.3 17.5h6.4M84.3 38.5h6.4M84.3 45.5h6.4M84.3 73.5h6.4M84.3 80.5h6.4M84.3 101.5h6.4M84.3 108.5h6.4M91.3 17.5h6.4M91.3 24.5h6.4M91.3 45.5h6.4M91.3 52.5h6.4M91.3 66.5h6.4M91.3 73.5h6.4M91.3 94.5h6.4M91.3 101.5h6.4M98.3 3.5h6.4M98.3 24.5h6.4M98.3 31.5h6.4M98.3 52.5h6.4M98.3 59.5h6.4M98.3 66.5h6.4M98.3 87.5h6.4M98.3 94.5h6.4M105.3 3.5h6.4M105.3 10.5h6.4M105.3 31.5h6.4M105.3 38.5h6.4M105.3 59.5h6.4M105.3 80.5h6.4M105.3 87.5h6.4M105.3 108.5h6.4' stroke='%23B59D6E' stroke-width='4'/%3E%3Cpath d='M49.5 56.5h6v6h-6zM56.5 49.5h6v6h-6zM56.5 56.5h6v6h-6zM56.5 63.5h6v6h-6zM63.5 56.5h6v6h-6z' fill='%23C7472F'/%3E%3C/svg%3E") 0 0 / 56px 56px, var(--paper-sunk); }
.js main img.ph-near:not(.ph-done) { animation: ph-breathe 1.8s ease-in-out infinite; }
@keyframes ph-breathe { 50% { background-size: 30px 30px, auto, 56px 56px; } }
main img.ph-in { animation: ph-in .45s cubic-bezier(0, 0, .38, .9); }
@keyframes ph-in { from { opacity: .25; } }

/* 8. The opening card. Shown only with JavaScript, and not again in the same visit. */
.opening { display: none; }
.js .opening { position: fixed; inset: 0; z-index: 100; display: flex; align-items: center; justify-content: center;
  padding: 24px max(24px, env(safe-area-inset-right)) 24px max(24px, env(safe-area-inset-left));
  background: var(--forest); color: #F3EBDC; isolation: isolate; transition: opacity .55s ease, visibility 0s .55s; }
.js.opening-seen .opening { display: none; }
.js.opening-done .opening { opacity: 0; visibility: hidden; pointer-events: none; }
.opening::before { content: ""; position: absolute; inset: 0; z-index: -1; opacity: .07; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='112' height='112'%3E%3Cpath d='M3.5 0.3v6.4M3.5 21.3v6.4M3.5 28.3v6.4M3.5 49.3v6.4M3.5 56.3v6.4M3.5 63.3v6.4M3.5 84.3v6.4M3.5 91.3v6.4M10.5 14.3v6.4M10.5 21.3v6.4M10.5 42.3v6.4M10.5 49.3v6.4M10.5 63.3v6.4M10.5 70.3v6.4M10.5 91.3v6.4M10.5 98.3v6.4M17.5 7.3v6.4M17.5 14.3v6.4M17.5 35.3v6.4M17.5 42.3v6.4M17.5 70.3v6.4M17.5 77.3v6.4M17.5 98.3v6.4M17.5 105.3v6.4M24.5 0.3v6.4M24.5 7.3v6.4M24.5 28.3v6.4M24.5 35.3v6.4M24.5 56.3v6.4M24.5 77.3v6.4M24.5 84.3v6.4M24.5 105.3v6.4M31.5 0.3v6.4M31.5 21.3v6.4M31.5 28.3v6.4M31.5 49.3v6.4M31.5 56.3v6.4M31.5 63.3v6.4M31.5 84.3v6.4M31.5 91.3v6.4M38.5 14.3v6.4M38.5 21.3v6.4M38.5 42.3v6.4M38.5 49.3v6.4M38.5 63.3v6.4M38.5 70.3v6.4M38.5 91.3v6.4M38.5 98.3v6.4M45.5 7.3v6.4M45.5 14.3v6.4M45.5 35.3v6.4M45.5 42.3v6.4M45.5 70.3v6.4M45.5 77.3v6.4M45.5 98.3v6.4M45.5 105.3v6.4M52.5 0.3v6.4M52.5 7.3v6.4M52.5 28.3v6.4M52.5 35.3v6.4M52.5 77.3v6.4M52.5 84.3v6.4M52.5 105.3v6.4M59.5 0.3v6.4M59.5 21.3v6.4M59.5 28.3v6.4M59.5 84.3v6.4M59.5 91.3v6.4M66.5 0.3v6.4M66.5 7.3v6.4M66.5 28.3v6.4M66.5 35.3v6.4M66.5 77.3v6.4M66.5 84.3v6.4M66.5 105.3v6.4M73.5 7.3v6.4M73.5 14.3v6.4M73.5 35.3v6.4M73.5 42.3v6.4M73.5 70.3v6.4M73.5 77.3v6.4M73.5 98.3v6.4M73.5 105.3v6.4M80.5 14.3v6.4M80.5 21.3v6.4M80.5 42.3v6.4M80.5 49.3v6.4M80.5 63.3v6.4M80.5 70.3v6.4M80.5 91.3v6.4M80.5 98.3v6.4M87.5 0.3v6.4M87.5 21.3v6.4M87.5 28.3v6.4M87.5 49.3v6.4M87.5 56.3v6.4M87.5 63.3v6.4M87.5 84.3v6.4M87.5 91.3v6.4M94.5 0.3v6.4M94.5 7.3v6.4M94.5 28.3v6.4M94.5 35.3v6.4M94.5 56.3v6.4M94.5 77.3v6.4M94.5 84.3v6.4M94.5 105.3v6.4M101.5 7.3v6.4M101.5 14.3v6.4M101.5 35.3v6.4M101.5 42.3v6.4M101.5 70.3v6.4M101.5 77.3v6.4M101.5 98.3v6.4M101.5 105.3v6.4M108.5 14.3v6.4M108.5 21.3v6.4M108.5 42.3v6.4M108.5 49.3v6.4M108.5 63.3v6.4M108.5 70.3v6.4M108.5 91.3v6.4M108.5 98.3v6.4' stroke='%239A4A27' stroke-width='4'/%3E%3Cpath d='M0.3 10.5h6.4M0.3 17.5h6.4M0.3 38.5h6.4M0.3 45.5h6.4M0.3 73.5h6.4M0.3 80.5h6.4M0.3 101.5h6.4M0.3 108.5h6.4M7.3 3.5h6.4M7.3 10.5h6.4M7.3 31.5h6.4M7.3 38.5h6.4M7.3 59.5h6.4M7.3 80.5h6.4M7.3 87.5h6.4M7.3 108.5h6.4M14.3 3.5h6.4M14.3 24.5h6.4M14.3 31.5h6.4M14.3 52.5h6.4M14.3 59.5h6.4M14.3 66.5h6.4M14.3 87.5h6.4M14.3 94.5h6.4M21.3 17.5h6.4M21.3 24.5h6.4M21.3 45.5h6.4M21.3 52.5h6.4M21.3 66.5h6.4M21.3 73.5h6.4M21.3 94.5h6.4M21.3 101.5h6.4M28.3 10.5h6.4M28.3 17.5h6.4M28.3 38.5h6.4M28.3 45.5h6.4M28.3 73.5h6.4M28.3 80.5h6.4M28.3 101.5h6.4M28.3 108.5h6.4M35.3 3.5h6.4M35.3 10.5h6.4M35.3 31.5h6.4M35.3 38.5h6.4M35.3 59.5h6.4M35.3 80.5h6.4M35.3 87.5h6.4M35.3 108.5h6.4M42.3 3.5h6.4M42.3 24.5h6.4M42.3 31.5h6.4M42.3 52.5h6.4M42.3 59.5h6.4M42.3 66.5h6.4M42.3 87.5h6.4M42.3 94.5h6.4M49.3 17.5h6.4M49.3 24.5h6.4M49.3 45.5h6.4M49.3 52.5h6.4M49.3 66.5h6.4M49.3 73.5h6.4M49.3 94.5h6.4M49.3 101.5h6.4M56.3 10.5h6.4M56.3 17.5h6.4M56.3 38.5h6.4M56.3 45.5h6.4M56.3 73.5h6.4M56.3 80.5h6.4M56.3 101.5h6.4M56.3 108.5h6.4M63.3 17.5h6.4M63.3 24.5h6.4M63.3 45.5h6.4M63.3 52.5h6.4M63.3 66.5h6.4M63.3 73.5h6.4M63.3 94.5h6.4M63.3 101.5h6.4M70.3 3.5h6.4M70.3 24.5h6.4M70.3 31.5h6.4M70.3 52.5h6.4M70.3 59.5h6.4M70.3 66.5h6.4M70.3 87.5h6.4M70.3 94.5h6.4M77.3 3.5h6.4M77.3 10.5h6.4M77.3 31.5h6.4M77.3 38.5h6.4M77.3 59.5h6.4M77.3 80.5h6.4M77.3 87.5h6.4M77.3 108.5h6.4M84.3 10.5h6.4M84.3 17.5h6.4M84.3 38.5h6.4M84.3 45.5h6.4M84.3 73.5h6.4M84.3 80.5h6.4M84.3 101.5h6.4M84.3 108.5h6.4M91.3 17.5h6.4M91.3 24.5h6.4M91.3 45.5h6.4M91.3 52.5h6.4M91.3 66.5h6.4M91.3 73.5h6.4M91.3 94.5h6.4M91.3 101.5h6.4M98.3 3.5h6.4M98.3 24.5h6.4M98.3 31.5h6.4M98.3 52.5h6.4M98.3 59.5h6.4M98.3 66.5h6.4M98.3 87.5h6.4M98.3 94.5h6.4M105.3 3.5h6.4M105.3 10.5h6.4M105.3 31.5h6.4M105.3 38.5h6.4M105.3 59.5h6.4M105.3 80.5h6.4M105.3 87.5h6.4M105.3 108.5h6.4' stroke='%23B59D6E' stroke-width='4'/%3E%3Cpath d='M49.5 56.5h6v6h-6zM56.5 49.5h6v6h-6zM56.5 56.5h6v6h-6zM56.5 63.5h6v6h-6zM63.5 56.5h6v6h-6z' fill='%23C7472F'/%3E%3C/svg%3E") 0 0 / 112px 112px; }
.opening__in { width: min(100%, 26rem); display: flex; flex-direction: column; align-items: flex-start; gap: 18px; }
.opening__kicker { margin: 0; font: 700 11px/1.4 var(--sans); letter-spacing: .18em; text-transform: uppercase; color: var(--gold); }
.opening__title { margin: -6px 0 0; font: 500 clamp(2rem, 1.6rem + 2vw, 2.75rem)/1.08 var(--serif); letter-spacing: -.01em; color: #fff; text-wrap: balance; }
.opening__river { position: relative; width: 240px; max-width: 100%; height: 40px; }
.opening__river svg { display: block; }
.opening__boat { position: absolute; top: 0; left: 0; offset-path: path("M0 22C40 6 70 36 120 20S200 8 240 22"); offset-distance: 8%;
  offset-rotate: auto; translate: 0 -4px; }
.opening__count { margin: 0; font: 600 13px/1.4 var(--sans); color: #D9CFB8; font-variant-numeric: tabular-nums; }
.opening__go { margin-top: 4px; min-height: 44px; padding: 0 18px; border: 0; border-radius: 3px; cursor: pointer;
  font: 700 15px/1 var(--sans); color: var(--forest); background: var(--gold); }
.opening__go:hover { background: #F0C46E; }
.opening__go:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }

@media (prefers-reduced-motion: no-preference) {
  .opening__boat { animation: opening-drift 5s cubic-bezier(.3, .1, .4, 1) .2s both; }
  @keyframes opening-drift { from { offset-distance: 2%; } to { offset-distance: 94%; } }
  /* the words are never fully transparent, so the card is never an empty green screen */
  .js .opening__in > * { animation: opening-in .45s cubic-bezier(0, 0, .38, .9) both; }
  @keyframes opening-in { from { opacity: .3; translate: 0 6px; } }
}
@media (prefers-reduced-motion: reduce) {
  .mh-thread, .mh-thread::after, .js .opening { transition: none; }
  .js main img.ph-near:not(.ph-done), main img.ph-in { animation: none; }
  .opening__boat { offset-distance: 50%; }
}

/* 32. THE SUPPORTERS' DIAMOND (2026-10-10, Owner's choice: proposal 5, "nested diamonds"). On the About page's
   thank-you card, site.js replaces the small still diamond (.about-thanks__mark, kept for no JavaScript) with a
   button holding five diamonds one inside another: gold, forest, gold, clay, pale gold. Each turns a quarter turn
   at its own pace (20, 15, 12, 10 and 7.5 s), every other one the other way; a quarter turn brings a diamond back
   to where it started, so they drift into stars and squares and all line up again once a minute. A sheen crosses
   the outer one every 6 s. It turns only while .is-turning and on screen (not .is-away); a press pauses or plays
   it. Reduced motion: still until pressed (.is-chosen), as the Oral History wave. Guide 13. */
.about-thanks__gem { position: relative; display: grid; place-items: center; width: 92px; height: 92px; margin: -.5rem auto .5rem; padding: 0;
  border: 0; border-radius: 50%; background: none; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.about-thanks__gem:focus-visible { outline: 3px solid var(--river); outline-offset: 2px; }
.about-thanks__nest { position: relative; width: 76px; height: 76px; }
.about-thanks__nest b { position: absolute; left: 50%; top: 50%; border-radius: 3px; transform: translate(-50%, -50%) rotate(45deg);
  animation: thanks-quarter var(--t) linear infinite; animation-play-state: paused; }
.about-thanks__nest b:nth-child(1) { --t: 20s; width: 54px; height: 54px; overflow: hidden; box-shadow: 0 6px 14px -6px rgba(120,80,20,.6);
  background: linear-gradient(135deg, #8A6420 0%, #E9C46A 20%, #FFF0B8 34%, #C9952F 50%, #F3D27A 68%, #9C7426 86%, #E2B755 100%); }
.about-thanks__nest b:nth-child(2) { --t: 15s; width: 42px; height: 42px; background: var(--forest); animation-direction: reverse; }
.about-thanks__nest b:nth-child(3) { --t: 12s; width: 31px; height: 31px;
  background: linear-gradient(135deg, #8A6420 0%, #E9C46A 20%, #FFF0B8 34%, #C9952F 50%, #F3D27A 68%, #9C7426 86%, #E2B755 100%); }
.about-thanks__nest b:nth-child(4) { --t: 10s; width: 20px; height: 20px; background: #C0673B; animation-direction: reverse; }
.about-thanks__nest b:nth-child(5) { --t: 7.5s; width: 9px; height: 9px; border-radius: 1.5px; background: #FFF0B8; }
.about-thanks__nest b:nth-child(1)::after { content: ""; position: absolute; inset: 0; animation: thanks-glint 6s ease-in-out infinite; animation-play-state: paused;
  background: linear-gradient(90deg, transparent 38%, rgba(255,255,255,.7) 50%, transparent 62%) no-repeat; background-size: 300% 100%; background-position: 150% 0; }
.about-thanks.is-turning:not(.is-away) .about-thanks__nest b,
.about-thanks.is-turning:not(.is-away) .about-thanks__nest b::after { animation-play-state: running; }
@keyframes thanks-quarter { from { transform: translate(-50%, -50%) rotate(45deg); } to { transform: translate(-50%, -50%) rotate(135deg); } }
@keyframes thanks-glint { 0%, 50% { background-position: 150% 0; } 85%, 100% { background-position: -50% 0; } }
/* the small round mark shows pause or play: on hover or keyboard focus, and whenever it is paused */
.about-thanks__state { position: absolute; right: 4px; bottom: 6px; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%;
  background: rgba(35, 69, 57, .88); color: #fff; opacity: 0; transition: opacity .2s ease; pointer-events: none; }
.about-thanks__state svg { width: 12px; height: 12px; }
.about-thanks__gem:hover .about-thanks__state, .about-thanks__gem:focus-visible .about-thanks__state,
.about-thanks:not(.is-turning) .about-thanks__state { opacity: 1; }
@media (prefers-reduced-motion: reduce) {
  .about-thanks.is-chosen .about-thanks__nest b { animation-duration: var(--t) !important; }
  .about-thanks.is-chosen .about-thanks__nest b::after { animation-duration: 6s !important; }
}
@media print { .about-thanks__nest b, .about-thanks__nest b::after { animation: none; } .about-thanks__state { display: none; } }

/* 33. CONTACT PAGE (2026-10-10, Owner's choice: proposal 2 of ten, "woven mat with side panel"). The emblem page top
   with an envelope emblem; below it the form sits in a raised card that rises over the band's line (--lap, section
   27), with name and email side by side. A side column beside it: email, what the form is for, and the printed
   dictionary. On phones the card comes first and the side column follows it. */
/* 2026-10-20 (Owner: too much space on Contact). No padding at the bottom: the support band below already keeps its
   own distance, and the two together left about 145px of empty paper. The message box starts at about five lines
   on a computer (it was seven) and still grows as people type (site.js). */
.contact-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 2.5rem; align-items: start; }
@media (min-width: 601px) { .contact-card .contact-form textarea { height: 9rem; } }
.contact-card { background: var(--paper-raised); border: 1px solid var(--rule); border-radius: 18px; padding: 2.2rem 2.4rem .6rem;
  box-shadow: 0 30px 60px -40px rgba(40,30,20,.45); }
.contact-card > h2 { font-size: var(--step-2); margin: 0 0 .4rem; }
.contact-card .contact-form { margin-bottom: 1.8rem; }
.contact-card .contact-form__done { margin: 1rem 0 1.8rem; }
.contact-form__two { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1rem; }
.contact-form__two > div { display: grid; gap: .4rem; align-content: start; }
.contact-side { display: grid; padding-top: calc(var(--lap) + var(--gap)); }
.contact-side__item { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: .2rem 1rem; padding: 1.1rem 0; border-bottom: 1px solid var(--rule); }
.contact-side__item:first-child { padding-top: 0; }
.contact-side__icon { grid-row: span 2; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: var(--river-pale); color: var(--forest); }
.contact-side h3 { margin: 0; font: 600 var(--step-0)/1.3 var(--serif); }
.contact-side p { margin: 0; font: 400 var(--step--1)/1.55 var(--sans); color: var(--ink-soft); }
.contact-side__order { margin-top: 1.2rem; padding: 1.1rem 1.3rem; border-radius: 14px; background: #F3E6C8; }
.contact-side__order p { color: var(--forest); }
@media (max-width: 860px) {
  .contact-grid { grid-template-columns: minmax(0, 1fr); gap: 1.6rem; }
  .contact-side { padding-top: 0; }
}
@media (max-width: 600px) {
  .contact-card { padding: 1.3rem 1.1rem .2rem; border-radius: 14px; }
  .contact-card > h2 { font-size: var(--step-1); }
  .contact-form__two { grid-template-columns: minmax(0, 1fr); }
  .contact-form__two > div { gap: .3rem; }
  .contact-card .contact-form textarea { height: 6.5rem; }   /* keeps Send on the first screen (2026-09-28's aim); the box grows as people type */
}
@media print { .contact-card { box-shadow: none; } .contact-side__icon { display: none; } }

/* 34. ORDER PAGE: EMBLEM TOP AND FORM CARD (2026-10-10, Owner's choice: proposal 1 of three, positioning C).
   The woven-mat page top with the book emblem, a short band (less space above the title) and the price as a chip
   under the lead. The form sits in a raised card that rides --ov up into the band, beside the book card, which
   rises with it. The English | Bahasa Melayu switch sits on the card: top right on desktop, top left on phones
   (site.js shows it; without JavaScript it stays hidden and the card keeps its normal padding). The form is split
   into three groups, each headed by a bead. On phones the book card follows the form, so the form comes first.
   How to pay sets its text beside the bank details on desktop. Markup: src/content/pages/order.html. */
#main-order { --ov: 5.5rem; }
#main-order .page-head--mat { padding-top: clamp(1.2rem, 3vh, 1.8rem); padding-bottom: calc(var(--ov) + 1.4rem); }
#main-order .page-head--mat + .order { position: relative; margin-top: calc(-1 * var(--ov)); padding-top: 0; }
#main-order .page-head--mat .eyebrow { margin-bottom: .6rem; }
#main-order .page-head--mat > p:not(.eyebrow):not(.order-chip) { margin-top: .5rem; }
.order-chip { display: inline-flex; align-items: baseline; gap: .4rem; margin: 1rem 0 0; padding: .45rem .9rem; border-radius: 999px; background: #F3E6C8;
  font: 500 var(--step--1)/1.3 var(--sans); color: var(--forest); }
.page-head .order-chip { max-width: none; margin-top: 1rem; font-size: var(--step--1); color: var(--forest); }
.order-chip b { font: 600 var(--step-0)/1 var(--serif); }
.order-main { position: relative; min-width: 0; display: grid; }
.order-main > :is(.order-form, .order-review, .order-done) { background: var(--paper-raised); border: 1px solid var(--rule); border-radius: 18px;
  padding: 1.4rem 2.2rem 2rem; box-shadow: 0 30px 60px -40px rgba(40,30,20,.45); }
.order-main > .lang-switch { position: absolute; z-index: 2; top: 1.05rem; right: 1.4rem; float: none; margin: 0; background: var(--paper); }
@media (min-width: 601px) {   /* the check, thank-you and sold-out cards open with a heading: keep it clear of the switch */
  .order-main > .order-review > :is(h2, .order-review__lead), .order-main > .order-done > h2 { margin-right: 15rem; }
}
.order-group { display: flex; align-items: center; gap: .7rem; margin: 1.6rem 0 .2rem; padding-top: 1.3rem; border-top: 1px solid var(--rule);
  font: 600 var(--step-1)/1.2 var(--serif); color: var(--forest); }
.order-group:first-child { border-top: 0; padding-top: .4rem; margin-top: 0; }
.order-group__bead { display: inline-grid; place-items: center; flex: none; width: 28px; height: 28px; border-radius: 6px; transform: rotate(45deg); background: var(--forest); }
.order-group__bead::after { content: ""; width: 9px; height: 9px; border-radius: 1px; background: var(--gold); }
.order-side { z-index: 1; }
.order-howpay__card--wide { max-width: none; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0 2.4rem; padding: 2rem 2.2rem; }
.order-howpay__card--wide > * { grid-column: 1; }
.order-howpay__card--wide > .order-bank { grid-column: 2; grid-row: 1 / span 2; margin-top: 0; }
.order-howpay__card--wide > #order-qr-src { grid-column: 2; grid-row: 3; }
@media (max-width: 899px) {
  .order-side { order: 0; }
  .order-howpay__card--wide { display: block; padding: 1.3rem; }
}
@media (max-width: 600px) {
  #main-order { --ov: 3.2rem; }
  #main-order .page-head--mat { padding-top: 1rem; padding-bottom: calc(var(--ov) + 1.1rem); }
  .page-head .order-chip { display: flex; border-radius: 12px; }
  .order-main > :is(.order-form, .order-review, .order-done) { padding: 1rem 1.1rem 1.4rem; border-radius: 14px; }
  .order-main > .lang-switch { top: .9rem; left: 1.1rem; right: auto; margin: 0; }
  .order-main:has(> .lang-switch:not([hidden])) > :is(.order-form, .order-review, .order-done) { padding-top: 4.1rem; }
  .order-group { font-size: var(--step-0); margin-top: 1.2rem; padding-top: 1rem; }
}
@media print { .order-main > :is(.order-form, .order-review, .order-done) { box-shadow: none; border: 0; padding: 0; } .order-group__bead { display: none; } }

/* 35. WOVEN CORNERS (2026-10-21, Owner: "more subtle than the header, like just a hint, showing attention to detail").
   A faint corner of weave on About only: the twill (without its coral bead) in the top-left and bottom-right corners
   of Mutang Urud's quote, and the People page twill as it is, coral centres included, in the same corners of the
   "Thank you to our supporters" card (added 2026-10-21 at the Owner's request).
   About has no woven page top above them. Half the strength of the page-top mats, and no animation. The Events
   "Coming up" card had one on the draft too; the Owner took it off before it was published, to keep the site
   simple, minimalist and professional. Add a corner only when the Owner asks for one. */
.about-quote, .about-thanks { position: relative; isolation: isolate; overflow: hidden; }
.about-quote::before, .about-thanks::before { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit;
  pointer-events: none; opacity: .14; }
.about-quote::before { background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='112' height='112'%3E%3Cpath d='M3.5 0.3v6.4M3.5 21.3v6.4M3.5 28.3v6.4M3.5 49.3v6.4M3.5 56.3v6.4M3.5 63.3v6.4M3.5 84.3v6.4M3.5 91.3v6.4M10.5 14.3v6.4M10.5 21.3v6.4M10.5 42.3v6.4M10.5 49.3v6.4M10.5 63.3v6.4M10.5 70.3v6.4M10.5 91.3v6.4M10.5 98.3v6.4M17.5 7.3v6.4M17.5 14.3v6.4M17.5 35.3v6.4M17.5 42.3v6.4M17.5 70.3v6.4M17.5 77.3v6.4M17.5 98.3v6.4M17.5 105.3v6.4M24.5 0.3v6.4M24.5 7.3v6.4M24.5 28.3v6.4M24.5 35.3v6.4M24.5 56.3v6.4M24.5 77.3v6.4M24.5 84.3v6.4M24.5 105.3v6.4M31.5 0.3v6.4M31.5 21.3v6.4M31.5 28.3v6.4M31.5 49.3v6.4M31.5 56.3v6.4M31.5 63.3v6.4M31.5 84.3v6.4M31.5 91.3v6.4M38.5 14.3v6.4M38.5 21.3v6.4M38.5 42.3v6.4M38.5 49.3v6.4M38.5 63.3v6.4M38.5 70.3v6.4M38.5 91.3v6.4M38.5 98.3v6.4M45.5 7.3v6.4M45.5 14.3v6.4M45.5 35.3v6.4M45.5 42.3v6.4M45.5 70.3v6.4M45.5 77.3v6.4M45.5 98.3v6.4M45.5 105.3v6.4M52.5 0.3v6.4M52.5 7.3v6.4M52.5 28.3v6.4M52.5 35.3v6.4M52.5 77.3v6.4M52.5 84.3v6.4M52.5 105.3v6.4M59.5 0.3v6.4M59.5 21.3v6.4M59.5 28.3v6.4M59.5 84.3v6.4M59.5 91.3v6.4M66.5 0.3v6.4M66.5 7.3v6.4M66.5 28.3v6.4M66.5 35.3v6.4M66.5 77.3v6.4M66.5 84.3v6.4M66.5 105.3v6.4M73.5 7.3v6.4M73.5 14.3v6.4M73.5 35.3v6.4M73.5 42.3v6.4M73.5 70.3v6.4M73.5 77.3v6.4M73.5 98.3v6.4M73.5 105.3v6.4M80.5 14.3v6.4M80.5 21.3v6.4M80.5 42.3v6.4M80.5 49.3v6.4M80.5 63.3v6.4M80.5 70.3v6.4M80.5 91.3v6.4M80.5 98.3v6.4M87.5 0.3v6.4M87.5 21.3v6.4M87.5 28.3v6.4M87.5 49.3v6.4M87.5 56.3v6.4M87.5 63.3v6.4M87.5 84.3v6.4M87.5 91.3v6.4M94.5 0.3v6.4M94.5 7.3v6.4M94.5 28.3v6.4M94.5 35.3v6.4M94.5 56.3v6.4M94.5 77.3v6.4M94.5 84.3v6.4M94.5 105.3v6.4M101.5 7.3v6.4M101.5 14.3v6.4M101.5 35.3v6.4M101.5 42.3v6.4M101.5 70.3v6.4M101.5 77.3v6.4M101.5 98.3v6.4M101.5 105.3v6.4M108.5 14.3v6.4M108.5 21.3v6.4M108.5 42.3v6.4M108.5 49.3v6.4M108.5 63.3v6.4M108.5 70.3v6.4M108.5 91.3v6.4M108.5 98.3v6.4' stroke='%239A4A27' stroke-width='4'/%3E%3Cpath d='M0.3 10.5h6.4M0.3 17.5h6.4M0.3 38.5h6.4M0.3 45.5h6.4M0.3 73.5h6.4M0.3 80.5h6.4M0.3 101.5h6.4M0.3 108.5h6.4M7.3 3.5h6.4M7.3 10.5h6.4M7.3 31.5h6.4M7.3 38.5h6.4M7.3 59.5h6.4M7.3 80.5h6.4M7.3 87.5h6.4M7.3 108.5h6.4M14.3 3.5h6.4M14.3 24.5h6.4M14.3 31.5h6.4M14.3 52.5h6.4M14.3 59.5h6.4M14.3 66.5h6.4M14.3 87.5h6.4M14.3 94.5h6.4M21.3 17.5h6.4M21.3 24.5h6.4M21.3 45.5h6.4M21.3 52.5h6.4M21.3 66.5h6.4M21.3 73.5h6.4M21.3 94.5h6.4M21.3 101.5h6.4M28.3 10.5h6.4M28.3 17.5h6.4M28.3 38.5h6.4M28.3 45.5h6.4M28.3 73.5h6.4M28.3 80.5h6.4M28.3 101.5h6.4M28.3 108.5h6.4M35.3 3.5h6.4M35.3 10.5h6.4M35.3 31.5h6.4M35.3 38.5h6.4M35.3 59.5h6.4M35.3 80.5h6.4M35.3 87.5h6.4M35.3 108.5h6.4M42.3 3.5h6.4M42.3 24.5h6.4M42.3 31.5h6.4M42.3 52.5h6.4M42.3 59.5h6.4M42.3 66.5h6.4M42.3 87.5h6.4M42.3 94.5h6.4M49.3 17.5h6.4M49.3 24.5h6.4M49.3 45.5h6.4M49.3 52.5h6.4M49.3 66.5h6.4M49.3 73.5h6.4M49.3 94.5h6.4M49.3 101.5h6.4M56.3 10.5h6.4M56.3 17.5h6.4M56.3 38.5h6.4M56.3 45.5h6.4M56.3 73.5h6.4M56.3 80.5h6.4M56.3 101.5h6.4M56.3 108.5h6.4M63.3 17.5h6.4M63.3 24.5h6.4M63.3 45.5h6.4M63.3 52.5h6.4M63.3 66.5h6.4M63.3 73.5h6.4M63.3 94.5h6.4M63.3 101.5h6.4M70.3 3.5h6.4M70.3 24.5h6.4M70.3 31.5h6.4M70.3 52.5h6.4M70.3 59.5h6.4M70.3 66.5h6.4M70.3 87.5h6.4M70.3 94.5h6.4M77.3 3.5h6.4M77.3 10.5h6.4M77.3 31.5h6.4M77.3 38.5h6.4M77.3 59.5h6.4M77.3 80.5h6.4M77.3 87.5h6.4M77.3 108.5h6.4M84.3 10.5h6.4M84.3 17.5h6.4M84.3 38.5h6.4M84.3 45.5h6.4M84.3 73.5h6.4M84.3 80.5h6.4M84.3 101.5h6.4M84.3 108.5h6.4M91.3 17.5h6.4M91.3 24.5h6.4M91.3 45.5h6.4M91.3 52.5h6.4M91.3 66.5h6.4M91.3 73.5h6.4M91.3 94.5h6.4M91.3 101.5h6.4M98.3 3.5h6.4M98.3 24.5h6.4M98.3 31.5h6.4M98.3 52.5h6.4M98.3 59.5h6.4M98.3 66.5h6.4M98.3 87.5h6.4M98.3 94.5h6.4M105.3 3.5h6.4M105.3 10.5h6.4M105.3 31.5h6.4M105.3 38.5h6.4M105.3 59.5h6.4M105.3 80.5h6.4M105.3 87.5h6.4M105.3 108.5h6.4' stroke='%23B59D6E' stroke-width='4'/%3E%3C/svg%3E") 0 0 / 112px repeat;
  -webkit-mask-image: radial-gradient(240px 170px at 0 0, #000, transparent), radial-gradient(240px 170px at 100% 100%, #000, transparent); mask-image: radial-gradient(240px 170px at 0 0, #000, transparent), radial-gradient(240px 170px at 100% 100%, #000, transparent); }
.about-thanks::before { background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='112' height='112'%3E%3Cpath d='M3.5 0.3v6.4M3.5 21.3v6.4M3.5 28.3v6.4M3.5 49.3v6.4M3.5 56.3v6.4M3.5 63.3v6.4M3.5 84.3v6.4M3.5 91.3v6.4M10.5 14.3v6.4M10.5 21.3v6.4M10.5 42.3v6.4M10.5 49.3v6.4M10.5 63.3v6.4M10.5 70.3v6.4M10.5 91.3v6.4M10.5 98.3v6.4M17.5 7.3v6.4M17.5 14.3v6.4M17.5 35.3v6.4M17.5 42.3v6.4M17.5 70.3v6.4M17.5 77.3v6.4M17.5 98.3v6.4M17.5 105.3v6.4M24.5 0.3v6.4M24.5 7.3v6.4M24.5 28.3v6.4M24.5 35.3v6.4M24.5 56.3v6.4M24.5 77.3v6.4M24.5 84.3v6.4M24.5 105.3v6.4M31.5 0.3v6.4M31.5 21.3v6.4M31.5 28.3v6.4M31.5 49.3v6.4M31.5 56.3v6.4M31.5 63.3v6.4M31.5 84.3v6.4M31.5 91.3v6.4M38.5 14.3v6.4M38.5 21.3v6.4M38.5 42.3v6.4M38.5 49.3v6.4M38.5 63.3v6.4M38.5 70.3v6.4M38.5 91.3v6.4M38.5 98.3v6.4M45.5 7.3v6.4M45.5 14.3v6.4M45.5 35.3v6.4M45.5 42.3v6.4M45.5 70.3v6.4M45.5 77.3v6.4M45.5 98.3v6.4M45.5 105.3v6.4M52.5 0.3v6.4M52.5 7.3v6.4M52.5 28.3v6.4M52.5 35.3v6.4M52.5 77.3v6.4M52.5 84.3v6.4M52.5 105.3v6.4M59.5 0.3v6.4M59.5 21.3v6.4M59.5 28.3v6.4M59.5 84.3v6.4M59.5 91.3v6.4M66.5 0.3v6.4M66.5 7.3v6.4M66.5 28.3v6.4M66.5 35.3v6.4M66.5 77.3v6.4M66.5 84.3v6.4M66.5 105.3v6.4M73.5 7.3v6.4M73.5 14.3v6.4M73.5 35.3v6.4M73.5 42.3v6.4M73.5 70.3v6.4M73.5 77.3v6.4M73.5 98.3v6.4M73.5 105.3v6.4M80.5 14.3v6.4M80.5 21.3v6.4M80.5 42.3v6.4M80.5 49.3v6.4M80.5 63.3v6.4M80.5 70.3v6.4M80.5 91.3v6.4M80.5 98.3v6.4M87.5 0.3v6.4M87.5 21.3v6.4M87.5 28.3v6.4M87.5 49.3v6.4M87.5 56.3v6.4M87.5 63.3v6.4M87.5 84.3v6.4M87.5 91.3v6.4M94.5 0.3v6.4M94.5 7.3v6.4M94.5 28.3v6.4M94.5 35.3v6.4M94.5 56.3v6.4M94.5 77.3v6.4M94.5 84.3v6.4M94.5 105.3v6.4M101.5 7.3v6.4M101.5 14.3v6.4M101.5 35.3v6.4M101.5 42.3v6.4M101.5 70.3v6.4M101.5 77.3v6.4M101.5 98.3v6.4M101.5 105.3v6.4M108.5 14.3v6.4M108.5 21.3v6.4M108.5 42.3v6.4M108.5 49.3v6.4M108.5 63.3v6.4M108.5 70.3v6.4M108.5 91.3v6.4M108.5 98.3v6.4' stroke='%239A4A27' stroke-width='4'/%3E%3Cpath d='M0.3 10.5h6.4M0.3 17.5h6.4M0.3 38.5h6.4M0.3 45.5h6.4M0.3 73.5h6.4M0.3 80.5h6.4M0.3 101.5h6.4M0.3 108.5h6.4M7.3 3.5h6.4M7.3 10.5h6.4M7.3 31.5h6.4M7.3 38.5h6.4M7.3 59.5h6.4M7.3 80.5h6.4M7.3 87.5h6.4M7.3 108.5h6.4M14.3 3.5h6.4M14.3 24.5h6.4M14.3 31.5h6.4M14.3 52.5h6.4M14.3 59.5h6.4M14.3 66.5h6.4M14.3 87.5h6.4M14.3 94.5h6.4M21.3 17.5h6.4M21.3 24.5h6.4M21.3 45.5h6.4M21.3 52.5h6.4M21.3 66.5h6.4M21.3 73.5h6.4M21.3 94.5h6.4M21.3 101.5h6.4M28.3 10.5h6.4M28.3 17.5h6.4M28.3 38.5h6.4M28.3 45.5h6.4M28.3 73.5h6.4M28.3 80.5h6.4M28.3 101.5h6.4M28.3 108.5h6.4M35.3 3.5h6.4M35.3 10.5h6.4M35.3 31.5h6.4M35.3 38.5h6.4M35.3 59.5h6.4M35.3 80.5h6.4M35.3 87.5h6.4M35.3 108.5h6.4M42.3 3.5h6.4M42.3 24.5h6.4M42.3 31.5h6.4M42.3 52.5h6.4M42.3 59.5h6.4M42.3 66.5h6.4M42.3 87.5h6.4M42.3 94.5h6.4M49.3 17.5h6.4M49.3 24.5h6.4M49.3 45.5h6.4M49.3 52.5h6.4M49.3 66.5h6.4M49.3 73.5h6.4M49.3 94.5h6.4M49.3 101.5h6.4M56.3 10.5h6.4M56.3 17.5h6.4M56.3 38.5h6.4M56.3 45.5h6.4M56.3 73.5h6.4M56.3 80.5h6.4M56.3 101.5h6.4M56.3 108.5h6.4M63.3 17.5h6.4M63.3 24.5h6.4M63.3 45.5h6.4M63.3 52.5h6.4M63.3 66.5h6.4M63.3 73.5h6.4M63.3 94.5h6.4M63.3 101.5h6.4M70.3 3.5h6.4M70.3 24.5h6.4M70.3 31.5h6.4M70.3 52.5h6.4M70.3 59.5h6.4M70.3 66.5h6.4M70.3 87.5h6.4M70.3 94.5h6.4M77.3 3.5h6.4M77.3 10.5h6.4M77.3 31.5h6.4M77.3 38.5h6.4M77.3 59.5h6.4M77.3 80.5h6.4M77.3 87.5h6.4M77.3 108.5h6.4M84.3 10.5h6.4M84.3 17.5h6.4M84.3 38.5h6.4M84.3 45.5h6.4M84.3 73.5h6.4M84.3 80.5h6.4M84.3 101.5h6.4M84.3 108.5h6.4M91.3 17.5h6.4M91.3 24.5h6.4M91.3 45.5h6.4M91.3 52.5h6.4M91.3 66.5h6.4M91.3 73.5h6.4M91.3 94.5h6.4M91.3 101.5h6.4M98.3 3.5h6.4M98.3 24.5h6.4M98.3 31.5h6.4M98.3 52.5h6.4M98.3 59.5h6.4M98.3 66.5h6.4M98.3 87.5h6.4M98.3 94.5h6.4M105.3 3.5h6.4M105.3 10.5h6.4M105.3 31.5h6.4M105.3 38.5h6.4M105.3 59.5h6.4M105.3 80.5h6.4M105.3 87.5h6.4M105.3 108.5h6.4' stroke='%23B59D6E' stroke-width='4'/%3E%3Cpath d='M49.5 56.5h6v6h-6zM56.5 49.5h6v6h-6zM56.5 56.5h6v6h-6zM56.5 63.5h6v6h-6zM63.5 56.5h6v6h-6z' fill='%23C7472F'/%3E%3C/svg%3E") 0 0 / 112px repeat;   /* the People page twill, coral centres and all (Owner, 2026-10-21) */
  -webkit-mask-image: radial-gradient(240px 170px at 0 0, #000, transparent), radial-gradient(240px 170px at 100% 100%, #000, transparent); mask-image: radial-gradient(240px 170px at 0 0, #000, transparent), radial-gradient(240px 170px at 100% 100%, #000, transparent); }
@media (max-width: 600px) { .about-quote::before, .about-thanks::before { -webkit-mask-image: radial-gradient(130px 100px at 0 0, #000, transparent), radial-gradient(130px 100px at 100% 100%, #000, transparent); mask-image: radial-gradient(130px 100px at 0 0, #000, transparent), radial-gradient(130px 100px at 100% 100%, #000, transparent); } }   /* smaller corners on a phone */
@media print { .about-quote::before, .about-thanks::before { display: none; } }


/* 36. TERRITORY, UP THE MERI’IT (2026-12-02, Owner's choice: proposal A of three; layout redone the same day, Owner:
   "feels all over the place"). The page follows the river the way the 2026 expedition travelled it, in four
   chapters built on one grid: words on the left, the map on the right in the same 4:3 frame, a hairline rule
   between chapters, numbered 01-04. One full-screen map viewer (site.js, "Territory map viewer"). The top reuses
   section 23's green hero and paper plate. Replaces the explorer of 2026-12-01. The maps are images, never redrawn. */
.territory-river [hidden] { display: none !important; }
a.terr-hero__plate { position: relative; display: block; transition: transform .3s ease, box-shadow .3s ease; }
a.terr-hero__plate::after, .tr-ch__plate::after { content: ""; position: absolute; right: .9rem; bottom: .9rem; width: 2.5rem; height: 2.5rem; border-radius: 50%;
  background: rgba(35,69,57,.9) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2.2' stroke-linecap='round'%3E%3Ccircle cx='10.5' cy='10.5' r='6.5'/%3E%3Cpath d='M15.5 15.5L21 21M10.5 7.5v6M7.5 10.5h6'/%3E%3C/svg%3E") center / 1.2rem no-repeat;
  box-shadow: 0 4px 14px -4px rgba(0,0,0,.45); }
a.terr-hero__plate:hover, a.terr-hero__plate:focus-visible { transform: rotate(.6deg) translateY(-3px); box-shadow: 0 36px 70px -28px rgba(0,0,0,.75), 0 2px 0 rgba(0,0,0,.08); }
.tr-start { display: inline-flex; align-items: center; gap: .55rem; min-height: 48px; margin-top: 1.6rem; padding: .75rem 1.3rem; border-radius: 999px;
  background: var(--gold); color: var(--forest); font: 700 var(--step--1)/1.2 var(--sans); text-decoration: none; }
.tr-start::after { content: ""; width: .5rem; height: .5rem; margin-top: -.25rem; border: solid currentColor; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.tr-start:hover, .tr-start:focus-visible { background: #F3C875; color: var(--forest); }
.tr-chapters { padding-block: 0 1.4rem; }
.tr-chapters::before { content: ""; display: block; border-top: 1px solid rgba(255,255,255,.16); }
.terr-hero .tr-chapters__lead { max-width: 60rem; margin: 0; padding: 1.1rem 0 .5rem; color: #C9D6CF; font: 400 var(--step-0)/1.55 var(--serif); }
.terr-hero .tr-chapters__lead b { color: #fff; font-weight: 600; }
/* the journal's chapter bar wraps to two rows on phones for its language switch; this page has none, so one row */
.territory-river .chapterbar__inner { flex-wrap: nowrap; padding-block: 0; }
.territory-river .chapterbar__now { flex: 1 1 auto; }
.tr-sec--river { padding-top: clamp(1.2rem, 3vw, 2rem) !important; }
.tr-sec { padding-top: clamp(2.8rem, 6vw, 4.6rem); scroll-margin-top: var(--stick); }
.tr-sec:last-of-type { padding-bottom: clamp(2.4rem, 5vw, 3.6rem); }
.tr-intro { max-width: 44rem; margin-bottom: clamp(1.6rem, 3.5vw, 2.4rem); }
.tr-intro h2 { margin: .3rem 0 0; font-size: var(--step-3); letter-spacing: -.025em; }
.tr-intro p:not(.eyebrow) { margin: .7rem 0 0; color: var(--ink-soft); font: 400 var(--step-1)/1.5 var(--serif); }
/* the chapters: one grid, the same every time */
.tr-river { margin: 0; padding: 0; list-style: none; }
.tr-ch { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); grid-template-areas: "text plate" "photos photos"; column-gap: clamp(1.6rem, 4vw, 3.6rem);
  align-items: start; padding-block: clamp(1.8rem, 3.5vw, 2.6rem) clamp(2.6rem, 5vw, 3.8rem); border-top: 1px solid var(--rule-strong); scroll-margin-top: var(--stick); }
.tr-ch__text { grid-area: text; }
.tr-ch__num { margin: 0 0 1.1rem; color: var(--gold); font: 500 clamp(2.6rem, 2rem + 2vw, 3.6rem)/.9 var(--serif); font-variant-numeric: lining-nums; letter-spacing: -.02em; }
.tr-ch__meta { margin: 0; color: var(--clay); font: 700 .875rem/1.35 var(--sans); letter-spacing: .08em; text-transform: uppercase; }
.tr-ch h3 { margin: .55rem 0 .8rem; font: 600 var(--step-2)/1.12 var(--serif); letter-spacing: -.02em; color: var(--forest); text-wrap: balance; }
.tr-ch__text > p:not(.tr-ch__meta):not(.tr-ch__num) { margin: 0 0 .8rem; max-width: 34rem; color: var(--ink-soft); font: 400 var(--step-0)/1.6 var(--sans); }
.tr-ch__text > .tr-ch__src { color: var(--ink-soft) !important; font-size: .9375rem !important; }
.tr-open { display: inline-flex; align-items: center; gap: .55rem; min-height: 44px; margin: .5rem 1.4rem 0 0; padding: .6rem 1.15rem; border-radius: 999px;
  background: var(--forest); color: #fff; font: 600 var(--step--1)/1.2 var(--sans); text-decoration: none; }
.tr-open::before { content: ""; width: 1rem; height: 1rem; background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round'%3E%3Ccircle cx='10.5' cy='10.5' r='6.5'/%3E%3Cpath d='M15.5 15.5L21 21M10.5 7.5v6M7.5 10.5h6'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round'%3E%3Ccircle cx='10.5' cy='10.5' r='6.5'/%3E%3Cpath d='M15.5 15.5L21 21M10.5 7.5v6M7.5 10.5h6'/%3E%3C/svg%3E") center / contain no-repeat; }
.tr-open:hover, .tr-open:focus-visible { background: var(--river); color: #fff; }
.tr-more { display: inline-flex; align-items: center; min-height: 44px; margin-top: .5rem; color: var(--river); font: 700 var(--step--1)/1.2 var(--sans); }
.tr-ch__plate { grid-area: plate; position: relative; display: block; overflow: hidden; border-radius: 6px; background: var(--paper-raised); box-shadow: 0 0 0 1px var(--rule); }
.tr-ch__plate img { display: block; box-sizing: border-box; width: 100%; height: auto; aspect-ratio: 4 / 3; padding: clamp(.6rem, 1.6vw, 1.1rem); object-fit: contain; transition: transform .5s ease; }
.tr-ch__plate--detail img { padding: 0; object-fit: cover; transform: scale(1.8); transform-origin: 64% 50%; }
.tr-tag { position: absolute; z-index: 1; top: .9rem; left: .9rem; padding: .35rem .75rem; border-radius: 999px; background: rgba(35,69,57,.9); color: #fff; font: 600 .875rem/1 var(--sans); }
.tr-ch__plate:hover img, .tr-ch__plate:focus-visible img { transform: scale(1.02); }
.tr-ch__plate--detail:hover img, .tr-ch__plate--detail:focus-visible img { transform: scale(1.84); }
.tr-photos { grid-area: photos; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--gap); margin-top: clamp(1.6rem, 3vw, 2.2rem); }
.tr-photos .figure { margin: 0; }
.tr-photos img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 6px; cursor: zoom-in; }
.tr-photos figcaption { margin: .55rem 0 0; padding: 0; color: var(--ink-soft); font: 400 .875rem/1.5 var(--sans); }
.tr-photos figcaption b { color: var(--ink); }
/* chapter 02, the Long Napir explorer (step 1 of the map explorer, issue 101): the words in the same two columns,
   then the map across the full width. On a computer the map is live in the page (OpenSeadragon); on a touch or narrow
   screen the still picture opens the full-screen viewer, so the page never catches a reader's scrolling. */
.tr-ch--explore { grid-template-areas: "text aside" "explore explore" "places places" "photos photos"; align-items: end; }
.tr-ch__aside { grid-area: aside; }
.tr-ch__aside > p { margin: 0 0 .8rem; max-width: 40rem; color: var(--ink-soft); font: 400 var(--step-0)/1.6 var(--sans); }
.tr-ch__aside > .tr-ch__src { color: var(--ink-soft); font-size: .9375rem; }
.tr-explore { grid-area: explore; position: relative; display: flex; height: clamp(480px, 74vh, 800px); margin-top: clamp(1.4rem, 3vw, 2rem);
  overflow: hidden; border-radius: 6px; background: #1B342B; box-shadow: 0 0 0 1px var(--rule), 0 24px 50px -30px rgba(20,38,31,.55); }
.tr-explore__still { position: absolute; inset: 0; display: grid; place-items: center; padding: 1rem; background: var(--paper-raised); }
.tr-explore__still img { display: block; width: 100%; height: 100%; object-fit: contain; }
.tr-explore__cta { display: none; }
.tr-explore.is-live .tr-explore__still { display: none; }
.tr-explore__stage { position: relative; display: flex; flex: 1; min-width: 0; }
.tr-explore__map { position: relative; flex: 1; min-width: 0; }
.tr-explore .tr-legend { flex: 0 0 min(340px, 32vw); border-left: 1px solid var(--rule); }
.tr-mapbar { position: absolute; z-index: 4; top: .9rem; left: .9rem; display: flex; flex-wrap: wrap; align-items: center; gap: .35rem; max-width: calc(100% - 1.8rem);
  padding: .35rem; border-radius: 999px; background: rgba(251,247,239,.96); box-shadow: 0 6px 20px -8px rgba(0,0,0,.45); }
.tr-mapbar button { appearance: none; min-width: 40px; min-height: 40px; padding: 0 .3rem; border: 0; border-radius: 999px; background: transparent; color: var(--forest);
  font: 600 .9375rem/1 var(--sans); cursor: pointer; }
.tr-mapbar [data-tr-zoom] { font-size: 1.25rem; }
.tr-mapbar .tr-mapbar__wide { padding: 0 .9rem; border: 1px solid var(--rule-strong); }
.tr-mapbar button:hover, .tr-mapbar button:focus-visible { background: var(--forest); color: #fff; }
.tr-mapbar button:disabled { opacity: .35; cursor: default; background: transparent; color: var(--forest); }
.tr-mapbar [data-tr-legend][aria-expanded="true"] { background: var(--forest); color: #fff; border-color: var(--forest); }
.tr-mapbar output { min-width: 3.4rem; text-align: center; color: var(--forest); font: 600 .875rem/1 var(--sans); font-variant-numeric: tabular-nums; }
.tr-scale { position: absolute; z-index: 4; left: .9rem; bottom: .9rem; display: flex; align-items: center; gap: .6rem; padding: .45rem .75rem;
  border-radius: 999px; background: rgba(251,247,239,.94); color: var(--forest); font: 600 .875rem/1 var(--sans); pointer-events: none; }
.tr-scale__line { display: block; height: 7px; border: 2px solid var(--forest); border-top: 0; }
.tr-maphint { position: absolute; z-index: 5; left: 50%; top: 50%; margin: 0; padding: .7rem 1.1rem; border-radius: 999px; transform: translate(-50%, -50%);
  background: rgba(20,38,31,.88); color: #fff; font: 600 .9375rem/1.2 var(--sans); white-space: nowrap; pointer-events: none; }
.tr-viewer__hint.tr-maphint { top: auto; bottom: 4.4rem; transform: translateX(-50%); }
/* OpenSeadragon's overview map, in the site's colours (its own styles are set inline, hence !important) */
.territory-river .navigator { border: 2px solid #fff !important; border-radius: 6px; background: rgba(27,52,43,.9) !important; box-shadow: 0 6px 20px -8px rgba(0,0,0,.55); margin: .9rem !important; }
.territory-river .navigator .displayregion { border: 2px solid var(--gold) !important; }
.territory-river .openseadragon-canvas:focus-visible { outline: 3px solid var(--gold); outline-offset: -3px; }
.tr-explore__map .openseadragon-canvas { cursor: grab; }
/* places on the Long Napir map (step 2, issue 104): invisible buttons over the symbols, rings when their kind is
   chosen in the legend, a card for the chosen place, "Find a place", and the list of every place under the map */
.tr-place { width: 30px; height: 30px; padding: 0; border: 0; border-radius: 50%; background: transparent; cursor: pointer; }
.tr-place:hover { box-shadow: 0 0 0 2px rgba(255,255,255,.95), 0 0 0 4px rgba(35,69,57,.55); }
.tr-place.is-on { box-shadow: 0 0 0 3px var(--coral), 0 0 0 5px rgba(255,255,255,.92); }
.tr-place.is-chosen { background: rgba(232,177,78,.22); box-shadow: 0 0 0 4px var(--gold), 0 0 0 6px #fff, 0 6px 16px rgba(0,0,0,.35); }
.tr-card { position: absolute; z-index: 6; top: .9rem; right: .9rem; width: min(300px, calc(100% - 1.8rem)); box-sizing: border-box; padding: .9rem 1rem 1rem;
  border-radius: 12px; background: var(--paper-raised); color: var(--ink); box-shadow: 0 14px 34px -12px rgba(0,0,0,.55); }
.tr-card__close { position: absolute; top: .35rem; right: .35rem; width: 40px; height: 40px; border: 0; border-radius: 50%; background: transparent; color: var(--ink-soft); font: 400 1.5rem/1 var(--sans); cursor: pointer; }
.tr-card__close:hover, .tr-card__close:focus-visible { background: var(--paper-sunk); }
.tr-card__kind { display: flex; align-items: center; gap: .55rem; margin: 0 2.4rem .35rem 0; color: var(--clay); font: 700 .8125rem/1.3 var(--sans); letter-spacing: .04em; }
.tr-card__kind .tr-sym { width: 40px; height: 22px; background-position: 0 calc(var(--i) * -22px); background-size: 40px auto; }
.tr-card__name { margin: 0; color: var(--forest); font: 600 1.45rem/1.15 var(--serif); overflow-wrap: anywhere; }
.tr-card__meta { margin: .3rem 0 0; color: var(--ink-soft); font: 400 .9375rem/1.45 var(--sans); }
.tr-card__zoom { margin-top: .8rem; min-height: 40px; padding: 0 1rem; border: 0; border-radius: 999px; background: var(--forest); color: #fff; font: 600 .9375rem/1 var(--sans); cursor: pointer; }
.tr-card__zoom:hover, .tr-card__zoom:focus-visible { background: var(--river); }
.tr-find { display: grid; gap: .35rem; margin: .9rem 0 .2rem; }
.tr-find label { color: var(--forest); font: 700 .875rem/1.3 var(--sans); }
.tr-find input { box-sizing: border-box; width: 100%; min-height: 44px; padding: 0 .8rem; border: 1px solid var(--rule-strong); border-radius: 8px; background: #fff; color: var(--ink); font: 500 1rem/1 var(--sans); }
.tr-find input:focus-visible { outline: 3px solid var(--gold); outline-offset: 1px; }
.tr-find__results { margin: .2rem 0 0; padding: .3rem; list-style: none; border: 1px solid var(--rule); border-radius: 8px; background: #fff; }
.tr-legend .tr-find__results li { display: block; min-height: 0; padding: 0; border: 0; }
.tr-find__results button { display: flex; align-items: center; gap: .7rem; width: 100%; min-height: 44px; padding: .25rem .5rem; border: 0; border-radius: 6px; background: transparent; color: var(--ink); text-align: left; cursor: pointer; }
.tr-find__results button:hover, .tr-find__results button:focus-visible { background: var(--paper-sunk); }
.tr-find__results b { display: block; color: var(--forest); font: 700 .9375rem/1.25 var(--sans); }
.tr-find__results small { display: block; color: var(--ink-faint); font: 400 .8125rem/1.3 var(--sans); }
.tr-legend .tr-find__none { padding: .5rem; color: var(--ink-soft); font: 400 .875rem/1.4 var(--sans); }
.tr-filter-head { display: flex; align-items: center; justify-content: space-between; gap: .6rem; margin-top: 1rem; }
.tr-filter-hint { margin: 0; color: var(--ink-soft); font: 400 .875rem/1.45 var(--sans); }
.tr-filter-clear { flex: none; min-height: 36px; padding: 0 .85rem; border: 1px solid var(--rule-strong); border-radius: 999px; background: transparent; color: var(--forest); font: 600 .875rem/1 var(--sans); cursor: pointer; }
.tr-legend[data-tr-places] li { padding-left: .35rem; padding-right: .35rem; }
.tr-legend li.has-filter { display: block; min-height: 0; padding: 0; }
.tr-far .tr-place { transform: scale(.6); }
.tr-filter { display: flex; align-items: center; gap: .85rem; width: 100%; min-height: 44px; padding: .15rem .35rem; border: 0; border-radius: 6px; background: transparent; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.tr-filter:hover { background: var(--paper-sunk); }
.tr-filter:focus-visible { outline: 3px solid var(--gold); outline-offset: -2px; }
.tr-filter[aria-pressed="true"] { background: rgba(199,71,47,.1); }
.tr-filter__n { flex: none; margin-left: auto; min-width: 1.9rem; padding: .2rem .45rem; border: 1px solid var(--rule-strong); border-radius: 999px; color: var(--ink-soft); font: 600 .8125rem/1.2 var(--sans); text-align: center; font-variant-numeric: tabular-nums; }
.tr-filter[aria-pressed="true"] .tr-filter__n { background: var(--coral); border-color: var(--coral); color: #fff; }
.tr-places { grid-area: places; margin-top: 1.2rem; border-top: 1px solid var(--rule-strong); border-bottom: 1px solid var(--rule-strong); }
.tr-places > summary { display: flex; align-items: center; gap: .6rem; min-height: 56px; cursor: pointer; color: var(--forest); font: 600 var(--step-0)/1.4 var(--serif); }
.tr-places__count { padding: .15rem .55rem; border-radius: 999px; background: var(--paper-sunk); color: var(--ink-soft); font: 600 .8125rem/1.3 var(--sans); font-variant-numeric: tabular-nums; }
.tr-places__in { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 1.2rem var(--gap); padding-bottom: 1.4rem; }
.tr-places__kind h4 { display: flex; align-items: center; gap: .55rem; margin: 0 0 .3rem; color: var(--clay); font: 700 .8125rem/1.3 var(--sans); letter-spacing: .04em; }
.tr-places__kind h4 .tr-sym { width: 40px; height: 22px; background-position: 0 calc(var(--i) * -22px); background-size: 40px auto; }
.tr-places__kind ul { margin: 0; padding: 0; list-style: none; }
.tr-places__kind button { display: block; width: 100%; min-height: 36px; padding: .3rem 0; border: 0; border-bottom: 1px solid var(--rule); background: transparent; color: var(--ink); font: 500 .9375rem/1.35 var(--sans); text-align: left; cursor: pointer; }
.tr-places__kind button:hover, .tr-places__kind button:focus-visible { color: var(--river); text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 700px) { .tr-card { top: .6rem; left: .6rem; right: .6rem; width: auto; } }
/* still to come: the same rules and numerals, in four columns */
.tr-later__list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--gap); margin: 0 0 2rem; padding: 0; list-style: none; }
.tr-later__list li { display: flex; flex-direction: column; gap: .35rem; padding-top: 1rem; border-top: 1px solid var(--rule-strong); color: var(--ink-soft); font: 500 .9375rem/1.4 var(--sans); }
.tr-later__list b { color: var(--ink-faint); font: 500 var(--step-2)/1 var(--serif); font-variant-numeric: lining-nums; }
.tr-later .terr-archive { margin-bottom: 2rem; }
.tr-later .events-invite { margin-top: 0; }
/* credits */
.tr-credits { border-top: 1px solid var(--rule-strong); border-bottom: 1px solid var(--rule-strong); }
.tr-credits > summary { display: flex; align-items: center; min-height: 56px; cursor: pointer; color: var(--forest); font: 600 var(--step-0)/1.4 var(--serif); }
.tr-credits__in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.6fr); gap: var(--gap); align-items: start; padding-bottom: 1.6rem; }
.tr-credits .figure { margin: 0; }
.tr-credits .figure img { display: block; width: 100%; height: auto; border-radius: 6px; cursor: zoom-in; }
.tr-credits figcaption { margin: .4rem 0 0; padding: 0; font: 400 .875rem/1.5 var(--sans); color: var(--ink-soft); }
.tr-credits__text p { margin: 0; color: var(--ink-soft); font: 400 var(--step--1)/1.6 var(--sans); }
.tr-logos { display: block; width: min(100%, 320px); height: auto; margin: 1.2rem 0 .4rem; }
/* the map viewer */
.tr-viewer { width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: #1B342B; color: #fff; overflow: hidden; }
.tr-viewer[open] { display: flex; flex-direction: column; }
.tr-viewer::backdrop { background: rgba(20,38,31,.9); }
.tr-viewer__bar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .7rem clamp(1rem, 3vw, 1.6rem); background: var(--forest); }
.tr-viewer__kind { margin: 0; color: var(--gold); font: 600 var(--step--2)/1.3 var(--sans); letter-spacing: .1em; text-transform: uppercase; }
.tr-viewer h2 { margin: .15rem 0 0; color: #fff; font: 600 var(--step-1)/1.2 var(--serif); }
.tr-viewer__bar button, .tr-viewer__foot button { appearance: none; min-width: 44px; min-height: 44px; border: 1px solid rgba(255,255,255,.35); border-radius: 999px; background: transparent; color: #fff;
  font: 600 var(--step--1)/1 var(--sans); cursor: pointer; }
.tr-viewer__bar button:hover, .tr-viewer__bar button:focus-visible, .tr-viewer__foot button:hover, .tr-viewer__foot button:focus-visible { background: #fff; color: var(--forest); }
.tr-viewer__bar button:disabled, .tr-viewer__foot button:disabled { opacity: .35; cursor: default; background: transparent; color: #fff; }
.tr-viewer__close { flex: none; font-size: 1.6rem !important; }
.tr-viewer__stage { position: relative; display: flex; flex: 1 1 auto; min-height: 0; }
.tr-viewer__actions { display: flex; flex: none; align-items: center; gap: .5rem; }
.tr-viewer__legendbtn { padding: 0 1.1rem; }
.tr-viewer__legendbtn[aria-expanded="true"] { background: #fff; color: var(--forest); }
.tr-legend { flex: 0 0 min(360px, 34vw); overflow-y: auto; overscroll-behavior: contain; padding: 1.2rem 1.4rem 1.6rem; background: var(--paper-raised); color: var(--ink); }
.tr-legend h3 { margin: 0 0 .2rem; color: var(--forest); font: 600 var(--step-1)/1.2 var(--serif); }
.tr-legend h4 { margin: 1.2rem 0 .3rem; color: var(--clay); font: 700 .8125rem/1.3 var(--sans); letter-spacing: .1em; text-transform: uppercase; }
.tr-legend ul { margin: 0; padding: 0; list-style: none; }
.tr-legend li { display: flex; align-items: center; gap: .85rem; min-height: 38px; padding: .15rem 0; border-bottom: 1px solid var(--rule); font: 400 .9375rem/1.35 var(--sans); color: var(--ink-soft); }
.tr-legend li b { display: block; color: var(--forest); font-weight: 700; }
.tr-sym { flex: none; width: 54px; height: 30px; background: url("/assets/img/territory-legend-symbols-2020.webp") 0 calc(var(--i) * -30px) / 54px auto no-repeat; }
.tr-legend__note { margin: 1rem 0 0; color: var(--ink-faint); font: 400 .875rem/1.5 var(--sans); }
.tr-viewer__port { position: relative; isolation: isolate; flex: 1 1 auto; min-width: 0; min-height: 0; background: #1B342B; }
.tr-viewer__osd { position: absolute; inset: 0; }
.tr-viewer__foot { display: flex; align-items: center; gap: .6rem 1.4rem; flex-wrap: wrap; padding: .7rem clamp(1rem, 3vw, 1.6rem) max(.7rem, env(safe-area-inset-bottom)); background: var(--forest); }
.tr-viewer__tools { display: flex; align-items: center; gap: .4rem; }
.tr-viewer__tools [data-tr-zoom] { font-size: 1.3rem; }
.tr-viewer__whole { padding: 0 1rem; }
.tr-viewer output { min-width: 3.6rem; text-align: center; font: 600 var(--step--1)/1 var(--sans); font-variant-numeric: tabular-nums; }
.tr-viewer__cap { flex: 1 1 16rem; margin: 0; color: #C9D6CF; font: 400 .9375rem/1.45 var(--sans); }
.tr-viewer__nav { display: flex; gap: .4rem; margin-left: auto; }
.tr-viewer__nav button { padding: 0 1rem; }
.tr-viewer__hint { position: absolute; left: 50%; bottom: 1.2rem; z-index: 2; margin: 0; padding: .6rem 1rem; border-radius: 999px; transform: translateX(-50%);
  background: rgba(20,38,31,.85); color: #fff; font: 600 .9375rem/1.2 var(--sans); white-space: nowrap; pointer-events: none; transition: opacity .4s ease; }
.tr-viewer__hint.is-fading { opacity: 0; }
.tr-sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
@media (max-width: 900px) {
  .tr-start { display: none; }
  .terr-hero .tr-chapters__lead { font-size: 1rem; padding-top: .9rem; }
  .tr-ch { grid-template-columns: minmax(0, 1fr); grid-template-areas: "text" "plate" "photos"; row-gap: 1.4rem; }
  .tr-ch--explore { grid-template-areas: "text" "aside" "explore" "places" "photos"; row-gap: .6rem; }
  .tr-ch--explore .tr-photos { margin-top: 1rem; }
  .tr-ch__num { margin-bottom: .8rem; }
  .tr-photos { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: .2rem; }
  .tr-later__list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tr-credits__in { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tr-credits__text { grid-column: 1 / -1; }
}
@media (max-width: 759px), (pointer: coarse) {
  .tr-explore { height: auto; aspect-ratio: 1 / 1; }
  .tr-explore__cta { position: absolute; left: 50%; bottom: 1.2rem; display: inline-flex; align-items: center; gap: .55rem; min-height: 48px; padding: 0 1.3rem;
    border-radius: 999px; transform: translateX(-50%); background: var(--forest); color: #fff; font: 600 1rem/1 var(--sans); white-space: nowrap;
    box-shadow: 0 8px 24px -8px rgba(0,0,0,.5); }
}
@media (max-width: 700px) {
  .tr-legend { position: absolute; z-index: 3; left: 0; right: 0; bottom: 0; max-height: 62%; border-radius: 16px 16px 0 0; box-shadow: 0 -12px 30px -12px rgba(0,0,0,.5); }
}
@media (max-width: 520px) {
  .tr-viewer__cap { display: none; }
  .tr-viewer__bar { flex-wrap: wrap; row-gap: .55rem; }
  .tr-viewer__bar > div:first-child { flex: 1 1 100%; }
  .tr-viewer__actions { width: 100%; }
  .tr-viewer__actions .tr-viewer__close { margin-left: auto; }
  .tr-viewer h2 { font-size: 1.2rem; }
  .tr-viewer__foot { gap: .5rem; }
  .tr-viewer__nav { width: 100%; }
  .tr-viewer__nav button { flex: 1; }
  a.terr-hero__plate::after, .tr-ch__plate::after { width: 2.2rem; height: 2.2rem; right: .6rem; bottom: .6rem; }
}
@media (prefers-reduced-motion: reduce) { a.terr-hero__plate, .tr-ch__plate img, .tr-viewer__hint { transition: none; } }
@media print { .tr-open, .tr-viewer { display: none !important; } }
