/* SnatchMyGame premium landings: shared foundation (MOCKUP).
   Used by premium/home.html (snatchmygame.com) and premium/golf.html (golf.snatchmygame.com).
   Design direction and the full class list: game/docs/PREMIUM-LANDINGS.md.

   Fonts are NOT imported here (an @import would chain a render-blocking request).
   Every page puts this in <head>, before premium.css:

   <link rel="preconnect" href="https://fonts.googleapis.com">
   <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
   <link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Anuphan:wght@300..600&family=Figtree:wght@400..600&family=Noto+Serif+Display:ital,wght@0,200..500;1,200..400&family=Noto+Serif+Thai:wght@200..500&display=swap">
*/

/* ---------------------------------------------------------------- tokens */
:root {
  color-scheme: dark;

  /* palette: a members' clubhouse at golden hour */
  --pm-pine: #0F2A20;        /* deep clubhouse green: page base, dark sections */
  --pm-pine-2: #163A2C;      /* raised surface on pine (cards, nav when solid) */
  --pm-pine-3: #21503D;      /* hover / borders on pine */
  --pm-linen: #F2ECDF;       /* cream: text on pine and film, light sections */
  --pm-linen-2: #E7DDC8;     /* parchment: secondary light surface */
  --pm-brass: #B39158;       /* brass: rules, monogram, outlines (never body text on linen) */
  --pm-brass-hi: #D8BE8B;    /* polished brass: small text and focus ring on pine */
  --pm-ink: #18231D;         /* text on linen */
  --pm-ink-2: #4B5A50;       /* secondary text on linen (>= 4.5:1) */
  --pm-mist: rgba(242, 236, 223, .72); /* secondary text on pine / film */
  --pm-line-dark: rgba(216, 190, 139, .28);  /* hairline on pine */
  --pm-line-light: rgba(24, 35, 29, .14);    /* hairline on linen */
  --pm-scrim: 10, 20, 14;    /* rgb of the soft dark scrim behind film text */

  /* type families. Latin glyphs come from the first face, Thai glyphs fall through to the Thai face. */
  --pm-serif: "Noto Serif Display", "Noto Serif Thai", "Iowan Old Style", Georgia, serif;
  --pm-sans: "Figtree", "Anuphan", system-ui, -apple-system, "Segoe UI", sans-serif;

  /* type scale (classic 11-12-14-16-18-21-24-36-48-60-72 steps, fluid at the top) */
  --pm-fs-eyebrow: .6875rem;                          /* 11px tracked caps */
  --pm-fs-small: .8125rem;                            /* 13px captions, credits */
  --pm-fs-body: 1.0625rem;                            /* 17px */
  --pm-fs-lede: clamp(1.125rem, 1rem + .45vw, 1.3125rem);         /* 18-21 */
  --pm-fs-h3: clamp(1.375rem, 1.2rem + .7vw, 1.75rem);            /* 22-28 */
  --pm-fs-h2: clamp(2rem, 1.4rem + 2.4vw, 3.5rem);                /* 32-56 */
  --pm-fs-statement: clamp(1.75rem, 1.2rem + 2.3vw, 3.25rem);     /* 28-52: film beat statements */
  --pm-fs-list: clamp(1.375rem, 1.1rem + 1.3vw, 2.25rem);         /* 22-36: film beat lists */
  --pm-fs-display: clamp(2.875rem, 1rem + 7.4vw, 7.5rem);         /* 46-120: hero headline */
  --pm-lh-display: 1.02;
  --pm-lh-heading: 1.12;
  --pm-lh-body: 1.62;
  --pm-track-eyebrow: .32em;

  /* space: 4px base */
  --pm-s1: 4px; --pm-s2: 8px; --pm-s3: 12px; --pm-s4: 16px; --pm-s5: 24px;
  --pm-s6: 32px; --pm-s7: 48px; --pm-s8: 72px; --pm-s9: 112px;
  --pm-gutter: clamp(16px, 4vw, 48px);
  --pm-section-y: clamp(96px, 12vw, 192px);
  --pm-wrap: 1200px;
  --pm-measure: 34em;
  --pm-nav-h: 64px;

  /* shape */
  --pm-r: 2px;          /* buttons, cards: engraved, not bubbly */
  --pm-r-pill: 999px;   /* only the language toggle and status chips */

  /* motion: slow and smooth */
  --pm-ease: cubic-bezier(.22, .61, .36, 1);
  --pm-ease-inout: cubic-bezier(.65, 0, .35, 1);
  --pm-t-fast: 220ms;
  --pm-t-med: 700ms;
  --pm-t-slow: 1200ms;
  --pm-rise: 18px;      /* reveal travel */
}

