@charset "UTF-8";
/* ==========================================================================
   Penetanguishene Heritage - 2026 front end

   One stylesheet for every public page. The older css/styles.css is no longer
   loaded by them (it stays in place for reference and for the admin).

   Brand: navy #045087 and dark grey #252525 carried over. The old red is gone: accents
   are a true gold (the colour of the lit places on the model) or a deeper navy.
   Open Sans for text and bold capitals for headings, Playfair Display for the
   quieter second line, Oswald for years.

   Three things move on this site and each means something:
     the roll  - a year's digits roll to their value (time)
     the wipe  - a picture is drawn in from the left, like the comparison slider
     the glide - the 3D town model travels to a place (location)

   This file is ASCII only. Sections:
   1 tokens  2 base  3 header  4 buttons  5 home  6 comparison  7 list
   8 location  9 3D map  10 map view  11 contact  12 footer  13 motion  14 print
   ========================================================================== */

/* 1. TOKENS --------------------------------------------------------------- */
:root {
  --blue: #045087;
  --blue-dark: #033b64;
  --blue-deep: #06315a;      /* dark panels: the plaque, the year slider */
  --model: #041b31;          /* the 3D model's horizon colour (C.fog in js/heritage/map3d.js) */
  --blue-night: #04233f;
  --sky: #9fd0f0;
  --gold: #c9a24b;           /* true gold: accents on the navy */
  --gold-light: #e6cc8f;     /* highlights and glows */
  --gold-deep: #94701f;      /* gold on white, where it has to hold its own */
  --ink: #252525;
  --text: #4a4f55;
  --muted: #68707a;
  --line: #e2e7ec;
  --line-strong: #c5ced8;
  --mist: #f4f7fa;
  --white: #fff;

  --font-sans: "Open Sans", "Segoe UI", system-ui, -apple-system, Arial, sans-serif;
  --font-serif: "Playfair Display", Georgia, "Times New Roman", serif;
  --font-num: "Oswald", "Arial Narrow", Impact, sans-serif;

  --header-h: 76px;
  --gutter: clamp(18px, 4vw, 48px);
  --wrap: 1180px;
  --ease: cubic-bezier(0.22, 0.8, 0.2, 1);
  --ease-roll: cubic-bezier(0.3, 1.25, 0.4, 1);
}
@media (max-width: 760px) { :root { --header-h: 62px; } }

/* 2. BASE ----------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 20px); }
body { margin: 0; font-family: var(--font-sans); font-size: 1.0625rem; line-height: 1.65; color: var(--text); background: var(--white); -webkit-font-smoothing: antialiased; }
img, svg, canvas, iframe { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--blue); text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid currentColor; outline-offset: 3px; }
h1, h2, h3 { margin: 0 0 0.5em; color: var(--ink); font-weight: 800; line-height: 1.08; text-transform: uppercase; letter-spacing: -0.01em; text-wrap: balance; }
h1 { font-size: clamp(2.1rem, 1.35rem + 3.2vw, 3.6rem); }
h2 { font-size: clamp(1.45rem, 1.2rem + 1vw, 2rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1.1em; text-wrap: pretty; }
hr { border: 0; border-top: 1px solid var(--line); margin: 2.5rem 0; }
address { font-style: normal; }
button, input, select, textarea { font: inherit; color: inherit; }
[hidden] { display: none !important; }

.wrap { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }
.num { font-family: var(--font-num); font-weight: 500; font-variant-numeric: lining-nums tabular-nums; letter-spacing: 0; }
.pipe { color: var(--line-strong); margin: 0 0.15em; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 12px; top: -80px; z-index: 100; padding: 12px 18px; background: var(--ink); color: var(--white); font-weight: 700; }
.skip-link:focus { top: 12px; }

/* Text written in the CMS editor */
.rich > :last-child { margin-bottom: 0; }
.rich h1, .rich h2 { margin-bottom: 0.45em; }
.rich p { max-width: 68ch; }
.rich sup { font-size: 0.7em; line-height: 0; }
.rich strong { color: var(--ink); }

/* 3. HEADER --------------------------------------------------------------- */
.site-header { position: sticky; top: 0; z-index: 60; background: rgba(255, 255, 255, 0.95); border-bottom: 2px solid var(--blue); -webkit-backdrop-filter: saturate(1.3) blur(10px); backdrop-filter: saturate(1.3) blur(10px); transition: background-color 0.35s, border-color 0.35s, box-shadow 0.35s; }
.site-header.is-scrolled { box-shadow: 0 6px 24px rgba(4, 35, 63, 0.12); }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; height: var(--header-h); padding: 0 var(--gutter); }
.site-header__logo { display: block; flex: none; }
.logo { height: 42px; width: auto; }
.logo--white { display: none; }
.site-nav { display: flex; align-items: center; gap: clamp(18px, 3vw, 40px); }
.site-nav__list { display: flex; gap: clamp(16px, 2.4vw, 34px); margin: 0; padding: 0; list-style: none; }
.site-nav__list a { position: relative; display: block; padding: 10px 0; color: var(--ink); font-size: 0.95rem; font-weight: 700; letter-spacing: 0.02em; text-transform: uppercase; text-decoration: none; }
.site-nav__list a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 3px; height: 3px; background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform 0.35s var(--ease); }
.site-nav__list a:hover::after, .site-nav__list a[aria-current]::after, .site-nav__list a.is-parent::after { transform: scaleX(1); }
.site-nav__list a[aria-current], .site-nav__list a.is-parent { color: var(--blue); }
.lang { display: flex; align-items: center; font-size: 0.95rem; }
.lang a { padding: 8px 5px; color: var(--muted); font-weight: 600; text-decoration: none; }
.lang a:hover { color: var(--blue); }
.lang a[aria-current] { color: var(--ink); font-weight: 800; }
.lang__pipe { color: var(--line-strong); }
.nav-toggle { display: none; width: 46px; height: 46px; margin-right: -10px; padding: 0; border: 0; background: none; color: var(--ink); cursor: pointer; place-items: center; }

