/* ITS Roads — motion and interactive components (loaded after site.css) */

/* Scroll reveal: elements are visible at rest; JS adds .rv to opt in, then .in when on screen */
.rv { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.2,1); }
.rv.in { opacity: 1; transform: none; }
.rv-stagger > * { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s cubic-bezier(.2,.7,.2,1); }
.rv-stagger.in > * { opacity: 1; transform: none; }
.rv-stagger.in > :nth-child(2) { transition-delay: .08s } .rv-stagger.in > :nth-child(3) { transition-delay: .16s }
.rv-stagger.in > :nth-child(4) { transition-delay: .24s } .rv-stagger.in > :nth-child(5) { transition-delay: .32s }
.rv-stagger.in > :nth-child(6) { transition-delay: .40s } .rv-stagger.in > :nth-child(7) { transition-delay: .48s }
.rv-stagger.in > :nth-child(8) { transition-delay: .56s } .rv-stagger.in > :nth-child(9) { transition-delay: .64s }
html.no-js .rv, html.no-js .rv-stagger > * { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .rv, .rv-stagger > * { opacity: 1 !important; transform: none !important; transition: none !important; } }

/* Video hero */
.hero.video { min-height: min(86vh, 760px); display: flex; align-items: center; }
.hero.video video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.hero.video::after { background: linear-gradient(100deg, rgba(6,18,32,.92) 0%, rgba(6,18,32,.78) 42%, rgba(6,18,32,.38) 100%); }
.hero .kicker { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-display); font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); margin-bottom: 14px; }
.hero .kicker::before { content: ""; width: 36px; height: 4px; background: var(--accent); border-radius: 2px; }
.hero h1 .w { display: inline-block; opacity: 0; transform: translateY(.4em); animation: wordin .7s cubic-bezier(.2,.7,.2,1) forwards; }
@keyframes wordin { to { opacity: 1; transform: none; } }
html.no-js .hero h1 .w { opacity: 1; transform: none; animation: none; }
@media (prefers-reduced-motion: reduce) { .hero h1 .w { opacity: 1; transform: none; animation: none; } }
.hero .scroll-cue { position: absolute; left: 50%; bottom: 18px; transform: translateX(-50%); width: 26px; height: 42px; border: 2px solid rgba(255,255,255,.55); border-radius: 14px; }
.hero .scroll-cue::after { content: ""; position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: var(--accent); animation: cue 1.6s ease-in-out infinite; }
@keyframes cue { 0% { transform: translateY(0); opacity: 1 } 70% { transform: translateY(14px); opacity: 0 } 100% { opacity: 0 } }
@media (prefers-reduced-motion: reduce) { .hero .scroll-cue::after { animation: none; } }

/* Counters */
.facts b[data-count] { font-variant-numeric: tabular-nums; }