/* ---------------------------------------------------------------- base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--pm-pine);
  color: var(--pm-linen);
  font-family: var(--pm-sans);
  font-size: var(--pm-fs-body);
  line-height: var(--pm-lh-body);
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, video, canvas, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .22em; }
a:hover { text-decoration-color: var(--pm-brass-hi); }
h1, h2, h3, h4, p, ul, ol, figure, blockquote { margin: 0; }
ul[class], ol[class] { list-style: none; padding: 0; }
button { font: inherit; color: inherit; }
::selection { background: var(--pm-brass); color: var(--pm-pine); }
:focus-visible { outline: 2px solid var(--pm-brass-hi); outline-offset: 3px; border-radius: var(--pm-r); }
.pm-sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.pm-skip { position: absolute; left: var(--pm-s4); top: -100px; z-index: 100; background: var(--pm-linen); color: var(--pm-pine); padding: var(--pm-s2) var(--pm-s4); }
.pm-skip:focus { top: var(--pm-s4); }

/* ---------------------------------------------------------------- language: EN / TH
   Write both languages inline: <span data-l="en">Follow the drive</span><span data-l="th">…</span>
   premium.js sets <html lang> and the CSS hides the other language. */
html:not([lang="th"]) [data-l="th"],
html[lang="th"] [data-l="en"] { display: none !important; }

:lang(th) { line-height: 1.75; }
:lang(th) .pm-display, :lang(th) .pm-h2, :lang(th) .pm-h3, :lang(th) .pm-statement,
:lang(th) .pm-list, :lang(th) .pm-signoff, :lang(th) .pm-quote {
  font-family: "Noto Serif Thai", var(--pm-serif);
  line-height: 1.38;
  letter-spacing: 0;
}
:lang(th) .pm-display { line-height: 1.22; font-size: calc(var(--pm-fs-display) * .78); }
:lang(th) .pm-eyebrow, :lang(th) .pm-cta, :lang(th) .pm-status, :lang(th) .pm-mockup {
  letter-spacing: .02em; text-transform: none;
}
:lang(th) .pm-eyebrow { font-size: .8125rem; }
:lang(th) body, :lang(th) .pm-lede, :lang(th) .pm-body { font-family: "Anuphan", var(--pm-sans); }