@media (max-width: 760px) {
  .logo { height: 32px; }
  .nav-toggle { display: grid; }
  .site-nav { position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; gap: 0; padding: 6px var(--gutter) 18px; background: var(--white); border-bottom: 2px solid var(--blue); box-shadow: 0 18px 30px rgba(4, 35, 63, 0.16); visibility: hidden; opacity: 0; transform: translateY(-8px); transition: opacity 0.25s, transform 0.25s var(--ease), visibility 0s 0.25s; }
  .site-nav.is-open { visibility: visible; opacity: 1; transform: none; transition-delay: 0s; }
  .site-nav__list { flex-direction: column; gap: 0; }
  .site-nav__list a { padding: 15px 0; border-bottom: 1px solid var(--line); font-size: 1.05rem; }
  .site-nav__list a::after { display: none; }
  .lang { padding-top: 12px; font-size: 1.05rem; }
  .lang a { padding: 10px 8px; }
  .lang a:first-child { padding-left: 0; }
}

/* 4. BUTTONS -------------------------------------------------------------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.6em; min-height: 48px; padding: 0 24px; border: 2px solid var(--blue); border-radius: 2px; background: var(--blue); color: var(--white); font-size: 0.92rem; font-weight: 700; letter-spacing: 0.04em; line-height: 1.2; text-transform: uppercase; text-decoration: none; cursor: pointer; transition: background-color 0.2s, border-color 0.2s, color 0.2s; }
.btn:hover { background: var(--blue-dark); border-color: var(--blue-dark); }
.btn--ghost { background: transparent; color: var(--blue); }
.btn--ghost:hover { background: var(--blue); border-color: var(--blue); color: var(--white); }
.btn--light { background: var(--white); border-color: var(--white); color: var(--blue); }
.btn--light:hover { background: var(--sky); border-color: var(--sky); color: var(--blue-night); }
.btn--line { background: rgba(4, 35, 63, 0.62); border-color: rgba(255, 255, 255, 0.8); color: var(--white); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.btn--line:hover { background: var(--white); border-color: var(--white); color: var(--blue); }
.btn--gold { background: var(--gold); border-color: var(--gold); color: var(--blue-night); }
.btn--gold:hover { background: var(--gold-light); border-color: var(--gold-light); color: var(--blue-night); }
.link-btn { padding: 0; border: 0; background: none; color: var(--blue); font-weight: 700; text-decoration: underline; text-underline-offset: 0.2em; cursor: pointer; }

/* 5. HOME ----------------------------------------------------------------- */
/* The 3D town model sits behind the welcome and the left half of the timeline. */
.stage { position: fixed; inset: 0; z-index: 0; background: var(--model); }
/* a scrim under the header, and a vignette that only darkens the far edges: laid over the middle, navy would turn the gold places khaki */
.stage::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(to bottom, rgba(4, 35, 63, 0.55) 0, rgba(4, 35, 63, 0) 26%), radial-gradient(120% 95% at 50% 45%, rgba(2, 12, 24, 0) 55%, rgba(2, 12, 24, 0.5) 100%); }
.page-home main { position: relative; z-index: 1; }
.hero-dark .site-header { position: fixed; left: 0; right: 0; }
.hero-dark .site-header:not(.is-solid):not(.is-open) { background: transparent; border-bottom-color: transparent; -webkit-backdrop-filter: none; backdrop-filter: none; box-shadow: none; }
.hero-dark .site-header:not(.is-solid):not(.is-open) .logo--blue { display: none; }
.hero-dark .site-header:not(.is-solid):not(.is-open) .logo--white { display: block; }
.hero-dark .site-header:not(.is-solid):not(.is-open) .nav-toggle { color: var(--white); }
@media (min-width: 761px) {
  .hero-dark .site-header:not(.is-solid) .site-nav__list a, .hero-dark .site-header:not(.is-solid) .lang a[aria-current] { color: var(--white); }
  .hero-dark .site-header:not(.is-solid) .lang a { color: rgba(255, 255, 255, 0.72); }
  .hero-dark .site-header:not(.is-solid) .lang__pipe { color: rgba(255, 255, 255, 0.4); }
  .hero-dark .site-header:not(.is-solid) .site-nav__list a::after { background: var(--gold); }
}

.hero { position: relative; display: grid; align-items: start; justify-items: center; min-height: 100vh; min-height: 100svh; padding: calc(var(--header-h) + clamp(28px, 9vh, 96px)) var(--gutter) 110px; color: var(--white); text-align: center; }
.hero::before { content: ""; position: absolute; left: 50%; top: 0; width: min(1240px, 100%); height: 78%; transform: translateX(-50%); pointer-events: none; background: radial-gradient(closest-side, rgba(4, 35, 63, 0.78) 30%, rgba(4, 35, 63, 0)); }
.hero__content { position: relative; max-width: 46rem; }
.hero__text h1 { margin-bottom: 0.3em; color: var(--white); font-size: clamp(2.7rem, 1.5rem + 6vw, 5.6rem); letter-spacing: -0.02em; text-shadow: 0 2px 30px rgba(4, 35, 63, 0.6); }
.hero__text p { margin-inline: auto; max-width: 40rem; font-size: clamp(1.02rem, 0.95rem + 0.35vw, 1.2rem); line-height: 1.6; text-shadow: 0 1px 16px rgba(4, 35, 63, 0.8); }
.hero__range { display: flex; align-items: center; justify-content: center; gap: 16px; margin-top: 30px; font-size: 1.6rem; }
.hero__track { position: relative; flex: 0 1 300px; height: 2px; background: rgba(255, 255, 255, 0.28); }
.hero__track i { position: absolute; inset: 0; background: var(--gold); transform: scaleX(var(--p, 0)); transform-origin: left; }
.hero__track i::after { content: ""; position: absolute; right: -5px; top: -4px; width: 10px; height: 10px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 14px 3px rgba(201, 162, 75, 0.75); transform: scaleX(calc(1 / max(var(--p, 0.0001), 0.0001))); }
.hero__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin: 26px 0 0; }
.hero__scroll { position: absolute; left: 50%; bottom: 22px; display: grid; justify-items: center; gap: 2px; transform: translateX(-50%); color: var(--white); font-size: 0.88rem; font-weight: 600; text-decoration: none; }
.hero__scroll svg { animation: nudge 2.2s var(--ease) infinite; }
@keyframes nudge { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(6px); } }

