/* Inner pages: engineering drawing, route diagrams, simulation, roadmap.
   Ported from the earlier concept and restyled to the shared tokens. */

/* ---------- blueprint (Ugo page) ---------- */
.drawing { border: 1px solid var(--line); background:
  linear-gradient(var(--line) 1px, transparent 1px) 0 0 / 28px 28px,
  linear-gradient(90deg, var(--line) 1px, transparent 1px) 0 0 / 28px 28px, var(--bg-1);
  background-blend-mode: normal; }
.drawing { position: relative; }
.drawing::before { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse at center, transparent 30%, var(--bg-1) 85%); pointer-events: none; }
.drawing__bar { position: relative; display: flex; justify-content: space-between; gap: 16px; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.drawing figcaption { position: relative; padding: 12px 18px 16px; border-top: 1px solid var(--line); }
.blueprint__svg { position: relative; width: 100%; height: auto; display: block; padding: 12px 8px 0; }
.blueprint__svg text { fill: var(--fg-2); }
.blueprint__svg path, .blueprint__svg line, .blueprint__svg circle, .blueprint__svg rect { vector-effect: non-scaling-stroke; }
.fov-ring { opacity: 0.32; }
.fov-cone--camera { opacity: 0.12; }
.fov-cone--radar { opacity: 0.09; }
@media (prefers-reduced-motion: no-preference) {
  .fov-ring { animation: fov-ring-pulse 4.5s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
  .fov-ring--rear { animation-delay: -2.2s; }
  .fov-cone { transform-box: fill-box; transform-origin: 0% 0%; }
  .fov-cone--camera { animation: fov-sweep-rot 6s ease-in-out infinite; }
  .fov-cone--radar { animation: fov-sweep-rot 5s ease-in-out infinite reverse; }
}
@keyframes fov-ring-pulse { 0%, 100% { opacity: 0.2; } 50% { opacity: 0.43; } }
@keyframes fov-sweep-rot { 0%, 100% { transform: rotate(-3deg); } 50% { transform: rotate(3deg); } }
@media (max-width: 640px) { .callout--secondary { display: none; } .callout--primary text { font-size: 30px; } }

/* ---------- kit list ---------- */
.kit-list > li { grid-template-columns: 1fr; }
@media (min-width: 720px) { .kit-list > li { grid-template-columns: 14rem 1fr auto; align-items: baseline; } }
.kit-list .where { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--fg-3); }
.kit-list .label::before { content: ""; display: inline-block; width: 8px; height: 8px; background: var(--brand-hi); margin-right: 10px; border-radius: 1px; vertical-align: 1px; }

/* ---------- Thesis ---------- */
.thesis { padding-bottom: clamp(48px, 6vw, 84px); }
.thesis__statement-unused {
  max-width: 11.5ch;
  max-width: none;
  width: min(100%, 900px);
  margin-top: 18px;
  margin-bottom: 56px;
}
.thesis__compare {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
}
@media (min-width: 768px) {
  .thesis__compare { grid-template-columns: 1fr 1fr; gap: 56px; }
}
.thesis__diagram { width: 100%; height: auto; margin-bottom: 18px; }
.thesis__label { margin-bottom: 14px; }
.thesis__facts {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 11.5px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--fg-3);
}

