
.nct-wrapper,
.nct-wrapper *{box-sizing:border-box;}

.nct-wrapper{
  --nct-navy:#16386c;
  --nct-blue:#2f86ff;
  --nct-text:#586a83;
  --nct-card-width:368px;
  --nct-item-gap:84px;
  --nct-line-width:8px;
  --nct-node-size:28px;
  --nct-node-ring:4px;
  --nct-card-radius:18px;
  --nct-connector-length:44px;
  --nct-track-offset:96px;
  --nct-pill-height:40px;
  --nct-center-col:160px;
  --nct-shadow:0 16px 38px rgba(8,32,77,.08);
  /* align timeline on the visual middle of the image, slightly lower per user feedback */
  --nct-image-mid:calc((var(--nct-card-width) * 0.259375) + (var(--nct-track-offset) - 96px) + 47px);
  /* long dotted connectors so they visually reach the image/card */
  --nct-connector-to-card:118px;
  --nct-connector-to-pill:44px;
  position:relative;
  max-width:1160px;
  margin:0 auto;
  padding:36px 20px 80px;
  font-family:'Montserrat', sans-serif;
  color:var(--nct-text);
}

.nct-wrapper::before,
.nct-wrapper::after,
.nct-timeline::after{
  content:"";
  position:absolute;
  pointer-events:none;
}

.nct-wrapper::before{
  width:126px;
  height:126px;
  left:8px;
  top:34px;
  opacity:.28;
  background-image:radial-gradient(circle, rgba(112,168,232,.55) 1.15px, transparent 1.15px);
  background-size:16px 16px;
}

.nct-timeline::after{
  width:126px;
  height:126px;
  right:6px;
  top:206px;
  opacity:.24;
  background-image:radial-gradient(circle, rgba(112,168,232,.55) 1.15px, transparent 1.15px);
  background-size:16px 16px;
}

.nct-wrapper::after{
  width:340px;
  height:230px;
  right:0;
  bottom:60px;
  opacity:.18;
  background:repeating-radial-gradient(circle at 0 100%, rgba(124,173,228,.22) 0 2px, transparent 2px 14px);
}

.nct-header{
  position:relative;
  text-align:center;
  max-width:860px;
  margin:0 auto 52px;
  z-index:2;
}

.nct-eyebrow{
  letter-spacing:.42em;
  font-size:14px;
  font-weight:700;
  color:var(--nct-blue);
  margin-bottom:16px;
  display:inline-flex;
  align-items:center;
  gap:14px;
}
.nct-eyebrow::before,
.nct-eyebrow::after{
  content:"";
  width:26px;
  height:2px;
  border-radius:999px;
  background:rgba(86,161,243,.7);
}

.nct-title{
  margin:0;
  font-size:clamp(40px,5.8vw,74px);
  line-height:1.02;
  font-weight:800;
  color:var(--nct-navy);
  text-transform:uppercase;
}

.nct-accent{
  width:190px;
  height:1px;
  background:rgba(22,56,108,.34);
  border-radius:999px;
  margin:18px auto 22px;
  position:relative;
}
.nct-accent::after{display:none;}

.nct-intro{
  font-size:19px;
  line-height:1.68;
  color:rgba(88,106,131,.95);
  max-width:700px;
  margin:0 auto;
}

.nct-timeline{
  position:relative;
  display:flex;
  flex-direction:column;
  gap:var(--nct-item-gap);
  z-index:1;
}