.timeline { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.timeline__hud { position: sticky; top: 0; align-self: start; display: flex; flex-direction: column; justify-content: flex-end; height: 100vh; height: 100svh; padding: 0 var(--gutter) 30px; color: var(--white); pointer-events: none; }
.hud { width: min(100%, 26.5rem); padding: 18px 26px 16px; border-radius: 18px; pointer-events: auto; }
.hud__label { margin: 0; color: var(--gold-light); font-family: var(--font-serif); font-size: 1.15rem; }
.hud__year { margin: 2px 0 0; font-size: clamp(4.2rem, 7.4vw, 7.2rem); line-height: 0.98; }
.hud__year.is-text { padding: 10px 0 6px; font-family: var(--font-serif); font-size: clamp(1.7rem, 2.6vw, 2.4rem); font-weight: 400; line-height: 1.25; }
.rail { position: relative; height: 34px; margin-top: 18px; pointer-events: auto; }
.rail::before { content: ""; position: absolute; left: 0; right: 0; top: 10px; height: 2px; background: rgba(255, 255, 255, 0.3); }
.rail__fill { position: absolute; left: 0; top: 10px; height: 2px; width: 100%; background: var(--gold); transform: scaleX(var(--p, 0)); transform-origin: left; }
.rail__tick { position: absolute; left: var(--at); top: 0; width: 15px; height: 22px; margin-left: -7px; }
.rail__tick::before { content: ""; position: absolute; left: 6px; top: 4px; width: 3px; height: 14px; border-radius: 2px; background: rgba(255, 255, 255, 0.55); transition: background-color 0.3s, transform 0.3s var(--ease); }
.rail__tick:hover::before { background: var(--white); transform: scaleY(1.35); }
.rail__tick.is-past::before { background: var(--gold); }
.rail__tick.is-now::before { background: var(--white); transform: scaleY(1.6); }
.rail__end { position: absolute; top: 20px; font-size: 0.95rem; opacity: 0.85; }
.rail__end--b { right: 0; }
.timeline__panel { position: relative; background: var(--white); box-shadow: -40px 0 80px rgba(4, 35, 63, 0.4); }
.chapters { margin: 0; padding: 0; list-style: none; }
.chapter { display: grid; align-items: center; min-height: 100vh; min-height: 100svh; padding: calc(var(--header-h) + 28px) clamp(24px, 5vw, 84px) 44px; border-bottom: 1px solid var(--line); }
.chapter:last-child { border-bottom: 0; }
.chapter__inner { width: 100%; max-width: 34rem; margin-inline: auto; }
.chapter__when { display: none; margin: 0 0 4px; color: var(--blue); }
.chapter__when .num { font-size: 2.6rem; line-height: 1; }
.chapter__when-label { font-family: var(--font-serif); color: var(--muted); }
.chapter__title { margin: 0 0 0.3em; padding-left: 16px; border-left: 5px solid var(--blue); font-size: clamp(1.7rem, 1.15rem + 1.7vw, 2.6rem); }
.chapter__title a { color: inherit; text-decoration: none; }
.chapter__title a:hover { color: var(--blue); }
.chapter__sub { margin: 0 0 22px; color: var(--muted); font-family: var(--font-serif); font-size: 1.15rem; line-height: 1.4; }
.chapter__text { margin: 20px 0 22px; }

.outro { position: relative; background: var(--mist); border-top: 2px solid var(--blue); }
.outro__inner { padding-block: clamp(56px, 9vw, 110px); }
.outro__actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 26px 0 0; }

@media (max-width: 899px) {
  .timeline { grid-template-columns: minmax(0, 1fr); }
  .timeline__hud { display: none; }
  .timeline__panel { box-shadow: none; }
  .chapters { position: relative; padding: 18px 0 8px; }
  .chapters::before { content: ""; position: absolute; left: calc(var(--gutter) + 5px); top: 0; bottom: 0; width: 2px; background: var(--line); }
  .chapter { min-height: 0; padding: 34px var(--gutter) 38px calc(var(--gutter) + 30px); border-bottom: 0; position: relative; }
  .chapter::before { content: ""; position: absolute; left: var(--gutter); top: 50px; width: 12px; height: 12px; border-radius: 50%; background: var(--white); border: 3px solid var(--blue); }
  .chapter__when { display: block; }
  .chapter__title { padding-left: 0; border-left: 0; }
}

/* 6. COMPARISON AND SINGLE IMAGES ----------------------------------------- */
.compare, .shot { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--mist); }
.compare { --pos: 50%; -webkit-user-select: none; user-select: none; }
.compare img, .shot img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.compare__top { clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.compare__range { position: absolute; inset: 0; z-index: 2; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; touch-action: pan-y; -webkit-appearance: none; appearance: none; }
.compare__line { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 2px; margin-left: -1px; background: var(--white); box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.12); pointer-events: none; }
.compare__handle { position: absolute; top: 50%; left: var(--pos); display: grid; place-items: center; width: 46px; height: 46px; margin: -23px 0 0 -23px; border-radius: 50%; background: var(--gold); color: var(--blue-night); box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35); pointer-events: none; transition: transform 0.2s var(--ease); }
.compare:hover .compare__handle { transform: scale(1.08); }
.compare__range:focus-visible ~ .compare__handle { outline: 3px solid var(--white); outline-offset: 3px; box-shadow: 0 0 0 9px var(--ink); }

