/* GLOBAL VIEWPORT & SNAP SCROLLING */

html {
  scroll-snap-type: y mandatory;
  scroll-behavior: smooth;
  background-color: #fff;
  color: #333;
  height: 100%;
}

body {
  margin: 0;
  padding: 0;
  height: 100%;
  overflow-x: hidden;
  overflow-y: auto;
}

/* Force WET/Drupal framework wrappers out of height/overflow restriction traps */

#wb-main,
#wb-main-in,
#wb-core,
main,
.page-wrapper,
#wb-cont {
  overflow: visible !important;
  height: auto !important;
  max-height: none !important;
}

.tc-content-wrapper {
  font-family: "Lato", "Arial", sans-serif !important;
}

#wb-cont,
.block-views-blocknavigation-buttons-block-1 {
  display: none;
}

/* Section Snap Targets */

.tc-presentation-stage .video-section {
  scroll-snap-align: start !important;
  scroll-snap-stop: always !important;
  position: relative;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  background-color: #000;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* WET Header & Footer Boundary Snap Rules */

#wb-bnr,
header.wet-header {
  scroll-snap-align: start;
  scroll-snap-stop: normal;
  height: auto;
  min-height: 80px;
}

#wb-foot,
footer,
footer.wet-footer,
.page-footer {
  scroll-snap-align: start !important;
  scroll-snap-stop: always !important;
  position: relative !important;
  z-index: 10;
  height: auto !important;
  min-height: 150px;
}

/* FULL-SCREEN LOADING SCREEN & SCROLL LOCK */

/* Prevent scrolling while page resources are loading */

html.is-loading,
body.is-loading {
  overflow: hidden !important;
  height: 100vh !important;
}

.loading-screen {
  position: fixed;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100vh;
  z-index: 100000;
  background-color: rgb(247, 246, 241);
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 1;
  visibility: visible;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

.loading-screen img {
  display: block;
  max-width: 100%;
  height: auto;
}

/* Hidden state triggered by JS */

.loading-screen.fade-out {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

/* PRESENTATION STAGE CONTAINER & THEMING */

.tc-presentation-stage {
  --tc-light-blue: #008AB1;
  --tc-dark-blue: #002e3d;
  --bg-light-blue-trans: rgba(3, 138, 177, 0.88);
  --bg-dark-blue-trans: rgba(5,106,141,0.9);
  --bg-seafoam-trans: rgba(76,161,164,0.9);
  --bg-orange-trans: rgba(222,101,38,0.9);
  --bg-green-trans: rgba(131,159,38,0.9);
  --bg-light-blue-opaque: rgb(3,138,177);
  --bg-dark-blue-opaque: rgb(5,106,141);
  --bg-seafoam-opaque: rgb(76,161,164);
  --bg-orange-opaque: rgb(222, 101, 38);
  --bg-green-opaque: rgb(131, 159, 38);
  position: relative;
  width: 100vw;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  background-color: #000;
  color: #fff;
}

.tc-presentation-stage * {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* Full-Screen Background Video Scaling */

.tc-presentation-stage .video-bg {
  position: absolute;
  top: 50%;
  left: 50%;
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  transform: translate(-50%, -50%);
  object-fit: cover;
  z-index: 1;
}

/* Banner Text Overlays & Nested Scroll Configuration */

.tc-presentation-stage .banner-overlay {
  position: absolute;
  top: 0;
  bottom: 0;
  height: 100%;
  padding: 40px 40px;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  color: #fff;
  overflow-y: auto !important;
  -webkit-overflow-scrolling: touch;
}

/* Flexible spacer: Bottom-aligns short text, collapses on overflow */

.tc-presentation-stage .banner-overlay::before,
.tc-presentation-stage .content-half::before {
  content: "";
  flex: 1 1 0%;
}

.tc-presentation-stage .banner-overlay h2,
.tc-presentation-stage .content-half .banner h2 {
  font-size: 2em;
  line-height: 0.8em;
  font-weight: 900;
  margin-bottom: 20px;
  letter-spacing: 0.5px;
}

/* Ensure content links remain white across all interaction/visited states */

.tc-presentation-stage a,
.tc-presentation-stage a:link,
.tc-presentation-stage a:visited,
.tc-presentation-stage a:hover,
.tc-presentation-stage a:focus,
.tc-presentation-stage a:active {
  color: #ffffff !important;
}

#hi h2 {
  text-transform: none !important;
}

.tc-content-wrapper p {
  line-height: 1.4em;
}

/* Banner Paragraph Font Size & Spacing */

.tc-presentation-stage .banner-overlay p,
.tc-presentation-stage .content-half .banner p {
  font-size: 18px;
  line-height: 1.4em;
  margin-bottom: 15px;
}

.tc-presentation-stage .banner-overlay blockquote {
  border-left: 4px solid #fff;
  padding-left: 15px;
  font-style: italic;
  font-size: 18px;
  line-height: 1.4em;
}

/* Left/Right Banner Positioning & Specific Padding */

.tc-presentation-stage .left-banner {
  left: 0;
  padding-left: 60px;
}

.tc-presentation-stage .right-banner {
  right: 0;
}

/* Theme Utility Classes */

.tc-presentation-stage .bg-light-blue-transparent {
  background-color: var(--bg-light-blue-trans);
}

.tc-presentation-stage .bg-dark-blue-transparent {
  background-color: var(--bg-dark-blue-trans);
}

.tc-presentation-stage .bg-seafoam-transparent {
  background-color: var(--bg-seafoam-trans);
}

.tc-presentation-stage .bg-orange-transparent {
  background-color: var(--bg-orange-trans);
}

.tc-presentation-stage .bg-green-transparent {
  background-color: var(--bg-green-trans);
}

.tc-presentation-stage .bg-light-blue-opaque {
  background-color: var(--bg-light-blue-opaque);
}

.tc-presentation-stage .bg-dark-blue-opaque {
  background-color: var(--bg-dark-blue-opaque);
}

.tc-presentation-stage .bg-seafoam-opaque {
  background-color: var(--bg-seafoam-opaque);
}

.tc-presentation-stage .bg-orange-opaque {
  background-color: var(--bg-orange-opaque);
}

.tc-presentation-stage .bg-green-opaque {
  background-color: var(--bg-green-opaque);
}

/* SPLIT SECTION LAYOUT & MEDIA CONTAINERS */

.tc-presentation-stage .split-section {
  display: flex;
  flex-direction: row;
  width: 100%;
  height: 100vh;
  overflow: hidden;
  align-items: stretch;
}

.tc-presentation-stage .video-half {
  position: relative;
  flex: 1;
  height: 100%;
  background-color: inherit;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tc-presentation-stage .content-half {
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding: 40px 40px;
  overflow-y: auto !important;
  -webkit-overflow-scrolling: touch;
}

.tc-presentation-stage .video-media {
  width: 100%;
  height: 100%;
  min-width: 100%;
  min-height: 100%;
  object-fit: cover;
  transform: scale(1.02);
  display: block;
  cursor: pointer;
}

/* CUSTOM VIDEO CAPTION STYLING (::cue) */

.tc-presentation-stage video::cue {
  background: rgba(0, 0, 0, 0.85);
  color: #ffffff;
  font-family: "Lato", "Arial", sans-serif;
  font-size: 1.6rem;
  font-weight: 600;
  line-height: 1.4;
  text-shadow: none;
}

/* Ensure captions clear bottom navigation / scroll prompts on mobile */

@media (max-width: 767px) {
  .tc-presentation-stage video::cue {
    font-size: 0.95rem;
    padding: 2px 6px;
  }
}

/* BANNER SCROLL INDICATOR */

/* The indicator is attached to the SECTION, not the scrolling banner. Therefore it takes up no banner space and cannot scroll with the text. */

.banner-scroll-indicator {
  position: absolute;
  bottom: 0;
  width: fit-content;
  margin: 0;
  padding: 12px 22px 10px;
  background: #000;
  color: #fff;
  border-radius: 8px 8px 0 0;
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  z-index: 99;
  pointer-events: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease,
        visibility 0.2s ease;
}

.banner-scroll-indicator.is-visible {
  opacity: 1;
  visibility: visible;
}

.banner-scroll-indicator .scroll-text {
  display: block;
  white-space: nowrap;
}

.banner-scroll-indicator .chevron {
  display: block;
  font-size: 12px;
}

.banner-scroll-indicator .bounce {
  animation: banner-scroll-bounce 1.5s infinite;
}

@keyframes banner-scroll-bounce {
  0%,
  20%,
  50%,
  80%,
  100% {
    transform: translateY(0);
  }

  40% {
    transform: translateY(4px);
  }

  60% {
    transform: translateY(2px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .banner-scroll-indicator .bounce {
    animation: none;
  }
}

/* CUSTOM WHITE SCROLLBAR (COMPACT & OFFSET) */

.tc-presentation-stage .banner-overlay,
.tc-presentation-stage .content-half {
  scrollbar-color: #ffffff rgba(255, 255, 255, 0.2);
  scrollbar-width: thin;
}

.tc-presentation-stage .banner-overlay::-webkit-scrollbar,
.tc-presentation-stage .content-half::-webkit-scrollbar {
  width: 6px;
}

.tc-presentation-stage .banner-overlay::-webkit-scrollbar-button:vertical,
.tc-presentation-stage .content-half::-webkit-scrollbar-button:vertical {
  display: block;
  height: 40px;
  background: transparent;
}

.tc-presentation-stage .banner-overlay::-webkit-scrollbar-track,
.tc-presentation-stage .content-half::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 4px;
}

.tc-presentation-stage .banner-overlay::-webkit-scrollbar-thumb,
.tc-presentation-stage .content-half::-webkit-scrollbar-thumb {
  background: #ffffff;
  border-radius: 4px;
}

.tc-presentation-stage .banner-overlay::-webkit-scrollbar-thumb:hover,
.tc-presentation-stage .content-half::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.8);
}

/* OUR TEAM SECTION */

.tc-presentation-stage #regions .video-half {
  background-color: #F7F7F0;
}

.tc-presentation-stage #regions .video-media {
  width: 90%;
  height: 90%;
  min-width: 90%;
  min-height: 90%;
  object-fit: contain;
  transform: none;
}

/* CENTER PLAY BUTTON OVERLAY */

.tc-presentation-stage .video-play-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 20 !important;
  width: 70px;
  height: 70px;
  background-color: rgba(0, 0, 0, 0.75);
  color: #ffffff;
  border: 2px solid rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  display: flex !important;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.25s ease, visibility 0.25s ease, background-color 0.2s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
}