.nct-line{
  position:absolute;
  left:50%;
  top:0;
  bottom:0;
  width:var(--nct-line-width);
  transform:translateX(-50%);
  background:linear-gradient(180deg,
    rgba(255,255,255,0) 0%,
    rgba(255,255,255,.62) 5%,
    rgba(255,255,255,.98) 18%,
    rgba(255,255,255,.98) 82%,
    rgba(255,255,255,.62) 95%,
    rgba(255,255,255,0) 100%
  );
  border-radius:999px;
  box-shadow:0 0 0 1px rgba(232,237,244,.9), 0 6px 14px rgba(24,48,92,.05), 0 14px 26px rgba(24,48,92,.06);
  z-index:0;
  -webkit-mask-image:linear-gradient(to bottom, transparent 0%, black 7%, black 93%, transparent 100%);
  mask-image:linear-gradient(to bottom, transparent 0%, black 7%, black 93%, transparent 100%);
}
.nct-line::before{
  content:"";
  position:absolute;
  left:50%;
  top:8%;
  bottom:8%;
  width:10px;
  transform:translateX(-50%);
  border-radius:999px;
  background:rgba(25,47,89,.08);
  filter:blur(10px);
  opacity:.35;
  z-index:-1;
  pointer-events:none;
}
.nct-line::after{
  content:"";
  position:absolute;
  left:50%;
  top:0;
  bottom:0;
  width:1.5px;
  transform:translateX(-50%);
  background:#83d7ff;
  border-radius:999px;
  box-shadow:0 0 8px rgba(131,215,255,.22);
  -webkit-mask-image:linear-gradient(to bottom, transparent 0%, black 7%, black 93%, transparent 100%);
  mask-image:linear-gradient(to bottom, transparent 0%, black 7%, black 93%, transparent 100%);
  /* allow the blue line to scale vertically based on scroll progress */
  transform-origin:top;
  transform:scaleY(var(--nct-line-progress, 0));
  transition:transform .6s ease;
}

.nct-item{
  position:relative;
  display:grid;
  z-index:1;
  grid-template-columns:minmax(0,1fr) var(--nct-center-col) minmax(0,1fr);
  align-items:start;
  min-height:300px;
}
.nct-item.nct-left .nct-card{
  grid-column:1;
  justify-self:end;
  margin-right:46px;
}
.nct-item.nct-right .nct-card{
  grid-column:3;
  justify-self:start;
  margin-left:46px;
}

/* connector origin variables for scroll animations */
.nct-item.nct-left{--connector-origin:left;}
.nct-item.nct-right{--connector-origin:right;}

.nct-card{
  position:relative;
  width:100%;
  max-width:var(--nct-card-width);
  background:rgba(255,255,255,.98);
  border-radius:var(--nct-card-radius);
  box-shadow:var(--nct-shadow);
  overflow:visible;
  z-index:2;
  transition:transform .32s ease, box-shadow .32s ease;
}
.nct-card:hover{
  transform:translateY(-6px);
  box-shadow:0 22px 46px rgba(8,32,77,.12);
}
.nct-card:hover .nct-image img{transform:scale(1.03);}
.nct-card:hover .nct-icon-badge{animation:nctPulse 1.8s infinite;}

.nct-image{
  border-radius:var(--nct-card-radius) var(--nct-card-radius) 0 0;
  overflow:hidden;
  aspect-ratio:16/8.3;
  background:#dde9f7;
}
.nct-image img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
  transition:transform .45s ease;
}

.nct-content{padding:22px 22px 24px;}
.nct-small-line{
  width:32px;
  height:3px;
  background:var(--nct-blue);
  border-radius:999px;
  display:block;
  margin-bottom:16px;
  opacity:.95;
}
.nct-content h3{
  margin:0 0 12px;
  font-size:clamp(26px,2vw,31px);
  line-height:1.14;
  color:var(--nct-navy);
  font-weight:700;
  letter-spacing:-.01em;
}
.nct-text p{
  margin:0 0 10px;
  font-size:14px;
  line-height:1.7;
  color:var(--nct-text);
}

.nct-icon-badge{
  position:absolute;
  width:74px;
  height:74px;
  border-radius:50%;
  background:var(--nct-navy);
  display:flex;
  align-items:center;
  justify-content:center;
  box-shadow:0 10px 26px rgba(8,32,77,.14);
  border:8px solid #fff;
  overflow:hidden;
  z-index:3;
}
.nct-left .nct-icon-badge{left:-18px;top:-18px;}
.nct-right .nct-icon-badge{right:-18px;top:-18px;}
.nct-icon-badge img{width:50px;height:50px;object-fit:contain;}

