* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: #1b2947; }
body { margin: 0; background: #1b2947; overflow-x: hidden; font-family: Helvetica, Arial, sans-serif; }
.site { width: 100%; }
.page { position: relative; width: 100%; line-height: 0; }
.page picture { display: block; }
.page img { display: block; width: 100%; height: auto; max-width: none; }
/* Invisible hit areas laid exactly over the words drawn in the page artwork.
   Positions come from layout.json (generated with the artwork) and are in % of the 960x540 page. */
.nav-overlay { position: absolute; inset: 0; z-index: 2; pointer-events: none; }
.nav-overlay a, .hotspot { position: absolute; pointer-events: auto; color: transparent; font-size: 1px; line-height: 1; text-decoration: none; overflow: hidden; white-space: nowrap; outline-offset: 3px; }
.nav-overlay a::after, .hotspot::after { content: ""; position: absolute; inset: -8px -6px; }
.hotspot { z-index: 2; }
.nav-overlay a:focus-visible, .hotspot:focus-visible { outline: 1px solid rgba(255,255,255,.9); }
.language-control { position: fixed; z-index: 20; top: 18px; left: 18px; }
.language-control select { appearance: none; border: 0; border-radius: 0; background: rgba(16,35,71,.88); color: #fff; font: 10px/1 Helvetica, Arial, sans-serif; padding: 6px 22px 6px 7px; cursor: pointer; }
.language-control select:focus-visible { outline: 1px solid #fff; outline-offset: 2px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
/* Desktop: no scrolling - one page at a time, fitted to the window; the menu switches pages. */
@media (min-width: 601px) {
  html, body { height: 100%; overflow: hidden; }
  .site { position: fixed; inset: 0; display: flex; align-items: center; justify-content: center; }
  .page { display: none; width: min(100vw, calc(100vh * 16 / 9)); }
  .page.current { display: block; }
}
@media (max-width: 600px) { .language-control { top: 10px; left: 10px; } .language-control select { font-size: 9px; padding: 5px 20px 5px 6px; } }
/* Page artwork is placed in the page itself so its clickable items can turn brand red on hover */
.page picture[hidden] { display: none; }
.page-inline { display: block; line-height: 0; }
.page-inline > svg { display: block; width: 100%; height: auto; }
.page-inline [data-hl].hl-on, .page-inline [data-hl].hl-on * { fill: #A73E3F; }
/* Driven by the browser's own hover state, so it is right even when a page appears under a still pointer */
.page:has([data-film]:hover) .page-inline [data-hl="film"],
.page:has([data-film]:hover) .page-inline [data-hl="film"] *,
.page:has([data-film]:focus-visible) .page-inline [data-hl="film"],
.page:has([data-film]:focus-visible) .page-inline [data-hl="film"] *,
.page:has([data-home]:hover) .page-inline [data-hl="home"],
.page:has([data-home]:hover) .page-inline [data-hl="home"] *,
.page:has([data-home]:focus-visible) .page-inline [data-hl="home"],
.page:has([data-home]:focus-visible) .page-inline [data-hl="home"] *,
.page:has([data-nav="quality"]:hover) .page-inline [data-hl="nav-quality"],
.page:has([data-nav="quality"]:hover) .page-inline [data-hl="nav-quality"] *,
.page:has([data-nav="quality"]:focus-visible) .page-inline [data-hl="nav-quality"],
.page:has([data-nav="quality"]:focus-visible) .page-inline [data-hl="nav-quality"] *,
.page:has([data-nav="products"]:hover) .page-inline [data-hl="nav-products"],
.page:has([data-nav="products"]:hover) .page-inline [data-hl="nav-products"] *,
.page:has([data-nav="products"]:focus-visible) .page-inline [data-hl="nav-products"],
.page:has([data-nav="products"]:focus-visible) .page-inline [data-hl="nav-products"] *,
.page:has([data-nav="contact"]:hover) .page-inline [data-hl="nav-contact"],
.page:has([data-nav="contact"]:hover) .page-inline [data-hl="nav-contact"] *,
.page:has([data-nav="contact"]:focus-visible) .page-inline [data-hl="nav-contact"],
.page:has([data-nav="contact"]:focus-visible) .page-inline [data-hl="nav-contact"] * { fill: #A73E3F; }

/* Pop-up film player ("See REEVER and BASTLE in operation" on page 3) */
.film-dialog { padding: 0; border: 0; background: transparent; overflow: visible; max-width: none; max-height: none; line-height: 1.4; }
.film-dialog::backdrop { background: rgba(8, 16, 32, .88); }
.film-frame { position: relative; width: min(92vw, calc(84vh * 16 / 9)); aspect-ratio: 16 / 9; background: #000; box-shadow: 0 24px 70px rgba(0,0,0,.45); }
.film-frame video { display: block; width: 100%; height: 100%; background: #000; }
.film-frame video[hidden] { display: none; }
.film-frame iframe { display: block; width: 100%; height: 100%; border: 0; background: #000; }
.film-frame iframe[hidden] { display: none; }
.film-unavailable { position: absolute; inset: 0; margin: 0; display: flex; align-items: center; justify-content: center; padding: 24px; text-align: center; color: #fff; font: 15px/1.4 Helvetica, Arial, sans-serif; }
.film-unavailable[hidden] { display: none; }
.film-close { position: absolute; top: -44px; right: -6px; width: 40px; height: 40px; border: 0; background: transparent; color: #fff; font: 32px/1 Helvetica, Arial, sans-serif; cursor: pointer; }
.film-close:focus-visible { outline: 1px solid #fff; outline-offset: 2px; }
.hotspot[data-film] { cursor: pointer; }
@media (max-width: 600px) { .film-frame { width: calc(100vw - 16px); } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