.tc-presentation-stage .video-play-overlay .glyphicon-play {
  margin-left: 4px;
  margin-top: -6px;
}

.tc-presentation-stage .video-play-overlay.show-overlay {
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
}

.tc-presentation-stage .video-play-overlay:hover {
  background-color: var(--tc-light-blue, #008AB1);
  transform: translate(-50%, -50%);
  border-color: #ffffff;
}

/* INTRO / HERO SECTION STYLING */

/* Enable sticky positioning context and align content towards the bottom */

.tc-presentation-stage #home {
  overflow: visible !important;
  /* CRITICAL: Allows position: sticky to work */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  padding-bottom: 150px;
  /* Leaves space above the scroll chevron */
}

/* Contain background video within #home bounds without overflow: hidden */

.tc-presentation-stage #home .video-bg {
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  transform: none;
  object-fit: cover;
}

/* Sticky positioning for the entire welcome text & sound block */

.tc-presentation-stage .home-text {
  position: sticky;
  bottom: 75px;
  /* Pins text to bottom of viewport on initial load */
  z-index: 2;
  text-align: center;
  color: #002e3d;
  max-width: 800px;
  padding: 0 20px;
  margin: 0 auto;
}

.tc-presentation-stage .home-text h1 {
  margin: 0 0 20px 0;
  padding: 0;
  line-height: 1.3em;
  border: none;
  font-weight: 800;
}