.nct-node-wrap{
  position:absolute;
  left:50%;
  top:var(--nct-image-mid);
  width:var(--nct-node-size);
  height:var(--nct-node-size);
  transform:translate(-50%,-50%);
}

/* both dotted lines visible, and card-side dotted line reaches the image/card */
.nct-node-wrap::before,
.nct-node-wrap::after{
  content:"";
  position:absolute;
  top:50%;
  transform:translateY(-50%);
  border-top:3px dotted rgba(90,156,230,.72);
  z-index:0;
}

/* left card items: left dotted line reaches image but sits UNDER the card, right stays visible to the pill */
.nct-item.nct-left .nct-node-wrap::before{
  right:calc(100% + 8px);
  width:var(--nct-connector-to-card);
}
.nct-item.nct-left .nct-node-wrap::after{
  left:calc(100% + 8px);
  width:var(--nct-connector-to-pill);
}

/* right card items: right dotted line reaches image but sits UNDER the card, left stays visible to the pill */
.nct-item.nct-right .nct-node-wrap::before{
  right:calc(100% + 8px);
  width:var(--nct-connector-to-pill);
}
.nct-item.nct-right .nct-node-wrap::after{
  left:calc(100% + 8px);
  width:var(--nct-connector-to-card);
}

/* ensure cards render above the card-side dotted connector */
.nct-card{z-index:2;}

.nct-node{
  position:absolute;
  inset:0;
  z-index:4;
  border-radius:50%;
  background:#fff;
  box-shadow:
    0 0 0 6px rgba(255,255,255,.98),
    0 0 0 10px rgba(47,134,255,.15),
    0 8px 18px rgba(47,134,255,.12);
}
.nct-node::after{
  content:"";
  position:absolute;
  left:50%;
  top:50%;
  width:10px;
  height:10px;
  transform:translate(-50%,-50%);
  border-radius:50%;
  background:var(--nct-blue);
}

.nct-year-pill{
  position:absolute;
  z-index:5;
  top:var(--nct-image-mid);
  display:inline-flex;
  align-items:center;
  min-height:var(--nct-pill-height);
  padding:8px 20px;
  border-radius:14px;
  background:linear-gradient(180deg, rgba(26,53,103,.94), rgba(21,36,75,.98));
  color:#fff;
  font-size:14px;
  line-height:1.2;
  font-weight:800;
  white-space:nowrap;
  box-shadow:0 12px 26px rgba(15,51,97,.14);
  z-index:4;
  transform:translateY(-50%);
}
.nct-item.nct-left .nct-year-pill{
  left:calc(50% + (var(--nct-node-size) / 2) + 8px + var(--nct-connector-to-pill) + 18px);
}
.nct-item.nct-right .nct-year-pill{
  right:calc(50% + (var(--nct-node-size) / 2) + 8px + var(--nct-connector-to-pill) + 18px);
}
.nct-year-pill::before{
  content:"";
  position:absolute;
  top:50%;
  width:12px;
  height:12px;
  transform:translateY(-50%);
  border-radius:50%;
  background:var(--nct-blue);
  box-shadow:0 0 0 2px rgba(255,255,255,.95);
}
.nct-item.nct-left .nct-year-pill::before{left:-6px;}
.nct-item.nct-right .nct-year-pill::before{right:-6px;}