/* 7. LIST VIEW ------------------------------------------------------------ */
.page-head { padding: clamp(36px, 6vw, 80px) 0 clamp(8px, 2vw, 20px); }
/* a long introduction from the CMS runs in two columns on wide screens instead of one tall block */
@media (min-width: 1000px) { .page-list .page-head .rich p { max-width: none; columns: 2; column-gap: clamp(32px, 4vw, 64px); } }
.toolbar { display: none; flex-wrap: wrap; align-items: flex-end; gap: 16px 30px; margin: 18px 0 14px; padding: 18px 0; border-top: 2px solid var(--ink); border-bottom: 1px solid var(--line); }
.js .toolbar { display: flex; }
.toolbar__group { display: grid; gap: 6px; }
.toolbar__group--search { flex: 1 1 220px; max-width: 340px; margin-left: auto; }
.toolbar__label { color: var(--ink); font-size: 0.88rem; font-weight: 700; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { min-height: 42px; padding: 0 15px; border: 1px solid var(--line-strong); border-radius: 999px; background: var(--white); color: var(--ink); font-size: 0.95rem; font-weight: 600; cursor: pointer; transition: background-color 0.2s, border-color 0.2s, color 0.2s; }
.chip:hover { border-color: var(--blue); color: var(--blue); }
.chip[aria-pressed="true"] { border-color: var(--blue); background: var(--blue); color: var(--white); }
.field, .toolbar select, .toolbar input[type="search"] { width: 100%; min-height: 42px; padding: 0 12px; border: 1px solid var(--line-strong); border-radius: 2px; background: var(--white); }
.toolbar select { padding-right: 34px; }
.count { margin: 0 0 4px; color: var(--muted); font-size: 0.95rem; }

.register { margin: 0; padding: 0; list-style: none; }
.entry { position: relative; display: grid; grid-template-columns: 8.5rem minmax(140px, 15rem) minmax(0, 1fr); align-items: center; gap: 0 clamp(18px, 3vw, 44px); padding: 22px 0; border-bottom: 1px solid var(--line); }
.entry::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform 0.5s var(--ease); }
.entry:hover::after, .entry:focus-within::after { transform: scaleX(1); }
.entry__year { margin: 0; color: var(--blue); font-size: 3.1rem; line-height: 1; }
.entry__img { display: block; aspect-ratio: 4 / 3; overflow: hidden; background: var(--mist); }
.entry__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s var(--ease); }
.entry:hover .entry__img img { transform: scale(1.05); }
.entry__name { margin: 0 0 4px; font-size: 1.35rem; }
.entry__name a { color: var(--ink); text-decoration: none; }
.entry__name a::before { content: ""; position: absolute; inset: 0; z-index: 1; }
.entry:hover .entry__name a { color: var(--blue); }
.entry__sub { margin: 0 0 6px; color: var(--muted); font-family: var(--font-serif); line-height: 1.4; }
.entry__text { margin: 0; max-width: 60ch; }
.register-group { margin-top: clamp(40px, 6vw, 72px); }
.register-group__title { margin: 0; padding-bottom: 14px; border-bottom: 2px solid var(--ink); font-size: 1.25rem; }
.register-group .entry { grid-template-columns: minmax(120px, 11rem) minmax(0, 1fr); }
.register-group .entry__name { font-size: 1.15rem; }
.list-end { padding: clamp(40px, 6vw, 80px) 0; }

@media (max-width: 720px) {
  .entry, .register-group .entry { grid-template-columns: 104px minmax(0, 1fr); gap: 2px 16px; align-items: start; padding: 18px 0; }
  .entry__year { grid-column: 2; font-size: 2rem; }
  .entry__img { grid-column: 1; grid-row: 1 / span 2; }
  .entry__body { grid-column: 2; }
  .register-group .entry__img { grid-row: 1; }
  .entry__name { font-size: 1.12rem; }
  .entry__text { font-size: 0.97rem; }
  .toolbar__group--search { max-width: none; margin-left: 0; }
}

/* 8. LOCATION PAGE -------------------------------------------------------- */
/* Opens dark, on the town model with this place lit. The picture laps over the lower edge
   of that opening, the story sits beside it, and the record of the place is set like a
   heritage plaque: navy with a fine gold line. It closes on its neighbours in time. */