/* ---------- Sim / instrument ---------- */
.sim__intro { padding-bottom: 28px; }
.sim__copy { max-width: 68ch; }
.sim__copy h2 { margin-block: 16px 16px; }
.sim__panel { width: 100%; }
.sim__stage {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: var(--ink-1);
  overflow: hidden;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
@media (max-width: 767px) {
  .sim__stage { aspect-ratio: 4 / 5; }
}
#sim-canvas {
  width: 100%;
  height: 100%;
  display: block;
}
.sim__hud {
  position: absolute;
  top: 16px;
  left: 16px;
  right: 16px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 8px;
  pointer-events: none;
}
.hud-chip {
  font-size: 10.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg-2);
  background: color-mix(in srgb, var(--ink-0) 55%, transparent);
  border: 1px solid var(--line-2);
  padding: 6px 10px;
  border-radius: 2px;
  white-space: nowrap;
}
.hud-chip--state {
  color: var(--accent-2);
  border-color: var(--accent);
  align-self: flex-start;
}
.sim__progress {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 16px;
  pointer-events: none;
}
.sim__progress-track {
  position: relative;
  height: 3px;
  background: color-mix(in srgb, var(--ink-0) 55%, transparent);
  border: 1px solid var(--line-2);
  border-radius: 2px;
}
.sim__progress-fill {
  position: absolute;
  inset: 0;
  width: 0%;
  background: var(--accent);
  border-radius: 1px;
}
.sim__progress-tick {
  position: absolute;
  top: 50%;
  width: 1px;
  height: 9px;
  transform: translate(-50%, -50%);
  background: var(--fg-2);
}
.sim__progress-tick--stop { background: var(--accent-2); height: 11px; }
.sim__noscript {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--fg-3);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.sim__caption { padding-top: 12px; }
.sim__fallback { display: none; position: absolute; inset: 0; align-items: center; justify-content: center; padding: 24px; text-align: center; background: #130d19; color: var(--fg-2); font-size: 12px; line-height: 1.5; }
.sim__stage.is-fallback .sim__fallback { display: flex; }
.sim__stage.is-fallback .sim__hud, .sim__stage.is-fallback .sim__progress { display: none; }

/* ---------- Roadmap: horizontal, scrollable, fades at the edges ---------- */
.roadmap h2 { margin-bottom: 48px; max-width: 20ch; }
.roadmap__scroller {
  position: relative; overflow-x: auto; overflow-y: hidden;
  scrollbar-width: none; cursor: grab; touch-action: pan-x pan-y;
  overscroll-behavior-x: contain;
  margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter);
  --fade-l: 0px; --fade-r: 68px;
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 var(--fade-l), #000 calc(100% - var(--fade-r)), transparent 100%);
          mask-image: linear-gradient(to right, transparent 0, #000 var(--fade-l), #000 calc(100% - var(--fade-r)), transparent 100%);
}
.roadmap__scroller.has-left-overflow { --fade-l: 68px; }
.roadmap__scroller:not(.is-scrollable) { cursor: auto; -webkit-mask-image: none; mask-image: none; }
.roadmap__scroller::-webkit-scrollbar { display: none; }
.roadmap__scroller.is-dragging { cursor: grabbing; user-select: none; }
.roadmap__scroller:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 6px; }
.roadmap__line {
  --roadmap-stop-width: clamp(220px, 24vw, 280px);
  position: relative; display: flex; width: max-content; padding-block: 8px 4px; padding-inline-end: 72px;
}
/* The dim rail remains continuous behind the completed and upcoming stages. */
.roadmap__line::before {
  content: ""; position: absolute; left: 16px; right: 20px; top: 15px; height: 3px;
  background: var(--line-2);
}
.roadmap__stop { position: relative; flex: 0 0 var(--roadmap-stop-width); padding: 30px 28px 0 0; }
.roadmap__stop::before {
  content: ""; position: absolute; left: 16px; right: 0; top: 7px; height: 3px;
  background-image: repeating-linear-gradient(to right, #716476 0 5px, transparent 5px 11px);
}
.roadmap__stop:last-child::before { right: 20px; }
.roadmap__stop.is-done::before { background: var(--accent); }
.roadmap__stop.is-current::before { background-image: linear-gradient(to right, var(--accent), var(--line-2)); }
.roadmap__stop.is-soon::before { background-image: repeating-linear-gradient(to right, #a67e9f 0 5px, transparent 5px 11px); }
.roadmap__marker {
  position: absolute; left: 0; top: 0; width: 17px; height: 17px; border-radius: 50%;
  background: var(--bg); border: 2px solid var(--line-2); z-index: 1;
}
.roadmap__stop.is-done .roadmap__marker { background: var(--accent); border-color: var(--accent); }
.roadmap__stop.is-done .roadmap__marker::after {
  content: ""; position: absolute; left: 4.5px; top: 2px; width: 4px; height: 8px;
  border: solid var(--bg); border-width: 0 2px 2px 0; transform: rotate(45deg);
}
.roadmap__stop.is-current .roadmap__marker { border-color: var(--accent); background: var(--accent-2); }
.roadmap__stop.is-soon .roadmap__marker { border-color: #c49abd; background: #352536; }
.roadmap__stop.is-current .roadmap__marker::after {
  content: ""; position: absolute; inset: -8px; border-radius: 50%; border: 1.5px solid var(--accent); opacity: 0.5;
}
@media (prefers-reduced-motion: no-preference) {
  .roadmap__stop.is-current .roadmap__marker::after { animation: roadmap-ring-pulse 2.2s ease-in-out infinite; }
}
@keyframes roadmap-ring-pulse { 0% { transform: scale(0.7); opacity: 0.55; } 70%, 100% { transform: scale(1.7); opacity: 0; } }
.roadmap__tag {
  display: inline-block; margin-bottom: 12px; font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.09em;
  text-transform: uppercase; color: var(--fg-3); padding: 3px 0;
}
.roadmap__tag--done { color: var(--accent); }
.roadmap__tag--now { color: var(--accent-2); border: 1px solid var(--accent); border-radius: 2px; padding: 3px 8px; }
.roadmap__tag--soon { color: #d7b2d0; border: 1px solid #765a73; border-radius: 2px; padding: 3px 8px; }
.roadmap__stop h3 { margin-bottom: 8px; font-size: 17px; letter-spacing: -0.01em; }
.roadmap__stop p { font-size: 14px; color: var(--fg-2); max-width: 30ch; }
.roadmap__stop:not(.is-done):not(.is-current) h3 { color: var(--fg-2); }
.roadmap__stop.is-soon h3 { color: #e2cee0; }
.roadmap__controls { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-top: 24px; }
.roadmap__hint { margin: 0; }
.roadmap__buttons { display: flex; gap: 8px; }
.roadmap__button {
  display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px;
  border: 1px solid var(--line-2); border-radius: 2px; background: var(--bg-2); color: var(--fg);
  font-size: 22px; line-height: 1; cursor: pointer;
}
.roadmap__button:hover:not(:disabled), .roadmap__button:focus-visible { border-color: var(--accent); color: var(--accent-2); }
.roadmap__button:disabled { opacity: .35; cursor: default; }
@media (max-width: 520px) { .roadmap__hint { max-width: 24ch; line-height: 1.6; } }

.eyebrow { font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--fg-3); }
.caption { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--fg-3); }
.sim__panel { margin-top: 8px; }

/* ---------- Operators: street grids ---------- */
.grids { display: grid; gap: 48px; }
@media (min-width: 900px) { .grids { grid-template-columns: 1fr 1fr; gap: 56px; } }
.grids figure { margin: 0; }
.grid-diagram { width: 100%; height: auto; display: block; margin-bottom: 20px; }
.grid-diagram .streets line { stroke: var(--line-2); stroke-width: 1.2; stroke-linecap: round; }
.grid-diagram text { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.035em; fill: var(--fg-2); }
.grids .eyebrow { margin-bottom: 12px; }
.grids .facts { display: flex; flex-wrap: wrap; gap: 6px 18px; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--fg-3); }

/* Operators: an unboxed service pattern complements the detailed city maps. */
.operator-head { display: grid; gap: 38px; }
@media (min-width: 980px) {
  .operator-head { grid-template-columns: minmax(0, 1fr) minmax(390px, 0.94fr); align-items: end; gap: clamp(40px, 5vw, 82px); }
  .operator-head h1 { max-width: 12ch; }
}
.route-motif {
  position: relative; isolation: isolate;
  padding: clamp(12px, 2vw, 22px) 0 4px;
}
.route-motif::before {
  content: ""; position: absolute; inset: -20px -6% -5px; z-index: -1; pointer-events: none;
  background: radial-gradient(ellipse at 50% 55%, rgba(134,68,125,.16), transparent 68%);
}
.route-motif__top, .route-motif__bottom { display: flex; justify-content: space-between; gap: 6px; color: var(--fg-3); }
.route-motif__top { font-size: 10px; letter-spacing: .06em; }
.route-motif__top span:last-child { color: var(--accent-2); }
.route-motif__track {
  position: relative; height: 126px; margin-block: 19px 5px;
  background: repeating-linear-gradient(90deg, transparent 0 47px, rgba(181,151,179,.075) 48px, transparent 49px) center / 100% 74px no-repeat;
}
.route-motif__track::before {
  content: ""; position: absolute; inset: 20px 0; pointer-events: none;
  background: linear-gradient(180deg, transparent, rgba(174,122,164,.035) 50%, transparent);
}
.route-motif__line, .route-motif__progress { position: absolute; left: 8%; top: 51%; height: 2px; }
.route-motif__line { width: 84%; background: linear-gradient(90deg, #66586b, #8c7389 50%, #66586b); }
.route-motif__progress { width: 0; background: var(--accent-2); box-shadow: 0 0 12px rgba(217,166,208,.32); }
.route-motif__stop {
  position: absolute; top: 51%; width: 11px; height: 11px; z-index: 1;
  border: 2px solid #b9a5b7; border-radius: 50%; background: var(--bg);
  transform: translate(-50%,-42%);
}
.route-motif__stop::before {
  content: ""; position: absolute; left: 50%; top: 13px; width: 1px; height: 27px;
  background: linear-gradient(rgba(181,151,179,.32), transparent); transform: translateX(-50%);
}
.route-motif__stop::after {
  content: ""; position: absolute; inset: -8px; border: 1px solid var(--accent-2);
  border-radius: 50%; opacity: 0; transform: scale(.65);
}
.route-motif__stop--a { left: 8%; }.route-motif__stop--b { left: 36%; }.route-motif__stop--c { left: 64%; }.route-motif__stop--d { left: 92%; }
.route-motif__stop--a, .route-motif__stop--d { width: 15px; height: 15px; border-color: var(--accent-2); }
.route-motif__bus {
  position: absolute; left: 8%; top: 51%; width: 47px; height: 23px; z-index: 2;
  display: flex; gap: 2px; align-items: center; padding: 4px 5px 4px 8px;
  border: 1px solid #f3e9f2; border-radius: 4px 5px 5px 4px;
  background: linear-gradient(to bottom, #e9e2ea 0 73%, #b16aa5 74% 85%, #d6cbd8 86%);
  box-shadow: 0 4px 14px rgba(0,0,0,.42), 0 0 18px rgba(217,166,208,.13);
  transform: translate(-50%,-135%);
}
.route-motif__bus::before, .route-motif__bus::after { content: ""; position: absolute; bottom: -4px; width: 6px; height: 3px; border-radius: 1px; background: #0d0b10; }
.route-motif__bus::before { left: 7px; }.route-motif__bus::after { right: 7px; }
.route-motif__bus i { display: block; flex: 1; height: 10px; background: #29232d; border-radius: 1px; }
.route-motif__bus i:last-child { flex: .65; }
.route-motif__bottom { margin-inline: 5%; font-size: 9px; letter-spacing: .04em; }
.route-motif__caption { margin-top: 27px; color: var(--fg-2); font-size: 10px; letter-spacing: .07em; }
@media (prefers-reduced-motion: no-preference) {
  .route-motif__bus { animation: route-service 13s ease-in-out infinite; }
  .route-motif__progress { animation: route-progress 13s ease-in-out infinite; }
  .route-motif__stop::after { animation: route-stop-arrival 13s ease-out infinite; }
  .route-motif__stop--b::after { animation-delay: -9.36s; }
  .route-motif__stop--c::after { animation-delay: -5.85s; }
  .route-motif__stop--d::after { animation-delay: -2.34s; }
}
@keyframes route-stop-arrival {
  0% { opacity: 0; transform: scale(.65); }
  2% { opacity: .62; transform: scale(1); }
  10%, 100% { opacity: 0; transform: scale(1.55); }
}
@keyframes route-service {
  0%, 6% { left: 8%; opacity: 1; } 28%, 34% { left: 36%; opacity: 1; }
  55%, 61% { left: 64%; opacity: 1; } 82%, 91% { left: 92%; opacity: 1; }
  96%, 100% { left: 92%; opacity: 0; }
}
@keyframes route-progress {
  0%, 6% { width: 0; opacity: 1; } 28%, 34% { width: 28%; opacity: 1; }
  55%, 61% { width: 56%; opacity: 1; } 82%, 91% { width: 84%; opacity: 1; }
  96%, 100% { width: 84%; opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .route-motif__bus { left: 64%; }
  .route-motif__progress { width: 56%; }
  .route-motif__stop--c { border-color: var(--accent-2); }
}
@media (max-width: 979px) { .route-motif::before { inset: -20px 0 -5px; } }
@media (max-width: 500px) {
  .route-motif__track { height: 106px; margin-top: 10px; }
  .route-motif__bus { width: 41px; height: 21px; padding-left: 6px; }
  .route-motif__top, .route-motif__caption { font-size: 11px; }
  .route-motif__bottom { font-size: 11px; letter-spacing: 0; }
}

/* The two map panels share one geography but have different visual roles. */
.grids { gap: 22px; }
@media (min-width: 900px) { .grids { gap: 22px; } }
.grid-card { min-width: 0; padding: clamp(17px, 2.3vw, 28px); border: 1px solid var(--line-2); border-radius: 5px; background: #151218; box-shadow: inset 0 1px 0 rgba(255,255,255,.035); }
.grid-card--transit { border-top: 2px solid var(--accent); background: linear-gradient(180deg, rgba(116,31,106,.12), transparent 60%), #151218; }
.grid-card__head { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; color: var(--fg-3); font-size: 10px; }
.grid-card--transit .grid-card__head span:last-child { color: var(--accent-2); }
.grid-card .grid-diagram { border: 1px solid #302936; border-radius: 3px; background: radial-gradient(ellipse at 50% 50%, #1d1822, #110f15); }
.grid-card--robotaxi .grid-diagram .streets line { stroke: #453d49; }
.grid-card--transit .grid-diagram .streets line { stroke: #3b3040; }
.grid-card figcaption { padding-top: 2px; }
@media (max-width: 600px) {
  .grid-card { padding: 14px; }
  .grid-diagram text { font-size: 13px; letter-spacing: 0; }
  .grid-card__head { font-size: 11px; }
  .grids .facts { font-size: 12px; letter-spacing: .02em; gap: 7px 12px; }
}

/* Press update stays editorial instead of presenting a file inventory as news. */
.press-update {
  --fg: #f3f1f5; --fg-2: #aca6b4; --fg-3: #918a98;
  --line: #302936; --line-2: #493e4e; --accent: #d9a6d0;
  max-width: 640px; padding: clamp(22px, 3vw, 34px);
  border: 1px solid var(--line-2); border-top: 2px solid var(--accent);
  border-radius: 5px; background: #17131a; color: var(--fg);
}
.press-update h3 { margin-block: 20px 12px; }
.press-update p { margin-bottom: 22px; }