/* ---------------------------------------------------------------- type vocabulary */
.pm-eyebrow {
  display: block;
  font-family: var(--pm-sans);
  font-size: var(--pm-fs-eyebrow);
  font-weight: 500;
  letter-spacing: var(--pm-track-eyebrow);
  text-transform: uppercase;
  line-height: 1.8;
  color: var(--pm-brass-hi);
  margin-bottom: var(--pm-s4);
}
.pm-display {
  font-family: var(--pm-serif);
  font-weight: 300;
  font-size: var(--pm-fs-display);
  line-height: var(--pm-lh-display);
  letter-spacing: -.012em;
  text-wrap: balance;
  font-kerning: normal;
}
.pm-h2 {
  font-family: var(--pm-serif);
  font-weight: 300;
  font-size: var(--pm-fs-h2);
  line-height: var(--pm-lh-heading);
  letter-spacing: -.008em;
  text-wrap: balance;
}
.pm-h3 {
  font-family: var(--pm-serif);
  font-weight: 400;
  font-size: var(--pm-fs-h3);
  line-height: 1.25;
  text-wrap: balance;
}
.pm-statement {
  font-family: var(--pm-serif);
  font-weight: 300;
  font-size: var(--pm-fs-statement);
  line-height: 1.18;
  text-wrap: balance;
}
.pm-lede { font-size: var(--pm-fs-lede); line-height: 1.6; color: var(--pm-mist); max-width: var(--pm-measure); text-wrap: pretty; }
.pm-body { max-width: var(--pm-measure); text-wrap: pretty; }
.pm-body + .pm-body { margin-top: var(--pm-s4); }
.pm-small { font-size: var(--pm-fs-small); line-height: 1.5; color: var(--pm-mist); }
.pm-signoff {
  font-family: var(--pm-serif);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(1.0625rem, .95rem + .5vw, 1.375rem);
  color: var(--pm-mist);
}
.pm-quote {
  font-family: var(--pm-serif);
  font-style: italic;
  font-weight: 300;
  font-size: var(--pm-fs-h3);
  line-height: 1.4;
  text-wrap: balance;
}
/* a centred list, one short item per line, small brass dot between items (film beat 3) */
.pm-list {
  font-family: var(--pm-serif);
  font-weight: 300;
  font-size: var(--pm-fs-list);
  line-height: 1.2;
  display: grid;
  justify-items: center;
  gap: .9em;
}
.pm-list > li { position: relative; }
.pm-list > li + li::before {
  content: "";
  position: absolute;
  left: 50%; top: -.5em;
  width: 3px; height: 3px; margin-left: -1.5px;
  border-radius: 50%;
  background: var(--pm-brass-hi);
  opacity: .8;
}

/* ---------------------------------------------------------------- layout */
.pm-wrap { width: 100%; max-width: calc(var(--pm-wrap) + 2 * var(--pm-gutter)); margin-inline: auto; padding-inline: var(--pm-gutter); }
.pm-center { text-align: center; }
.pm-center .pm-lede, .pm-center .pm-body, .pm-center .pm-measure { margin-inline: auto; }
.pm-measure { max-width: var(--pm-measure); }
.pm-stack > * + * { margin-top: var(--pm-s5); }