.place-hero { position: relative; display: flex; align-items: flex-end; min-height: clamp(540px, 84vh, 800px); overflow: hidden; background: radial-gradient(110% 90% at 75% 35%, #0a3a66 0, var(--model) 55%, #020f1e 100%); color: var(--white); }
.place-hero__model { position: absolute; inset: 0; }
.place-hero::after { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; background: linear-gradient(90deg, rgba(4, 35, 63, 0.97) 0, rgba(4, 35, 63, 0.92) 34%, rgba(4, 35, 63, 0.5) 54%, rgba(4, 35, 63, 0) 72%), linear-gradient(to bottom, rgba(4, 35, 63, 0.62) 0, rgba(4, 35, 63, 0) 22%); }
.place-hero__inner { position: relative; z-index: 2; padding-top: calc(var(--header-h) + 34px); padding-bottom: clamp(132px, 20vh, 196px); }
.place-hero__text { max-width: 39rem; }
.crumb { margin: 0; font-size: 0.95rem; font-weight: 600; }
.crumb a { display: inline-flex; align-items: center; gap: 8px; color: rgba(255, 255, 255, 0.86); text-decoration: none; }
.crumb a:hover { color: var(--white); text-decoration: underline; }
.place-hero__when { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 14px; margin: 20px 0 8px; }
.place-hero__when-label { color: var(--sky); font-family: var(--font-serif); font-size: 1.25rem; }
.place-hero__year { color: var(--gold); font-size: clamp(4.6rem, 2.6rem + 9vw, 9.5rem); line-height: 0.95; }
.place-hero__title { margin: 0 0 0.3em; padding-left: 18px; border-left: 6px solid var(--gold); color: var(--white); font-size: clamp(2.1rem, 1.3rem + 3.3vw, 3.9rem); }
.place-hero__sub { margin: 0; color: rgba(255, 255, 255, 0.88); font-family: var(--font-serif); font-size: clamp(1.1rem, 1rem + 0.6vw, 1.5rem); line-height: 1.35; }
.place-hero__sub .pipe { color: rgba(255, 255, 255, 0.4); }
.place-hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 0; }
.place-hero .map-credit { left: 0; right: auto; z-index: 3; }
/* a place with no position on the map opens on its own ink drawing instead, as white lines */
.place-hero__art { position: absolute; right: 0; top: 0; width: 62%; height: 100%; object-fit: cover; object-position: center 30%; filter: invert(1) grayscale(1) contrast(1.15); mix-blend-mode: screen; opacity: 0.2; -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 45%); mask-image: linear-gradient(90deg, transparent 0, #000 45%); }

.place-body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.04fr); align-items: start; gap: clamp(28px, 5vw, 76px); padding-bottom: clamp(52px, 7vw, 100px); }
.place-body__media { position: relative; z-index: 3; grid-column: 2; grid-row: 1; margin-top: clamp(-170px, -17vh, -108px); }
.place-body__story { grid-column: 1; grid-row: 1; padding-top: clamp(34px, 5vw, 68px); }
.place-frame { padding: 10px; background: var(--white); box-shadow: 0 30px 70px rgba(4, 22, 40, 0.4); }
.place-frame a { display: block; }
.thumbs { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; margin: 12px 0 0; padding: 0 10px; list-style: none; }
.thumbs a { position: relative; display: block; aspect-ratio: 4 / 3; overflow: hidden; background: var(--mist); }
.thumbs img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease); }
.thumbs a:hover img { transform: scale(1.08); }
.thumbs a::after { content: ""; position: absolute; inset: 0; border: 3px solid var(--gold); opacity: 0; transition: opacity 0.25s; }
.thumbs a:hover::after, .thumbs a:focus-visible::after { opacity: 1; }
.thumbs__play { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(4, 35, 63, 0.45); color: var(--white); }
.place-aside { margin-top: clamp(26px, 3.5vw, 44px); padding: 0 10px; }
.place-aside h2 { margin: 0 0 0.7em; font-size: 1.1rem; }
.docs { margin: 0; padding: 0; list-style: none; border-top: 2px solid var(--ink); }
.docs a { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 14px; padding: 13px 0; border-bottom: 1px solid var(--line); color: var(--ink); font-weight: 600; line-height: 1.35; text-decoration: none; }
.docs a:hover { color: var(--blue); }
.docs__type { display: grid; place-items: center; min-width: 50px; height: 34px; padding: 0 8px; border: 2px solid currentColor; border-radius: 2px; color: var(--blue); font-family: var(--font-num); font-size: 0.9rem; }
.docs__meta { display: block; color: var(--muted); font-size: 0.88rem; font-weight: 400; }
.rich--lead > p:first-of-type { color: var(--ink); font-size: 1.16em; line-height: 1.6; }

.plaque { position: relative; margin: clamp(28px, 4vw, 46px) 0 0; padding: 20px 30px; background: var(--blue-deep); color: var(--white); }
.plaque::before { content: ""; position: absolute; inset: 7px; border: 1px solid rgba(201, 162, 75, 0.75); pointer-events: none; }
.plaque > div { display: grid; grid-template-columns: 8.4rem minmax(0, 1fr); gap: 14px; padding: 12px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.14); }
.plaque > div:last-child { border-bottom: 0; }
.plaque dt { color: var(--gold-light); font-size: 0.88rem; font-weight: 600; }
.plaque dd { margin: 0; overflow-wrap: anywhere; }
.plaque a { color: var(--white); font-weight: 600; }
.plaque__more { display: inline-block; margin-top: 4px; color: var(--gold-light) !important; }
.plaque .num { font-size: 1.25em; }

.place-pager { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); background: var(--blue-night); color: var(--white); }
.place-pager__half { position: relative; display: block; overflow: hidden; isolation: isolate; padding: clamp(30px, 5vw, 62px) var(--gutter); background: var(--blue-night); color: var(--white); text-decoration: none; }
.place-pager__half + .place-pager__half { border-left: 1px solid rgba(255, 255, 255, 0.14); text-align: right; }
.place-pager__half::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform 0.5s var(--ease); }
a.place-pager__half:hover::before, a.place-pager__half:focus-visible::before { transform: scaleX(1); }
/* the neighbour's ink drawing, turned to white lines on the navy */
.place-pager__art { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; object-fit: cover; filter: invert(1) grayscale(1) contrast(1.15); mix-blend-mode: screen; opacity: 0.15; transition: opacity 0.5s, transform 0.9s var(--ease); }
a.place-pager__half:hover .place-pager__art { opacity: 0.3; transform: scale(1.04); }
.place-pager__dir { display: block; color: var(--sky); font-family: var(--font-serif); }
.place-pager__year { display: block; color: var(--gold); font-size: clamp(2.6rem, 2rem + 3vw, 4.4rem); line-height: 1.08; }
.place-pager__name { display: block; font-size: clamp(1rem, 0.9rem + 0.5vw, 1.3rem); font-weight: 800; line-height: 1.2; text-transform: uppercase; }
.notice { padding: clamp(60px, 12vw, 140px) 0; }
.notice p { max-width: 52ch; }
.notice__code { margin: 0 0 6px; color: var(--blue); font-size: clamp(4.5rem, 2.6rem + 9vw, 9.5rem); line-height: 0.95; }

