/* 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 land picture of scripts/make-europe-map.mjs laid back like a
   table seen from its edge, a light standing on each showcased city at its
   place in src/europe-map.mjs, and the page's title over the Atlantic. A city
   opens from its light; the map is the only list of cities.

   The picture runs from the North Cape to Africa, frame north 0.35, south
   -0.29, west -0.3, east 0.66, 1371 by 914 units. The stage is sized in its
   own width and height (cqw, cqh) so Paris's row, 0.625 of the way down the
   picture, sits at --row-at on every screen, and the tilt turns the picture
   about that row. The map is drawn small and low enough that Porto to
   Helsinki, with a flag over each, fits under the stage's faded top. On a
   desktop the Caspian and the Urals run past the stage's right edge, so the
   land reaches the screen's edge even where the tilt narrows the far north. */
.showcase .atlas-stage { --tilt: 26deg; --wide-by: 0.987; --left: 18%; --row-at: 72cqh; container-type: size; position: relative; height: max(640px, calc(100svh - 88px)); overflow: hidden; color: #fff; background: radial-gradient(80% 70% at 42% 62%, #10287f 0%, #071655 38%, #020d38 66%, #000b2d 100%); perspective: 1600px; perspective-origin: 45% 10%; isolation: isolate; }
/* A soft night over the far north and the stage's edges, 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.6) 14%, rgba(0, 11, 45, 0) 36%), radial-gradient(ellipse 80% 90% at 50% 60%, rgba(0, 11, 45, 0) 60%, rgba(0, 11, 45, 0.7) 100%); }
.showcase .atlas-stage::after { content: ""; position: absolute; inset: auto 0 0; height: 4px; z-index: 4; background: var(--spectrum); }
.showcase .atlas { position: absolute; left: calc(var(--left) + var(--map-across, 0px)); width: calc(var(--wide-by) * 100cqw); aspect-ratio: 1371 / 914; top: calc(var(--row-at) - var(--wide-by) * 914 / 1371 * 0.625 * 100cqw - var(--map-up, 0px)); transform: rotateX(var(--tilt)); transform-origin: 50% 62.5%; transform-style: preserve-3d; animation: atlas-settle 2.2s cubic-bezier(.2, .7, .2, 1) both; }
/* The picture's own sides fade into the night, so its edge never shows as a
   slanted line. */
.showcase .atlas .land { display: block; width: 100%; height: 100%; -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 7%, #000 93%, transparent 100%); mask-image: linear-gradient(90deg, transparent 0, #000 7%, #000 93%, transparent 100%); animation: atlas-land 1.8s 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 pool of light on the land around it, a glowing point at its
   place, and a beam standing up from the point to its name and region. Lit,
   when pointed at, it turns gold. The city stands a pixel above the land:
   on the land's own tilted plane, Chrome gave some presses on a light to the
   land under it, so the light opened nothing. */
.showcase .pin { --lit: 0; --glow: color-mix(in srgb, #febe11 calc(var(--lit) * 100%), #0ad6ed); position: absolute; left: var(--x); top: var(--y); width: 0; height: 0; z-index: 2; color: #fff; text-decoration: none; transform-style: preserve-3d; transform: translateZ(1px); }
.showcase .pin:hover, .showcase .pin:focus-visible { --lit: 1; outline: none; }
.showcase .pin .pool { position: absolute; left: -190px; top: -190px; width: 380px; height: 380px; border-radius: 50%; pointer-events: none; mix-blend-mode: screen; background: radial-gradient(circle, color-mix(in srgb, var(--glow) 55%, transparent) 0%, color-mix(in srgb, var(--glow) 16%, transparent) 30%, transparent 68%); animation: atlas-pool 4.5s ease-in-out infinite alternate; }
.showcase .pin i { position: absolute; left: -9px; top: -9px; width: 18px; height: 18px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #fff 0%, var(--glow) 55%); box-shadow: 0 0 0 5px color-mix(in srgb, var(--glow) 30%, transparent), 0 0 34px 12px color-mix(in srgb, var(--glow) 60%, transparent); animation: atlas-point .8s cubic-bezier(.2, .9, .3, 1.4) both; animation-delay: calc(1.2s + var(--order) * 0.15s); }
.showcase .pin i::before, .showcase .pin i::after { content: ""; position: absolute; inset: -2px; border-radius: 50%; border: 2px solid var(--glow); animation: atlas-pulse 3s ease-out infinite; }
.showcase .pin i::after { animation-delay: 1.5s; }
/* The beam and its words stand upright, turned back against the map's tilt.
   showcase-map.js lifts a beam by --lift where its words would cover another's. */
.showcase .pin .flag { --beam: 128px; position: absolute; left: 0; top: 0; width: 0; height: 0; transform-origin: 0 0; transform: rotateX(calc(-1 * var(--tilt))); }
.showcase .pin .flag::before { content: ""; position: absolute; left: -1px; bottom: 0; width: 2px; height: calc(var(--beam) + var(--lift, 0px)); background: linear-gradient(0deg, var(--glow) 0%, color-mix(in srgb, var(--glow) 40%, transparent) 70%, transparent 100%); transform-origin: 50% 100%; animation: atlas-beam .9s cubic-bezier(.2, .8, .2, 1) both; animation-delay: calc(1.5s + var(--order) * 0.15s); }
/* The words sit on a dark glass flag at the top of the beam, so the coasts
   behind never cross them. */
.showcase .pin .tag { position: absolute; left: -1px; bottom: calc(var(--beam) + var(--lift, 0px)); display: grid; grid-template-columns: auto auto; column-gap: 18px; align-items: center; padding: 14px 20px 14px 18px; white-space: nowrap; border: 1px solid color-mix(in srgb, var(--glow) 35%, transparent); border-left: 2px solid var(--glow); border-radius: 0 6px 6px 0; background: rgba(2, 13, 56, 0.62); backdrop-filter: blur(8px); box-shadow: 0 18px 50px rgba(0, 11, 45, 0.6), 0 0 40px color-mix(in srgb, var(--glow) 18%, transparent); animation: atlas-tag .8s ease-out both; animation-delay: calc(1.9s + var(--order) * 0.15s); }
.showcase .pin.left .tag { left: auto; right: -1px; border-left: 1px solid color-mix(in srgb, var(--glow) 35%, transparent); border-right: 2px solid var(--glow); border-radius: 6px 0 0 6px; }
.showcase .pin b { grid-column: 1; font-size: clamp(24px, 2.4vw, 36px); line-height: 1; font-weight: 700; letter-spacing: -0.025em; color: color-mix(in srgb, #febe11 calc(var(--lit) * 100%), #fff); transition: color .25s ease; }
.showcase .pin small { grid-column: 1; margin-top: 6px; font-size: 13px; color: #a9b8e0; }
.showcase .pin .tag::after { content: "→"; grid-column: 2; grid-row: 1 / span 2; font-size: 24px; color: var(--glow); transition: transform .25s ease; transform: translateX(calc(var(--lit) * 6px)); }
@keyframes atlas-settle { from { transform: rotateX(calc(var(--tilt) + 18deg)) translateY(60px); } to { transform: rotateX(var(--tilt)); } }
@keyframes atlas-land { from { opacity: 0; } to { opacity: 1; } }
@keyframes atlas-point { from { opacity: 0; transform: scale(0.2); } to { opacity: 1; transform: none; } }
@keyframes atlas-beam { from { transform: scaleY(0); } to { transform: none; } }
@keyframes atlas-tag { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes atlas-pulse { from { transform: scale(1); opacity: 0.9; } to { transform: scale(3.4); opacity: 0; } }
@keyframes atlas-pool { from { opacity: 0.75; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
  .showcase .atlas, .showcase .atlas .land, .showcase .pin i, .showcase .pin i::before, .showcase .pin i::after, .showcase .pin .pool, .showcase .pin .flag::before, .showcase .pin .tag { animation: none; }
}
/* A phone shows the west, from Portugal to Finland, laid back a little less. */
@media (max-width: 700px) {
  .showcase .atlas-stage { --tilt: 26deg; --wide-by: 1.714; --left: 0%; --row-at: 74cqh; height: max(560px, calc(100svh - 88px)); }
  .showcase .atlas-words h1 { font-size: 42px; }
  .showcase .atlas-words p { font-size: 15px; }
  .showcase .pin .pool { left: -120px; top: -120px; width: 240px; height: 240px; }
  .showcase .pin .flag { --beam: 96px; }
  .showcase .pin .tag { padding: 7px 10px 7px 9px; column-gap: 8px; }
  .showcase .pin b { font-size: 20px; }
  .showcase .pin small { margin-top: 3px; font-size: 11px; }
  .showcase .pin .tag::after { font-size: 16px; }
}

/* A crowded map: when no beams leave every name clear, showcase-map.js stands
   the names in one column beside the lights, each joined to its light by a
   line, and the beams and their flags step aside. The lights stay where they
   are. */
.showcase .atlas-stage.crowded .pin .flag { display: none; }
.showcase .atlas-lines { position: absolute; inset: 0; z-index: 2; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.showcase .atlas-lines line { stroke: #0ad6ed; stroke-width: 1.5; stroke-opacity: 0.75; stroke-linecap: round; transition: stroke .25s ease, stroke-opacity .25s ease; animation: atlas-land .8s ease-out both; animation-delay: 1.7s; }
.showcase .atlas-lines line.lit { stroke: #febe11; stroke-opacity: 1; }
.showcase .atlas-names { position: absolute; inset: 0; z-index: 3; pointer-events: none; }
.showcase .atlas-name { --lit: 0; --glow: color-mix(in srgb, #febe11 calc(var(--lit) * 100%), #0ad6ed); position: absolute; box-sizing: border-box; display: grid; grid-template-columns: 1fr auto; column-gap: 14px; align-items: center; padding: 10px 16px 10px 14px; white-space: nowrap; color: #fff; text-decoration: none; pointer-events: auto; border: 1px solid color-mix(in srgb, var(--glow) 35%, transparent); border-left: 2px solid var(--glow); border-radius: 0 6px 6px 0; background: rgba(2, 13, 56, 0.72); backdrop-filter: blur(8px); box-shadow: 0 12px 34px rgba(0, 11, 45, 0.6); animation: atlas-tag .8s ease-out both; animation-delay: calc(1.9s + var(--order, 0) * 0.08s); }
.showcase .atlas-name.from-right { border-left: 1px solid color-mix(in srgb, var(--glow) 35%, transparent); border-right: 2px solid var(--glow); border-radius: 6px 0 0 6px; }
.showcase .atlas-name:hover, .showcase .atlas-name:focus-visible { --lit: 1; outline: none; }
.showcase .atlas-name b { grid-column: 1; overflow: hidden; text-overflow: ellipsis; font-size: 22px; 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 .atlas-name small { grid-column: 1; overflow: hidden; text-overflow: ellipsis; margin-top: 3px; font-size: 12px; color: #a9b8e0; }
.showcase .atlas-name::after { content: "→"; grid-column: 2; grid-row: 1 / span 2; font-size: 18px; color: var(--glow); transition: transform .25s ease; transform: translateX(calc(var(--lit) * 4px)); }
.showcase .atlas-names.names-only .atlas-name small, .showcase .atlas-names.names-only .atlas-name::after { display: none; }
.showcase .atlas-stage.settled .atlas-name, .showcase .atlas-stage.settled .atlas-lines line { animation: none; }
@media (prefers-reduced-motion: reduce) {
  .showcase .atlas-name, .showcase .atlas-lines line { animation: none; }
}
@media (max-width: 700px) {
  .showcase .atlas-name { display: block; padding: 2px 8px 2px 7px; }
  .showcase .atlas-name b { display: block; overflow: hidden; text-overflow: ellipsis; font-size: 14px; line-height: 1.15; }
  .showcase .atlas-name small, .showcase .atlas-name::after { 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; }
.showcase .window .bar span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.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; }
  /* A film's title runs onto a second line on a phone rather than being cut. */
  .showcase .window .bar span { white-space: normal; }
}

/* 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; }
}