.pm-section { position: relative; padding-block: var(--pm-section-y); }
.pm-section--pine { background: var(--pm-pine); color: var(--pm-linen); }
.pm-section--deep { background: #0B2018; color: var(--pm-linen); }
.pm-section--linen { background: var(--pm-linen); color: var(--pm-ink); color-scheme: light; }
.pm-section--parchment { background: var(--pm-linen-2); color: var(--pm-ink); color-scheme: light; }
.pm-section--linen .pm-eyebrow, .pm-section--parchment .pm-eyebrow { color: #7A5F2E; }     /* darker brass for 4.5:1 on linen */
.pm-section--linen .pm-lede, .pm-section--parchment .pm-lede,
.pm-section--linen .pm-small, .pm-section--parchment .pm-small,
.pm-section--linen .pm-signoff, .pm-section--parchment .pm-signoff { color: var(--pm-ink-2); }
.pm-section--tight { padding-block: calc(var(--pm-section-y) * .6); }

/* heading group: eyebrow + h2 + lede, centred by default */
.pm-head { text-align: center; margin-bottom: clamp(var(--pm-s7), 6vw, var(--pm-s9)); }
.pm-head .pm-lede { margin: var(--pm-s5) auto 0; }
.pm-head--left { text-align: left; }
.pm-head--left .pm-lede { margin-left: 0; }

/* section break: brass hairline with a ball at its centre */
.pm-rule {
  display: flex; align-items: center; gap: var(--pm-s4);
  width: min(240px, 60%); margin: 0 auto var(--pm-s6);
  color: var(--pm-brass);
}
.pm-rule::before, .pm-rule::after { content: ""; flex: 1; height: 1px; background: currentColor; opacity: .7; }
.pm-rule > i { width: 7px; height: 7px; border-radius: 50%; border: 1px solid currentColor; }

/* image + text, two columns from 900px; --flip swaps sides */
.pm-split { display: grid; gap: clamp(var(--pm-s6), 5vw, var(--pm-s8)); align-items: center; }
@media (min-width: 900px) {
  .pm-split { grid-template-columns: 7fr 5fr; }
  .pm-split--flip { grid-template-columns: 5fr 7fr; }
  .pm-split--flip > :first-child { order: 2; }
}

/* a still photograph in a quiet frame. Add .pm-kenburns for a slow drift while on screen. */
.pm-still { position: relative; overflow: hidden; border-radius: var(--pm-r); background: var(--pm-pine-2); }
.pm-still > img, .pm-still > picture > img { width: 100%; height: 100%; object-fit: cover; }
.pm-still--wide { aspect-ratio: 16 / 9; }
.pm-still--tall { aspect-ratio: 4 / 5; }
.pm-still--square { aspect-ratio: 1; }
.pm-caption { margin-top: var(--pm-s3); font-size: var(--pm-fs-small); color: var(--pm-mist); }
.pm-section--linen .pm-caption, .pm-section--parchment .pm-caption { color: var(--pm-ink-2); }
.pm-credit { font-size: 11px; letter-spacing: .02em; opacity: .75; }

/* ---------------------------------------------------------------- buttons */
.pm-ctas { display: flex; flex-wrap: wrap; gap: var(--pm-s3); justify-content: center; margin-top: var(--pm-s6); }
.pm-cta {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--pm-s2);
  min-height: 48px; padding: 0 var(--pm-s6);
  border-radius: var(--pm-r);
  border: 1px solid var(--pm-linen);
  background: var(--pm-linen); color: var(--pm-pine);
  font-family: var(--pm-sans); font-size: .875rem; font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase; text-decoration: none;
  cursor: pointer;
  transition: background var(--pm-t-fast) var(--pm-ease), color var(--pm-t-fast) var(--pm-ease), border-color var(--pm-t-fast) var(--pm-ease);
}
.pm-cta:hover { background: var(--pm-brass-hi); border-color: var(--pm-brass-hi); }
.pm-cta--ghost { background: transparent; color: var(--pm-linen); border-color: rgba(242, 236, 223, .55); }
.pm-cta--ghost:hover { background: rgba(242, 236, 223, .08); border-color: var(--pm-linen); color: var(--pm-linen); }
.pm-section--linen .pm-cta, .pm-section--parchment .pm-cta { background: var(--pm-pine); color: var(--pm-linen); border-color: var(--pm-pine); }
.pm-section--linen .pm-cta:hover, .pm-section--parchment .pm-cta:hover { background: var(--pm-pine-3); border-color: var(--pm-pine-3); }
.pm-section--linen .pm-cta--ghost, .pm-section--parchment .pm-cta--ghost { background: transparent; color: var(--pm-ink); border-color: var(--pm-line-light); }
.pm-link { color: var(--pm-brass-hi); text-decoration: underline; text-decoration-color: rgba(216, 190, 139, .45); }
.pm-section--linen .pm-link, .pm-section--parchment .pm-link { color: #6E5424; }

/* ---------------------------------------------------------------- wordmark + monogram */
.pm-wordmark {   /* a brand mark: the same Latin caps in both languages */
  font-family: "Noto Serif Display", Georgia, serif; font-weight: 400;
  font-size: .9375rem; letter-spacing: .28em; text-transform: uppercase;
  text-decoration: none; white-space: nowrap; color: var(--pm-linen);
}
.pm-wordmark small { font-family: var(--pm-sans); font-size: .625rem; letter-spacing: .3em; color: var(--pm-brass-hi); margin-left: .6em; }

/* Our monogram: a brass roundel (the cup seen from above) with an italic S over an upright G.
   <div class="pm-monogram" aria-hidden="true"><span>S</span><span>G</span></div>
   Size with --mono (default 160px). On the golf film it sits over the cup in the last beat. */
.pm-monogram {
  --mono: 160px;
  position: relative; display: grid; place-items: center;
  width: var(--mono); height: var(--mono); margin-inline: auto;
  border-radius: 50%;
  color: var(--pm-linen);
  font-family: "Noto Serif Display", Georgia, serif; font-weight: 300;
  box-shadow: inset 0 0 0 1px var(--pm-brass-hi);
}
.pm-monogram::before {
  content: ""; position: absolute; inset: calc(var(--mono) * .055);
  border-radius: 50%; border: 1px solid rgba(216, 190, 139, .55);
}
.pm-monogram > span { grid-area: 1 / 1; line-height: 1; }
.pm-monogram > span:first-child {
  font-style: italic; font-size: calc(var(--mono) * .56);
  transform: translate(-14%, -6%); color: var(--pm-brass-hi);
}
.pm-monogram > span:last-child {
  font-size: calc(var(--mono) * .5);
  transform: translate(16%, 8%);
}
.pm-monogram--sm { --mono: 44px; }
.pm-monogram--sm::before { display: none; }

/* ---------------------------------------------------------------- nav */
.pm-nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  height: var(--pm-nav-h);
  display: flex; align-items: center; justify-content: space-between; gap: var(--pm-s4);
  padding-inline: var(--pm-gutter);
  padding-top: env(safe-area-inset-top, 0);
  color: var(--pm-linen);
  background: linear-gradient(rgba(var(--pm-scrim), .38), rgba(var(--pm-scrim), 0));
  transition: background var(--pm-t-med) var(--pm-ease), box-shadow var(--pm-t-med) var(--pm-ease);
}
.pm-nav.is-solid {
  background: rgba(15, 42, 32, .92);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  box-shadow: 0 1px 0 var(--pm-line-dark);
}
.pm-nav__links { display: none; gap: var(--pm-s6); font-size: .875rem; }
.pm-nav__links a { text-decoration: none; color: var(--pm-mist); }
.pm-nav__links a:hover { color: var(--pm-linen); }
@media (min-width: 900px) { .pm-nav__links { display: flex; } }
.pm-nav__end { display: flex; align-items: center; gap: var(--pm-s3); }

/* EN / TH toggle */
.pm-lang {
  display: inline-flex; padding: 3px; gap: 2px;
  border: 1px solid rgba(242, 236, 223, .35); border-radius: var(--pm-r-pill);
}
.pm-lang button {
  min-width: 44px; min-height: 32px; padding: 0 var(--pm-s3);
  border: 0; border-radius: var(--pm-r-pill); background: transparent; cursor: pointer;
  font-family: var(--pm-sans); font-size: .75rem; font-weight: 600; letter-spacing: .08em;
  color: var(--pm-mist);
}
.pm-lang button[lang="th"] { font-family: "Anuphan", var(--pm-sans); letter-spacing: 0; font-size: .8125rem; }
.pm-lang button[aria-pressed="true"] { background: var(--pm-linen); color: var(--pm-pine); }

/* MOCKUP note: required on every page */
.pm-mockup {
  position: fixed; z-index: 60;
  left: max(var(--pm-s3), env(safe-area-inset-left, 0)); bottom: max(var(--pm-s3), env(safe-area-inset-bottom, 0));
  max-width: calc(100vw - 2 * var(--pm-s3));
  padding: 6px 12px;
  border: 1px solid rgba(216, 190, 139, .5); border-radius: var(--pm-r-pill);
  background: rgba(15, 42, 32, .82);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  color: var(--pm-brass-hi);
  font-family: var(--pm-sans); font-size: 11px; font-weight: 500; letter-spacing: .06em; line-height: 1.4;
  pointer-events: none;
}
@media (max-width: 599px) { .pm-mockup { font-size: 10px; padding: 4px 10px; letter-spacing: .04em; } }

/* ---------------------------------------------------------------- scroll film
   <section class="pm-film" data-film="golf/opening" data-film-height="520">
     <div class="pm-film__stage">
       <canvas class="pm-film__canvas"></canvas>            (created by scrollfilm.js if missing)
       <div class="pm-film__beat pm-beat" data-from="0" data-to=".18"> … </div>
     </div>
   </section>
   The section is data-film-height vh tall (default 500). The stage sticks for its whole length.
   One canvas per film: the page's own drawing (the golf ball and tracer) goes on it too. */
.pm-film { position: relative; height: var(--film-h, 500vh); background: var(--pm-pine); }
.pm-film__stage {
  position: sticky; top: 0;
  height: 100vh; height: 100lvh;
  overflow: hidden;
  contain: layout paint;
}
.pm-film__canvas, .pm-film__poster {
  position: absolute; inset: 0; width: 100%; height: 100%;
}
.pm-film__poster { object-fit: cover; }
.pm-film__canvas { z-index: 1; }
.pm-film.is-drawn .pm-film__poster { visibility: hidden; }
/* an opaque canvas is black until its first frame: keep the poster in view until then */
.pm-film:not(.is-drawn) .pm-film__canvas { visibility: hidden; }
/* a gentle vignette keeps edges calm and text legible everywhere */
.pm-film__stage::after {
  content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background:
    linear-gradient(to bottom, rgba(var(--pm-scrim), .30) 0%, rgba(var(--pm-scrim), 0) 22%, rgba(var(--pm-scrim), 0) 70%, rgba(var(--pm-scrim), .45) 100%),
    radial-gradient(120% 90% at 50% 50%, rgba(0, 0, 0, 0) 55%, rgba(var(--pm-scrim), .35) 100%);
}

/* The gesture film (scrollfilm.js puts .pm-film--gesture on the opening film of a touch phone): the film is
   one screen of an ordinary page, with no tall track behind it. While the page is at its top (html.pm-armed)
   a drag moves the film and not the page, so the browser is told to leave vertical drags alone; a pinch
   still zooms. html.pm-own is on while a drag that began on the film is being followed, into the page too. */
.pm-film--gesture { height: 100vh; height: 100svh; }
.pm-film--gesture .pm-film__stage { position: relative; height: 100vh; height: 100svh; }
html.pm-armed, html.pm-armed body { touch-action: pinch-zoom; overscroll-behavior-y: none; }
html.pm-own { scroll-behavior: auto; }

/* a text beat over the film. scrollfilm.js sets --o (0..1) and --y (px) from data-from / data-to. */
.pm-beat {
  --o: 0; --y: 0px;
  position: absolute; z-index: 3;
  left: 50%; top: 50%;
  width: min(92vw, 980px);
  padding: var(--pm-s6) var(--pm-gutter);
  text-align: center;
  color: var(--pm-linen);
  opacity: var(--o);
  transform: translate3d(-50%, calc(-50% + var(--y)), 0);
  will-change: opacity, transform;
  text-shadow: 0 1px 24px rgba(var(--pm-scrim), .45), 0 1px 2px rgba(var(--pm-scrim), .35);
  pointer-events: none;
}
.pm-beat.is-on { pointer-events: auto; }
.pm-beat[hidden] { display: block; visibility: hidden; }
/* soft scrim: a blurred dark ellipse behind the text, never a box */
.pm-beat::before {
  content: ""; position: absolute; inset: 8% 4%; z-index: -1;
  background: radial-gradient(closest-side, rgba(var(--pm-scrim), .42), rgba(var(--pm-scrim), 0));
  filter: blur(8px);
}
.pm-beat--noscrim::before { display: none; }
.pm-beat--top { top: 30%; }      /* sky */
.pm-beat--high { top: 22%; }
.pm-beat--low { top: 68%; }      /* dark grass */
.pm-beat--bottom { top: auto; bottom: 7vh; transform: translate3d(-50%, var(--y), 0); }
.pm-beat .pm-display + .pm-lede,
.pm-beat .pm-statement + .pm-lede { margin: var(--pm-s5) auto 0; color: rgba(242, 236, 223, .86); }
.pm-beat .pm-ctas { margin-top: var(--pm-s5); }

/* scroll cue in the hero */
.pm-cue {
  position: absolute; z-index: 3; left: 50%; bottom: max(4vh, 28px); transform: translateX(-50%);
  display: grid; justify-items: center; gap: var(--pm-s2);
  font-size: 10px; font-weight: 500; letter-spacing: .3em; text-transform: uppercase; color: var(--pm-mist);
  opacity: calc(1 - var(--film-p, 0) * 12);
}
.pm-cue::after {
  content: ""; width: 1px; height: 36px;
  background: linear-gradient(var(--pm-brass-hi), rgba(216, 190, 139, 0));
  transform-origin: top; animation: pm-cue 2.4s var(--pm-ease-inout) infinite;
}
@keyframes pm-cue { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }
:lang(th) .pm-cue { letter-spacing: .04em; text-transform: none; font-size: 12px; }

/* the flagstick: a brass hairline on the right edge that fills as the film plays (optional) */
.pm-pin {
  position: absolute; z-index: 3; right: max(var(--pm-s4), 2.4vw); top: 26vh; bottom: 26vh; width: 1px;
  background: rgba(242, 236, 223, .22);
}
.pm-pin::before {
  content: ""; position: absolute; left: 0; top: 0; width: 1px; height: 100%;
  background: var(--pm-brass-hi); transform-origin: top; transform: scaleY(var(--film-p, 0));
}
.pm-pin::after {   /* the flag */
  content: ""; position: absolute; left: 1px; top: calc(var(--film-p, 0) * 100% - 1px);
  width: 9px; height: 6px; background: var(--pm-brass-hi);
  clip-path: polygon(0 0, 100% 50%, 0 100%);
}
@media (max-width: 599px) { .pm-pin { display: none; } }

/* reduced motion or no JS: the film becomes one still with the beats stacked over it */
.pm-film--still { height: auto; }
.pm-film--still .pm-film__stage {
  position: relative; height: auto; min-height: 100vh; min-height: 100svh;
  display: flex; flex-direction: column; justify-content: center; gap: var(--pm-s7);
  padding: calc(var(--pm-nav-h) + var(--pm-s7)) 0 var(--pm-s8);
}
.pm-film--still .pm-film__canvas, .pm-film--still .pm-film__poster { position: absolute; }
.pm-film--still .pm-beat {
  --o: 1 !important; --y: 0px !important;
  position: relative; left: auto; top: auto; bottom: auto; margin-inline: auto;
  transform: none; visibility: visible; pointer-events: auto;
}
.pm-film--still .pm-beat[hidden] { visibility: visible; }
.pm-film--still .pm-cue, .pm-film--still .pm-pin { display: none; }

/* ---------------------------------------------------------------- reveal + ken burns (scrollfilm.js reveal()) */
.pm-reveal {
  opacity: 0; transform: translate3d(0, var(--pm-rise), 0);
  transition: opacity var(--pm-t-slow) var(--pm-ease), transform var(--pm-t-slow) var(--pm-ease);
  transition-delay: var(--delay, 0ms);
}
.pm-reveal.is-in { opacity: 1; transform: none; }
html.no-js .pm-reveal { opacity: 1; transform: none; }

.pm-kenburns > img, img.pm-kenburns {
  transform: scale(1.06) translate3d(var(--kb-x, -1.2%), var(--kb-y, -.8%), 0);
  transition: transform 18s linear;
}
.pm-kenburns.is-live > img, img.pm-kenburns.is-live { transform: scale(1.12) translate3d(var(--kb-x2, 1.2%), var(--kb-y2, .8%), 0); }

/* ---------------------------------------------------------------- tiles (sports) */
.pm-tiles { display: grid; gap: var(--pm-s4); grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr)); }
.pm-tile {
  position: relative; display: block; overflow: hidden; aspect-ratio: 3 / 4;
  border-radius: var(--pm-r); background: var(--pm-pine-2); color: var(--pm-linen); text-decoration: none;
  isolation: isolate;
}
.pm-tile > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -1; transition: transform var(--pm-t-slow) var(--pm-ease); }
.pm-tile::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to top, rgba(var(--pm-scrim), .82), rgba(var(--pm-scrim), 0) 58%); }
.pm-tile__body { position: absolute; left: 0; right: 0; bottom: 0; padding: var(--pm-s5); display: grid; gap: var(--pm-s2); justify-items: start; }
.pm-tile__name { font-family: var(--pm-serif); font-weight: 300; font-size: var(--pm-fs-h3); line-height: 1.15; }
a.pm-tile:hover > img { transform: scale(1.04); }
.pm-tile--soon > img { filter: saturate(.55) brightness(.8); }
.pm-tile--soon { cursor: default; }
.pm-status {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 3px 10px; border-radius: var(--pm-r-pill);
  font-size: 10px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase;
  border: 1px solid rgba(242, 236, 223, .4); color: var(--pm-linen);
}
.pm-status--live { background: var(--pm-linen); color: var(--pm-pine); border-color: var(--pm-linen); }
.pm-status--live::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #2E8B57; }