@media (max-width: 899px) {
  .place-hero { min-height: min(100vh, 780px); min-height: min(100svh, 780px); }
  .place-hero::after { background: linear-gradient(to top, rgba(4, 35, 63, 0.97) 0, rgba(4, 35, 63, 0.84) 46%, rgba(4, 35, 63, 0.08) 80%), linear-gradient(to bottom, rgba(4, 35, 63, 0.62) 0, rgba(4, 35, 63, 0) 20%); }
  .place-hero__inner { padding-bottom: 134px; }
  .place-hero .map-credit { left: auto; right: 0; bottom: 92px; } /* clear of the picture, which laps 86px over the hero */
  .place-body { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .place-body__media, .place-body__story { grid-column: 1; grid-row: auto; }
  .place-body__media { margin-top: -86px; }
  .place-pager { grid-template-columns: minmax(0, 1fr); }
  .place-pager__half + .place-pager__half { border-left: 0; border-top: 1px solid rgba(255, 255, 255, 0.14); text-align: left; }
  .plaque { padding: 18px 22px; }
  .plaque > div { grid-template-columns: minmax(0, 1fr); gap: 2px; }
}

.lightbox { width: 100vw; max-width: none; height: 100vh; height: 100dvh; max-height: none; margin: 0; padding: 0; border: 0; background: rgba(4, 22, 40, 0.97); color: var(--white); }
.lightbox::backdrop { background: rgba(4, 22, 40, 0.9); }
.lightbox[open] { display: grid; grid-template: "prev stage next" minmax(0, 1fr) "meta meta meta" auto / 64px minmax(0, 1fr) 64px; align-items: center; animation: fade 0.25s; }
.lightbox__stage { grid-area: stage; display: grid; place-items: center; height: 100%; padding: 64px 0 8px; min-height: 0; }
.lightbox__img { max-width: 100%; max-height: 100%; object-fit: contain; }
.lightbox__video { width: min(100%, 1100px); aspect-ratio: 16 / 9; border: 0; }
.lightbox__meta { grid-area: meta; padding: 10px 20px 22px; text-align: center; }
.lightbox__caption, .lightbox__count { margin: 0; }
.lightbox__count { opacity: 0.7; font-size: 0.9rem; }
.lightbox__btn { display: grid; place-items: center; width: 52px; height: 52px; margin: auto; padding: 0; border: 0; border-radius: 50%; background: rgba(255, 255, 255, 0.1); color: var(--white); cursor: pointer; }
.lightbox__btn:hover { background: rgba(255, 255, 255, 0.24); }
.lightbox__btn--prev { grid-area: prev; }
.lightbox__btn--next { grid-area: next; }
.lightbox__btn--close { position: absolute; top: 10px; right: 10px; z-index: 2; }
@keyframes fade { from { opacity: 0; } }
@media (max-width: 600px) { .lightbox[open] { grid-template-columns: 52px minmax(0, 1fr) 52px; } .lightbox__btn { width: 44px; height: 44px; } }

/* 9. THE 3D TOWN MODEL ---------------------------------------------------- */
.map-canvas { position: absolute; inset: 0; width: 100%; height: 100%; outline-offset: -4px; }
.map-canvas:focus-visible { outline: 3px solid var(--white); }
.map-canvas.is-dragging { cursor: grabbing; }
.map-labels { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.map-label { position: absolute; left: 0; top: 0; display: inline-flex; align-items: center; gap: 8px; max-width: 280px; padding: 5px 10px 5px 9px; border: 1px solid rgba(255, 255, 255, 0.16); border-radius: 2px; background: rgba(4, 27, 49, 0.88); color: var(--white); font-family: var(--font-sans); font-size: 0.8rem; font-weight: 700; line-height: 1.15; white-space: nowrap; box-shadow: 0 6px 20px rgba(2, 12, 24, 0.55); opacity: 0; visibility: hidden; transition: opacity 0.25s, visibility 0s 0.25s; will-change: transform; }
button.map-label { cursor: pointer; pointer-events: auto; }
.map-label::after { content: ""; position: absolute; left: 50%; bottom: -5px; width: 10px; height: 10px; margin-left: -5px; background: rgb(4, 27, 49); transform: rotate(45deg); }
.map-label.is-on { opacity: 1; visibility: visible; transition-delay: 0s; }
.map-label__year { position: relative; z-index: 1; color: var(--gold-light); font-size: 1rem; }
.map-label__name { position: relative; z-index: 1; overflow: hidden; text-overflow: ellipsis; }
/* Frosted navy glass, used over the model for the date and for the label of the place in view */
.glass, .map-label.is-active { border: 1px solid rgba(255, 255, 255, 0.28); background: linear-gradient(140deg, rgba(10, 66, 116, 0.62), rgba(5, 38, 70, 0.46)); -webkit-backdrop-filter: blur(16px) saturate(1.5); backdrop-filter: blur(16px) saturate(1.5); box-shadow: 0 18px 50px rgba(4, 22, 40, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.24); color: var(--white); }
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) { .glass, .map-label.is-active { background: rgba(6, 49, 90, 0.93); } }
.map-label.is-active { z-index: 2; border-color: rgba(230, 204, 143, 0.75); gap: 10px; max-width: 340px; padding: 9px 16px 9px 14px; border-radius: 14px; font-size: 0.95rem; text-shadow: 0 1px 2px rgba(4, 22, 40, 0.55); }
.map-label.is-active::after { left: 50%; bottom: -15px; width: 1px; height: 15px; margin: 0; background: linear-gradient(rgba(255, 255, 255, 0.75), rgba(255, 255, 255, 0)); transform: none; }
.map-label.is-active .map-label__year { color: var(--gold-light); font-size: 1.3rem; }
.map-credit { position: absolute; right: 0; bottom: 0; z-index: 3; margin: 0; padding: 3px 10px; background: rgba(4, 35, 63, 0.7); color: rgba(255, 255, 255, 0.88); font-size: 0.72rem; }
.map-credit a { color: inherit; }
.map-fallback { position: absolute; inset: 0; display: grid; place-items: center; margin: 0; padding: 40px; color: var(--white); text-align: center; }

/* 10. MAP VIEW ------------------------------------------------------------ */
.explorer { position: relative; display: grid; grid-template-columns: minmax(300px, 400px) minmax(0, 1fr); min-height: 0; }
.explorer__panel { display: flex; flex-direction: column; min-height: 0; overflow-y: auto; background: var(--white); border-right: 1px solid var(--line); }
.explorer__intro { padding: 26px 26px 18px; }
.explorer__intro h1 { font-size: clamp(1.6rem, 1.3rem + 1vw, 2.1rem); }
.explorer__intro-body { font-size: 0.97rem; }
.js .explorer__intro:not(.is-open) .explorer__intro-body { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 6; line-clamp: 6; overflow: hidden; }
.explorer__intro .link-btn { margin-top: 8px; font-size: 0.95rem; }
.timebar { position: sticky; top: 0; z-index: 2; padding: 14px 26px 16px; background: var(--blue-deep); color: var(--white); }
.timebar__label { display: block; margin-bottom: 8px; font-size: 0.88rem; font-weight: 600; }
.timebar__row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 14px; }
.timebar__play { display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 2px solid rgba(255, 255, 255, 0.8); border-radius: 50%; background: transparent; color: var(--white); cursor: pointer; }
.timebar__play:hover { background: var(--white); color: var(--blue); }
.timebar__out { min-width: 4.2ch; font-size: 1.9rem; line-height: 1; text-align: right; }
.timebar input[type="range"] { width: 100%; height: 28px; margin: 0; background: transparent; cursor: pointer; -webkit-appearance: none; appearance: none; }
.timebar input[type="range"]::-webkit-slider-runnable-track { height: 3px; background: linear-gradient(to right, var(--gold) var(--fill, 100%), rgba(255, 255, 255, 0.35) var(--fill, 100%)); }
.timebar input[type="range"]::-moz-range-track { height: 3px; background: rgba(255, 255, 255, 0.35); }
.timebar input[type="range"]::-moz-range-progress { height: 3px; background: var(--gold); }
.timebar input[type="range"]::-webkit-slider-thumb { width: 20px; height: 20px; margin-top: -9px; border: 0; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 4px rgba(201, 162, 75, 0.35); -webkit-appearance: none; appearance: none; }
.timebar input[type="range"]::-moz-range-thumb { width: 20px; height: 20px; border: 0; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 4px rgba(201, 162, 75, 0.35); }
.timebar input[type="range"]:focus-visible { outline: 3px solid var(--white); outline-offset: 4px; }
.sitelist { margin: 0; padding: 6px 0 20px; list-style: none; }
.sitelist__item { display: grid; grid-template-columns: 3.6rem minmax(0, 1fr); align-items: baseline; gap: 12px; padding: 10px 26px; border-left: 4px solid transparent; color: var(--ink); font-size: 0.97rem; font-weight: 600; line-height: 1.3; text-decoration: none; transition: background-color 0.2s, opacity 0.3s; }
.sitelist__item .num { color: var(--blue); font-size: 1.2rem; }
.sitelist__item:hover { background: var(--mist); }
.sitelist__item.is-active { border-left-color: var(--gold); background: var(--mist); }
.sitelist__item.is-later { opacity: 0.4; }
.sitelist__item small { display: block; color: var(--muted); font-size: 0.82rem; font-weight: 400; }
.sitelist__head { margin-top: 12px; padding: 14px 26px 8px; border-top: 1px solid var(--line); color: var(--muted); font-family: var(--font-serif); }
.explorer__map { position: relative; min-height: 0; overflow: hidden; background: var(--model); }
.explorer__map::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(120% 95% at 50% 45%, rgba(2, 12, 24, 0) 55%, rgba(2, 12, 24, 0.6) 100%); }
.map-ui { position: absolute; top: 16px; right: 16px; z-index: 4; display: grid; gap: 8px; }
/* the map controls are frosted navy glass, like the other panels over the model */
.map-ui button { display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 1px solid rgba(255, 255, 255, 0.28); border-radius: 12px; background: linear-gradient(140deg, rgba(10, 66, 116, 0.66), rgba(5, 38, 70, 0.52)); -webkit-backdrop-filter: blur(14px) saturate(1.5); backdrop-filter: blur(14px) saturate(1.5); color: var(--white); box-shadow: 0 10px 28px rgba(4, 22, 40, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.24); cursor: pointer; transition: border-color 0.2s, color 0.2s, background-color 0.2s; }
.map-ui button:hover { border-color: rgba(230, 204, 143, 0.8); color: var(--gold-light); }
.map-ui button:active { background-color: rgba(4, 27, 49, 0.5); }
.map-ui__north path + path { opacity: 0.55; }
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) { .map-ui button { background: rgba(6, 49, 90, 0.93); } }
.map-ui__north svg { transform: rotate(var(--turn, 0deg)); }
.map-hint { position: absolute; left: 16px; bottom: 14px; z-index: 3; max-width: min(420px, calc(100% - 180px)); margin: 0; color: rgba(255, 255, 255, 0.85); font-size: 0.82rem; line-height: 1.4; text-shadow: 0 1px 8px rgba(4, 22, 40, 0.9); pointer-events: none; }
.site-card { position: absolute; left: 20px; top: 20px; z-index: 5; width: min(360px, calc(100% - 96px)); max-height: calc(100% - 70px); overflow-y: auto; background: var(--white); box-shadow: 0 20px 60px rgba(4, 22, 40, 0.55); animation: card-in 0.4s var(--ease); }
@keyframes card-in { from { opacity: 0; transform: translateY(14px); } }
.site-card__img { display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--mist); }
.site-card__img img { width: 100%; height: 100%; object-fit: cover; }
.site-card__body { padding: 16px 20px 20px; }
.site-card__year { display: block; color: var(--blue); font-size: 2.3rem; line-height: 1; }
.site-card__name { margin: 4px 0 4px; font-size: 1.2rem; }
.site-card__sub { margin: 0 0 8px; color: var(--muted); font-family: var(--font-serif); line-height: 1.35; }
.site-card__text { margin: 0 0 14px; font-size: 0.95rem; }
.site-card__actions { display: flex; flex-wrap: wrap; gap: 8px; }
.site-card__actions .btn { min-height: 42px; padding: 0 16px; font-size: 0.82rem; }
.site-card__close { position: absolute; top: 8px; right: 8px; display: grid; place-items: center; width: 38px; height: 38px; padding: 0; border: 0; border-radius: 50%; background: rgba(255, 255, 255, 0.92); color: var(--ink); cursor: pointer; }
.site-card__others { margin: 0 0 14px; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.site-card__others a { display: block; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 0.95rem; font-weight: 600; text-decoration: none; }
.site-card__others a:hover { text-decoration: underline; }

@media (min-width: 900px) {
  .page-map { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; height: 100vh; height: 100dvh; overflow: hidden; }
}
@media (max-width: 899px) {
  .explorer { grid-template-columns: minmax(0, 1fr); }
  .explorer__map { order: -1; height: 64vh; height: 64svh; min-height: 340px; }
  .explorer__panel { overflow: visible; border-right: 0; }
  .explorer__intro, .timebar, .sitelist__item, .sitelist__head { padding-inline: var(--gutter); }
  .timebar { top: var(--header-h); }
  .site-card { left: 10px; right: 10px; top: auto; bottom: 30px; width: auto; max-height: 62%; }
  .site-card__img { display: none; }
  .map-hint { display: none; }
}

/* 11. CONTACT, FORMS AND SIMPLE PAGES ------------------------------------- */
.owners { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 0 clamp(24px, 4vw, 56px); margin: 0; padding: 0; list-style: none; border-top: 2px solid var(--ink); }
.owners li { padding: 20px 0; border-bottom: 1px solid var(--line); }
.owners__year { color: var(--blue); font-size: 1.25rem; }
.owners__name { margin: 0 0 4px; font-size: 1.05rem; }
.owners__name a { color: var(--ink); text-decoration: none; }
.owners__name a:hover { color: var(--blue); text-decoration: underline; }
.owners p { margin: 0; font-size: 0.97rem; }
.owners address { font-style: normal; }
.contact-band { margin-top: clamp(40px, 6vw, 80px); padding: clamp(40px, 6vw, 80px) 0 clamp(48px, 7vw, 96px); background: var(--mist); border-top: 2px solid var(--blue); }
.contact-band__grid { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(28px, 5vw, 80px); align-items: start; }
.contact_info ul { margin: 0; padding: 0; list-style: none; }
.contact_info li { margin-bottom: 6px; }
.contact_info h6 { margin: 0 0 8px; color: var(--blue); font-family: var(--font-serif); font-size: 1.6rem; font-weight: 400; line-height: 1.2; }
.form_holder h2 { margin-bottom: 0.8em; }
.form-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.form-grid .full { grid-column: 1 / -1; }
.form-grid label { display: block; margin-bottom: 5px; color: var(--ink); font-size: 0.92rem; font-weight: 700; }
.form-grid .require { color: var(--blue); }
.form_input { width: 100%; min-height: 48px; padding: 10px 12px; border: 1px solid var(--line-strong); border-radius: 2px; background: var(--white); }
textarea.form_input { min-height: 140px; resize: vertical; }
.form_input:focus-visible { outline: 3px solid var(--blue); outline-offset: 1px; border-color: var(--blue); }
.form_input.has-error { border-color: var(--blue-night); background: #fbf7ec; box-shadow: inset 0 0 0 2px var(--blue-night); }
.form-note { margin: 0 0 14px; color: var(--muted); font-size: 0.92rem; }
.form_error, .form-alert { margin: 0 0 18px; padding: 14px 16px; border-left: 5px solid var(--gold); background: #f8f2e2; color: var(--blue-night); font-weight: 700; }
.form-grid .btn { width: 100%; }
.grecaptcha-badge { z-index: 40; }
@media (max-width: 860px) { .contact-band__grid { grid-template-columns: minmax(0, 1fr); } .form-grid { grid-template-columns: minmax(0, 1fr); } }

/* 12. FOOTER -------------------------------------------------------------- */
.site-footer { position: relative; z-index: 1; background: var(--blue); color: var(--white); font-size: 0.78rem; font-weight: 600; letter-spacing: 0.02em; text-transform: uppercase; }
.site-footer__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 4px 14px; min-height: 52px; padding: 12px var(--gutter); }
.site-footer p { margin: 0; }
.site-footer p + p::before { content: "|"; margin-right: 14px; opacity: 0.6; }
.site-footer a { color: inherit; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }

/* 13. MOTION -------------------------------------------------------------- */
/* The roll */
.roll { display: inline-flex; align-items: flex-start; height: 1em; overflow: hidden; line-height: 1; vertical-align: bottom; }
.roll__col { display: block; transition: transform 1.3s var(--ease-roll); transition-delay: calc(var(--i, 0) * 70ms); }
.roll__col > span { display: block; height: 1em; }
/* The wipe and a quiet rise, used once as things scroll into view */
/* (the clip is on the child: an element clipped to nothing never reports itself as on screen) */
.js [data-reveal="wipe"] > * { clip-path: inset(0 100% 0 0); transition: clip-path 1s var(--ease); transition-delay: var(--d, 0ms); }
.js [data-reveal="wipe"].is-in > * { clip-path: inset(0 0 0 0); }
.js [data-reveal="rise"] { opacity: 0; transform: translateY(16px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); transition-delay: var(--d, 0ms); }
.js [data-reveal="rise"].is-in { opacity: 1; transform: none; }
/* Pages cross-fade into each other; a list picture grows into the picture on its page */
@view-transition { navigation: auto; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: 0.3s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; transition-delay: 0s !important; }
  .js [data-reveal], .js [data-reveal="wipe"] > * { clip-path: none; opacity: 1; transform: none; }
  @view-transition { navigation: none; }
}

/* 14. PRINT --------------------------------------------------------------- */
@media print {
  .site-header, .site-footer, .stage, .timeline__hud, .hero__scroll, .hero__actions, .toolbar, .place-hero__model, .place-hero__actions, .place-pager, .explorer__map, .timebar, .compare__range, .compare__handle, .compare__line { display: none !important; }
  .hero { min-height: 0; padding: 0 0 20px; color: #000; text-align: left; }
  .hero__text h1 { color: #000; text-shadow: none; }
  .hero__text p { text-shadow: none; }
  .place-hero { min-height: 0; background: none; color: #000; }
  .place-hero::after { display: none; }
  .place-hero__inner { padding: 0 0 16px; }
  .place-hero__title, .place-hero__year, .place-hero__sub, .place-hero__when-label, .crumb a { color: #000; }
  .place-body { display: block; }
  .place-body__media { margin-top: 0; }
  .timeline { display: block; }
  .chapter { min-height: 0; padding: 16px 0; break-inside: avoid; }
  .chapter__when { display: block; }
  .compare__top { clip-path: inset(0 50% 0 0); }
  .entry { break-inside: avoid; }
  .js [data-reveal], .js [data-reveal="wipe"] > * { clip-path: none !important; opacity: 1 !important; transform: none !important; }
}
