/* Travlink Global home: independent cinematic Hero + one post-Hero story canvas. */
.travlink-home .travlink-hero {
  isolation: isolate;
}

.travlink-home .travlink-hero::after {
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  z-index: 1;
  display: block;
  height: clamp(96px, 12vw, 150px);
  background: linear-gradient(180deg, rgba(245, 248, 251, 0) 0%, rgba(232, 244, 252, .34) 44%, rgba(244, 248, 252, .82) 78%, #f4f8fc 100%);
  content: "";
  pointer-events: none;
}

.travlink-home .travlink-hero__inner,
.travlink-home .travlink-hero__scroll {
  z-index: 2;
}

.travlink-story-canvas {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: transparent;
}

.travlink-story-canvas > section {
  position: relative;
  z-index: 2;
  padding-top: 110px !important;
  padding-bottom: 110px !important;
  border: 0 !important;
  background: transparent !important;
  background-image: none !important;
}

.travlink-story-canvas > section::before,
.travlink-story-canvas > section::after {
  display: none !important;
  content: none !important;
}

.travlink-story-decor {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.story-routes {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.story-route {
  fill: none;
  stroke: rgba(34, 112, 210, .24);
  stroke-width: 1.35;
  stroke-linecap: round;
  stroke-dasharray: 7 12;
  vector-effect: non-scaling-stroke;
  animation: storyRouteFlow 18s linear infinite;
}

.story-route--two {
  stroke: rgba(29, 151, 195, .2);
  animation-duration: 22s;
}

.story-route--three {
  stroke: rgba(183, 139, 55, .16);
  animation-duration: 26s;
}

.story-plane {
  position: absolute;
  top: 235px;
  left: max(4vw, calc(50% - 600px));
  z-index: 1;
  width: 22px;
  height: 22px;
  color: #1f6fd1;
  font-size: 20px;
  line-height: 1;
  opacity: 0;
  offset-path: path("M 0 180 C 300 20, 650 300, 1100 80");
  offset-rotate: auto;
  animation: storyPlaneJourney 26s linear infinite;
}

.story-node {
  position: absolute;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #2878d4;
  box-shadow: 0 0 0 6px rgba(40, 120, 212, .08), 0 0 24px rgba(40, 120, 212, .24);
  animation: storyNodePulse 3.8s ease-in-out infinite;
}

.story-node--one { top: 12%; left: 13%; }
.story-node--two { top: 37%; right: 10%; background: #32a9cc; animation-delay: -1.1s; }
.story-node--three { top: 67%; left: 8%; background: #c79a48; animation-delay: -2.2s; }
.story-node--four { top: 88%; right: 17%; animation-delay: -.6s; }

/* Compact connection constellations reinforce the global network story. */
.story-network {
  position: absolute;
  z-index: 1;
  width: clamp(118px, 10vw, 158px);
  height: auto;
  overflow: visible;
  opacity: .44;
  filter: drop-shadow(0 8px 20px rgba(24, 98, 165, .12));
}

.story-network--one {
  top: 24%;
  right: clamp(-42px, 1vw, 16px);
}

.story-network--two {
  top: 61%;
  left: clamp(-46px, .5vw, 10px);
  transform: rotate(-8deg);
}

.story-network path {
  fill: none;
  stroke: rgba(31, 111, 209, .54);
  stroke-width: 1.2;
  stroke-linecap: round;
  stroke-dasharray: 5 7;
  animation: storyConnectionFlow 20s linear infinite;
}

.story-network circle {
  fill: #fff;
  stroke: #2478c5;
  stroke-width: 2;
  transform-box: fill-box;
  transform-origin: center;
  animation: storyNetworkPulse 4.2s ease-in-out infinite;
}

.story-network circle:nth-of-type(2n) {
  fill: #55b9d6;
  stroke: #fff;
  animation-delay: -1.4s;
}

.story-network circle:nth-of-type(3n) {
  fill: #c79a48;
  stroke: #fff;
  animation-delay: -2.8s;
}

/* Small cargo vessels extend the Travel, Trade, Connect narrative. */
.story-ship {
  --ship-facing: 1;
  position: absolute;
  z-index: 1;
  width: clamp(118px, 10vw, 158px);
  height: auto;
  overflow: visible;
  opacity: .4;
  filter: drop-shadow(0 12px 18px rgba(16, 61, 105, .13));
  transform: scaleX(var(--ship-facing));
  animation: storyShipDrift 34s ease-in-out infinite alternate;
}

.story-ship--one {
  top: 47%;
  right: clamp(-34px, .75vw, 12px);
}

.story-ship--two {
  --ship-facing: -1;
  top: 79%;
  left: clamp(-38px, .5vw, 10px);
  animation-delay: -17s;
}

.story-ship__hull {
  fill: rgba(15, 62, 108, .86);
  stroke: rgba(255, 255, 255, .76);
  stroke-width: 1.4;
  stroke-linejoin: round;
}

.story-ship__deck,
.story-ship__wake {
  fill: none;
  stroke-linecap: round;
}

.story-ship__deck {
  stroke: rgba(20, 92, 157, .72);
  stroke-width: 2;
}

.story-ship__wake {
  stroke: rgba(50, 169, 204, .42);
  stroke-width: 1.5;
  stroke-dasharray: 8 7;
  animation: storyShipWake 12s linear infinite;
}

.story-ship__cargo {
  fill: #2478c5;
  stroke: rgba(255, 255, 255, .78);
  stroke-width: 1;
}

.story-ship__cargo--cyan { fill: #55b9d6; }
.story-ship__cargo--gold { fill: #c79a48; }
.story-ship__bridge {
  fill: rgba(255, 255, 255, .9);
  stroke: rgba(20, 92, 157, .64);
  stroke-width: 1.2;
}

/* Services retain their dimensions and content; only their finish and reveal change. */
.travlink-story-canvas .travlink-service-card {
  border-color: rgba(24, 84, 142, .15);
  background: rgba(255, 255, 255, .88);
  box-shadow: 0 18px 48px rgba(15, 42, 72, .09);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.travlink-story-canvas .travlink-service-card__cta span,
.travlink-story-canvas .travlink-about-showcase__button span,
.travlink-story-canvas .contact-3-area button span {
  transition: transform .25s ease;
}

.travlink-story-canvas .travlink-service-card:hover,
.travlink-story-canvas .travlink-service-card:focus-visible {
  border-color: rgba(27, 108, 190, .48);
  box-shadow: 0 26px 64px rgba(12, 54, 96, .17);
}

.travlink-story-canvas .travlink-service-card:hover .travlink-service-card__cta span,
.travlink-story-canvas .travlink-service-card:focus-visible .travlink-service-card__cta span,
.travlink-story-canvas .travlink-about-showcase__button:hover span,
.travlink-story-canvas .contact-3-area button:hover span {
  transform: translateX(4px);
}

@media (hover: hover) and (min-width: 768px) {
  .travlink-story-canvas .travlink-service-card::after,
  .travlink-story-canvas .travlink-service-card__image {
    opacity: 0 !important;
  }

  .travlink-story-canvas .travlink-service-card__image {
    transform: scale(1) !important;
    transition: opacity .5s ease, transform .8s cubic-bezier(.22, 1, .36, 1) !important;
  }

  .travlink-story-canvas .travlink-service-card:not(:hover):not(:focus-visible):not(.is-active) .travlink-service-card__title,
  .travlink-story-canvas .travlink-service-card:not(:hover):not(:focus-visible):not(.is-active) .travlink-service-card__cta {
    color: #101827;
  }

  .travlink-story-canvas .travlink-service-card:not(:hover):not(:focus-visible):not(.is-active) .travlink-service-card__description {
    color: #596675;
  }

  .travlink-story-canvas .travlink-service-card:not(:hover):not(:focus-visible):not(.is-active) .travlink-service-card__cta {
    border-color: rgba(16, 24, 39, .32);
  }

  .travlink-story-canvas .travlink-service-card:is(:hover, :focus-visible, .is-active)::after,
  .travlink-story-canvas .travlink-service-card:is(:hover, :focus-visible, .is-active) .travlink-service-card__image {
    opacity: 1 !important;
  }

  .travlink-story-canvas .travlink-service-card:is(:hover, :focus-visible, .is-active) .travlink-service-card__image {
    transform: scale(1.045) !important;
  }
}

/* Process uses selective translucent surfaces and an animated progress line. */
.travlink-story-canvas .travlink-process__header .ca-section-subtitle,
.travlink-story-canvas .travlink-process__header .ca-section-title em {
  color: #1b6fbe;
}

.travlink-story-canvas .travlink-process__header .ca-section-title,
.travlink-story-canvas .travlink-process__step h3 {
  color: #101827;
  text-shadow: none;
}

.travlink-story-canvas .travlink-process__grid::before {
  background: linear-gradient(90deg, rgba(31, 111, 209, .18), rgba(50, 169, 204, .58), rgba(31, 111, 209, .18));
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 1.25s cubic-bezier(.22, 1, .36, 1) .2s;
}

.travlink-story-canvas .travlink-process__grid.is-visible::before {
  transform: scaleX(1);
}

.travlink-story-canvas .travlink-process__step {
  padding: 28px 18px 20px;
  border: 1px solid rgba(24, 84, 142, .12);
  border-radius: 24px;
  background: rgba(255, 255, 255, .68);
  box-shadow: 0 18px 48px rgba(15, 42, 72, .07);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.travlink-story-canvas .travlink-process__visual {
  width: min(100%, 176px);
  aspect-ratio: 1;
  margin: 0 auto 22px;
  overflow: hidden;
  border: 1px solid rgba(36, 118, 197, .13);
  border-radius: 22px;
  background: rgba(247, 251, 255, .9);
  box-shadow: 0 14px 34px rgba(22, 78, 130, .1);
}

.travlink-story-canvas .travlink-process__visual img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .65s cubic-bezier(.22, 1, .36, 1), filter .45s ease;
}

.travlink-story-canvas .travlink-process__step:hover .travlink-process__visual img {
  transform: scale(1.035);
  filter: saturate(1.06);
}

.travlink-story-canvas .travlink-process__number {
  color: #fff;
  border-color: rgba(255, 255, 255, .78);
  background: linear-gradient(145deg, #103d70, #2386cb);
  box-shadow: 0 10px 28px rgba(26, 92, 153, .24);
}

.travlink-story-canvas .travlink-process__step.is-visible .travlink-process__number {
  animation: storyNumberSettle .7s cubic-bezier(.22, 1, .36, 1) var(--story-delay) both;
}

/* About remains editorial, with crisp artwork and a quiet sapphire aura. */
.travlink-story-canvas .travlink-about-showcase__stories {
  position: relative;
}

.travlink-story-canvas .travlink-about-showcase__stories::before {
  position: absolute;
  inset: 8% 5% 18%;
  z-index: -1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(43, 124, 202, .14), transparent 68%);
  content: "";
  filter: blur(18px);
}

.story-image {
  opacity: 1;
  transform: none;
  filter: saturate(1);
}

.story-motion-ready .story-image {
  opacity: 0;
  transform: scale(1.035) translateY(18px);
  filter: saturate(.88);
  transition: opacity .9s ease var(--story-delay), transform 1.1s cubic-bezier(.22, 1, .36, 1) var(--story-delay), filter 1s ease var(--story-delay);
}

.story-motion-ready .story-reveal.is-visible .story-image,
.story-motion-ready .story-image.is-visible {
  opacity: 1;
  transform: scale(1) translateY(0);
  filter: saturate(1);
}



/* Shared progressive reveal: content stays visible when scripting is unavailable. */
.story-motion-ready .story-reveal {
  opacity: 0;
  transform: translate3d(0, 22px, 0);
  transition: opacity .75s ease var(--story-delay), transform .75s cubic-bezier(.22, 1, .36, 1) var(--story-delay);
}

.story-motion-ready .story-reveal.is-visible {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

@keyframes storyMapDrift {
  from { transform: translate3d(-8px, 0, 0) scale(1); }
  to { transform: translate3d(8px, -10px, 0) scale(1.015); }
}

@keyframes storyRouteFlow {
  to { stroke-dashoffset: -180; }
}

@keyframes storyConnectionFlow {
  to { stroke-dashoffset: -96; }
}

@keyframes storyNetworkPulse {
  0%, 100% { transform: scale(1); opacity: .72; }
  50% { transform: scale(1.28); opacity: 1; }
}

@keyframes storyShipDrift {
  from { transform: translate3d(-8px, 1px, 0) scaleX(var(--ship-facing)); }
  to { transform: translate3d(12px, -2px, 0) scaleX(var(--ship-facing)); }
}

@keyframes storyShipWake {
  to { stroke-dashoffset: -90; }
}

@keyframes storyPlaneJourney {
  0% { offset-distance: 0%; opacity: 0; }
  8%, 92% { opacity: .68; }
  100% { offset-distance: 100%; opacity: 0; }
}

@keyframes storyNodePulse {
  0%, 100% { transform: scale(1); opacity: .62; }
  50% { transform: scale(1.35); opacity: 1; }
}

@keyframes storyNumberSettle {
  0% { transform: scale(.84); box-shadow: 0 0 0 0 rgba(35, 134, 203, .24); }
  60% { transform: scale(1.06); box-shadow: 0 0 0 12px rgba(35, 134, 203, 0); }
  100% { transform: scale(1); }
}

@media (max-width: 1199.98px) {
  .story-plane { display: none; }
}

@media (max-width: 991.98px) {
  .travlink-story-canvas > section {
    padding-top: 84px !important;
    padding-bottom: 84px !important;
  }

  .travlink-story-canvas::before {
    background-position: 62% 42%;
    background-size: 980px auto;
  }

  .travlink-story-canvas .travlink-process__grid {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    width: 100%;
    max-width: 100%;
    margin-inline: auto;
    overflow: visible;
  }

  .travlink-story-canvas .travlink-process__grid {
    gap: 32px !important;
  }

  .travlink-story-canvas .travlink-about-showcase__stories {
    gap: 42px !important;
  }

  .travlink-story-canvas .travlink-process__step {
    width: 100%;
    max-width: min(100%, 440px);
    min-width: 0;
    margin-inline: auto;
    box-sizing: border-box;
  }
}

@media (max-width: 767.98px) {
  .travlink-home .travlink-hero::after {
    height: 88px;
  }

  .travlink-story-canvas > section {
    padding-top: 64px !important;
    padding-bottom: 64px !important;
  }

  .travlink-story-canvas::before {
    background-position: center 46%;
    background-size: 760px auto;
    opacity: .055;
  }

  .story-route--two,
  .story-route--three,
  .story-node--four,
  .story-network--two,
  .story-ship--two {
    display: none;
  }

  .story-route {
    stroke-width: 1;
    opacity: .65;
  }

  .story-node {
    width: 6px;
    height: 6px;
  }

  .story-network--one {
    top: 29%;
    right: -46px;
    width: 108px;
    opacity: .34;
  }

  .story-ship--one {
    top: 53%;
    right: -42px;
    width: 102px;
    opacity: .3;
    animation: none;
  }

  .travlink-story-canvas .travlink-process__grid {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    width: 100%;
    max-width: 100%;
    margin-inline: auto;
    overflow: visible;
  }

  .travlink-story-canvas .travlink-process__grid {
    gap: 28px !important;
  }

  .travlink-story-canvas .travlink-process__step {
    width: 100%;
    max-width: min(100%, 390px);
    min-width: 0;
    margin-inline: auto;
    padding: 25px 18px 18px;
    box-sizing: border-box;
  }

  .travlink-story-canvas .travlink-process__visual {
    width: min(58vw, 176px);
    max-width: 100%;
  }

  .travlink-story-canvas .travlink-about-showcase__stories {
    gap: 38px !important;
  }

  .travlink-story-canvas .travlink-about-showcase__story {
    width: 100%;
    max-width: min(100%, 390px);
    min-width: 0;
    margin-inline: auto;
    box-sizing: border-box;
  }

  .travlink-story-canvas .travlink-about-showcase__visual {
    width: min(76vw, 292px);
    max-width: 100%;
  }

  .travlink-story-canvas .travlink-service-card::after,
  .travlink-story-canvas .travlink-service-card__image {
    opacity: 0 !important;
  }

  .travlink-story-canvas .travlink-service-card.is-active::after,
  .travlink-story-canvas .travlink-service-card.is-active .travlink-service-card__image {
    opacity: 1 !important;
  }

  .travlink-story-canvas .travlink-service-card__image {
    transform: scale(1.035) !important;
  }

  .travlink-story-canvas .travlink-service-card.is-active .travlink-service-card__image {
    transform: scale(1) !important;
  }

  .travlink-story-canvas .travlink-service-card:not(.is-active) .travlink-service-card__title,
  .travlink-story-canvas .travlink-service-card:not(.is-active) .travlink-service-card__cta {
    color: #101827;
  }

  .travlink-story-canvas .travlink-service-card:not(.is-active) .travlink-service-card__description {
    color: #596675;
  }

  .travlink-story-canvas .travlink-service-card:not(.is-active) .travlink-service-card__cta {
    border-color: rgba(16, 24, 39, .32);
  }

  .travlink-story-canvas .travlink-service-card.is-active .travlink-service-card__title,
  .travlink-story-canvas .travlink-service-card.is-active .travlink-service-card__cta {
    color: #fff;
  }

  .travlink-story-canvas .travlink-service-card.is-active .travlink-service-card__description {
    color: rgba(255, 255, 255, .88);
  }
}

/* Mobile/tablet Process: one swipeable horizontal row. About remains stacked. */
@media (max-width: 991.98px) {
  .travlink-story-canvas .travlink-about-showcase__stories {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    width: 100%;
    max-width: 100%;
    margin-inline: auto;
    padding: 0;
    overflow: visible;
    gap: 42px !important;
  }

  .travlink-story-canvas .travlink-about-showcase__story {
    width: 100%;
    max-width: min(100%, 440px);
    min-width: 0;
    margin-inline: auto;
    box-sizing: border-box;
  }

  .travlink-story-canvas .travlink-process__grid {
    display: flex !important;
    flex-wrap: nowrap !important;
    align-items: stretch;
    justify-content: flex-start;
    gap: 18px !important;
    width: 100%;
    max-width: 100%;
    margin-inline: 0;
    padding: 8px 8px 28px;
    overflow-x: auto;
    overflow-y: hidden;
    overscroll-behavior-inline: contain;
    scroll-behavior: smooth;
    scroll-padding-inline: 8px;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

  .travlink-story-canvas .travlink-process__grid::-webkit-scrollbar {
    display: none;
  }

  .travlink-story-canvas .travlink-process__grid::before {
    display: none !important;
  }

  .travlink-story-canvas .travlink-process__step {
    flex: 0 0 min(84vw, 390px);
    width: min(84vw, 390px);
    max-width: none;
    min-width: 0;
    margin: 0;
    box-sizing: border-box;
    scroll-snap-align: center;
    scroll-snap-stop: always;
  }

}

/* Current presentation choices: no Hero fade and service images always visible. */
.travlink-home .travlink-hero::after {
  display: none !important;
  content: none !important;
}

.travlink-story-canvas .travlink-service-card::after,
.travlink-story-canvas .travlink-service-card__image {
  opacity: 1 !important;
}

.travlink-story-canvas .travlink-service-card__image,
.travlink-story-canvas .travlink-service-card:is(:hover, :focus-visible, .is-active) .travlink-service-card__image {
  transform: none !important;
}

.travlink-story-canvas .travlink-service-card .travlink-service-card__title,
.travlink-story-canvas .travlink-service-card .travlink-service-card__cta {
  color: #fff !important;
}

.travlink-story-canvas .travlink-service-card .travlink-service-card__description {
  color: rgba(255, 255, 255, .9) !important;
}

.travlink-story-canvas .travlink-service-card .travlink-service-card__cta {
  border-color: rgba(255, 255, 255, .65) !important;
}

@media (prefers-reduced-motion: reduce) {
  .travlink-home *,
  .travlink-home *::before,
  .travlink-home *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }

  .story-reveal,
  .story-image {
    opacity: 1 !important;
    transform: none !important;
    filter: saturate(1) !important;
  }
}