/* Ticker of standards / technologies */
.ticker { overflow: hidden; background: #061220; color: #cfd9e3; border-block: 1px solid rgba(255,255,255,.08); }
.ticker .track { display: flex; gap: 48px; width: max-content; padding: 14px 0; animation: ticker 60s linear infinite; font-family: var(--font-display); font-weight: 600; font-size: .9rem; letter-spacing: .06em; text-transform: uppercase; }
.ticker .track span::before { content: "\25C6"; color: var(--accent); margin-right: 14px; font-size: .7em; vertical-align: middle; }
.ticker:hover .track { animation-play-state: paused; }
@keyframes ticker { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .ticker .track { animation: none; flex-wrap: wrap; width: auto; } }

/* Card hover */
.card { transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease; }
.card:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(11,27,43,.14); border-color: #c5c3b9; }
.card img { transition: transform .6s cubic-bezier(.2,.7,.2,1); }
.card:hover img { transform: scale(1.04); }
.card > a.img, .card figure { overflow: hidden; margin: 0; }

/* Image band with fixed-feel background */
.band { position: relative; color: #fff; isolation: isolate; overflow: hidden; }
.band img.bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.band::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(6,18,32,.85), rgba(6,18,32,.72)); }
.band h2 { color: #fff; }
.band p { color: #e4e8ec; }

/* Tabs (connectivity selector, project filters) */
.tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.tabs button { font: inherit; font-family: var(--font-display); font-weight: 600; font-size: .9rem; padding: 9px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--white); color: var(--ink); cursor: pointer; transition: background .2s, color .2s, border-color .2s; }
.tabs button:hover { border-color: var(--ink); }
.tabs button[aria-selected="true"] { background: var(--road); color: #fff; border-color: var(--road); }
.dark .tabs button { background: rgba(255,255,255,.06); color: #e9e8e2; border-color: rgba(255,255,255,.15); }
.dark .tabs button[aria-selected="true"] { background: var(--accent); color: var(--ink); border-color: var(--accent); }
.panels > [role="tabpanel"] { animation: fadein .35s ease; }
.panels > [role="tabpanel"][hidden] { display: none; }
@keyframes fadein { from { opacity: 0; transform: translateY(6px) } to { opacity: 1; transform: none } }

/* V-model + agile delivery diagram */
.vmodel { display: grid; grid-template-columns: 1fr auto 1fr; gap: 16px 28px; align-items: start; position: relative; }
.vmodel .leg { display: grid; gap: 12px; }
.vmodel .leg.left > button:nth-child(2) { margin-left: 8%; } .vmodel .leg.left > button:nth-child(3) { margin-left: 16%; } .vmodel .leg.left > button:nth-child(4) { margin-left: 24%; }
.vmodel .leg.right > button:nth-child(1) { margin-right: 24%; } .vmodel .leg.right > button:nth-child(2) { margin-right: 16%; } .vmodel .leg.right > button:nth-child(3) { margin-right: 8%; }
.vmodel button { font: inherit; text-align: left; background: var(--white); border: 1px solid var(--line); border-left: 5px solid var(--accent); border-radius: 6px; padding: 12px 14px; cursor: pointer; transition: transform .2s, box-shadow .2s, border-color .2s; display: grid; gap: 2px; }
.vmodel button b { font-family: var(--font-display); font-size: 1rem; }
.vmodel button small { color: var(--ink-2); font-size: .82rem; }
.vmodel button:hover { transform: translateX(4px); box-shadow: 0 10px 24px rgba(11,27,43,.12); }
.vmodel button[aria-pressed="true"] { border-color: var(--road); border-left-color: var(--accent); background: var(--road); color: #fff; }
.vmodel button[aria-pressed="true"] small { color: #cfd9e3; }
.vmodel .loop { align-self: end; justify-self: center; width: 190px; height: 190px; border-radius: 50%; border: 6px dashed var(--accent); display: grid; place-items: center; text-align: center; padding: 18px; font-family: var(--font-display); font-weight: 700; line-height: 1.2; color: var(--ink); background: var(--paper-2); animation: spin 40s linear infinite; position: relative; }
.vmodel .loop span { animation: spin 40s linear infinite reverse; display: block; }
.vmodel .loop span em { display: block; font-style: normal; font-weight: 400; font-size: .8rem; color: var(--ink-2); margin-top: 4px; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .vmodel .loop, .vmodel .loop span { animation: none; } }
.vmodel .base { grid-column: 1 / -1; justify-self: center; width: min(100%, 520px); }
.vpanel { margin-top: 20px; background: var(--road); color: #e9e8e2; border-radius: 8px; padding: 22px 24px; border-left: 6px solid var(--accent); min-height: 120px; }
.vpanel h3 { color: #fff; margin-bottom: 6px; }
.vpanel p { margin: 0; }
.vpanel .out { margin-top: 10px; font-size: .9rem; color: #b9c4cf; }
@media (max-width: 820px) { .vmodel { grid-template-columns: 1fr; } .vmodel .leg.left > button, .vmodel .leg.right > button { margin: 0 !important; } .vmodel .loop { justify-self: start; } }

/* Monitoring tree */
.tree { list-style: none; padding: 0; margin: 0; font-family: var(--font-body); }
.tree ul { list-style: none; padding-left: 26px; margin: 6px 0 0; border-left: 1px dashed rgba(255,255,255,.25); }
.tree li { margin: 4px 0; }
.tree .node { display: inline-flex; align-items: center; gap: 10px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14); border-radius: 6px; padding: 7px 12px; color: #fff; cursor: pointer; font: inherit; text-align: left; transition: background .2s; max-width: 100%; }
.tree .node:hover { background: rgba(255,255,255,.12); }
.tree .node .dot { width: 9px; height: 9px; border-radius: 50%; background: #5ad46b; box-shadow: 0 0 0 0 rgba(90,212,107,.6); animation: pulse 2.4s ease-out infinite; flex: none; }
.tree .node .dot.warn { background: var(--accent); box-shadow: 0 0 0 0 rgba(233,203,78,.6); }
.tree .node .dot.info { background: #7cc4ea; animation: none; box-shadow: none; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(90,212,107,.55) } 70% { box-shadow: 0 0 0 9px rgba(90,212,107,0) } 100% { box-shadow: 0 0 0 0 rgba(90,212,107,0) } }
@media (prefers-reduced-motion: reduce) { .tree .node .dot { animation: none; } }
.tree .node small { color: #b9c4cf; }
.tree .node .tog { margin-left: 4px; color: var(--accent); font-family: var(--font-display); font-weight: 700; }
.tree li[data-collapsed="true"] > ul { display: none; }
.tree .leaf { display: inline-block; background: transparent; border: 1px solid rgba(255,255,255,.12); border-radius: 4px; padding: 4px 10px; color: #dfe6ec; font-size: .88rem; margin: 2px 4px 2px 0; }

/* Rotating topic image: crossfades through a topic's photos, opens the gallery viewer */
.rotator { margin: 0; position: relative; cursor: pointer; border-radius: var(--radius); }
.rotator .rot-frame { position: relative; overflow: hidden; border-radius: var(--radius); background: #0b1b2b; aspect-ratio: 4 / 3; box-shadow: 0 14px 34px rgba(11,27,43,.14); isolation: isolate; }
.rotator .rot-frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; opacity: 0; transition: opacity 1.4s ease; }
.rotator .rot-frame img.on { opacity: 1; }
.rotator .rot-frame::after { content: ""; position: absolute; inset: auto 0 0 0; height: 46%; background: linear-gradient(180deg, transparent, rgba(6,18,32,.72)); pointer-events: none; }
.rotator .rot-ui { position: absolute; left: 12px; right: 12px; bottom: 10px; display: flex; align-items: center; justify-content: space-between; gap: 10px; z-index: 1; }
.rotator .rot-dots { display: inline-flex; gap: 5px; align-items: center; }
.rotator .rot-dots i { width: 7px; height: 7px; border-radius: 50%; background: rgba(255,255,255,.45); transition: background .3s, transform .3s; }
.rotator .rot-dots i.on { background: var(--accent); transform: scale(1.25); }
.rotator .rot-count { font-family: var(--font-display); font-weight: 700; font-size: .76rem; letter-spacing: .02em; color: #fff; background: rgba(6,18,32,.72); border: 1px solid rgba(255,255,255,.28); border-radius: 999px; padding: 5px 11px 4px; white-space: nowrap; display: inline-flex; align-items: center; gap: 6px; transition: background .25s, color .25s, border-color .25s; }
.rotator .rot-count::before { content: ""; width: 12px; height: 10px; border: 1.6px solid currentColor; border-radius: 2px; box-sizing: border-box; background: radial-gradient(circle at 50% 55%, currentColor 1.6px, transparent 2px); }
.rotator:hover .rot-count, .rotator:focus-visible .rot-count { background: var(--accent); color: var(--ink); border-color: var(--accent); }
.rotator figcaption { font-size: .85rem; color: var(--ink-3); margin-top: 8px; line-height: 1.4; }
.dark .rotator figcaption, .band .rotator figcaption { color: #b9c4cf; }
.rotator:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }
.rotators { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 22px 20px; }
@media (prefers-reduced-motion: reduce) { .rotator .rot-frame img { transition: none; } }

/* Gallery viewer: full-screen, scroll/swipe through a topic's photos */
.gv { position: fixed; inset: 0; z-index: 200; width: 100%; max-width: 100vw; box-sizing: border-box; overflow: hidden; background: rgba(6,18,32,.97); color: #fff; display: grid; grid-template-rows: auto minmax(0, 1fr) auto auto; gap: 8px; padding: 10px 16px calc(10px + env(safe-area-inset-bottom, 0px)); overscroll-behavior: contain; }
.gv[hidden] { display: none; }
html.gv-open, html.gv-open body { overflow: hidden; }
.gv-top { display: flex; align-items: center; gap: 14px; min-width: 0; max-width: 100%; }
.gv-head { flex: 1; min-width: 0; }
.gv-title { margin: 0; font-size: 1.05rem; color: #fff; line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gv-blurb { margin: 2px 0 0; font-size: .82rem; color: #b9c4cf; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gv-count { font-family: var(--font-display); font-weight: 700; font-variant-numeric: tabular-nums; color: var(--accent); white-space: nowrap; font-size: .95rem; }
.gv-close { font: inherit; font-family: var(--font-display); font-weight: 700; background: var(--accent); color: var(--ink); border: 0; border-radius: 4px; padding: 8px 14px; cursor: pointer; }
.gv-body { position: relative; min-height: 0; min-width: 0; }
.gv-track { display: flex; height: 100%; overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; scrollbar-width: none; -webkit-overflow-scrolling: touch; overscroll-behavior-x: contain; border-radius: 6px; outline-offset: -3px; }
.gv-track::-webkit-scrollbar { display: none; }
.gv-slide { flex: 0 0 100%; width: 100%; min-width: 0; height: 100%; scroll-snap-align: center; scroll-snap-stop: always; display: flex; align-items: center; justify-content: center; padding: 0 6px; box-sizing: border-box; overflow: hidden; }
.gv-slide img { max-width: 100%; max-height: 100%; width: auto; height: auto; min-width: 0; min-height: 0; object-fit: contain; border-radius: 4px; filter: drop-shadow(0 20px 40px rgba(0,0,0,.45)); }
.gv-slide img:not([src]) { visibility: hidden; }
.gv-nav { position: absolute; top: 50%; transform: translateY(-50%); z-index: 2; width: 46px; height: 46px; border-radius: 50%; border: 1px solid rgba(255,255,255,.35); background: rgba(6,18,32,.6); color: #fff; font-size: 2rem; line-height: 1; display: grid; place-items: center; cursor: pointer; transition: background .2s, color .2s; backdrop-filter: blur(4px); }
.gv-nav span { position: relative; top: -2px; }
.gv-nav:hover, .gv-nav:focus-visible { background: var(--accent); color: var(--ink); border-color: var(--accent); }
.gv-prev { left: 8px; } .gv-next { right: 8px; }
.gv-cap { margin: 0; min-width: 0; text-align: center; color: #dfe6ec; font-size: .95rem; line-height: 1.4; min-height: 1.4em; max-height: 2.8em; overflow: hidden; padding: 0 8px; }
.gv-thumbs { display: flex; gap: 6px; min-width: 0; max-width: 100%; overflow-x: auto; scrollbar-width: thin; scrollbar-color: rgba(255,255,255,.25) transparent; padding: 4px 2px 6px; justify-content: safe center; }
.gv-thumbs button { flex: 0 0 auto; width: 64px; height: 46px; padding: 0; border: 2px solid transparent; border-radius: 4px; background: #0e2236; cursor: pointer; opacity: .55; overflow: hidden; transition: opacity .2s, border-color .2s; }
.gv-thumbs button img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gv-thumbs button.on, .gv-thumbs button:hover, .gv-thumbs button:focus-visible { opacity: 1; border-color: var(--accent); }
@media (max-width: 600px) {
  .gv { padding: 8px 10px calc(8px + env(safe-area-inset-bottom, 0px)); gap: 6px; }
  .gv-blurb { display: none; }
  .gv-title { font-size: .95rem; }
  .gv-close { padding: 7px 11px; font-size: .9rem; }
  .gv-nav { width: 38px; height: 38px; font-size: 1.6rem; }
  .gv-cap { font-size: .85rem; }
  .gv-thumbs button { width: 52px; height: 38px; }
}
.gallery img, .project img, .split figure img { cursor: zoom-in; }

/* Project filters */
.project[hidden] { display: none; }

/* Process timeline (horizontal on desktop) */
.flow { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 0; counter-reset: f; }
.flow div { position: relative; padding: 18px 16px 18px 20px; counter-increment: f; border-top: 4px solid var(--line); }
.flow div::before { content: counter(f); position: absolute; top: -16px; left: 16px; width: 28px; height: 28px; border-radius: 50%; background: var(--accent); color: var(--ink); font-family: var(--font-display); font-weight: 800; display: grid; place-items: center; font-size: .85rem; }
.flow div.in { border-top-color: var(--accent); }
.flow h4 { margin: 8px 0 4px; }
.flow p { font-size: .9rem; color: var(--ink-2); margin: 0; }
.dark .flow p { color: #c9c8c0; }

/* Header shrink */
.site-header.scrolled .wrap { min-height: 56px; }
.site-header .wrap { transition: min-height .25s ease; }
.site-header.scrolled .brand img { height: 32px; }
.brand img { transition: height .25s ease; }

/* Big stat tiles */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 18px; }
.stats div { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); border-radius: 8px; padding: 22px 20px; }
.stats b { display: block; font-family: var(--font-display); font-size: 2.2rem; font-weight: 800; line-height: 1; color: var(--accent); margin-bottom: 8px; font-variant-numeric: tabular-nums; }
.stats span { color: #cfd9e3; font-size: .95rem; }

/* Service icon row */
.iconrow { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px; }
.iconrow a { text-decoration: none; background: var(--white); border: 1px solid var(--line); border-radius: 8px; padding: 18px 14px; text-align: center; font-family: var(--font-display); font-weight: 700; font-size: .95rem; color: var(--ink); transition: transform .2s, border-color .2s; display: grid; gap: 10px; justify-items: center; }
.iconrow a:hover { transform: translateY(-3px); border-color: var(--accent-deep); }
.iconrow svg { width: 38px; height: 38px; stroke: var(--road); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* ---- Draft 3 additions ---- */

/* Click-to-play video facade (Vimeo or local mp4) */
.vid { position: relative; aspect-ratio: 16 / 9; background: #061220; border-radius: 8px; overflow: hidden; box-shadow: 0 18px 40px rgba(11,27,43,.18); }
.vid img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .6s cubic-bezier(.2,.7,.2,1); }
.vid:hover img { transform: scale(1.03); }
.vid button { position: absolute; inset: 0; width: 100%; height: 100%; background: linear-gradient(180deg, rgba(6,18,32,.1), rgba(6,18,32,.55)); border: 0; cursor: pointer; display: grid; place-items: center; }
.vid button span { width: 78px; height: 78px; border-radius: 50%; background: var(--accent); display: grid; place-items: center; box-shadow: 0 10px 30px rgba(0,0,0,.4); transition: transform .2s; }
.vid button span::after { content: ""; border-left: 26px solid var(--ink); border-top: 15px solid transparent; border-bottom: 15px solid transparent; margin-left: 6px; }
.vid button:hover span { transform: scale(1.08); }
.vid .cap { position: absolute; left: 0; right: 0; bottom: 0; margin: 0; padding: 14px 18px; color: #fff; font-family: var(--font-display); font-weight: 600; font-size: .95rem; text-shadow: 0 1px 6px rgba(0,0,0,.6); pointer-events: none; }
.vid iframe, .vid video.player { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* Autoplaying muted clip tiles */
.clips { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; }
.clips figure { margin: 0; border-radius: 8px; overflow: hidden; background: #061220; position: relative; }
.clips video { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; display: block; }
.clips figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 26px 14px 12px; color: #fff; font-size: .9rem; background: linear-gradient(180deg, transparent, rgba(6,18,32,.85)); }
.clips figcaption small { display: block; color: #b9c4cf; font-size: .78rem; }

/* ITS architecture layers diagram */
.layers { display: grid; gap: 0; counter-reset: ly; }
.layers .ly { display: grid; grid-template-columns: 210px 1fr; gap: 18px; align-items: start; padding: 18px 20px; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.12); border-radius: 8px; transition: background .25s, transform .25s, border-color .25s; }
.layers .ly:hover, .layers .ly:focus-within { background: rgba(255,255,255,.1); border-color: var(--accent); transform: translateX(6px); }
.layers .ly h3 { color: #fff; margin: 0; font-size: 1.05rem; }
.layers .ly h3 small { display: block; color: var(--accent); font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 4px; }
.layers .ly p { margin: 0 0 8px; color: #dfe6ec; font-size: .95rem; }
.layers .ly .chips { margin: 0; }
.layers .ly .chips span { background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.16); color: #e9e8e2; }
.layers .ly .us { font-size: .85rem; color: var(--accent); margin: 8px 0 0; font-family: var(--font-display); font-weight: 600; }
.layers .link { height: 34px; margin-left: 110px; width: 3px; background: linear-gradient(180deg, var(--accent) 0 40%, transparent 40% 100%) 0 0 / 100% 12px repeat-y; animation: flow 1.2s linear infinite; }
@keyframes flow { to { background-position: 0 12px; } }
@media (prefers-reduced-motion: reduce) { .layers .link { animation: none; } }
@media (max-width: 700px) { .layers .ly { grid-template-columns: 1fr; } .layers .link { margin-left: 24px; } }

/* Hotspot diagram (toll lane anatomy) */
.hotspot { display: grid; grid-template-columns: 1.3fr 1fr; gap: 24px; align-items: start; }
.hotspot svg { width: 100%; height: auto; display: block; }
.hotspot svg .n { cursor: pointer; }
.hotspot svg .n circle { fill: var(--accent); stroke: var(--ink); stroke-width: 2; transition: r .2s, fill .2s; }
.hotspot svg .n text { font-family: var(--font-display); font-weight: 800; font-size: 13px; fill: var(--ink); pointer-events: none; }
.hotspot svg .n:hover circle, .hotspot svg .n.on circle { fill: #fff; }
.hotspot svg .lane { fill: #1d2a38; } .hotspot svg .sky { fill: #0e2236; } .hotspot svg .steel { fill: none; stroke: #9fb1c1; stroke-width: 6; }
.hotspot svg .box { fill: #c9d2da; stroke: #51677a; stroke-width: 2; }
.hotspot svg .cam { fill: #e9cb4e; } .hotspot svg .car { fill: #7cc4ea; }
.hotspot svg .loop { fill: none; stroke: var(--accent); stroke-width: 3; stroke-dasharray: 6 6; animation: dash 1s linear infinite; }
@keyframes dash { to { stroke-dashoffset: -12; } }
.hotspot ol { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.hotspot ol li { border: 1px solid rgba(255,255,255,.14); border-radius: 6px; padding: 10px 12px; background: rgba(255,255,255,.05); color: #dfe6ec; transition: background .2s, border-color .2s; }
.hotspot ol li b { color: #fff; font-family: var(--font-display); display: block; }
.hotspot ol li b::before { content: attr(data-n); display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--accent); color: var(--ink); font-size: .8rem; margin-right: 8px; }
.hotspot ol li.on, .hotspot ol li:hover { background: rgba(255,255,255,.12); border-color: var(--accent); }
.hotspot ol li p { margin: 2px 0 0; font-size: .9rem; }
@media (max-width: 860px) { .hotspot { grid-template-columns: 1fr; } }

/* Resource link cards and references */
.linkcards { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px; }
.linkcards a { display: grid; gap: 4px; text-decoration: none; background: var(--white); border: 1px solid var(--line); border-left: 5px solid var(--accent); border-radius: 6px; padding: 14px 16px; color: var(--ink); transition: transform .2s, box-shadow .2s; }
.linkcards a:hover { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(11,27,43,.12); }
.linkcards a b { font-family: var(--font-display); font-size: 1rem; }
.linkcards a small { color: var(--ink-2); font-size: .88rem; line-height: 1.4; }
.linkcards a em { font-style: normal; color: var(--accent-deep); font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; }
.dark .linkcards a { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.14); border-left-color: var(--accent); color: #fff; }
.dark .linkcards a small { color: #c9d2da; } .dark .linkcards a em { color: var(--accent); }
.refs { font-size: .88rem; color: var(--ink-2); border-top: 1px solid var(--line); padding-top: 14px; margin-top: 28px; }
.refs ol { padding-left: 20px; margin: 6px 0 0; display: grid; gap: 4px; }
.refs a { color: var(--accent-deep); overflow-wrap: anywhere; }
.dark .refs { color: #b9c4cf; border-color: rgba(255,255,255,.14); } .dark .refs a { color: #7cc4ea; }
sup.ref a { text-decoration: none; color: var(--accent-deep); font-weight: 600; padding: 0 2px; }
.dark sup.ref a { color: #7cc4ea; }

/* Live news list */
.news { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.news li { display: grid; grid-template-columns: 96px 1fr; gap: 12px; padding: 12px 14px; background: var(--white); border: 1px solid var(--line); border-radius: 6px; align-items: start; }
.news li time { font-family: var(--font-display); font-weight: 700; font-size: .85rem; color: var(--ink-2); }
.news li a { font-weight: 600; text-decoration: none; color: var(--ink); }
.news li a:hover { color: var(--accent-deep); }
.news li small { display: block; color: var(--ink-2); font-size: .82rem; margin-top: 2px; }
.news-status { font-size: .85rem; color: var(--ink-2); margin-top: 10px; }
@media (max-width: 520px) { .news li { grid-template-columns: 1fr; gap: 4px; } }

/* Comparison / capability matrix */
.matrix td:first-child { font-weight: 600; }
.matrix .y { color: #1b7a3a; font-weight: 700; } .matrix .n { color: #b2441f; font-weight: 700; }

/* Pull quote and highlight box */
.callout { border-left: 6px solid var(--accent); background: var(--white); border-radius: 0 8px 8px 0; padding: 18px 22px; margin: 18px 0; box-shadow: 0 10px 30px rgba(11,27,43,.06); }
.callout b { font-family: var(--font-display); }
.dark .callout { background: rgba(255,255,255,.06); }

/* Long call-to-action labels may wrap inside page content (nav buttons stay on one line) */
main .btn, .cta .btn { white-space: normal; text-align: center; }
