/* ============================================
   Metro Connectivity page (metro-connectivity.html)
   Loaded after style.css and project.css. Only mc-* rules, so nothing here
   touches joka.html or the other pages. Header, lead-form drawers, the
   "Get in touch" launcher and the footer come from project.css as-is.
   ============================================ */

.mc-hero svg, .mc-explore svg, .mc-hot svg, .mc-city svg{fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;}

/* ---------- 01 Banner ---------- */
.mc-hero{position: relative; overflow: hidden; isolation: isolate; display: flex; flex-direction: column; min-height: 640px; background: rgb(18, 22, 26); color: #ffffff;}
.mc-hero-bg{position: absolute; inset: 0; z-index: -2;}
.mc-hero-bg img{width: 100%; height: 100%; object-fit: cover; object-position: 50% 45%; display: block; transform: scale(1.08); animation: mcKen 14s cubic-bezier(0.22, 1, 0.36, 1) forwards;}
@keyframes mcKen{to{transform: scale(1);}}
.mc-hero-shade{position: absolute; inset: 0; z-index: -1; background:
  linear-gradient(90deg, rgba(12, 14, 16, 0.8) 0%, rgba(12, 14, 16, 0.52) 42%, rgba(12, 14, 16, 0.32) 100%),
  linear-gradient(180deg, rgba(12, 14, 16, 0.2) 0%, rgba(12, 14, 16, 0) 35%, rgba(12, 14, 16, 0.7) 100%);}

.mc-hero-inner{flex: 1; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); align-items: center; gap: clamp(28px, 4vw, 72px); width: 100%; max-width: 1400px; margin: 0 auto; padding: clamp(28px, 5vh, 64px) clamp(16px, 4vw, 56px) 28px;}
.mc-hero-copy{max-width: 640px; animation: sol-rise 900ms ease both;}
.mc-hero .pj-badge{margin-bottom: 22px;}
.mc-hero .pj-hero2-title{font-size: clamp(52px, 7vw, 112px);}
.mc-hero .pj-hero2-title em{display: block;}
.mc-hero-foot{width: 100%; max-width: 1400px; margin: 0 auto; padding: 0 clamp(16px, 4vw, 56px) clamp(20px, 3.5vh, 36px);}
.mc-hero-foot .pj-hero2-bar{grid-template-columns: minmax(0, 1fr);}