.tc-presentation-stage .home-text h1 .dark-blue {
  color: #002e3d;
  font-weight: 400;
  font-size: 1.6em;
}

.tc-presentation-stage .home-text h1 .light-blue {
  color: #008AB1;
  font-weight: 900;
  font-size: 2.2em;
}

.tc-presentation-stage .sound-message {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 20px;
  color: #333;
  margin: 15px auto 0 auto;
  max-width: 520px;
}

/* SIDE NAVIGATION & TOP-LEFT VERTICAL MEDIA CONTROLS */

.side-nav,
.media-controls {
  position: fixed !important;
  z-index: 99999 !important;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.side-nav.visible,
.media-controls.visible {
  opacity: 1;
  pointer-events: auto !important;
}

.side-nav {
  left: 0 !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
}

.side-nav .nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.side-nav .nav-link {
  display: flex;
  align-items: center;
  color: #fff;
  text-decoration: none;
  position: relative;
}

.side-nav .nav-num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 40px;
  background-color: rgba(30, 30, 30, 0.9);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  font-weight: 600;
  color: #ccc;
  font-size: 0.85rem;
  transition: background-color 0.2s, color 0.2s;
}

.side-nav .nav-link.active .nav-num,
.side-nav .nav-link:hover .nav-num {
  background-color: var(--tc-light-blue, #008AB1);
  color: #fff;
}

.side-nav .nav-label {
  position: absolute;
  left: 36px;
  top: 0;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9);
  color: #fff;
  padding: 0 14px;
  display: flex;
  align-items: center;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s ease;
  font-size: 0.85rem;
}

.side-nav .nav-link:hover .nav-label {
  opacity: 1;
  visibility: visible;
}

.media-controls {
  left: 0 !important;
  top: 0 !important;
  width: 36px;
  background-color: rgba(30, 30, 30, 0.9);
  display: flex;
  flex-direction: column;
  padding: 0;
  border-right: 1px solid rgba(255, 255, 255, 0.15);
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 2px 2px 8px rgba(0, 0, 0, 0.3);
}

.media-controls .ctrl-btn {
  width: 36px;
  height: 40px;
  background: none;
  border: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  color: #ccc;
  cursor: pointer;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  transition: background-color 0.2s, color 0.2s;
}

.media-controls .ctrl-btn:last-child {
  border-bottom: none;
}