/* ---------------------------------------------------------------- venues (real satellite crops) */
.pm-venues { display: grid; gap: var(--pm-s5); grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }
.pm-venue { display: grid; gap: var(--pm-s3); align-content: start; }
.pm-venue__img { aspect-ratio: 4 / 5; overflow: hidden; border-radius: var(--pm-r); background: var(--pm-pine-2); }
.pm-venue__img > img { width: 100%; height: 100%; object-fit: cover; }
.pm-venue__date { font-size: var(--pm-fs-small); letter-spacing: .08em; color: var(--pm-brass-hi); font-variant-numeric: lining-nums tabular-nums; }
.pm-venue__name { font-family: var(--pm-serif); font-weight: 400; font-size: 1.25rem; line-height: 1.25; }
.pm-section--linen .pm-venue__date, .pm-section--parchment .pm-venue__date { color: #6E5424; }

/* ---------------------------------------------------------------- footer */
.pm-footer {
  padding: var(--pm-s8) 0 calc(var(--pm-s8) + 32px);
  border-top: 1px solid var(--pm-line-dark);
  font-size: var(--pm-fs-small); color: var(--pm-mist);
}
.pm-footer__row { display: flex; flex-wrap: wrap; gap: var(--pm-s4) var(--pm-s6); justify-content: space-between; align-items: center; }

/* ---------------------------------------------------------------- phones and tablets: no blur behind glass
   A backdrop blur over a film is worked out again every time the film changes its picture. Under 900px the
   panels over the films are flat and a little more opaque instead. */
@media (max-width: 899px) {
  .pm-nav.is-solid { background: rgba(15, 42, 32, .96); -webkit-backdrop-filter: none; backdrop-filter: none; }
  .pm-mockup { background: rgba(15, 42, 32, .92); -webkit-backdrop-filter: none; backdrop-filter: none; }
}

/* ---------------------------------------------------------------- reduced motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 1ms !important; animation-iteration-count: 1 !important; transition-duration: 1ms !important; }
  .pm-reveal { opacity: 1; transform: none; }
  .pm-kenburns > img, img.pm-kenburns, .pm-kenburns.is-live > img, img.pm-kenburns.is-live { transform: none; }
  .pm-cue::after { animation: none; transform: none; }
  a.pm-tile:hover > img { transform: none; }
}
