/* Showcases: one city at a time in Polycity, the platform's own films and
   stills in windows like the Europe deck's, under the site's own header and
   footer. Every rule starts at .showcase or .atlas-page, so nothing reaches
   another page. One column under 900 pixels. */

/* Over the Showcases map the site header is navy too: white words, CITY in
   the bright run of brand colours and the mark's lifted-colour copy, as the
   homepage header looks over its navy city. The phone menu still opens on
   paper, so the header goes back to paper while it lies open. */
.atlas-page .site-header:not(:has(.mobile-menu[open])) { background: #000b2d; border-color: #000b2d; color: #fff; }
.atlas-page .site-header:not(:has(.mobile-menu[open])) .brand-lockup { color: #fff; }
.atlas-page .site-header:not(:has(.mobile-menu[open])) .brand-word span { background: linear-gradient(90deg, #0ad6ed, #3f6bff, #9a4dff, #d63aa4, #fd4b08); -webkit-background-clip: text; background-clip: text; color: transparent; }
.atlas-page .site-header:not(:has(.mobile-menu[open])) .brand .brand-mark { display: none; }
.atlas-page .site-header:not(:has(.mobile-menu[open])) .brand .brand-mark-light { display: block; }
.atlas-page .site-header:not(:has(.mobile-menu[open])) .nav-links a,
.atlas-page .site-header:not(:has(.mobile-menu[open])) .language-switch summary,
.atlas-page .site-header:not(:has(.mobile-menu[open])) .mobile-menu summary { color: #fff; }
.atlas-page .site-header:not(:has(.mobile-menu[open])) .language-switch summary:hover { background: #ffffff1f; }
.atlas-page .site-header:not(:has(.mobile-menu[open])) .nav > .button { color: #fff; border-color: #ffffff66; background: transparent; }
.atlas-page .site-header:not(:has(.mobile-menu[open])) .nav > .button:hover { background: #ffffff1f; }

.showcase { --edge: clamp(20px, 5vw, 96px); --wide: 1360px; --copy: #45536f; font-family: Manrope, Arial, sans-serif; color: var(--ink); line-height: 1.5; }
.showcase a { color: inherit; }
.showcase .label { font-size: 13px; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); }

/* The city bar: a link back, the page's name and, on a city's page, its
   chapters. It stays at the top of the screen once the site header has
   scrolled away; showcase-nav.js marks the chapter being read and fills the
   brand band along its foot. Under 980 pixels the chapter row folds into a
   list opened from the chapter being read. Both are named city-chapters and
   city-chapter-menu because homepage.css, loaded here too, styles its own
   chapter strip as chapters and chapter-menu. */
html:has(.showcase-page) { scroll-behavior: smooth; }
.showcase .chapter { scroll-margin-top: 64px; }
.showcase .city-bar { position: sticky; top: 0; z-index: 8; background: rgba(246, 247, 251, 0.96); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.showcase .city-bar .in { max-width: var(--wide); margin: 0 auto; padding: 0 var(--edge); height: 56px; display: flex; align-items: center; gap: 18px; }
.showcase .city-bar .back { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); text-decoration: none; white-space: nowrap; padding-right: 18px; border-right: 1px solid var(--line); line-height: 22px; }
.showcase .city-bar .back:hover { color: var(--accent); }
.showcase .city-bar .where { display: flex; align-items: baseline; gap: 8px; min-width: 0; white-space: nowrap; }
.showcase .city-bar .where b { font-size: 16px; }
.showcase .city-bar .where small { font-size: 12px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; }
.showcase .city-bar .aside { margin-left: auto; font-size: 13px; color: var(--muted); white-space: nowrap; }
.showcase .city-bar .city-chapters { margin-left: auto; display: flex; gap: 22px; align-self: stretch; }
.showcase .city-bar .city-chapters a { display: flex; align-items: center; font-size: 13px; font-weight: 600; color: var(--muted); text-decoration: none; white-space: nowrap; border-bottom: 2px solid transparent; margin-bottom: -1px; transition: color .2s, border-color .2s; }
.showcase .city-bar .city-chapters a:hover { color: var(--ink); }
.showcase .city-bar .city-chapters a[aria-current] { color: var(--ink); border-bottom-color: var(--accent); }
.showcase .city-bar .read { position: absolute; left: 0; right: 0; bottom: -1px; height: 3px; background: var(--spectrum); transform: scaleX(0); transform-origin: left; }

/* The narrow screen's chapter list: the chapter being read and its number,
   opening onto the chapters in order, a line drawn through them. */
.showcase .city-chapter-menu { display: none; margin-left: auto; position: relative; }
.showcase .city-chapter-menu summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 8px; font-size: 13px; white-space: nowrap; border: 1px solid var(--line); border-radius: 8px; padding: 7px 10px; background: #fff; }
.showcase .city-chapter-menu summary::-webkit-details-marker { display: none; }
.showcase .city-chapter-menu summary .count { color: var(--muted); font-weight: 600; }
.showcase .city-chapter-menu summary svg { width: 12px; height: 12px; fill: none; stroke: var(--ink); stroke-width: 1.6; transition: transform .2s; }
.showcase .city-chapter-menu[open] summary svg { transform: rotate(180deg); }
.showcase .city-chapter-menu ol { position: absolute; right: 0; top: calc(100% + 10px); width: min(300px, calc(100vw - 2 * var(--edge))); margin: 0; padding: 8px 16px; list-style: none; background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 18px 50px rgba(0, 11, 45, 0.18); }
.showcase .city-chapter-menu li a { position: relative; display: flex; align-items: center; gap: 14px; height: 44px; font-size: 15px; color: var(--copy); text-decoration: none; white-space: nowrap; }
.showcase .city-chapter-menu li a::before { content: ""; position: absolute; left: 6px; top: 0; bottom: 0; width: 2px; background: var(--line); }
.showcase .city-chapter-menu li:first-child a::before { top: 50%; }
.showcase .city-chapter-menu li:last-child a::before { bottom: 50%; }
.showcase .city-chapter-menu .mark { position: relative; z-index: 1; flex: none; width: 14px; height: 14px; border-radius: 50%; border: 2px solid #c3c9d8; background: #fff; }
.showcase .city-chapter-menu i { font-style: normal; font-size: 12px; color: var(--muted); width: 16px; }
.showcase .city-chapter-menu a.past .mark { border-color: var(--blue); background: var(--blue); }
.showcase .city-chapter-menu a[aria-current] { color: var(--ink); font-weight: 800; }
.showcase .city-chapter-menu a[aria-current] .mark { border-color: var(--accent); background: var(--accent); box-shadow: 0 0 0 4px rgba(106, 31, 176, 0.15); }

@media (max-width: 980px) {
  .showcase .city-bar .city-chapters { display: none; }
  .showcase .city-chapter-menu { display: block; }
}
@media (max-width: 600px) {
  .showcase .city-bar .in { height: 54px; gap: 12px; }
  .showcase .city-bar .back { padding-right: 12px; }
  .showcase .city-bar .back-name { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .showcase .city-bar .where small { display: none; }
}

/* The Showcases page is its map of Europe, filling the screen under the site
   header: the flat picture of the land and its main roads that
   scripts/make-europe-map.mjs draws in src/europe-map.mjs's Showcases cut, a
   round window onto each showcased city's own streets at its place, its name
   beside it, and the page's title over the Atlantic. A city opens from its
   window; the map is the only list of cities.

   The map is sized to its cities, not to Europe. The page generator writes on
   the stage how far the cities reach from the picture's west and north edges,
   in projected units (--cities-west and the rest), and the picture's own size
   in the same units (--map-wide, --map-tall). One unit is drawn --k pixels:
   as many as let the cities span --share of the stage's width, or fit between
   the room their names need above (--head) and the band at the foot
   (--foot), whichever is fewer. The cities' middle stands at --middle across
   the stage and the southernmost city --foot above its foot. On a desktop
   that spread Porto to Helsinki over 714 by 645 pixels at 1440, where the
   old tilted map of all Europe gave them 547 by 496 (4 Nov 2026). */
.showcase .atlas-stage {
  --share: 0.5; --middle: 59cqw; --head: 92px; --foot: 64px;
  --span-x: calc(var(--cities-east) - var(--cities-west));
  --span-y: calc(var(--cities-south) - var(--cities-north));
  --k: min(var(--share) * 100cqw / var(--span-x), (100cqh - var(--head) - var(--foot)) / var(--span-y));
  container-type: size; position: relative; height: max(640px, calc(100svh - 88px)); overflow: hidden; color: #fff;
  background: radial-gradient(80% 70% at 58% 58%, #10287f 0%, #071655 40%, #020d38 70%, #000b2d 100%); isolation: isolate;
}
/* A soft night over the far north and the stage's edges, under the cities, and
   the brand band closing the stage at its foot. */
.showcase .atlas-stage::before { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; background: linear-gradient(180deg, #000b2d 0%, rgba(0, 11, 45, 0.5) 10%, rgba(0, 11, 45, 0) 26%), radial-gradient(ellipse 85% 95% at 55% 55%, rgba(0, 11, 45, 0) 62%, rgba(0, 11, 45, 0.65) 100%); }
.showcase .atlas-stage::after { content: ""; position: absolute; inset: auto 0 0; height: 4px; z-index: 4; background: var(--spectrum); }
/* The picture and the cities on it, as one box: a city's --x and --y are its
   share of the picture. The box makes no layer of its own, so the cities stand
   over the night above and the picture under it. */
.showcase .atlas { position: absolute; width: calc(var(--map-wide) * var(--k)); height: calc(var(--map-tall) * var(--k)); left: calc(var(--middle) - (var(--cities-west) + var(--cities-east)) / 2 * var(--k)); top: calc(100cqh - var(--foot) - var(--cities-south) * var(--k)); }
/* The picture's own edges fade into the night, so a wide or tall screen never
   shows where it is cut. */
.showcase .atlas .land { display: block; width: 100%; height: 100%; -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 6%, #000 94%, transparent 100%), linear-gradient(180deg, transparent 0, #000 6%, #000 100%); -webkit-mask-composite: source-in; mask-image: linear-gradient(90deg, transparent 0, #000 6%, #000 94%, transparent 100%), linear-gradient(180deg, transparent 0, #000 6%, #000 100%); mask-composite: intersect; animation: atlas-land 1.6s ease-out both; }

/* The title, over the Atlantic. */
.showcase .atlas-words { position: absolute; z-index: 3; left: var(--edge); top: clamp(36px, 8cqh, 96px); max-width: 720px; pointer-events: none; text-shadow: 0 4px 30px rgba(0, 11, 45, 0.9); }
.showcase .atlas-words .label { color: var(--cyan); }
.showcase .atlas-words h1 { margin: 12px 0 10px; font-size: clamp(44px, 6.4vw, 108px); line-height: 0.98; letter-spacing: -0.035em; font-weight: 600; color: #fff; }
.showcase .atlas-words p { margin: 0; font-size: 17px; color: #a9b8e0; }

/* A city: a round window onto its own streets in Polycity, coloured by
   traffic, ringed in cyan with a slow pulse, and its name and region beside
   it. Pointed at or focused, it turns gold, the window grows and plays the
   city's streets through the day (showcase-map.js starts the film), and an
   arrow follows the name. showcase-map.js stands the name to the right, the
   left, above or below, wherever it covers nothing. */
.showcase .pin { --lit: 0; --glow: color-mix(in srgb, #febe11 calc(var(--lit) * 100%), #0ad6ed); --lens: clamp(44px, 5cqw, 76px); --gap: 12px; position: absolute; left: var(--x); top: var(--y); width: 0; height: 0; z-index: 2; color: #fff; text-decoration: none; }
.showcase .pin:hover, .showcase .pin:focus-visible { --lit: 1; z-index: 3; outline: none; }
.showcase .pin::before { content: ""; position: absolute; left: calc(var(--lens) / -2); top: calc(var(--lens) / -2); width: var(--lens); height: var(--lens); border-radius: 50%; border: 2px solid var(--glow); pointer-events: none; animation: atlas-pulse 3.2s ease-out infinite; animation-delay: calc(var(--order) * 0.4s); }
.showcase .pin .lens { position: absolute; left: calc(var(--lens) / -2); top: calc(var(--lens) / -2); width: var(--lens); height: var(--lens); box-sizing: border-box; border-radius: 50%; overflow: hidden; border: 2px solid var(--glow); background: #e8ebef; box-shadow: 0 0 0 4px color-mix(in srgb, var(--glow) 18%, transparent), 0 0 30px 8px color-mix(in srgb, var(--glow) 34%, transparent), 0 8px 20px rgba(0, 0, 0, 0.5); transform: scale(calc(1 + var(--lit) * 0.3)); transition: transform .3s cubic-bezier(.2, .8, .2, 1), border-color .25s ease, box-shadow .25s ease; animation: atlas-point .8s cubic-bezier(.2, .9, .3, 1.3) both; animation-delay: calc(0.9s + var(--order) * 0.12s); }
.showcase .pin .lens video { display: block; width: 100%; height: 100%; object-fit: cover; }
/* The name stands clear of the window, on the night with a navy shadow under
   its letters, so a coast or a road behind never crosses it. */
/* The name steps out by --out as the window grows. Only that step moves
   smoothly: a name changing sides moves at once, so showcase-map.js measures
   each side where it stands. */
.showcase .pin .tag { --out: calc(var(--lit) * var(--lens) * 0.15); position: absolute; left: calc(var(--lens) / 2 + var(--gap)); top: 0; transform: translateY(-50%); translate: var(--out) 0; display: flex; flex-direction: column; white-space: nowrap; text-shadow: 0 2px 14px #000b2d, 0 0 4px #000b2d, 0 0 2px #000b2d; transition: translate .3s cubic-bezier(.2, .8, .2, 1); animation: atlas-tag .7s ease-out both; animation-delay: calc(1.3s + var(--order) * 0.12s); }
.showcase .pin.left .tag { left: auto; right: calc(var(--lens) / 2 + var(--gap)); translate: calc(-1 * var(--out)) 0; align-items: flex-end; }
/* A name above or below its window is moved sideways by --nudge where it would
   run past the map's edge, as Helsinki's does on a phone. */
.showcase .pin.above .tag, .showcase .pin.below .tag { left: 0; right: auto; align-items: center; transform: translate(calc(-50% + var(--nudge, 0px)), -100%); top: calc(var(--lens) / -2 - var(--gap) / 2); translate: 0 calc(-1 * var(--out)); }
.showcase .pin.below .tag { transform: translate(calc(-50% + var(--nudge, 0px)), 0); top: calc(var(--lens) / 2 + var(--gap) / 2); translate: 0 var(--out); }
.showcase .pin b { font-size: clamp(18px, 1.8cqw, 28px); line-height: 1.05; font-weight: 700; letter-spacing: -0.02em; color: color-mix(in srgb, #febe11 calc(var(--lit) * 100%), #fff); transition: color .25s ease; }
.showcase .pin b::after { content: " →"; color: #febe11; opacity: var(--lit); transition: opacity .25s ease; }
.showcase .pin small { margin-top: 3px; font-size: clamp(11px, 0.9cqw, 13px); color: #a9b8e0; }
@keyframes atlas-land { from { opacity: 0; } to { opacity: 1; } }
@keyframes atlas-point { from { opacity: 0; scale: 0.3; } to { opacity: 1; scale: 1; } }
@keyframes atlas-tag { from { opacity: 0; } to { opacity: 1; } }
@keyframes atlas-pulse { from { transform: scale(1); opacity: 0.7; } to { transform: scale(1.9); opacity: 0; } }
@media (prefers-reduced-motion: reduce) {
  .showcase .atlas .land, .showcase .pin::before, .showcase .pin .lens, .showcase .pin .tag { animation: none; }
  .showcase .pin::before { display: none; }
}
/* A tablet gives the cities more of its narrower width, nearer its middle. */
@media (min-width: 701px) and (max-width: 1100px) {
  .showcase .atlas-stage { --share: 0.6; --middle: 54cqw; }
}
/* A phone shows the same cut taller, the title over the North Sea and the
   cities across the screen's width under it, their names alone. */
@media (max-width: 700px) {
  .showcase .atlas-stage { --share: 0.8; --middle: 50cqw; --head: 300px; --foot: 52px; height: max(560px, calc(100svh - 88px)); }
  .showcase .atlas-words h1 { font-size: 42px; }
  .showcase .atlas-words p { font-size: 15px; }
  /* A short phone draws the map smaller, so its windows shrink with it: on a
     360 by 640 screen London's and Paris's stand 33 pixels apart. */
  .showcase .pin { --lens: clamp(24px, var(--k) * 0.045, 34px); --gap: 8px; }
  .showcase .pin .lens { border-width: 1.5px; box-shadow: 0 0 0 3px color-mix(in srgb, var(--glow) 18%, transparent), 0 0 18px 4px color-mix(in srgb, var(--glow) 30%, transparent), 0 4px 10px rgba(0, 0, 0, 0.5); }
  .showcase .pin b { font-size: 15px; }
  .showcase .pin small { display: none; }
}

/* A city's page opens on its day on Polycity's own Results page, the whole
   screen on navy: where the band is wider than the film, navy stands beside
   it, so the top bar and the run bar are never cut off. */
.showcase .hero { position: relative; background: var(--ink); color: #fff; overflow: hidden; }
.showcase .hero video { display: block; width: 100%; height: min(80vh, 56.25vw); object-fit: contain; opacity: 0.92; }
/* The words sit on a navy fade from the left and the foot, so the film's own
   panels never show through them. */
.showcase .hero::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(0, 11, 45, 0.82) 0%, rgba(0, 11, 45, 0.55) 45%, rgba(0, 11, 45, 0) 75%),
    linear-gradient(180deg, rgba(0, 11, 45, 0) 40%, rgba(0, 11, 45, 0.9));
}
.showcase .hero .words { position: absolute; z-index: 1; left: var(--edge); right: var(--edge); bottom: clamp(24px, 6vh, 72px); max-width: 980px; }
.showcase .hero .label { color: var(--cyan); }
.showcase .hero h1 { font-size: clamp(40px, 7vw, 104px); line-height: 1; letter-spacing: -0.02em; margin: 10px 0 14px; }
.showcase .hero p { font-size: clamp(17px, 1.6vw, 24px); color: #d8def0; max-width: 760px; }
.showcase .band { height: 4px; background: var(--spectrum); }

/* A chapter: a label, a headline, then its parts. */
.showcase .chapter { max-width: var(--wide); margin: 0 auto; padding: clamp(48px, 8vw, 120px) var(--edge) 0; }
.showcase .chapter h2 { font-size: clamp(30px, 4vw, 56px); line-height: 1.08; letter-spacing: -0.015em; margin: 10px 0 28px; max-width: 980px; }
.showcase .chapter .lead { font-size: clamp(17px, 1.4vw, 21px); color: var(--copy); max-width: 820px; margin: -10px 0 32px; }

/* The plans on the table: one row a plan, its source and date at the right. */
.showcase .agenda { margin: 0; padding: 0; border: 1px solid var(--line); border-radius: 16px; background: #fff; overflow: hidden; }
.showcase .agenda li { list-style: none; display: grid; grid-template-columns: 220px 1fr 200px; gap: 24px; padding: 20px 24px; border-bottom: 1px solid var(--line); align-items: baseline; }
.showcase .agenda li:last-child { border-bottom: 0; }
.showcase .agenda h3 { font-size: 17px; line-height: 1.3; }
.showcase .agenda p { color: var(--copy); }
.showcase .agenda .tool { display: block; margin-top: 6px; font-size: 13px; font-weight: 700; color: var(--blue); }
.showcase .agenda .source { font-size: 13px; color: var(--muted); text-align: right; }
.showcase .agenda .source a { text-decoration: none; border-bottom: 1px solid var(--line); }

/* A window: the platform's film or still in a frame with the brand band and
   a navy bar naming it, as the deck draws its films. */
.showcase .window { margin: 0; border-radius: 14px; overflow: hidden; background: #fff; border: 1px solid var(--line); box-shadow: 0 18px 50px rgba(0, 11, 45, 0.12); }
.showcase .window::before { content: ""; display: block; height: 4px; background: var(--spectrum); }
.showcase .window .bar { display: flex; justify-content: space-between; gap: 12px; background: var(--ink); color: #fff; font-size: 13px; font-weight: 700; padding: 8px 14px; }
/* A film's title runs onto a second line rather than being cut: Copenhagen's
   Bulgarian "Задай разрешени начини на придвижване" lost 24 px at 1440. */
.showcase .window .bar span { min-width: 0; }
.showcase .window .bar em { font-style: normal; color: #9fb0d8; font-weight: 600; white-space: nowrap; }
.showcase .window video, .showcase .window img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: #e9ecf4; }
.showcase .window figcaption { padding: 12px 16px 14px; font-size: 15px; color: var(--copy); }
.showcase .window figcaption b { color: var(--ink); display: block; font-size: 16px; }

.showcase .grid { display: grid; gap: 28px; }
.showcase .grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.showcase .grid.lead-two { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); align-items: start; }
.showcase .stack { display: grid; gap: 28px; }

/* Where the city's copy came from: one row a source. */
.showcase .sources { margin: 0; border: 1px solid var(--line); border-radius: 16px; background: #fff; }
.showcase .sources div { display: flex; justify-content: space-between; gap: 16px; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.showcase .sources div:last-child { border-bottom: 0; }
.showcase .sources dt { font-weight: 800; }
.showcase .sources dd { margin: 0; color: var(--muted); text-align: right; }

/* The study to come: a navy card with the plan it tests. */
.showcase .next { background: linear-gradient(120deg, var(--blue), var(--accent)); color: #fff; border-radius: 20px; padding: clamp(28px, 4vw, 56px); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; align-items: center; }
.showcase .next h2 { color: #fff; margin: 8px 0 16px; }
.showcase .next .label { color: var(--cyan); }
.showcase .next p { color: #d8def0; font-size: 18px; }
.showcase .next ol { list-style: none; margin: 0; padding: 0; border-top: 1px solid rgba(255, 255, 255, 0.25); }
.showcase .next ol li { padding: 14px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.25); display: flex; gap: 16px; }
.showcase .next ol b { color: var(--cyan); min-width: 28px; }
/* The way back from a city to the map of Europe: a strip of the same dotted
   land, lit where the cities are, with one button across it. The strip shows
   the land from the Atlantic to the Baltic: the picture is drawn 1.371 times
   the strip's width from its west edge, the east beyond the Baltic left out. */
.showcase .to-map { max-width: var(--wide); margin: clamp(32px, 4vw, 56px) auto clamp(48px, 7vw, 96px); padding: 0 var(--edge); }
.showcase .to-map-button { position: relative; display: flex; align-items: center; justify-content: center; gap: 14px; min-height: clamp(150px, 16vw, 220px); border-radius: 20px; overflow: hidden; isolation: isolate; color: #fff; font-size: clamp(22px, 2.4vw, 34px); font-weight: 700; letter-spacing: -0.02em; text-decoration: none; white-space: nowrap; background: radial-gradient(60% 120% at 50% 50%, #10287f 0%, #071655 45%, #000b2d 100%); box-shadow: 0 24px 60px rgba(0, 11, 45, 0.22); }
.showcase .to-map-button::before { content: ""; position: absolute; inset: -40% -5%; z-index: -1; background: url("assets/europe-land.svg") 0% 58% / 137.1% auto no-repeat; opacity: 0.55; transition: opacity .3s ease, transform .6s cubic-bezier(.2, .7, .2, 1); }
.showcase .to-map-button::after { content: ""; position: absolute; inset: auto 0 0; height: 4px; background: var(--spectrum); }
.showcase .to-map-button span { color: var(--cyan); transition: transform .25s ease; }
.showcase .to-map-button:hover::before, .showcase .to-map-button:focus-visible::before { opacity: 0.8; transform: scale(1.04); }
.showcase .to-map-button:hover span, .showcase .to-map-button:focus-visible span { transform: translateX(-6px); }
@media (max-width: 700px) {
  .showcase .to-map-button::before { inset: -20% -60%; background-size: 137.1% auto; }
}

/* The case a page leads with: a navy panel under the opening film, the brand
   band along its top, its words light and its stills in their white windows. */
.showcase .featured .feature { position: relative; overflow: hidden; background: linear-gradient(135deg, var(--ink) 0%, #14206a 100%); color: #fff; border-radius: 20px; padding: clamp(28px, 4vw, 56px); box-shadow: 0 30px 80px rgba(0, 11, 45, 0.28); }
.showcase .featured .feature::before { content: ""; position: absolute; inset: 0 0 auto; height: 6px; background: var(--spectrum); }
.showcase .featured .label { color: var(--cyan); }
.showcase .featured h2 { color: #fff; }
.showcase .featured .lead { color: #d8def0; }
.showcase .featured .agenda { background: rgba(255, 255, 255, 0.06); border-color: rgba(255, 255, 255, 0.18); }
.showcase .featured .agenda li { border-color: rgba(255, 255, 255, 0.18); }
.showcase .featured .agenda h3 { color: #fff; }
.showcase .featured .agenda p { color: #c9d2ea; }
.showcase .featured .agenda .tool { color: var(--cyan); }
.showcase .featured .agenda .source { color: #9fb0d8; }
.showcase .featured .agenda .source a { border-color: rgba(255, 255, 255, 0.3); }
.showcase .featured .window { border-color: rgba(255, 255, 255, 0.18); box-shadow: none; }

.showcase .credits { max-width: var(--wide); margin: clamp(48px, 8vw, 100px) auto 0; padding: 20px var(--edge) 32px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); }

@media (max-width: 900px) {
  .showcase .cities, .showcase .grid.two, .showcase .grid.lead-two, .showcase .next { grid-template-columns: 1fr; }
  .showcase .agenda li { grid-template-columns: 1fr; gap: 6px; }
  .showcase .agenda .source { text-align: left; }
  /* A narrow screen shows the film at its own height and the words under it.
     The film is wider than the screen is tall, so a band 72vh tall left navy
     about 190 px deep above it at 390 (Porto, Helsinki, Paris). */
  .showcase .hero video { height: auto; aspect-ratio: 16 / 9; }
  .showcase .hero::after { bottom: auto; height: 56.25vw; background: linear-gradient(180deg, rgba(0, 11, 45, 0) 55%, rgba(0, 11, 45, 0.9)); }
  .showcase .hero .words { position: relative; left: auto; right: auto; bottom: auto; margin: -24px var(--edge) 0; padding-bottom: clamp(28px, 6vw, 48px); }
}

/* On a narrow phone the header's access button gives way to the wordmark: the
   wordmark keeps its own width, and the button takes what is left, its name
   on two lines when one does not fit. "Поискайте достъп" ran under the Y of
   POLYCITY at 360 pixels. */
@media (max-width: 420px) {
  .showcase-page .site-header .nav { grid-template-columns: max-content minmax(0, max-content) 44px; justify-content: space-between; column-gap: 8px; }
  .showcase-page .site-header .nav > .button { justify-self: end; min-width: 0; white-space: normal; text-align: center; line-height: 1.15; padding: 0 8px; }
}
@media (max-width: 340px) {
  .showcase-page .site-header .nav { width: calc(100% - 24px); column-gap: 6px; }
  .showcase-page .site-header .nav > .button { padding: 0 5px; }
  /* "Поверителност" and the office's address passed a 320 page by 7 pixels. */
  .showcase-page .site-strip > .wrap { gap: 10px; }
  .showcase-page .site-strip nav { gap: 10px; }
}