.media-controls .ctrl-btn:hover {
  background-color: var(--tc-light-blue, #008AB1);
  color: #fff;
}

/* SCROLL PROMPT & BOUNCING CHEVRON STYLING */

.tc-presentation-stage .scroll-animation {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  text-align: center;
  pointer-events: auto;
  margin: 0;
}

.tc-presentation-stage .scroll-link,
.tc-presentation-stage .scroll-link:visited,
.tc-presentation-stage .scroll-link:hover,
.tc-presentation-stage .scroll-link:active,
.tc-presentation-stage .scroll-link:focus {
  color: #ffffff !important;
  text-decoration: none !important;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  display: inline-block;
  padding: 10px 24px 8px 24px;
  background-color: rgba(0, 0, 0, 0.8);
  border-radius: 12px 12px 0 0;
  transition: background-color 0.2s ease;
}

.tc-presentation-stage .scroll-link:hover,
.tc-presentation-stage .scroll-link:focus {
  background-color: rgba(0, 0, 0, 0.88);
  outline: 2px solid rgba(255, 255, 255, 0.8);
  outline-offset: -2px;
}

.tc-presentation-stage .chevron.bounce {
  display: block;
  margin-top: 2px;
  font-size: 1.1rem;
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%,
  20%,
  50%,
  80%,
  100% {
    transform: translateY(0);
  }

  40% {
    transform: translateY(-5px);
  }

  60% {
    transform: translateY(-2px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .tc-presentation-stage .chevron.bounce {
    animation: none;
  }
}

/* Prevent 1px hairline below scroll indicators */

.tc-presentation-stage .scroll-animation,
.banner-scroll-indicator {
  bottom: -1px;
}

/* VIDEO FALLBACK IMAGES */

.tc-presentation-stage .video-section {
  background-position: center center;
  background-size: cover;
  background-repeat: no-repeat;
}

.tc-presentation-stage #home {
  background-image: url("/sites/default/files/2021-07/home.jpg");
}

.tc-presentation-stage #hi {
  background-image: url("/sites/default/files/2021-07/hi.jpg");
}

.tc-presentation-stage #mandate {
  background-image: url("/sites/default/files/2021-07/mandate.jpg");
}

.tc-presentation-stage #security {
  background-image: url("/sites/default/files/2021-07/security.jpg");
}

.tc-presentation-stage #history {
  background-image: url("/sites/default/files/2021-07/history.jpg");
}

.tc-presentation-stage #rail {
  background-image: url("/sites/default/files/2021-07/rail.jpg");
}

.tc-presentation-stage #marine {
  background-image: url("/sites/default/files/2021-07/marine.jpg");
}

.tc-presentation-stage #air {
  background-image: url("/sites/default/files/2021-07/air.jpg");
}

.tc-presentation-stage #road {
  background-image: url("/sites/default/files/2021-07/road.jpg");
}

.tc-presentation-stage #dangerous-goods {
  background-image: url("/sites/default/files/2021-07/dangerous-goods.jpg");
}

.tc-presentation-stage #green-innovative {
  background-image: url("/sites/default/files/2021-07/green-innovative.jpg");
}

.tc-presentation-stage #where-next {
  background-image: url("/sites/default/files/2021-07/where-next.jpg");
}

/* English */
.tc-presentation-stage #we-are:lang(en) {
    background-image: url("/sites/default/files/2026-11/we-are-transport-canada-en-still.jpg");
}

/* French */
.tc-presentation-stage #we-are:lang(fr) {
    background-image: url("/sites/default/files/2026-11/we-are-transport-canada-fr-still.jpg");
}

.tc-presentation-stage #josee .video-half {
  background: url("/sites/default/files/2021-07/josee.jpg") center / cover no-repeat;
}

.tc-presentation-stage #frederic .video-half {
  background: url("/sites/default/files/2021-07/frederic.jpg") center / cover no-repeat;
}

.tc-presentation-stage #jay .video-half {
  background: url("/sites/default/files/2021-07/jay.jpg") center / cover no-repeat;
}

.tc-presentation-stage #karine .video-half {
  background: url("/sites/default/files/2021-07/karine.jpg") center / cover no-repeat;
}

.tc-presentation-stage #rachelle .video-half {
  background: url("/sites/default/files/2021-07/rachelle.jpg") 100% center / cover no-repeat;
}

.tc-presentation-stage #miguel .video-half {
  background: url("/sites/default/files/2021-07/miguel.jpg") center / cover no-repeat;
}

/* RESPONSIVE PERCENTAGE BANNER BREAKPOINTS (BOOTSTRAP GRID STYLE) */

/* Extra Large / Large Desktops (1/3 Screen Width) */

@media (min-width: 1200px) {
  .tc-presentation-stage .banner-overlay,
  .tc-presentation-stage .content-half {
    width: 33.333% !important;
    min-width: 33.333% !important;
    max-width: 33.333% !important;
  }
}

/* Medium Laptops / Smaller Desktops */

@media (min-width: 992px) and (max-width: 1199px) {
  .tc-presentation-stage .banner-overlay,
  .tc-presentation-stage .content-half {
    width: 41.666% !important;
    min-width: 41.666% !important;
    max-width: 41.666% !important;
  }
}

/* Tablets / Small Laptops (Half Screen Width) */

@media (min-width: 768px) and (max-width: 991px) {
  .tc-presentation-stage .banner-overlay,
  .tc-presentation-stage .content-half {
    width: 50% !important;
    min-width: 50% !important;
    max-width: 50% !important;
  }
}

/* Mobile & Small Screens: editorial flow rather than desktop slideshow */