.nct-empty{padding:20px;border-radius:12px;background:#fff7e8;color:#6a4f00;}

@keyframes nctPulse{
  0%{box-shadow:0 0 0 0 rgba(47,134,255,.18),0 10px 26px rgba(8,32,77,.14);}
  70%{box-shadow:0 0 0 14px rgba(47,134,255,0),0 10px 26px rgba(8,32,77,.14);}
  100%{box-shadow:0 0 0 0 rgba(47,134,255,0),0 10px 26px rgba(8,32,77,.14);}
}

@media (max-width: 991px){
  .nct-wrapper{
    width:100%;
    max-width:100%;
    padding:28px 14px 54px;
    overflow:hidden;
  }
  .nct-wrapper::before,
  .nct-wrapper::after,
  .nct-timeline::after{display:none;}

  .nct-header{
    max-width:680px;
    margin-bottom:40px;
    padding:0 6px;
  }
  .nct-intro{font-size:16px;line-height:1.65;}

  .nct-timeline{
    gap:42px;
    width:100%;
    padding-left:0;
  }

  .nct-item,
  .nct-item.nct-left,
  .nct-item.nct-right{
    display:block;
    width:100%;
    min-height:0;
    padding-left:30px;
    position:relative;
  }

  .nct-line{
    left:10px;
    width:4px;
    transform:none;
    box-shadow:0 0 0 1px rgba(232,237,244,.75);
  }
  .nct-line::before{display:none;}
  .nct-line::after{left:50%;width:1.5px;}

  .nct-item .nct-node-wrap,
  .nct-item.nct-left .nct-node-wrap,
  .nct-item.nct-right .nct-node-wrap{
    position:absolute;
    left:1px;
    top:9px;
    width:18px;
    height:18px;
    transform:none;
    margin:0;
    z-index:4;
  }
  .nct-item .nct-node{
    box-shadow:
      0 0 0 4px rgba(255,255,255,.98),
      0 0 0 7px rgba(47,134,255,.13),
      0 5px 12px rgba(47,134,255,.10);
  }
  .nct-item .nct-node::after{width:7px;height:7px;}
  .nct-item .nct-node-wrap::before,
  .nct-item .nct-node-wrap::after{display:none !important;}

  .nct-item .nct-year-pill,
  .nct-item.nct-left .nct-year-pill,
  .nct-item.nct-right .nct-year-pill{
    position:relative;
    top:auto;
    left:auto !important;
    right:auto !important;
    bottom:auto;
    display:block;
    width:fit-content;
    max-width:100%;
    min-height:34px;
    margin:0 0 12px 0 !important;
    padding:7px 13px;
    border-radius:10px;
    font-size:12px;
    line-height:1.25;
    white-space:normal;
    overflow-wrap:anywhere;
    word-break:break-word;
    transform:none !important;
    box-shadow:0 8px 18px rgba(15,51,97,.12);
    vertical-align:top;
    clear:both;
  }
  .nct-item .nct-year-pill::before,
  .nct-item.nct-left .nct-year-pill::before,
  .nct-item.nct-right .nct-year-pill::before{display:none;}

  .nct-item .nct-card,
  .nct-item.nct-left .nct-card,
  .nct-item.nct-right .nct-card{
    display:block;
    width:100%;
    max-width:none;
    min-width:0;
    margin:0 !important;
    border-radius:16px;
    overflow:hidden;
    justify-self:auto;
  }
  .nct-card:hover{
    transform:none;
    box-shadow:var(--nct-shadow);
  }
  .nct-card:hover .nct-image img{transform:none;}
  .nct-card:hover .nct-icon-badge{animation:none;}

  .nct-image{
    width:100%;
    aspect-ratio:16/9;
    border-radius:16px 16px 0 0;
  }

  .nct-icon-badge{
    width:54px;
    height:54px;
    border-width:5px;
    box-shadow:0 7px 18px rgba(8,32,77,.13);
  }
  .nct-icon-badge img{width:36px;height:36px;}
  .nct-left .nct-icon-badge,
  .nct-right .nct-icon-badge{
    left:10px;
    right:auto;
    top:10px;
  }

  .nct-content{padding:18px 18px 20px;}
  .nct-small-line{margin-bottom:12px;}
  .nct-content h3{
    margin-bottom:10px;
    font-size:23px;
    line-height:1.18;
  }
  .nct-text p{
    font-size:14px;
    line-height:1.62;
  }
}

@media (max-width: 640px){
  .nct-wrapper{padding:22px 10px 44px;}
  .nct-header{margin-bottom:30px;padding:0 4px;}
  .nct-title{
    font-size:clamp(30px,10.5vw,43px);
    line-height:1.04;
    overflow-wrap:anywhere;
  }
  .nct-eyebrow{
    margin-bottom:12px;
    font-size:11px;
    letter-spacing:.25em;
    gap:8px;
  }
  .nct-eyebrow::before,
  .nct-eyebrow::after{width:14px;}
  .nct-accent{width:118px;margin:15px auto 18px;}
  .nct-intro{font-size:15px;line-height:1.6;}

  .nct-timeline{gap:34px;}
  .nct-item,
  .nct-item.nct-left,
  .nct-item.nct-right{
    padding-left:28px;
  }
  .nct-line{left:9px;width:3px;}
  .nct-item .nct-node-wrap,
  .nct-item.nct-left .nct-node-wrap,
  .nct-item.nct-right .nct-node-wrap{
    left:1px;
    top:8px;
    width:16px;
    height:16px;
  }
  .nct-item .nct-node{
    box-shadow:
      0 0 0 3px rgba(255,255,255,.98),
      0 0 0 6px rgba(47,134,255,.12),
      0 4px 10px rgba(47,134,255,.09);
  }
  .nct-item .nct-node::after{width:6px;height:6px;}

  .nct-item .nct-year-pill,
  .nct-item.nct-left .nct-year-pill,
  .nct-item.nct-right .nct-year-pill{
    min-height:31px;
    margin-bottom:10px !important;
    padding:6px 11px;
    border-radius:9px;
    font-size:11px;
  }
  .nct-item .nct-card,
  .nct-item.nct-left .nct-card,
  .nct-item.nct-right .nct-card{border-radius:14px;}
  .nct-image{border-radius:14px 14px 0 0;}
  .nct-content{padding:16px 15px 18px;}
  .nct-content h3{font-size:21px;}
  .nct-text p{font-size:13.5px;line-height:1.58;}
  .nct-icon-badge{width:48px;height:48px;border-width:4px;}
  .nct-icon-badge img{width:32px;height:32px;}
  .nct-left .nct-icon-badge,
  .nct-right .nct-icon-badge{left:8px;top:8px;}
}

@media (max-width: 380px){
  .nct-wrapper{padding-left:8px;padding-right:8px;}
  .nct-item,
  .nct-item.nct-left,
  .nct-item.nct-right{
    padding-left:26px;
  }
  .nct-line{left:8px;}
  .nct-item .nct-node-wrap,
  .nct-item.nct-left .nct-node-wrap,
  .nct-item.nct-right .nct-node-wrap{left:0;}
  .nct-content{padding:15px 13px 17px;}
  .nct-content h3{font-size:20px;}
}

@media (max-width: 991px) and (prefers-reduced-motion: no-preference){
  .nct-item .nct-year-pill,
  .nct-item.nct-left .nct-year-pill,
  .nct-item.nct-right .nct-year-pill{
    opacity:0;
    transform:scale(.92) translateY(10px) !important;
  }
  .nct-item.is-visible .nct-year-pill,
  .nct-item.nct-left.is-visible .nct-year-pill,
  .nct-item.nct-right.is-visible .nct-year-pill{
    opacity:1;
    transform:scale(1) translateY(0) !important;
  }
}

/*
 * Scroll-triggered reveal animations
 * -------------------------------
 * These styles animate timeline items into view as the user scrolls.
 * For users who prefer reduced motion, animations are disabled entirely via media query.
 */
@media (prefers-reduced-motion: no-preference) {
  /* hide items initially and slide them into view */
  .nct-item {
    opacity: 0;
    transform: translateY(60px);
    transition: opacity .6s ease, transform .6s ease;
  }
  .nct-item.is-visible {
    opacity: 1;
    transform: translateY(0);
  }

  /* animate the year pill with a slight scale and blur */
  .nct-item .nct-year-pill {
    opacity: 0;
    transform: translateY(-50%) scale(.88);
    filter: blur(4px);
    transition: opacity .6s ease .1s, transform .6s ease .1s, filter .6s ease .1s;
  }
  .nct-item.is-visible .nct-year-pill {
    opacity: 1;
    transform: translateY(-50%) scale(1);
    filter: blur(0);
  }

  /* animate the dotted connectors by scaling their x-axis */
  .nct-item .nct-node-wrap::before,
  .nct-item .nct-node-wrap::after {
    transform: translateY(-50%) scaleX(0);
    transform-origin: var(--connector-origin, left) center;
    transition: transform .6s ease;
  }
  .nct-item.is-visible .nct-node-wrap::before,
  .nct-item.is-visible .nct-node-wrap::after {
    transform: translateY(-50%) scaleX(1);
  }

  /* ensure cards transition along with their item */
  .nct-item .nct-card {
    will-change: transform, opacity;
  }
}

@media (max-width: 991px) and (prefers-reduced-motion: no-preference){
  .nct-item .nct-year-pill{
    opacity:0;
    transform:scale(.92) translateY(10px) !important;
  }
  .nct-item.is-visible .nct-year-pill{
    opacity:1;
    transform:scale(1) translateY(0) !important;
  }
}

/* v1.1.25 - final mobile lock: one rail left, every item aligned right */
@media (max-width: 767px){
  .nct-wrapper{
    padding-left:10px !important;
    padding-right:10px !important;
    overflow-x:hidden !important;
  }

  .nct-timeline{
    position:relative !important;
    display:flex !important;
    flex-direction:column !important;
    width:100% !important;
    max-width:100% !important;
    padding:0 !important;
    margin:0 !important;
    gap:34px !important;
  }

  .nct-line{
    position:absolute !important;
    left:10px !important;
    right:auto !important;
    top:0 !important;
    bottom:0 !important;
    width:3px !important;
    transform:none !important;
    margin:0 !important;
  }

  .nct-item,
  .nct-item.nct-left,
  .nct-item.nct-right{
    position:relative !important;
    display:flex !important;
    flex-direction:column !important;
    align-items:stretch !important;
    justify-content:flex-start !important;
    width:100% !important;
    max-width:100% !important;
    min-width:0 !important;
    min-height:0 !important;
    padding:0 0 0 34px !important;
    margin:0 !important;
    grid-template-columns:none !important;
    transform:none;
  }

  .nct-item .nct-node-wrap,
  .nct-item.nct-left .nct-node-wrap,
  .nct-item.nct-right .nct-node-wrap{
    position:absolute !important;
    left:2px !important;
    right:auto !important;
    top:8px !important;
    width:17px !important;
    height:17px !important;
    margin:0 !important;
    transform:none !important;
    grid-column:auto !important;
    grid-row:auto !important;
  }

  .nct-item .nct-year-pill,
  .nct-item.nct-left .nct-year-pill,
  .nct-item.nct-right .nct-year-pill{
    position:relative !important;
    inset:auto !important;
    left:auto !important;
    right:auto !important;
    top:auto !important;
    bottom:auto !important;
    align-self:flex-start !important;
    display:inline-flex !important;
    width:auto !important;
    max-width:100% !important;
    min-width:0 !important;
    min-height:31px !important;
    margin:0 0 10px 0 !important;
    padding:6px 11px !important;
    transform:none !important;
    white-space:normal !important;
    overflow-wrap:anywhere !important;
    word-break:break-word !important;
  }

  .nct-item .nct-card,
  .nct-item.nct-left .nct-card,
  .nct-item.nct-right .nct-card{
    position:relative !important;
    left:auto !important;
    right:auto !important;
    display:block !important;
    align-self:stretch !important;
    justify-self:auto !important;
    width:100% !important;
    max-width:100% !important;
    min-width:0 !important;
    margin:0 !important;
    transform:none !important;
  }

  .nct-item.nct-left .nct-icon-badge,
  .nct-item.nct-right .nct-icon-badge{
    left:8px !important;
    right:auto !important;
  }
}

@media (max-width: 767px) and (prefers-reduced-motion: no-preference){
  .nct-item,
  .nct-item.is-visible{
    transform:none !important;
  }
  .nct-item .nct-year-pill,
  .nct-item.is-visible .nct-year-pill{
    transform:none !important;
  }
}