/* Departures board: amber "LED" destinations, rows trace the route below */
.mc-board{justify-self: end; width: 100%; max-width: 470px; overflow: hidden; border-radius: 24px; background: rgba(14, 16, 18, 0.74); border: 1px solid rgba(255, 255, 255, 0.14); -webkit-backdrop-filter: blur(16px) saturate(1.2); backdrop-filter: blur(16px) saturate(1.2); box-shadow: 0 40px 80px -40px rgba(0, 0, 0, 0.85); animation: sol-rise 900ms 200ms ease both;}
.mc-board-head{display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 20px; border-bottom: 1px solid rgba(255, 255, 255, 0.1);}
.mc-board-title{display: flex; align-items: center; gap: 10px; font-size: 12px; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: rgba(255, 255, 255, 0.78);}
.mc-board-title i{width: 8px; height: 8px; border-radius: 50%; background: rgb(70, 200, 120); box-shadow: 0 0 10px rgba(70, 200, 120, 0.8); animation: pjPulse 1.8s ease infinite;}
.mc-clock{font-family: ui-monospace, "SFMono-Regular", Consolas, monospace; font-size: 20px; letter-spacing: 0.1em; color: rgb(255, 178, 64); text-shadow: 0 0 12px rgba(255, 178, 64, 0.45);}
.mc-board-cols, .mc-board-row{display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.9fr) minmax(0, 1fr); align-items: center; gap: 12px;}
.mc-board-cols{padding: 10px 20px 8px; font-size: 10.5px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: rgba(255, 255, 255, 0.45);}
.mc-board-cols span:last-child, .mc-bd-via{text-align: right;}
.mc-board-rows{margin: 0; padding: 0; list-style: none;}
.mc-board-row{position: relative; width: 100%; padding: 13px 20px; border: 0; border-top: 1px solid rgba(255, 255, 255, 0.07); background: none; color: #ffffff; font-family: Outfit, system-ui, sans-serif; text-align: left; cursor: pointer; transition: background 220ms ease;}
.mc-board-row::before{content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: rgb(240, 90, 40); transform: scaleY(0); transition: transform 260ms cubic-bezier(0.22, 1, 0.36, 1);}
.mc-board-row:hover, .mc-board-row.is-live{background: rgba(240, 90, 40, 0.14);}
.mc-board-row:hover::before, .mc-board-row.is-live::before{transform: scaleY(1);}
.mc-board-row:focus-visible{outline: 2px solid rgb(240, 90, 40); outline-offset: -2px;}
.mc-bd-dest{font-family: ui-monospace, "SFMono-Regular", Consolas, monospace; font-size: 15px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: rgb(255, 178, 64); white-space: nowrap; overflow: hidden; text-overflow: ellipsis;}
.mc-board-row.is-live .mc-bd-dest{text-shadow: 0 0 12px rgba(255, 178, 64, 0.55);}
.mc-bd-line{display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 500; color: rgba(255, 255, 255, 0.85);}
.mc-bd-line i{width: 18px; height: 4px; flex: 0 0 18px; border-radius: 2px; background: var(--line);}
.mc-bd-via{font-size: 12.5px; color: rgba(255, 255, 255, 0.6);}
.mc-board-foot{padding: 12px 20px 14px; border-top: 1px solid rgba(255, 255, 255, 0.07); font-size: 12px; color: rgba(255, 255, 255, 0.5);}

/* ---------- Shared section head ---------- */
.mc-head{display: flex; align-items: flex-end; justify-content: space-between; gap: 22px 48px; flex-wrap: wrap; margin-bottom: clamp(26px, 3vw, 42px);}
.mc-title{max-width: 780px; font-size: clamp(32px, 4vw, 58px); font-weight: 500; line-height: 1.02; letter-spacing: -0.04em; color: rgb(26, 20, 16); text-wrap: balance;}
.mc-title em{font-family: "Source Serif 4", Georgia, serif; font-style: italic; font-weight: 400; letter-spacing: -0.02em; color: rgb(240, 90, 40);}
.mc-intro{max-width: 400px; padding-left: 16px; border-left: 2px solid rgb(240, 90, 40); font-family: "Source Serif 4", Georgia, serif; font-size: clamp(15px, 1.25vw, 17.5px); line-height: 1.55; color: rgb(74, 70, 64); text-wrap: pretty;}

/* ---------- 02 Journey planner ---------- */
.mc-ex-grid{display: grid; grid-template-columns: 252px minmax(0, 1fr); gap: clamp(16px, 1.8vw, 26px); align-items: start;}
.mc-ex-main{min-width: 0;}

/* station rail: a little line diagram of its own */
.mc-rail{position: sticky; top: 96px; padding: 18px 12px 14px; border-radius: 24px; background: #ffffff; box-shadow: 0 0 0 1px rgba(26, 20, 16, 0.05), 0 26px 50px -30px rgba(26, 20, 16, 0.35);}
.mc-rail-group + .mc-rail-group{margin-top: 14px; padding-top: 14px; border-top: 1px dashed rgba(26, 20, 16, 0.12);}
.mc-rail-k{padding: 0 10px 8px; font-size: 11px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: rgb(140, 122, 110);}
.mc-rail-list{position: relative; display: grid; gap: 2px; margin: 0; padding: 0; list-style: none;}
.mc-rail-list + .mc-rail-list{margin-top: 10px;}
.mc-rail-list::before{content: ""; position: absolute; left: 17px; top: 16px; bottom: 16px; width: 3px; border-radius: 3px; background: var(--line); opacity: 0.35;}
.mc-rail-btn{position: relative; display: flex; align-items: center; gap: 12px; width: 100%; padding: 8px 10px; border: 0; border-radius: 12px; background: none; font-family: Outfit, system-ui, sans-serif; font-size: 14.5px; font-weight: 500; color: rgb(61, 49, 41); text-align: left; cursor: pointer; transition: background 180ms ease, color 180ms ease;}
.mc-rail-btn i{position: relative; z-index: 1; width: 15px; height: 15px; flex: 0 0 15px; border-radius: 50%; background: #ffffff; border: 3px solid var(--line); transition: background 200ms ease, border-color 200ms ease, box-shadow 200ms ease;}
.mc-rail-btn--y i{border-color: #e0a100;}
.mc-rail-btn small{margin-left: auto; font-size: 12px; font-weight: 500; color: rgb(140, 122, 110); white-space: nowrap;}
.mc-rail-btn:hover{background: rgb(250, 244, 241); color: rgb(26, 20, 16);}
.mc-rail-btn.is-active{background: rgba(240, 90, 40, 0.1); color: rgb(26, 20, 16); font-weight: 600;}
.mc-rail-btn.is-active i{background: rgb(240, 90, 40); border-color: rgb(240, 90, 40); box-shadow: 0 0 0 5px rgba(240, 90, 40, 0.18);}
.mc-rail-btn.is-active small{color: rgb(216, 76, 30);}
.mc-rail-btn:focus-visible{outline: 2px solid rgb(240, 90, 40); outline-offset: 1px;}

/* map card */
.mc-map-card{margin: 0; overflow: hidden; border-radius: 26px; background: #ffffff; box-shadow: 0 0 0 1px rgba(26, 20, 16, 0.05), 0 26px 50px -30px rgba(26, 20, 16, 0.35);}
.mc-map-top{display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 22px; border-bottom: 1px solid rgba(26, 20, 16, 0.07);}
.mc-legend{display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 0; padding: 0; list-style: none; font-size: 12.5px; font-weight: 500; color: rgb(110, 98, 90);}
.mc-legend li{display: inline-flex; align-items: center; gap: 8px;}
.mc-legend i{width: 20px; height: 4px; border-radius: 2px; background: var(--line);}
.mc-legend-route{color: rgb(216, 76, 30);}
.mc-legend-route i{height: 6px; background: rgb(240, 90, 40); box-shadow: 0 0 0 3px rgba(240, 90, 40, 0.2);}
.mc-map-hint{display: none; font-size: 12.5px; font-weight: 600; color: rgb(240, 90, 40); white-space: nowrap;}
.mc-map-scroll{overflow-x: auto; overflow-y: hidden; padding: clamp(10px, 1.6vw, 22px) clamp(8px, 1.4vw, 20px); background-image: radial-gradient(rgba(26, 20, 16, 0.08) 1px, transparent 1.3px); background-size: 22px 22px; scrollbar-width: thin; scrollbar-color: rgba(240, 90, 40, 0.5) transparent;}
.mc-map-scroll:focus-visible{outline: 2px solid rgb(240, 90, 40); outline-offset: -4px;}
.mc-map-card figcaption{padding: 0 22px 16px; font-size: 12px; color: rgb(140, 122, 110);}

/* map: neutral station dots, route overlay drawn by metro-connectivity.js */
.mc-svg .mm2-line{transition: opacity 400ms ease;}
.mc-svg .mm3-st{stroke: rgb(61, 49, 41); stroke-width: 2;}
.mc-svg.has-route .mm2-line{opacity: 0.4;}
/* terminus names in neutral ink: the original map's green text read as "Green Line" on Blue and Yellow Line termini */
.mc-svg .mm3-t{fill: rgb(26, 20, 16);}
/* under-construction track and stations, closed station, Park Street interchange */
.mc-svg .mc-uc{stroke-dasharray: 8 9; stroke-linecap: butt; opacity: 0.85;}
.mc-svg.has-route .mc-uc{opacity: 0.35;}
.mc-svg .mc-st-uc{stroke: #800080; stroke-dasharray: 2.4 2;}
.mc-svg .mc-closed-line{stroke: rgb(170, 160, 152); stroke-dasharray: 3 6;}
.mc-ring-closed circle{fill: #ffffff; stroke: rgb(170, 160, 152); stroke-width: 3;}
.mc-ring-closed path{stroke: rgb(170, 160, 152); stroke-width: 2;}
.mc-svg .mc-closed{fill: rgb(140, 122, 110);}
.mc-svg .mc-closed-note{font-size: 9.5px; font-weight: 500; letter-spacing: 0.02em; text-transform: none; fill: rgb(140, 122, 110);}
.mc-svg .mc-ix{fill: #ffffff; stroke: rgb(26, 20, 16); stroke-width: 2.2;}
.mc-legend-uc i{background: repeating-linear-gradient(90deg, #800080 0 5px, transparent 5px 9px);}
.mc-route-glow{fill: none; stroke: rgba(142, 68, 173, 0.28); stroke-width: 14; stroke-linecap: round; stroke-linejoin: round;}
.mc-route-core{fill: none; stroke: #800080; stroke-width: 5; stroke-linecap: round; stroke-linejoin: round;}
.mc-train{fill: #ffffff; stroke: #800080; stroke-width: 3;}
.mc-dest-pulse{fill: rgba(142, 68, 173, 0.35); transform-box: fill-box; transform-origin: center; animation: mm3Dot 2.2s ease-out infinite;}
.mc-dest-dot{fill: #800080; stroke: #ffffff; stroke-width: 3;}
.mc-dest{transition: transform 500ms cubic-bezier(0.22, 1, 0.36, 1);}


/* ---------- 03 Hotspots ---------- */
.mc-filters{display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: clamp(22px, 2.6vw, 34px);}
.mc-filter{display: inline-flex; align-items: center; gap: 8px; min-height: 42px; padding: 0 16px; border: 1px solid rgba(26, 20, 16, 0.14); border-radius: 99px; background: #ffffff; font-family: Outfit, system-ui, sans-serif; font-size: 13.5px; font-weight: 500; color: rgb(61, 49, 41); cursor: pointer; transition: background 200ms ease, border-color 200ms ease, color 200ms ease;}
.mc-filter b{font-size: 12px; font-weight: 600; color: rgb(140, 122, 110);}
.mc-filter:hover{border-color: rgba(240, 90, 40, 0.55);}
.mc-filter[aria-pressed="true"]{background: rgb(26, 20, 16); border-color: rgb(26, 20, 16); color: #ffffff;}
.mc-filter[aria-pressed="true"] b{color: rgba(255, 255, 255, 0.6);}
.mc-filter[aria-pressed="true"] .mc-cat{background: rgb(255, 150, 112);}
.mc-filter:focus-visible{outline: 3px solid rgba(240, 90, 40, 0.35); outline-offset: 2px;}

/* category icons (masks, tinted with background) */
.mc-cat, .mc-spots li::after{display: inline-block; width: 17px; height: 17px; flex: 0 0 17px; background: rgb(240, 90, 40); -webkit-mask: var(--ico) center / contain no-repeat; mask: var(--ico) center / contain no-repeat;}
[data-cat="health"]{--ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3.5' y='3.5' width='17' height='17' rx='4'/%3E%3Cpath d='M12 8v8M8 12h8'/%3E%3C/svg%3E");}
[data-cat="edu"]{--ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2 9.5 12 5l10 4.5-10 4.5z'/%3E%3Cpath d='M6 11.3V16c0 1.3 2.7 3 6 3s6-1.7 6-3v-4.7M22 9.5v5'/%3E%3C/svg%3E");}
[data-cat="landmark"]{--ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 21h18M5 21v-8M9.7 21v-8M14.3 21v-8M19 21v-8M3 13h18M12 3 4 9h16z'/%3E%3C/svg%3E");}
[data-cat="dining"]{--ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5.5 8h13l-1.2 12.5H6.7z'/%3E%3Cpath d='M9 10V7a3 3 0 0 1 6 0v3'/%3E%3C/svg%3E");}
[data-cat="travel"]{--ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='5' y='3' width='14' height='14' rx='4'/%3E%3Cpath d='M5 11h14M9 21l1.5-4M15 21l-1.5-4'/%3E%3C/svg%3E");}
[data-cat="work"]{--ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3.5' y='7.5' width='17' height='12' rx='2'/%3E%3Cpath d='M9 7.5V5h6v2.5M3.5 13h17'/%3E%3C/svg%3E");}
/* Station strip: one continuous metro line runs down the left; each station
   is a stop on it (line-coloured node, dashed where under construction),
   with interchange markers between line groups. Station info on the left,
   nearby places as icon tiles on the right. */
.mc-stops{position: relative; display: grid;}
.mc-stop, .mc-strip-change{--rail-x: 28px; position: relative;}
.mc-stop::before, .mc-strip-change::before{content: ""; position: absolute; left: calc(var(--rail-x) - 2px); top: 0; bottom: 0; width: 4px; background: var(--line);}
.mc-stop--uc::before{background: repeating-linear-gradient(180deg, var(--line) 0 9px, transparent 9px 16px);}
.mc-strip-change--start::before{top: 50%;}
.mc-stops > :last-child::before{bottom: auto; height: calc(clamp(26px, 2.6vw, 36px) + 22px);}

.mc-stop{display: grid; grid-template-columns: minmax(0, 300px) minmax(0, 1fr); gap: 22px clamp(28px, 4vw, 64px); align-items: start; padding: clamp(26px, 2.6vw, 36px) clamp(18px, 2vw, 28px) clamp(26px, 2.6vw, 36px) 78px; border-radius: 28px; transition: background 320ms ease, box-shadow 320ms ease;}
.mc-stop + .mc-stop{box-shadow: inset 0 1px 0 rgba(26, 20, 16, 0.07);}
.mc-stop:hover{background: #fff9f7; box-shadow: none;}
.mc-stop:hover + .mc-stop{box-shadow: none;}
.mc-stop[hidden], .mc-strip-change[hidden]{display: none;}

/* station node sitting on the line */
.mc-stop-ico{position: absolute; left: calc(var(--rail-x) - 22px); top: clamp(26px, 2.6vw, 36px); z-index: 1; display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 50%; background: #ffffff; border: 4px solid var(--line); color: rgb(26, 20, 16); transition: background 260ms ease, border-color 260ms ease, color 260ms ease, transform 320ms cubic-bezier(0.22, 1, 0.36, 1);}
.mc-stop-ico svg{width: 19px; height: 19px;}
.mc-stop:hover .mc-stop-ico{background: rgb(240, 90, 40); border-color: rgb(240, 90, 40); color: #ffffff; transform: scale(1.1);}

.mc-stop-sign{display: flex; flex-wrap: wrap; align-items: center; column-gap: 16px; min-width: 0;}
.mc-stop-line, .mc-stop-sign h3, .mc-stop-sub{flex: 0 0 100%;}
.mc-uc-tag{flex: 0 0 auto; margin-right: 100%;} /* sits on its own line, tally + button share the next */

.mc-stop-line{display: inline-flex; align-items: center; gap: 10px; font-size: 11.5px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: rgb(110, 98, 90);}
.mc-stop-line i{width: 22px; height: 4px; flex: 0 0 22px; border-radius: 2px; background: var(--line);}
.mc-stop-sign h3{margin-top: 10px; font-size: clamp(30px, 2.8vw, 42px); font-weight: 500; line-height: 1; letter-spacing: -0.035em; color: rgb(26, 20, 16); transition: color 260ms ease;}
.mc-stop:hover .mc-stop-sign h3{color: rgb(240, 90, 40);}
.mc-uc-tag{display: inline-flex; align-items: center; gap: 7px; margin-top: 12px; padding: 5px 11px; border-radius: 99px; background: rgba(142, 68, 173, 0.09); font-size: 11px; font-style: normal; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: rgb(118, 52, 148);}
.mc-uc-tag::before{content: ""; width: 14px; height: 0; border-top: 2px dashed currentColor;}
.mc-stop-sub{margin-top: 8px; font-family: "Source Serif 4", Georgia, serif; font-size: 15px; font-style: italic; color: rgb(110, 98, 90);}

.mc-stop-tally{display: flex; align-items: center; gap: 10px; margin-top: 18px;}
.mc-stop-n{font-family: "Source Serif 4", Georgia, serif; font-size: clamp(44px, 3.8vw, 56px); font-weight: 400; line-height: 0.85; letter-spacing: -0.04em; color: rgb(240, 90, 40);}
.mc-stop-tally small{font-size: 11px; font-weight: 600; line-height: 1.3; letter-spacing: 0.14em; text-transform: uppercase; color: rgb(140, 122, 110);}

.mc-stop-go{display: inline-flex; align-items: center; gap: 8px; min-height: 40px; margin-top: 18px; padding: 0 16px 0 18px; border: 1.5px solid rgba(26, 20, 16, 0.14); border-radius: 99px; background: #ffffff; font-family: Outfit, system-ui, sans-serif; font-size: 13.5px; font-weight: 600; color: rgb(26, 20, 16); cursor: pointer; transition: background 220ms ease, border-color 220ms ease, color 220ms ease;}
.mc-stop-go svg{width: 16px; height: 16px; transition: transform 220ms ease;}
.mc-stop-go:hover{background: rgb(240, 90, 40); border-color: rgb(240, 90, 40); color: #ffffff;}
.mc-stop-go:hover svg{transform: translateX(3px);}
.mc-stop-go:focus-visible{outline: 3px solid rgba(240, 90, 40, 0.35); outline-offset: 2px;}

/* nearby places as icon tiles */
.mc-spots{display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; align-content: start; margin: 0; padding: 0; list-style: none;}
.mc-spots li{position: relative; display: flex; align-items: center; gap: 12px; min-height: 58px; padding: 10px 14px 10px 10px; border-radius: 16px; background: #ffffff; box-shadow: inset 0 0 0 1px rgba(26, 20, 16, 0.08); font-size: 14.5px; line-height: 1.35; color: rgb(61, 49, 41); transition: box-shadow 220ms ease, transform 220ms ease;}
.mc-spots li::before{content: ""; width: 36px; height: 36px; flex: 0 0 36px; border-radius: 11px; background: rgba(240, 90, 40, 0.1); transition: background 220ms ease;}
.mc-spots li::after{content: ""; position: absolute; left: 19.5px; top: 50%; margin-top: -8.5px; transition: background 220ms ease;}
.mc-spots li:hover{box-shadow: inset 0 0 0 1.5px rgba(240, 90, 40, 0.55), 0 14px 28px -20px rgba(26, 20, 16, 0.35); transform: translateY(-2px);}
.mc-spots li:hover::before{background: rgb(240, 90, 40);}
.mc-spots li:hover::after{background: #ffffff;}
.mc-spots li[hidden]{display: none;}
.mc-spots li.mc-spot-wide{grid-column: 1 / -1;}
.mc-spots li > span{min-width: 0;}
.mc-spots small{display: block; margin-top: 3px; font-size: 12.5px; line-height: 1.45; color: rgb(140, 122, 110);}

/* interchange marker between line groups */
.mc-strip-change{display: flex; align-items: center; gap: 12px; padding: 18px 0 18px 78px; font-size: 11.5px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: rgb(140, 122, 110);}
.mc-strip-change::after{content: ""; position: absolute; left: calc(var(--rail-x) - 14px); top: 50%; width: 28px; height: 28px; margin-top: -14px; box-sizing: border-box; border-radius: 50%; border: 5px solid rgb(26, 20, 16); background: #ffffff;}
.mc-strip-change b{display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 99px; background: #fff9f7; box-shadow: inset 0 0 0 1px rgba(26, 20, 16, 0.08); font-weight: 600; letter-spacing: 0.08em; color: rgb(26, 20, 16);}
.mc-strip-change b::before{content: ""; width: 18px; height: 4px; border-radius: 2px; background: var(--line);}
.mc-strip-change--start::after{border-color: var(--line);}

/* Strip scroll (metro-connectivity.js, after the Awards page archive):
   the rail is a faint track until the line's own colour fills down it;
   a station's node fills and its count turns from outline to solid once
   reached. Only applies when the script adds .mc-stops--scroll. */
.mc-fill{position: absolute; left: calc(var(--rail-x) - 2px); top: 0; bottom: 0; z-index: 0; width: 4px; background: var(--line); transform: scaleY(var(--f, 1)); transform-origin: top; pointer-events: none;}
.mc-stop--uc .mc-fill{background: repeating-linear-gradient(180deg, var(--line) 0 9px, transparent 9px 16px);}
.mc-strip-change--start .mc-fill{top: 50%;}
.mc-stops > :last-child .mc-fill{bottom: auto; height: calc(clamp(26px, 2.6vw, 36px) + 22px);}
.mc-stops--scroll > ::before{opacity: 0.2;}

.mc-stops--scroll .mc-stop-ico{border-color: color-mix(in srgb, var(--line) 45%, #ffffff); color: rgb(140, 122, 110); transition: background 0.4s ease, border-color 0.4s ease, color 0.4s ease, box-shadow 0.4s ease, transform 320ms cubic-bezier(0.22, 1, 0.36, 1);}
.mc-stops--scroll .mc-stop.is-reached .mc-stop-ico{background: var(--line); border-color: var(--line); color: #ffffff; box-shadow: 0 0 0 5px color-mix(in srgb, var(--line) 16%, transparent);}
.mc-stops--scroll .mc-stop.mc-stop:hover .mc-stop-ico{background: rgb(240, 90, 40); border-color: rgb(240, 90, 40); color: #ffffff;}
.mc-stops--scroll .mc-stop-n{color: transparent; -webkit-text-stroke: 1px rgba(240, 90, 40, 0.6); transition: color 0.6s ease;}
.mc-stops--scroll .mc-stop.is-reached .mc-stop-n{color: rgb(240, 90, 40);}
.mc-stops--scroll .mc-strip-change::after{border-color: rgba(26, 20, 16, 0.22); transition: border-color 0.4s ease, box-shadow 0.4s ease;}
.mc-stops--scroll .mc-strip-change.is-reached::after{border-color: rgb(26, 20, 16); box-shadow: 0 0 0 5px rgba(26, 20, 16, 0.08);}
.mc-stops--scroll .mc-strip-change--start::after{border-color: color-mix(in srgb, var(--line) 35%, #ffffff);}
.mc-stops--scroll .mc-strip-change--start.is-reached::after{border-color: var(--line);}

/* the station label (and its node) stays put while its places scroll by */
.mc-stop-sign{position: sticky; top: calc(var(--mc-nav-h, 76px) + 28px); z-index: 1; align-self: start;}
.mc-stop-ico{left: calc(var(--rail-x) - 22px - 78px); top: 0;}

/* place tiles rise in, staggered (reference timing and easing) */
.mc-spots li.mc-rv{opacity: 0; transform: translate3d(0, 40px, 0); transition: opacity 0.9s cubic-bezier(0.16, 0.84, 0.44, 1), transform 1.1s cubic-bezier(0.16, 0.84, 0.44, 1); transition-delay: var(--d, 0ms);}
.mc-spots li.mc-rv.is-in{opacity: 1; transform: none;}


/* ---------- 04 City sketch + CTA ---------- */
.mc-city-card{position: relative; display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.9fr); gap: clamp(24px, 4vw, 64px); align-items: center; padding: clamp(16px, 2.2vw, 28px); padding-right: clamp(22px, 4vw, 60px); overflow: hidden; border-radius: 32px; background: linear-gradient(135deg, rgb(24, 28, 32) 0%, rgb(18, 22, 26) 100%); color: #ffffff; box-shadow: 0 50px 90px -50px rgba(14, 16, 18, 0.8);}
.mc-city-card::before{content: ""; position: absolute; width: 520px; height: 520px; right: -200px; top: -260px; border-radius: 50%; background: radial-gradient(circle, rgba(240, 90, 40, 0.42), transparent 65%); pointer-events: none;}
.mc-city-art{position: relative; margin: 0; overflow: hidden; aspect-ratio: 1053 / 734; border-radius: 22px; background: rgb(244, 241, 232);}
.mc-city-art img{width: 100%; height: 100%; object-fit: cover; display: block; transform: scale(1.02); transition: transform 1400ms cubic-bezier(0.22, 1, 0.36, 1);}
.mc-city-card:hover .mc-city-art img{transform: scale(1.08);}
.mc-city-art figcaption{position: absolute; left: 14px; bottom: 14px; padding: 7px 14px; border-radius: 99px; background: rgba(14, 16, 18, 0.72); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); font-size: 12.5px; font-weight: 600; color: #ffffff;}
.mc-city-copy{position: relative; z-index: 1; min-width: 0;}
.mc-city-eyebrow{font-size: 12px; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: rgb(255, 150, 112);}
.mc-city-title{margin-top: 10px; font-size: clamp(30px, 3.3vw, 50px); font-weight: 500; line-height: 1.02; letter-spacing: -0.035em;}
.mc-city-title em{display: block; font-family: "Source Serif 4", Georgia, serif; font-style: italic; font-weight: 400; color: rgb(255, 120, 72);}
.mc-city-text{margin-top: 18px; max-width: 420px; font-size: 15.5px; line-height: 1.65; color: rgba(255, 255, 255, 0.72);}
.mc-city-actions{display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px;}
.mc-city .pj-p3-enq-call{margin-top: 26px;}

/* ---------- Responsive ---------- */
@media (max-width: 1100px){
  .mc-hero-inner{grid-template-columns: minmax(0, 1fr); align-content: center; gap: 28px;}
  .mc-board{justify-self: start; max-width: 560px;}
  .mc-ex-grid{grid-template-columns: minmax(0, 1fr);}
  /* the rail turns into a scrolling row of station chips */
  .mc-rail{position: static; display: flex; gap: 14px; padding: 12px; overflow-x: auto; scrollbar-width: none;}
  .mc-rail::-webkit-scrollbar{display: none;}
  .mc-rail-group, .mc-rail-group + .mc-rail-group{flex: 0 0 auto; margin: 0; padding: 0; border: 0;}
  .mc-rail-group + .mc-rail-group{padding-left: 14px; border-left: 1px dashed rgba(26, 20, 16, 0.14);}
  .mc-rail-k{padding: 0 4px 8px;}
  .mc-rail-group{display: flex; flex-direction: column;}
  .mc-rail-group > .mc-rail-list + .mc-rail-list{margin-top: 0;}
  .mc-rail-group:last-child{flex-direction: row; flex-wrap: wrap; align-content: flex-start; gap: 0 6px; max-width: none;}
  .mc-rail-group:last-child .mc-rail-k{flex: 0 0 100%;}
  .mc-rail-list{display: flex; gap: 6px;}
  .mc-rail-list::before{display: none;}
  .mc-rail-btn{gap: 8px; padding: 8px 14px 8px 10px; border-radius: 99px; box-shadow: inset 0 0 0 1px rgba(26, 20, 16, 0.1); white-space: nowrap;}
  .mc-rail-btn small{display: none;}
  .mc-rail-btn.is-active{box-shadow: inset 0 0 0 1.5px rgb(240, 90, 40);}
  .mc-city-card{grid-template-columns: minmax(0, 1fr); padding: clamp(14px, 2.4vw, 24px) clamp(14px, 2.4vw, 24px) clamp(26px, 4vw, 40px);}
  .mc-city-copy{padding: 0 clamp(4px, 2vw, 20px);}
}
@media (max-width: 1024px){
  .mc-map-hint{display: block;}
  .mc-stop{grid-template-columns: minmax(0, 230px) minmax(0, 1fr);}
  .mc-spots{grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));}
}
@media (max-width: 760px){
  .mc-legend{gap: 4px 12px; font-size: 11.5px;}
  .mc-legend i{width: 14px;}
  .mc-map-top{padding: 12px 16px; align-items: flex-start;}
  .mc-map-card figcaption{padding: 0 16px 14px;}
  /* station strip: single column, smaller nodes; tally and button share a row */
  .mc-stop, .mc-strip-change{--rail-x: 20px;}
  .mc-stop{grid-template-columns: minmax(0, 1fr); gap: 18px; padding: 22px 6px 24px 56px; border-radius: 22px;}
  .mc-stop-ico{left: calc(var(--rail-x) - 18px); top: 20px; width: 36px; height: 36px; border-width: 3px;}
  .mc-stop-ico svg{width: 16px; height: 16px;}
  .mc-stop-sign{position: static;}
  .mc-stops > :last-child .mc-fill{height: 38px;}
  .mc-stops > :last-child::before{height: 38px;}
  .mc-stop-sign h3{font-size: 28px;}
  .mc-stop-tally{margin-top: 14px;}
  .mc-stop-n{font-size: 40px;}
  .mc-stop-go{margin-left: auto;}
  .mc-uc-tag{margin-top: 10px;}
  .mc-strip-change{flex-wrap: wrap; gap: 8px; padding: 14px 0 14px 56px; letter-spacing: 0.12em;}
  .mc-strip-change::after{left: calc(var(--rail-x) - 12px); width: 24px; height: 24px; margin-top: -12px; border-width: 4px;}
}
@media (max-width: 720px){
  /* banner on phones: one calm column (copy, compact board, facts) sized so
     the facts bar lands on the first screen */
  .mc-hero{min-height: 0;}
  .mc-hero-bg img{object-position: 50% 50%;}
  /* content sits at the foot of the banner, photo clear above it */
  .mc-hero-shade{background: linear-gradient(180deg, rgba(12, 14, 16, 0.2) 0%, rgba(12, 14, 16, 0.1) 25%, rgba(12, 14, 16, 0.6) 50%, rgba(12, 14, 16, 0.9) 100%);}
  .mc-hero-inner{align-content: end; gap: 20px; padding: 18px 16px 18px;}
  .mc-hero .pj-hero2-crumb{gap: 6px; margin-bottom: 14px; font-size: 12px;}
  .mc-hero .pj-badge{margin-bottom: 12px; padding: 5px 11px; font-size: 10.5px; letter-spacing: 0.05em;}
  .mc-hero .pj-hero2-eyebrow{display: none;}
  .mc-hero .pj-hero2-title{font-size: clamp(38px, 11vw, 46px); line-height: 0.95; letter-spacing: -0.04em;}
  .mc-hero .pj-hero2-lead{max-width: none; margin-top: 12px; font-size: 14.5px; line-height: 1.55;}
  .mc-hero .pj-hero2-cta{gap: 10px; margin-top: 18px;}
  .mc-hero .pj-hero2-btn{flex: 1 1 0; justify-content: center; min-height: 46px; padding: 0 12px; gap: 8px; font-size: 14px; white-space: nowrap;}
  .mc-hero .pj-hero2-btn svg{width: 16px; height: 16px;}

  /* departures board hidden on phones (desktop/tablet keep it); its compact
     phone styles are kept below, commented out, in case it comes back
  .mc-board{max-width: none; border-radius: 18px;}
  .mc-board-head{padding: 10px 14px;}
  .mc-board-title{gap: 8px; font-size: 10.5px; letter-spacing: 0.14em;}
  .mc-clock{font-size: 15px;}
  .mc-board-cols{display: none;}
  .mc-board-row{gap: 8px; padding: 9px 14px;}
  .mc-board-rows li:first-child .mc-board-row{border-top: 0;}
  .mc-bd-dest{font-size: 12.5px; letter-spacing: 0.06em;}
  .mc-bd-line, .mc-bd-via{font-size: 11px;}
  .mc-bd-line i{width: 12px; flex-basis: 12px;}
  .mc-board-foot{padding: 8px 14px 10px; font-size: 11px;}
  .mc-bf-tap{display: none;}
  */
  .mc-board{display: none;}

  .mc-hero-foot{padding: 0 16px 16px;}
  .mc-hero-foot .pj-hero2-bar{padding: 12px 14px; border-radius: 16px;}
  .mc-hero-foot .pj-hero2-facts{row-gap: 10px;}
  .mc-hero-foot .pj-hero2-facts dt{font-size: 9.5px; letter-spacing: 0.1em;}
  .mc-hero-foot .pj-hero2-facts dd{margin-top: 4px; font-size: 19px;}
  .mc-hero-foot .pj-hero2-facts small{font-size: 11.5px;}
  /* launcher stays out of the banner until it has mostly scrolled away (metro-connectivity.js) */
  .mc-fab-hide .pj-fab:not(.is-open) .pj-fab-btn{opacity: 0; transform: translateY(24px) scale(0.92); pointer-events: none;}
}
@media (max-width: 640px){
  .mc-spots{display: flex; flex-wrap: wrap; gap: 6px;}
  .mc-spots li{gap: 8px; min-height: 0; padding: 5px 12px 5px 5px; border-radius: 99px; font-size: 13px;}
  .mc-spots li::before{width: 28px; height: 28px; flex-basis: 28px; border-radius: 50%;}
  .mc-spots li::after{left: 10.5px; width: 14px; height: 14px; margin-top: -7px;}
  .mc-spots li.mc-spot-wide{border-radius: 16px; padding-right: 14px;}
  .mc-filters{flex-wrap: nowrap; margin-left: -16px; margin-right: -16px; padding: 0 16px 4px; overflow-x: auto; scrollbar-width: none;}
  .mc-filters::-webkit-scrollbar{display: none;}
  .mc-filter{flex: 0 0 auto;}
  .mc-city-actions .pj-hero2-btn{flex: 1 1 auto; justify-content: center;}
}
@media (max-width: 340px){
  .mc-board-cols, .mc-board-row{grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);}
  .mc-board-cols span:nth-child(2), .mc-bd-line{display: none;}
}

@media (prefers-reduced-motion: reduce){
  .mc-spots li.mc-rv{opacity: 1; transform: none; transition: none;}
  .mc-hero-bg img{animation: none; transform: none;}
  .mc-hero-copy, .mc-board{animation: none;}
  .mc-board-title i, .mc-dest-pulse{animation: none;}
  .mc-dest, .mc-svg .mm2-line, .mc-stop, .mc-stop-ico, .mc-spots li, .mc-city-art img{transition: none;}
}

/* Sticky station labels need the page wrapper not to be a scroll container.
   The shared .ic1 uses overflow-x: hidden, which makes the browser compute
   overflow-y: auto, so sticky children pin to .ic1 (which never scrolls)
   instead of the viewport. clip trims sideways overflow the same way
   without creating a scroll container. This page only. */
@supports (overflow: clip){
  .ic1{overflow-x: clip;}
}

/* compact banner (project.css .pj-hc): the board stays beside the copy, and
   gives way once it would stack under it (the explorer below has the routes) */
@media (max-width: 1100px){
  #top.pj-hc .mc-board{display: none;}
}