@media (max-width: 767px) {
  html {
    scroll-snap-type: none !important;
    scroll-behavior: smooth;
  }

  body {
    overflow-y: auto;
  }

  main.main-container.container {
    padding-left: 0 !important;
    padding-right: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
  }

  html.is-loading,
  body.is-loading {
    overflow-y: auto !important;
    height: auto !important;
  }

  .loading-screen {
    display: none !important;
  }

  .tc-presentation-stage {
    width: 100%;
    left: 0;
    right: 0;
    margin-left: 0;
    margin-right: 0;
    background: #fff;
  }

  .tc-presentation-stage .video-section,
  .tc-presentation-stage .split-section {
    width: 100%;
    height: auto;
    min-height: 0;
    overflow: visible;
    scroll-snap-align: none !important;
    scroll-snap-stop: normal !important;
  }

  .side-nav,
  .media-controls,
  .banner-scroll-indicator,
  .tc-presentation-stage .scroll-animation {
    display: none !important;
  }

  /* Home becomes a lightweight static hero. */

  .tc-presentation-stage #home {
    min-height: 78vh;
    padding: 0 20px 48px;
    overflow: hidden !important;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
    background: url("https://tc.canada.ca/sites/default/files/2026-09/welcome-tc.png") center / cover no-repeat;
  }

  .tc-presentation-stage #home .video-bg {
    display: none !important;
  }

  .tc-presentation-stage .home-text {
    position: relative;
    bottom: 50px;
    width: 100%;
    max-width: 560px;
    padding: 0;
    margin: 0 auto;
    text-align: center;
  }

  .tc-presentation-stage .home-text h1 {
    margin: 0 0 20px 0;
    padding: 0;
    line-height: 1em;
    border: none;
    font-weight: 800;
  }

  .tc-presentation-stage .home-text h1 .dark-blue {
    color: #002e3d;
    font-weight: 400;
    font-size: 1.1em;
  }

  .tc-presentation-stage .home-text h1 .light-blue {
    color: #008AB1;
    font-weight: 900;
    font-size: 1.5em;
  }

  .tc-presentation-stage .sound-message {
    display: none;
  }

  /* Informational sections: 16:9 visual followed by full-height text. */

  .tc-presentation-stage #hi,
  .tc-presentation-stage #mandate,
  .tc-presentation-stage #security,
  .tc-presentation-stage #history,
  .tc-presentation-stage #rail,
  .tc-presentation-stage #marine,
  .tc-presentation-stage #air,
  .tc-presentation-stage #road,
  .tc-presentation-stage #dangerous-goods,
  .tc-presentation-stage #green-innovative,
  .tc-presentation-stage #where-next {
    display: flex;
    flex-direction: column;
    background-image: none;
    background-color: #000;
  }

  .tc-presentation-stage #hi > .video-bg,
  .tc-presentation-stage #mandate > .video-bg,
  .tc-presentation-stage #security > .video-bg,
  .tc-presentation-stage #history > .video-bg,
  .tc-presentation-stage #rail > .video-bg,
  .tc-presentation-stage #marine > .video-bg,
  .tc-presentation-stage #air > .video-bg,
  .tc-presentation-stage #road > .video-bg,
  .tc-presentation-stage #dangerous-goods > .video-bg,
  .tc-presentation-stage #green-innovative > .video-bg,
  .tc-presentation-stage #where-next > .video-bg {
    display: none !important;
  }

  .tc-presentation-stage #hi::before,
  .tc-presentation-stage #mandate::before,
  .tc-presentation-stage #security::before,
  .tc-presentation-stage #history::before,
  .tc-presentation-stage #rail::before,
  .tc-presentation-stage #marine::before,
  .tc-presentation-stage #air::before,
  .tc-presentation-stage #road::before,
  .tc-presentation-stage #dangerous-goods::before,
  .tc-presentation-stage #green-innovative::before,
  .tc-presentation-stage #where-next::before {
    content: "";
    display: block;
    flex: 0 0 auto;
    width: 100%;
    aspect-ratio: 16 / 9;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
  }

  .tc-presentation-stage #hi::before {
    background-image: url("/sites/default/files/2021-07/hi.jpg");
  }

  .tc-presentation-stage #mandate::before {
    background-image: url("/sites/default/files/2021-07/mandate.jpg");
  }

  .tc-presentation-stage #security::before {
    background-image: url("/sites/default/files/2021-07/security.jpg");
  }

  .tc-presentation-stage #history::before {
    background-image: url("/sites/default/files/2021-07/history.jpg");
  }

  .tc-presentation-stage #rail::before {
    background-image: url("/sites/default/files/2021-07/rail.jpg");
  }

  .tc-presentation-stage #marine::before {
    background-image: url("/sites/default/files/2021-07/marine.jpg");
  }

  .tc-presentation-stage #air::before {
    background-image: url("/sites/default/files/2021-07/air.jpg");
  }

  .tc-presentation-stage #road::before {
    background-image: url("/sites/default/files/2021-07/road.jpg");
  }

  .tc-presentation-stage #dangerous-goods::before {
    background-image: url("/sites/default/files/2021-07/dangerous-goods.jpg");
  }

  .tc-presentation-stage #green-innovative::before {
    background-image: url("/sites/default/files/2021-07/green-innovative.jpg");
  }

  .tc-presentation-stage #where-next::before {
    background-image: url("/sites/default/files/2021-07/where-next.jpg");
  }

  /* No nested scrolling on mobile. */

  .tc-presentation-stage .banner-overlay,
  .tc-presentation-stage .content-half {
    position: relative;
    inset: auto;
    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
    height: auto;
    max-height: none !important;
    overflow: visible !important;
    padding: 34px 24px 38px;
    display: block;
  }

  .tc-presentation-stage .banner-overlay::before,
  .tc-presentation-stage .content-half::before {
    display: none !important;
    content: none !important;
  }

  .tc-presentation-stage .banner-overlay h2,
  .tc-presentation-stage .content-half .banner h2 {
    font-size: clamp(1.75rem, 7vw, 2.25rem);
    line-height: 1;
    margin-bottom: 18px;
  }

  .tc-presentation-stage .banner-overlay p,
  .tc-presentation-stage .content-half .banner p,
  .tc-presentation-stage .banner-overlay blockquote {
    font-size: 1rem;
    line-height: 1.55;
  }

  .tc-presentation-stage .banner-overlay p:last-child,
  .tc-presentation-stage .content-half .banner p:last-child {
    margin-bottom: 0;
  }

  /* Regions: use the supplied static poster on mobile. */

  .tc-presentation-stage #regions {
    display: flex;
    flex-direction: column;
    background: #F7F7F0;
  }

  .tc-presentation-stage #regions .video-half {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    flex: none;
    background: url("/sites/default/files/2021-02/regions.jpg") center / cover no-repeat;
  }

  .tc-presentation-stage #regions .video-media {
    display: none !important;
  }

  /* Testimonials: real video above the bio. */

  .tc-presentation-stage #josee,
  .tc-presentation-stage #frederic,
  .tc-presentation-stage #jay,
  .tc-presentation-stage #karine,
  .tc-presentation-stage #rachelle,
  .tc-presentation-stage #miguel {
    display: flex;
    flex-direction: column;
  }

  .tc-presentation-stage #josee .video-half,
  .tc-presentation-stage #frederic .video-half,
  .tc-presentation-stage #jay .video-half,
  .tc-presentation-stage #karine .video-half,
  .tc-presentation-stage #rachelle .video-half,
  .tc-presentation-stage #miguel .video-half {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    flex: none;
  }

  .tc-presentation-stage #josee .video-media,
  .tc-presentation-stage #frederic .video-media,
  .tc-presentation-stage #jay .video-media,
  .tc-presentation-stage #karine .video-media,
  .tc-presentation-stage #rachelle .video-media,
  .tc-presentation-stage #miguel .video-media {
    width: 100%;
    height: 100%;
    min-width: 0;
    min-height: 0;
    object-fit: cover;
    transform: none;
  }

  /* Final video remains real video, now as a responsive 16:9 block. */

  .tc-presentation-stage #we-are:lang(en) {
    position: relative;
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    min-height: 0;
    overflow: hidden;
    background: #000 url("/sites/default/files/2026-11/we-are-transport-canada-en-still.jpg") center / cover no-repeat;
  }

  .tc-presentation-stage #we-are:lang(fr) {
    position: relative;
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    min-height: 0;
    overflow: hidden;
    background: #000 url("/sites/default/files/2026-11/we-are-transport-canada-fr-still.jpg") center / cover no-repeat;
  }
  .tc-presentation-stage #we-are .video-bg {
    display: block !important;
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    min-width: 0;
    min-height: 0;
    transform: none;
    object-fit: cover;
  }

  /* Hide play overlays on mobile visuals that are intentionally non-interactive. */

  .tc-presentation-stage #home > .video-play-overlay,
  .tc-presentation-stage #hi > .video-play-overlay,
  .tc-presentation-stage #mandate > .video-play-overlay,
  .tc-presentation-stage #security > .video-play-overlay,
  .tc-presentation-stage #history > .video-play-overlay,
  .tc-presentation-stage #rail > .video-play-overlay,
  .tc-presentation-stage #marine > .video-play-overlay,
  .tc-presentation-stage #air > .video-play-overlay,
  .tc-presentation-stage #road > .video-play-overlay,
  .tc-presentation-stage #dangerous-goods > .video-play-overlay,
  .tc-presentation-stage #green-innovative > .video-play-overlay,
  .tc-presentation-stage #where-next > .video-play-overlay,
  .tc-presentation-stage #regions .video-play-overlay {
    display: none !important;
  }
}

