/* Digital twin v2 — one story column, a step bar with live progress, map framed to the right.
   Loaded after turquoise.css; scoped to .tw--v2. */
body.home .s-twin .tw--v2 {
  --tw-gut: max(20px, calc((100vw - 1440px) / 2 + 20px));
  --tw-acc: #7ae9ff;
  --tw-ink: rgba(227, 246, 250, 0.92);
  --tw-dim: rgba(227, 246, 250, 0.55);
  --tw-hair: rgba(255, 255, 255, 0.09);
  --tw-glass: rgba(7, 11, 14, 0.8);
}
body.home .s-twin .tw--v2 .tw__stage { height: clamp(620px, 86vh, 900px) !important; overflow: hidden; }

/* ---------------------------------------------------------------- story column */
body.home .s-twin .tw--v2 .tw__story {
  position: absolute; z-index: 3;
  top: 20px; bottom: 96px; left: var(--tw-gut);
  width: 372px;
  display: flex; flex-direction: column;
  background: linear-gradient(180deg, rgba(7, 11, 14, 0.86), rgba(7, 11, 14, 0.74));
  backdrop-filter: blur(14px) saturate(1.2); -webkit-backdrop-filter: blur(14px) saturate(1.2);
  border: 1px solid var(--tw-hair); border-top: 2px solid var(--tw-acc);
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.8);
  overflow-y: auto; scrollbar-width: none;
}
body.home .s-twin .tw--v2 .tw__story::-webkit-scrollbar { display: none; }
body.home .s-twin .tw--v2 .tw__title,
body.home .s-twin .tw--v2 .tw__panel,
body.home .s-twin .tw--v2 .tw__legend,
body.home .s-twin .tw--v2 .tw__bar {
  position: static !important; inset: auto !important; transform: none !important;
  width: auto !important; max-width: none !important; max-height: none !important;
  background: transparent !important; border: 0 !important; border-radius: 0 !important;
  backdrop-filter: none !important; -webkit-backdrop-filter: none !important;
  box-shadow: none !important; overflow: visible !important;
}
body.home .s-twin .tw--v2 .tw__title { padding: 20px 22px 6px !important; pointer-events: none; }
body.home .s-twin .tw--v2 .tw__badge { color: var(--tw-acc); }
body.home .s-twin .tw--v2 .tw__badge i { background: var(--tw-acc); }
body.home .s-twin .tw--v2 .tw__title h3 { margin: 12px 0 8px; font: 600 23px/1.18 "Source Sans 3", system-ui, sans-serif; letter-spacing: -0.015em; color: #fff; }
body.home .s-twin .tw--v2 .tw__title p { display: block; margin: 0; font-size: 13.5px; line-height: 1.5; color: var(--tw-dim); }
body.home .s-twin .tw--v2 .tw__panel { padding: 14px 22px 4px !important; }
body.home .s-twin .tw--v2 .tw__bar { padding: 0 22px 14px !important; }
body.home .s-twin .tw--v2 .tw__bar[hidden] { display: none !important; }
body.home .s-twin .tw--v2 .tw__legend {
  margin-top: auto; padding: 12px 22px 16px !important;
  border-top: 1px solid var(--tw-hair) !important;
  display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 12px; color: var(--tw-dim);
}

/* KPIs: a hairline grid, big numbers */
body.home .s-twin .tw--v2 .tw-p__kpis { gap: 1px !important; margin: 0 0 18px; background: var(--tw-hair); border: 1px solid var(--tw-hair); }
body.home .s-twin .tw--v2 .tw-p__kpis > div { padding: 12px 14px 13px !important; border: 0 !important; border-radius: 0 !important; background: rgba(7, 11, 14, 0.92) !important; }
body.home .s-twin .tw--v2 .tw-p__kpis span { margin-bottom: 7px; font: 500 10px/1.25 "IBM Plex Mono", monospace; letter-spacing: 0.08em; text-transform: uppercase; color: var(--tw-dim); }
body.home .s-twin .tw--v2 .tw-p__kpis b { font: 600 26px/1 "Source Sans 3", system-ui, sans-serif; letter-spacing: -0.02em; color: #fff; }
body.home .s-twin .tw--v2 .tw-p__kpis em { display: block; margin: 5px 0 0 !important; font-size: 11.5px; color: var(--tw-acc); }
body.home .s-twin .tw--v2 .tw-p__label { color: var(--tw-dim); }
body.home .s-twin .tw--v2 .tw-p__note { margin: 4px 0 14px; color: rgba(227, 246, 250, 0.4); }

/* ---------------------------------------------------------------- step bar */
body.home .s-twin .tw--v2 .tw__head {
  position: absolute; z-index: 3; left: 0; right: 0; bottom: 0; height: 76px;
  display: flex; align-items: stretch; padding: 0 var(--tw-gut);
  background: linear-gradient(0deg, rgba(7, 11, 14, 0.94), rgba(7, 11, 14, 0.72));
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid var(--tw-hair); border-bottom: 0;
}
body.home .s-twin .tw--v2 .tw__head .tw__scenes {
  flex: 1; min-width: 0; display: grid !important; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 0;
  padding: 0 !important; margin: 0; background: transparent !important; border: 0 !important; overflow: visible;
}
body.home .s-twin .tw--v2 .tw__scenes button {
  position: relative; display: grid; grid-template-columns: auto 1fr; align-content: center; column-gap: 10px; row-gap: 3px;
  min-width: 0; height: 100%; padding: 0 16px !important; margin: 0;
  text-align: left; cursor: pointer;
  background: transparent !important; border: 0 !important; border-left: 1px solid var(--tw-hair) !important; border-radius: 0 !important;
  box-shadow: none !important; color: var(--tw-dim) !important;
  transition: background-color 0.3s ease, color 0.3s ease;
}
body.home .s-twin .tw--v2 .tw__scenes button:last-child { border-right: 1px solid var(--tw-hair) !important; }
body.home .s-twin .tw--v2 .tw__scenes button b { grid-row: 1 / 3; align-self: center; font: 600 11px/1 "IBM Plex Mono", monospace; color: rgba(227, 246, 250, 0.4); }
body.home .s-twin .tw--v2 .tw__scenes button span { font: 600 14px/1.2 "Source Sans 3", system-ui, sans-serif; color: rgba(255, 255, 255, 0.72); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
body.home .s-twin .tw--v2 .tw__scenes button em { font: 500 10px/1.2 "IBM Plex Mono", monospace; letter-spacing: 0.06em; text-transform: uppercase; color: rgba(227, 246, 250, 0.4) !important; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-style: normal; }
body.home .s-twin .tw--v2 .tw__scenes button:hover { background: rgba(255, 255, 255, 0.04) !important; }
body.home .s-twin .tw--v2 .tw__scenes button[aria-selected="true"] { background: rgba(31, 179, 204, 0.12) !important; }
body.home .s-twin .tw--v2 .tw__scenes button[aria-selected="true"] b { color: var(--tw-acc); }
body.home .s-twin .tw--v2 .tw__scenes button[aria-selected="true"] span { color: #fff; }
body.home .s-twin .tw--v2 .tw__scenes button[aria-selected="true"] em { color: var(--tw-acc) !important; }
/* progress line on top of each step: full when done, filling when active */
body.home .s-twin .tw--v2 .tw__scenes button::after { content: none !important; }
body.home .s-twin .tw--v2 .tw__scenes button i {
  position: absolute; left: 0; top: -1px; height: 2px; width: 0;
  background: var(--tw-acc); box-shadow: 0 0 10px rgba(122, 233, 255, 0.8);
}
body.home .s-twin .tw--v2 .tw__scenes button[data-state="done"] i { width: 100%; opacity: 0.35; box-shadow: none; }
body.home .s-twin .tw--v2 .tw__scenes button[aria-selected="true"] i { width: calc(var(--tw-dwell, 0) * 100%); transition: width 0.25s linear; }
body.home .s-twin .tw--v2 .tw__nav { padding: 0 0 0 16px; border-left: 0; }
body.home .s-twin .tw--v2 .tw__map .maplibregl-ctrl-bottom-right { bottom: 78px; }

/* ---------------------------------------------------------------- choreography */
body.home .s-twin .tw--v2 .tw__story > *, body.home .s-twin .tw--v2 .tw__panel > * { transition: opacity 0.22s ease, transform 0.22s ease; }
body.home .s-twin .tw--v2 .tw__story.is-leaving .tw__title,
body.home .s-twin .tw--v2 .tw__story.is-leaving .tw__panel > *,
body.home .s-twin .tw--v2 .tw__story.is-leaving .tw__legend { opacity: 0; transform: translateY(-6px); }
body.home .s-twin .tw--v2 .tw__story.is-entering .tw__title,
body.home .s-twin .tw--v2 .tw__story.is-entering .tw__panel > *,
body.home .s-twin .tw--v2 .tw__story.is-entering .tw__legend {
  animation: twv2-in 0.6s cubic-bezier(0.16, 1, 0.3, 1) both;
  animation-delay: calc(var(--i, 0) * 70ms);
}
@keyframes twv2-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
body.home .s-twin .tw--v2 .tw-bars__t > span { animation: tw-bar-in 0.9s cubic-bezier(0.16, 1, 0.3, 1) both; animation-delay: var(--tw-build, 0ms); }
.tw__wipe { display: none; }

/* ---------------------------------------------------------------- tablet & phone */
@media (max-width: 979px) {
  body.home .s-twin .tw--v2 { --map-h: 460px; }
  body.home .s-twin .tw--v2 .tw__stage { display: flex !important; flex-direction: column; height: auto !important; overflow: visible; }
  body.home .s-twin .tw--v2 .tw__map { position: relative !important; inset: auto !important; height: var(--map-h); order: 0; }
  body.home .s-twin .tw--v2 .tw__head { position: relative; order: 1; height: 64px; padding: 0; overflow-x: auto; scrollbar-width: none; }
  body.home .s-twin .tw--v2 .tw__head::-webkit-scrollbar { display: none; }
  body.home .s-twin .tw--v2 .tw__head .tw__scenes { display: flex !important; }
  body.home .s-twin .tw--v2 .tw__scenes button { flex: 0 0 auto; min-width: 150px; }
  body.home .s-twin .tw--v2 .tw__nav { display: none; }
  body.home .s-twin .tw--v2 .tw__story { position: relative; order: 2; top: auto; bottom: auto; left: auto; width: auto; border-left: 0; border-right: 0; overflow: visible; }
  body.home .s-twin .tw--v2 .tw-calls { bottom: auto; height: var(--map-h); }
  body.home .s-twin .tw--v2 .tw__map .maplibregl-ctrl-bottom-right { bottom: 0; }
  body.home .s-twin .tw--v2 .tw__panel { display: block !important; }
  body.home .s-twin .tw--v2 .tw__panel .tw-p__kpis { grid-template-columns: 1fr 1fr !important; }
}
@media (prefers-reduced-motion: reduce) {
  body.home .s-twin .tw--v2 .tw__story.is-entering .tw__title,
  body.home .s-twin .tw--v2 .tw__story.is-entering .tw__panel > *,
  body.home .s-twin .tw--v2 .tw__story.is-entering .tw__legend,
  body.home .s-twin .tw--v2 .tw-bars__t > span { animation: none; }
}
/* callout cards flip to the left of their anchor near the right edge */
.tw-call.is-flip { translate: -100% -100%; margin-left: 2px; border-left-width: 1px; border-right: 3px solid var(--c); }


/* Map block — edge bleed handled in desktop block below */
body.home .s-twin .tw.tw--v2 {
  width: 100% !important;
  max-width: none !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  border: 0 !important;
  clip-path: none !important;
  box-shadow: none !important;
}
@media (max-width: 979px) {
  body.home .s-twin .tw.tw--v2 { border: 0 !important; --tw-gut: 16px; }
}
body.home .s-twin .tw--v2 .tw__stage { height: clamp(600px, 80vh, 820px) !important; }
body.home .s-twin .tw--v2 .tw__story { top: 16px; bottom: 92px; width: 352px; }
body.home .s-twin .tw--v2 .tw__scenes button { padding: 0 12px !important; column-gap: 8px; }
body.home .s-twin .tw--v2 .tw__scenes button span { font-size: 13px; }
body.home .s-twin .tw--v2 .tw__scenes button em { font-size: 9.5px; letter-spacing: 0.04em; }

/* ---------------------------------------------------------------- compact story column */
body.home .s-twin .tw--v2 .tw__story { width: 320px; }
body.home .s-twin .tw--v2 .tw__title { padding: 14px 16px 2px !important; }
body.home .s-twin .tw--v2 .tw__title h3 { margin: 8px 0 4px; font-size: 18px; }
body.home .s-twin .tw--v2 .tw__title p { font-size: 12.5px; line-height: 1.45; }
body.home .s-twin .tw--v2 .tw__panel { padding: 10px 16px 2px !important; }
body.home .s-twin .tw--v2 .tw__bar { padding: 0 16px 10px !important; }
body.home .s-twin .tw--v2 .tw__legend { padding: 9px 16px 11px !important; font-size: 11.5px; gap: 4px 12px; }
body.home .s-twin .tw--v2 .tw-p__kpis { margin-bottom: 12px; }
body.home .s-twin .tw--v2 .tw-p__kpis > div { padding: 9px 11px 10px !important; }
body.home .s-twin .tw--v2 .tw-p__kpis span { margin-bottom: 5px; font-size: 9.5px; }
body.home .s-twin .tw--v2 .tw-p__kpis b { font-size: 21px; }
body.home .s-twin .tw--v2 .tw-p__kpis em { margin-top: 3px !important; font-size: 10.5px; }
body.home .s-twin .tw--v2 .tw-p__label { margin-bottom: 6px; font-size: 9.5px; }
body.home .s-twin .tw--v2 .tw-bars, body.home .s-twin .tw--v2 .tw-rank { gap: 5px; margin-bottom: 10px; }
body.home .s-twin .tw--v2 .tw-bars li { grid-template-columns: 66px 1fr 52px; font-size: 12px; }
body.home .s-twin .tw--v2 .tw-rank li { padding: 5px 8px; font-size: 12px; }
body.home .s-twin .tw--v2 .tw-p__insight { margin-bottom: 8px; padding: 8px 10px; font-size: 12.5px; line-height: 1.45; }
body.home .s-twin .tw--v2 .tw-p__note { margin: 2px 0 10px; font-size: 10.5px; }

/* trip: status row, a one-line stop strip, four telemetry figures in one row, three events */
body.home .s-twin .tw--v2 .tw-p__head { margin-bottom: 10px; }
body.home .s-twin .tw--v2 .tw-p__status { padding: 4px 8px; font-size: 11px; }
body.home .s-twin .tw--v2 .tw-p__stops { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; margin: 0 0 12px; }
body.home .s-twin .tw--v2 .tw-p__stops li { grid-template-columns: 1fr; gap: 3px; padding: 0 6px 0 0; position: relative; }
body.home .s-twin .tw--v2 .tw-p__stops li::after { left: 14px !important; right: 4px; top: 6px !important; bottom: auto !important; width: auto !important; height: 2px !important; }
body.home .s-twin .tw--v2 .tw-p__stops i { width: 12px; height: 12px; margin: 0; }
body.home .s-twin .tw--v2 .tw-p__stops b { font-size: 12.5px; }
body.home .s-twin .tw--v2 .tw-p__stops span { margin-top: 1px; font-size: 11px; }
body.home .s-twin .tw--v2 .tw-p__stops time { font-size: 10.5px; line-height: 1.2; }
body.home .s-twin .tw--v2 .tw-p__kpis:not(.tw-p__kpis--info) { grid-template-columns: repeat(4, 1fr) !important; }
body.home .s-twin .tw--v2 .tw-p__kpis:not(.tw-p__kpis--info) > div { padding: 8px 8px 9px !important; }
body.home .s-twin .tw--v2 .tw-p__kpis:not(.tw-p__kpis--info) b { font-size: 17px; }
body.home .s-twin .tw--v2 .tw-p__kpis:not(.tw-p__kpis--info) span { font-size: 8.5px; letter-spacing: 0.06em; }
body.home .s-twin .tw--v2 .tw-p__log { gap: 1px; margin-bottom: 8px; }
body.home .s-twin .tw--v2 .tw-p__log li { padding: 6px 7px; font-size: 11.5px; line-height: 1.35; }
body.home .s-twin .tw--v2 .tw-p__log time { font-size: 10px; }
body.home .s-twin .tw--v2 .tw__chapters { gap: 4px; margin-bottom: 8px; flex-wrap: wrap; }
body.home .s-twin .tw--v2 .tw__chapters button { padding: 4px 8px; font-size: 11px; }
body.home .s-twin .tw--v2 .tw__play { width: 30px; height: 30px; }
body.home .s-twin .tw--v2 .tw__clock { font-size: 12.5px; min-width: 40px; }
body.home .s-twin .tw--v2 .tw__chapter { margin-top: 4px; font-size: 11.5px; }
/* the column hugs its content instead of filling the stage */
@media (min-width: 980px) {
  body.home .s-twin .tw--v2 .tw__story { bottom: auto; max-height: calc(100% - 108px); }
  body.home .s-twin .tw--v2 .tw__legend { margin-top: 0; }
}
body.home .s-twin .tw--v2 .tw-p__log li { color: rgba(227, 246, 250, 0.72); }
body.home .s-twin .tw--v2 .tw-p__log li:first-child { color: #fff; }

/* phone & tablet: map first at a fixed height, scenes as a swipe strip, the story below — nothing squeezes */
@media (max-width: 979px) {
  html body.home .s-twin .tw.tw--v2 { height: auto !important; min-height: 0 !important; }
  html body.home .s-twin .tw.tw--v2 .tw__stage { height: auto !important; min-height: 0 !important; max-height: none !important; }
  html body.home .s-twin .tw.tw--v2 .tw__map { flex: 0 0 auto !important; height: clamp(360px, 62vh, 520px) !important; min-height: 360px !important; }
  html body.home .s-twin .tw.tw--v2 .tw-calls { height: clamp(360px, 62vh, 520px) !important; }
  html body.home .s-twin .tw.tw--v2 .tw__head { flex: 0 0 64px !important; height: 64px !important; min-height: 64px !important; }
  html body.home .s-twin .tw.tw--v2 .tw__scenes button { min-width: 168px; padding: 10px 14px !important; }
  html body.home .s-twin .tw.tw--v2 .tw__story { flex: 0 0 auto !important; width: 100% !important; max-height: none !important; padding: 18px 16px 16px !important; }
  html body.home .s-twin .tw.tw--v2 .tw__title h3 { font-size: 19px !important; }
  html body.home .s-twin .tw.tw--v2 .tw-p__kpis b { font-size: 20px !important; }
  html body.home .s-twin .tw.tw--v2 .tw-call { transform-origin: 0 0; scale: 0.86; }
}
@media (max-width: 560px) {
  html body.home .s-twin .tw.tw--v2 .tw-p__log li:nth-child(n + 3) { display: none; }
  html body.home .s-twin .tw.tw--v2 .tw__chapters { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
}
/* trip ledger: tolls, diesel, halts so far */
body.home .s-twin .tw--v2 .tw-p__ledger { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; margin: 0 0 16px; background: var(--tw-hair); border: 1px solid var(--tw-hair); }
body.home .s-twin .tw--v2 .tw-p__ledger > div { padding: 10px 12px 11px; background: rgba(7, 11, 14, 0.92); }
body.home .s-twin .tw--v2 .tw-p__ledger span { display: block; margin-bottom: 5px; font: 500 9.5px/1.2 "IBM Plex Mono", monospace; letter-spacing: 0.08em; text-transform: uppercase; color: var(--tw-dim); }
body.home .s-twin .tw--v2 .tw-p__ledger b { font: 600 18px/1 "Source Sans 3", system-ui, sans-serif; letter-spacing: -0.01em; color: #ffd27a; }
body.home .s-twin .tw--v2 .tw-p__ledger > div:nth-child(2) b { color: #6ee7b7; }
body.home .s-twin .tw--v2 .tw-p__ledger > div:nth-child(3) b { color: #ffb08a; }
body.home .s-twin .tw--v2 .tw-p__ledger em { display: block; margin-top: 4px; font-size: 10.5px; line-height: 1.3; color: var(--tw-acc); font-style: normal; }
/* loading / cross-dock / unloading checklist */
body.home .s-twin .tw--v2 .tw-p__check { margin: 0 0 16px; }
body.home .s-twin .tw--v2 .tw-check__bar { display: grid; grid-template-columns: auto 1fr auto; gap: 10px; align-items: center; margin: 0 0 10px; font: 500 10.5px "IBM Plex Mono", monospace; letter-spacing: 0.06em; text-transform: uppercase; color: var(--tw-dim); }
body.home .s-twin .tw--v2 .tw-check__bar i { display: block; height: 6px; background: rgba(255, 255, 255, 0.08); border-radius: 3px; overflow: hidden; }
body.home .s-twin .tw--v2 .tw-check__bar b { display: block; height: 100%; background: linear-gradient(90deg, #0b8fa8, #7ae9ff); border-radius: 3px; transition: width 0.4s ease; }
body.home .s-twin .tw--v2 .tw-check__bar em { font-style: normal; color: #fff; font-size: 12px; }
body.home .s-twin .tw--v2 .tw-check { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
body.home .s-twin .tw--v2 .tw-check li { display: grid; grid-template-columns: 16px 1fr auto; gap: 8px; align-items: start; padding: 6px 8px; background: rgba(7, 11, 14, 0.6); border: 1px solid var(--tw-hair); font-size: 11.5px; line-height: 1.35; color: rgba(227, 246, 250, 0.5); transition: color 0.3s, border-color 0.3s; }
body.home .s-twin .tw--v2 .tw-check li i { width: 14px; height: 14px; margin-top: 1px; border-radius: 50%; border: 1.5px solid rgba(122, 233, 255, 0.35); position: relative; }
body.home .s-twin .tw--v2 .tw-check li time { font: 500 10px "IBM Plex Mono", monospace; color: var(--tw-dim); }
body.home .s-twin .tw--v2 .tw-check li[data-state="active"] { color: #fff; border-color: rgba(122, 233, 255, 0.6); }
body.home .s-twin .tw--v2 .tw-check li[data-state="active"] i { border-color: #7ae9ff; box-shadow: 0 0 0 3px rgba(122, 233, 255, 0.18); animation: tw-tick 1.2s ease-in-out infinite; }
@keyframes tw-tick { 50% { box-shadow: 0 0 0 6px rgba(122, 233, 255, 0.05); } }
body.home .s-twin .tw--v2 .tw-check li[data-state="done"] { color: rgba(227, 246, 250, 0.85); }
body.home .s-twin .tw--v2 .tw-check li[data-state="done"] i { background: #34d399; border-color: #34d399; }
body.home .s-twin .tw--v2 .tw-check li[data-state="done"] i::after { content: ""; position: absolute; left: 4px; top: 1.5px; width: 3px; height: 6px; border: solid #06201a; border-width: 0 1.5px 1.5px 0; transform: rotate(45deg); }
/* phones and tablets: the map alone, edge to edge, no card, no frame */
@media (max-width: 979px) {
  body.home .s-twin .tw.tw--v2 { box-shadow: none !important; }
  body.home main { overflow-x: visible !important; }
  html body.home main > section.s-twin {
    overflow: visible !important;
    width: 100vw !important;
    max-width: 100vw !important;
    margin-left: calc(50% - 50vw) !important;
    margin-right: calc(50% - 50vw) !important;
    border-left: 0 !important;
    border-right: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
  html body.home main > section.s-twin::after { display: none !important; }
  html body.home .s-twin > .s__wrap { padding-left: 0 !important; padding-right: 0 !important; }
  html body.home .s-twin .s-head { padding-left: var(--frame-pad, 20px); padding-right: var(--frame-pad, 20px); }
  html body.home .s-twin .tw.tw--v2 { border: 0 !important; }
  html body.home .s-twin .tw.tw--v2 .tw__story { display: none !important; }
  html body.home .s-twin .tw.tw--v2 .tw__map, html body.home .s-twin .tw.tw--v2 .tw-calls { height: clamp(420px, 72vh, 640px) !important; }
  html body.home .s-twin .tw.tw--v2 .tw__head { border-top: 1px solid var(--tw-hair); }
}

/* Desktop: twin flush to viewport edges (section 100vw; main must not clip — see overflow rule below) */
@media (min-width: 980px) {
  body.home main { overflow-x: visible !important; }
  html body.home main > section.s-twin {
    overflow: visible !important;
    width: 100vw !important;
    max-width: 100vw !important;
    margin-left: calc(50% - 50vw) !important;
    margin-right: calc(50% - 50vw) !important;
    border-left: 0 !important;
    border-right: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
  html body.home main > section.s-twin::after { display: none !important; }
  html body.home .s-twin > .s__wrap {
    width: 100% !important;
    max-width: none !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    margin: 0 !important;
  }
  html body.home .s-twin .s-head {
    box-sizing: border-box;
    width: min(100%, 1440px);
    max-width: 1440px;
    margin-left: auto;
    margin-right: auto;
    padding-left: max(20px, calc((100vw - 1440px) / 2 + 20px));
    padding-right: max(20px, calc((100vw - 1440px) / 2 + 20px));
  }
  html body.home .s-twin .tw.tw--v2 {
    width: 100% !important;
    max-width: none !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    overflow: hidden;
    --tw-gut: max(16px, calc((100vw - 1440px) / 2 + 16px));
  }
  html body.home .s-twin .tw--v2 .tw__map,
  html body.home .s-twin .tw--v2 #aw-kepler-map {
    left: 0 !important;
    right: 0 !important;
  }
  html body.home .s-twin .tw--v2 .tw__stage {
    width: 100% !important;
    max-width: none !important;
    overflow: hidden;
  }
  html body.home .s-twin .tw--v2 .tw__map,
  html body.home .s-twin .tw--v2 #aw-kepler-map {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
  }
  html body.home .s-twin .tw--v2 .tw__map > div,
  html body.home .s-twin .tw--v2 .tw__map .kepler-gl,
  html body.home .s-twin .tw--v2 .tw__map .maplibregl-map {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
  }
  html body.home .s-twin .tw--v2 .tw-calls {
    inset: 0 !important;
    overflow: visible !important;
  }
  html body.home .s-twin .tw--v2 .tw__map .maplibregl-ctrl-top-right {
    top: 10px !important;
    right: 10px !important;
  }
  html body.home .s-twin .tw--v2 .tw__head {
    padding-left: var(--tw-gut);
    padding-right: var(--tw-gut);
  }
}
/* desktop: the trip card never outgrows the stage — it scrolls inside itself, quietly */
@media (min-width: 980px) {
  html body.home .s-twin .tw.tw--v2 .tw__story { max-height: calc(100% - 92px) !important; overflow-y: auto !important; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: rgba(122, 233, 255, 0.25) transparent; }
  html body.home .s-twin .tw.tw--v2 .tw__story::-webkit-scrollbar { width: 6px; }
  html body.home .s-twin .tw.tw--v2 .tw__story::-webkit-scrollbar-thumb { background: rgba(122, 233, 255, 0.25); border-radius: 3px; }
  html body.home .s-twin .tw.tw--v2 .tw-p__note { display: none; }
  html body.home .s-twin .tw.tw--v2 .tw-p__log li:nth-child(n + 3) { display: none; }
}