/* Small phones: same structure, slightly tighter spacing. */

@media (max-width: 480px) {
  .tc-presentation-stage #home {
    min-height: 72vh;
    padding: 0 18px 36px;
  }

  .tc-presentation-stage .banner-overlay,
  .tc-presentation-stage .content-half {
    padding: 28px 20px 32px;
  }

  .tc-presentation-stage .banner-overlay h2,
  .tc-presentation-stage .content-half .banner h2 {
    font-size: 1.75rem;
    margin-bottom: 16px;
  }

  .tc-presentation-stage .banner-overlay p,
  .tc-presentation-stage .content-half .banner p,
  .tc-presentation-stage .banner-overlay blockquote {
    font-size: 1rem;
    line-height: 1.5;
  }

  .tc-presentation-stage .video-play-overlay {
    width: 58px;
    height: 58px;
    font-size: 26px;
  }
}

/* TARGETED FIXES: banner overflow and compact navigation. The original presentation design above is retained. */

.tc-presentation-stage {
  width: var(--tc-viewport-width, 100vw);
  margin-left: calc(var(--tc-viewport-width, 100vw) / -2);
  margin-right: calc(var(--tc-viewport-width, 100vw) / -2);
}

.tc-presentation-stage .video-section {
  width: 100%;
}

.tc-presentation-stage .banner-overlay,
.tc-presentation-stage .content-half {
  scroll-behavior: auto;
}

.tc-presentation-stage .banner-overlay > *,
.tc-presentation-stage .content-half > * {
  flex-shrink: 0;
}

/* Long headings must wrap without their lines overlapping. */

.tc-presentation-stage .banner-overlay h2,
.tc-presentation-stage .content-half .banner h2 {
  line-height: 1.05;
  overflow-wrap: anywhere;
}

.tc-presentation-stage .banner-overlay:focus-visible,
.tc-presentation-stage .content-half:focus-visible {
  outline: 2px solid #fff;
  outline-offset: -4px;
}

.tc-menu-button {
  display: none;
}

.tc-menu-button[hidden] {
  display: none !important;
}

@media (max-width: 767px) {
  .tc-presentation-stage {
    width: 100%;
    margin-left: 0;
    margin-right: 0;
  }

  /* Text has its natural height in the already-existing mobile layout. */

  .tc-presentation-stage .banner-overlay,
  .tc-presentation-stage .content-half {
    overscroll-behavior: auto;
  }

  .tc-presentation-stage .video-section {
    scroll-margin-top: 72px;
  }

  .tc-presentation-stage video[controls] + .video-play-overlay,
  .tc-presentation-stage .testimonial-play-btn {
    display: none !important;
  }

  .tc-menu-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    position: fixed;
    top: max(12px, env(safe-area-inset-top));
    right: max(12px, env(safe-area-inset-right));
    z-index: 99999;
    min-height: 44px;
    padding: 10px 14px;
    border: 1px solid rgba(255,255,255,.65);
    border-radius: 4px;
    background: rgba(0,46,61,.97);
    color: #fff;
    font: 700 16px/1.3 Lato, Arial, sans-serif;
    cursor: pointer;
  }

  .tc-menu-button:focus-visible {
    outline: 3px solid #fff;
    outline-offset: 2px;
  }

  .tc-menu-button .glyphicon {
    pointer-events: none;
  }

  .side-nav {
    display: none !important;
  }

  .side-nav.tc-menu-open {
    display: block !important;
    position: fixed !important;
    top: max(68px, calc(env(safe-area-inset-top) + 56px)) !important;
    right: max(12px, env(safe-area-inset-right)) !important;
    left: auto !important;
    transform: none !important;
    width: min(340px, calc(100vw - 24px));
    max-height: calc(100vh - 88px);
    max-height: calc(100dvh - 88px - env(safe-area-inset-top));
    overflow-y: auto;
    overscroll-behavior: contain;
    background: rgba(0,46,61,.98);
    border-radius: 4px;
    box-shadow: 0 8px 24px rgba(0,0,0,.3);
    opacity: 1;
    pointer-events: auto !important;
  }

  .side-nav.tc-menu-open .nav-link {
    min-height: 44px;
  }

  .side-nav.tc-menu-open .nav-num {
    flex: 0 0 40px;
    height: 44px;
    font-size: 16px;
  }

  .side-nav.tc-menu-open .nav-label {
    position: static;
    left: auto;
    opacity: 1;
    visibility: visible;
    white-space: normal;
    overflow-wrap: anywhere;
    height: auto;
    min-height: 44px;
    padding: 8px 12px;
    background: transparent;
    font-size: 16px;
    line-height: 1.4;
  }

  .side-nav.tc-menu-open .nav-link:focus-visible {
    outline: 2px solid #fff;
    outline-offset: -3px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

/* Fit desktop/tablet sections within the visible browser viewport. */

@media (min-width: 768px) {
  .tc-presentation-stage .video-section,
  .tc-presentation-stage .split-section {
    height: 100vh;
    /* Fallback */
    height: 100dvh;
  }

  .loading-screen {
    height: 100vh;
    height: 100dvh;
  }

  html.is-loading,
  body.is-loading {
    height: 100dvh !important;
  }
}

/* Portrait tablets: testimonials and Our team only */

@media (min-width: 768px) and (max-width: 1199px) and (orientation: portrait) {
  .tc-presentation-stage .split-section {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: minmax(0, 7fr) minmax(0, 3fr);
    gap: 0;
    width: 100%;
    height: 100vh;
    height: 100dvh;
    align-items: stretch;
    justify-content: normal;
    overflow: hidden;
  }

  /* Video occupies the top 70%; remove the static photo */

  .tc-presentation-stage .split-section .video-half {
    grid-column: 1;
    grid-row: 1;
    display: block;
    position: relative;
    flex: none;
    width: 100%;
    min-width: 0;
    height: 100%;
    min-height: 0;
    padding: 0;
    overflow: hidden;
    background-image: none !important;
    background-color: #000 !important;
  }

  /* Make the HTML paragraph wrapper fill the video area */

  .tc-presentation-stage .split-section .video-half > p {
    position: relative;
    width: 100%;
    height: 100%;
    min-width: 0;
    min-height: 0;
    margin: 0;
    padding: 0;
    line-height: 0;
  }

  /* Fill the area without stretching the video */

  .tc-presentation-stage .split-section .video-media,
  .tc-presentation-stage #regions .video-media {
    display: block;
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    min-width: 0;
    min-height: 0;
    max-width: none;
    max-height: none;
    margin: 0;
    aspect-ratio: auto;
    object-fit: cover;
    object-position: center center;
    transform: none;
  }

  /* Banner occupies the remaining 30% */

  .tc-presentation-stage .split-section .content-half {
    grid-column: 1;
    grid-row: 2;
    position: relative;
    inset: auto;
    box-sizing: border-box;
    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
    height: 100%;
    min-height: 0;
    padding: 28px 32px 48px 60px;
    overflow-y: auto !important;
    scroll-behavior: auto;
  }

  .tc-presentation-stage .split-section .content-half::before {
    display: none;
    content: none;
  }

  .tc-presentation-stage .split-section > .banner-scroll-indicator {
    grid-column: 1;
    grid-row: 2;
    bottom: 0;
  }
}

/* JavaScript controls presentation section transitions. */

@media (min-width: 768px) {
  html {
    scroll-snap-type: none !important;
  }

  /* Use one page scroller for the desktop/tablet presentation. */

  html:not(.is-loading) {
    height: auto !important;
    min-height: 100%;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    scroll-behavior: auto !important;
    scroll-snap-type: none !important;
  }

  html:not(.is-loading) body:not(.is-loading) {
    height: auto !important;
    min-height: 100vh;
    overflow: visible !important;
  }
}

/* Hide the focus outline after a mouse or trackpad click. */

.side-nav .nav-link:focus:not(:focus-visible) {
  outline: none !important;
  box-shadow: none !important;
}

/* Keep a clear focus indicator for keyboard navigation. */

.side-nav .nav-link:focus-visible {
  outline: 2px solid #fff !important;
  outline-offset: -2px;
}

.side-nav .nav-link:focus-visible .nav-label {
  opacity: 1;
  visibility: visible;
}

/* Reveal presentation controls whenever they contain keyboard focus. */

.side-nav:focus-within,
.media-controls:focus-within {
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
  transition: none !important;
}

/* Visible focus against both light and dark backgrounds. */

.tc-content-wrapper a:focus-visible,
.tc-content-wrapper button:focus-visible,
.tc-presentation-stage video:focus-visible,
.tc-presentation-stage .video-section:focus-visible {
  outline: 3px solid #fff !important;
  outline-offset: -4px !important;
  box-shadow: 0 0 0 3px #111 !important;
}

/* Local video controls appear when reached with the keyboard. */

.tc-presentation-stage .tc-keyboard-video-control {
  position: absolute;
  right: 16px;
  bottom: 16px;
  z-index: 100;
  min-height: 44px;
  padding: 10px 16px;
  border: 2px solid #fff;
  border-radius: 4px;
  background: #002e3d;
  color: #fff;
  font: inherit;
  opacity: 0;
  pointer-events: none;
}

.tc-presentation-stage .tc-keyboard-video-control:focus {
  opacity: 1;
  pointer-events: auto;
}

/* Mobile already has native controls on playable videos. */

@media (max-width: 767px) {
  .tc-presentation-stage .tc-keyboard-video-control {
    display: none;
  }
}

/* Desktop informational banners; excludes testimonial banners. */

/* Desktop informational banners */
@media (min-width: 1200px) {
  .tc-presentation-stage .banner-overlay {
    width: 40% !important;
    min-width: 40% !important;
    max-width: 40% !important;
    padding-left: 70px;
    padding-right: 40px;
  }

  /* Right banners don't need extra space for navigation. */
  .tc-presentation-stage .banner-overlay.right-banner {
    padding-left: 40px;
    padding-right: 40px;
  }
}

/* Extra-large desktop informational banners */
@media (min-width: 1600px) {
  .tc-presentation-stage .banner-overlay {
    width: 33.333% !important;
    min-width: 33.333% !important;
    max-width: 33.333% !important;
  }
}
