*, *::before, *::after {
  box-sizing: border-box;
}

/* --- Global Grid --- */
.section-header_a-card {
  font-size: 2rem;
  font-weight: 600;
  color: #082342;
  margin-bottom: 1rem;
  align-content: center;
}

.a-card-grid {
  display: flex;
  overflow-x: auto;
  scroll-behavior: smooth;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  padding: 2rem;
  justify-content: center;
}

/* --- Base Card --- */
.a-card {
  position: relative;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  cursor: pointer; /* pointer cursor for hover effect */
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 70vh;   /* Ensures the card is tall enough to show the image */
  justify-content: center;
  min-width: 320px;
}

@media (max-width: 768px) {
  .a-card {
    height: 60vh; /* Allow height to adjust on smaller screens */
    max-width: 80vw;
  }
}

.a-card-arrows {
  position: sticky;
  justify-content: right;
  right: 1rem;
  display: flex;
  gap: 1rem;
  padding-bottom: 1.5rem;
  padding-top: 0;
  z-index: 1;
  background: white;
}

.a-card-arrow {
  background: #fff;
  border: none;
  font-size: 2rem;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  border-radius: 50%;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
}
/* Hover lift */
.a-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
}

.a-card__img {
  position: absolute;
  inset: 0; /* top:0; right:0; bottom:0; left:0; */
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: 0;
  transform-origin: center;
  transition: transform .35s ease, opacity .35s ease;
  opacity: 1;
  display: block;
}

/* --- Small Overlay Label(text on card) --- */
.a-card__overlay {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  position: absolute;
  padding: 0.2rem 0.2rem;
  /*background: rgba(0, 0, 0, 0.5); */
  color: #082342; /* text color */
  font-size: 1.5rem;
  border-radius: 8px;
  z-index: 1;
}
/*--- Expanded Overlay ---*/
.a-card-expanded {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000; /* Ensure it overlays above other content */
  transition: opacity 0.4s ease, visibility 0.4s ease;
}

.a-card-expanded-content {
  background: rgba(255, 255, 255, 0.9);
  padding: 2rem;
  border-radius: 16px;
  width: 80%;
  max-width: 1600px;
  height: auto;
  max-height: 90vh;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
  position: relative;
  display: flex;
  flex-direction: column;
  overflow-y: auto; /* Allow scrolling if content is too tall */
  gap: 1.5rem;
  transition: transform 0.5s ease-out, opacity 0.5s ease-out;
}

@media (max-width: 885px) {
  .a-card-expanded-content {
    width: 95%;
    max-width: 100%;
    padding: 1rem;
  }
}

.a-card-expanded-content img {
  width: 100%;
  height: auto;
  border-radius: 8px;
}

/*--- Close button for expanded view ---*/
.a-card-expanded-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  color: #000000;
  font-size: 1.5rem;
  cursor: pointer;
  z-index: 10;
}

/* --- + Button --- */
.a-card__plus {
  position: absolute;
  bottom: 1rem;
  right: 1rem;
  width: 40px;
  height: 40px;
  background: rgba(0,0,0,0.5);
  color: #fff;
  font-size: 1.5rem;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s ease;
}
.a-card__plus:hover {
  background: rgba(0,0,0,0.8);
}
/* Overlay positions */
.a-card__overlay--top-left { top: 1rem; left: 1rem; text-align: left;}
.a-card__overlay--top-right { top: 1rem; right: 1rem; text-align: right;}
.a-card__overlay--bottom-left { bottom: 1rem; left: 1rem; text-align: left;}
.a-card__overlay--bottom-right { bottom: 1rem; right: 1rem; text-align: right;}

/* --- Content inside (hidden until expand) --- */
.a-card__content {
  position: relative;
  padding: 1.5rem;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(4px);
  opacity: 0;
  transition: opacity 0.3s ease;
  max-height: 0;
  overflow: hidden;
}

/* Expanded card state */
.a-card.expanded {
  max-height: 600px; /* expanded height */
}
.a-card.expanded .a-card__content {
  opacity: 1;
  max-height: 1000px;
}

/* --- Title & Text --- */
.a-card__title {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  margin-top: 0.2rem;
  color: #082342;
}
.a-card__text {
  font-size: 1.2rem;
  line-height: 1.5;
  color: #082342;
}

/* Title */
.a-expanded-title {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: #082342;
}

.a-expanded-body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.info-box {
  display: flex;
  gap: 2rem;
  flex-direction: row;
  background: #F0F4F8;
  border-radius: 1.5rem;
  padding: 2rem;
  margin: 2rem 0;
  box-shadow: 0 2px 16px 0 rgba(0,0,0,0.04);
  flex-wrap: wrap;
}

.info-box__text,
.info-box__bullets,
.info-box__image,
.info-box__video {
  /* No flex or order here! */
  min-width: 0;
}
.info-box__left {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  flex: 1 1 50%;
  gap: 2rem;
}

.info-box__button {
  display: inline-block;
  margin-top: 1.5rem;
  padding: 0.9rem 2.2rem;
  background: #e8d228;
  color: #fff;
  font-size: 1.1rem;
  font-weight: 600;
  border: none;
  border-radius: 0.7rem;
  text-decoration: none;
  text-align: center;
  transition: background 0.2s;
  cursor: pointer;
}
.info-box__button:hover {
  background: #c7b11a;
}

.info-box__bullets {
  list-style: none;
  padding: 0;
  margin: 0;
}
.info-box__bullets li {
  position: relative;
  font-size: 1.1rem;
  color: #7a7b7d;
  margin-bottom: 1.2rem;
  padding-left: 2.2rem;
}
.info-box__bullets li::before {
  content: '';
  display: inline-block;
  width: 1.2rem;
  height: 1.2rem;
  background: #12294b url('data:image/svg+xml;utf8,<svg fill="white" viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg"><path d="M6.003 11.803a1 1 0 0 1-1.414 0l-3.1-3.1a1 1 0 1 1 1.414-1.415l2.393 2.393 5.293-5.293a1 1 0 0 1 1.415 1.414l-6 6z"/></svg>') center/70% no-repeat;
  border-radius: 50%;
  position: absolute;
  left: 0;
  top: 0.3rem;
}
.info-box__bullets h3 {
  font-size: 1.1rem;
  font-weight: bold;
  color: #082342;
  margin-bottom: 1rem;
  letter-spacing: 0.02em;
}

.info-box__image img {
  max-width: 100%;
  border-radius: 1rem;
  box-shadow: 0 2px 8px 0 rgba(0,0,0,0.06);
}


/* Responsive: stack on small screens */
@media (max-width: 900px) {

  .a-expanded-body {
    flex-direction: column;
  }
  .a-expanded-text, 
  .a-expanded-image {
    flex: 1 1 100%;
  }
    .info-box {
    flex-direction: column;
    gap: 1rem;
  }
  .info-box__left,
  .info-box__image {
    width: 100%;
    min-width: 0;
  }
}




/* Hero Section */
/* Fix video scaling in how-it-works section */
.video-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  transition: transform 0.3s cubic-bezier(.4,2,.6,1);
}

.how-video {
  width: 100%;
  height: auto;
  max-width: 600px;
  aspect-ratio: 16/9;
  border-radius: 1rem;
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
  display: block;
}

/* Hero Section skelet */
.hero {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 110vh;
  padding: 0rem;
  background-color: transparent;
  text-align: center;
}
/* Hero background image */
.hero-overlay {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent; /* optional, transparent by default */
  z-index: 1;
}
/* Standard container style (like the container of how we do it on the home page) */
.standard-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 4rem 2rem;
  max-width: 100vw;
  margin: 0 auto;
  flex-wrap: wrap;
  flex-direction: column;
  position: relative;
}

.standard-container .full-width {
  width: 100%;
  text-align: center;
  margin-bottom: 2rem;
}

.standard-container .left {
  flex: 1 1 auto;
  border-radius: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  max-width: 100%;
}

.standard-container .right {
  flex: 1 1 40%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1.5rem;
}

/* Headline */
.hero-title {
  font-size: 3.25rem;
  font-weight: 600;
  margin-bottom: 1rem;
  position: relative;
}

/* Subtitle */
.hero-subtitle {
  font-size: 1.5rem;
  font-weight: 300;
  margin-bottom: 2rem;
  position: relative;
}

/* end of hero section skelet*/

/* Standard container style (like the container of how we do it on the home page) */
.standard-container {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 4rem 2rem;
  flex-wrap: wrap;
  position: relative;
}

.standard-container .full-width {
  width: 100%;
  text-align: center;
  margin-bottom: 2rem;
}

.standard-container .left {
  flex: 1 1 40%;
  border-radius: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  max-width: 100%;
}

.standard-container .right {
  flex: 1 1 60%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1.5rem;
}

.standard-container .title {
  font-size: clamp(1.5rem, 3.5vw, 5rem);
  font-weight: 600;
}
.standard-container .subtitle {
  font-size: clamp(1.4rem, 3vw, 4rem);
  font-weight: 500;
  margin-bottom: 1rem;
}

.standard-container button,
.standard-container a {
  padding: 0.8rem 1.6rem;
  font-size: 1rem;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  transition: 0.35s ease;
  text-decoration: none; /* removes underline for links */
}

@media (max-width: 900px) {
  .standard-container {
    flex-direction: column;
    text-align: center;
  }
  .standard-container .left,
  .standard-container .right {
    flex: 1 1 100%;
    max-width: 100%;
  }
  .standard-container .right {
    margin-top: 2rem;
  }
  .standard-container button,
  .standard-container a {
    display: block;
    margin: 2rem auto 0 auto;
    max-width: 200px;
    justify-content: center;
    align-items: center;
    text-align: center;
  }
}

/* scroll-highlight*/
.scroll-highlight-list {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  margin: 1rem 1rem;
}

.highlight-box {
  width: 80vw;
  max-width: 100vw;
  padding: 0.3rem;
  text-align: center;
  color: #808996;
  border-radius: 1rem;
  font-size: clamp(1.2rem, 3.1vw, 3.1rem);
  transition: 
    background 0.4s cubic-bezier(.4,0,.2,1),
    color 0.4s cubic-bezier(.4,0,.2,1),
    transform 0.4s cubic-bezier(.4,0,.2,1);
  opacity: 0.7;
  transform: scale(1);
}

.highlight-box.active {
  color: #0E2E5A;
  opacity: 1;
  transform: scale(1.1);
  text-shadow: 0 8px 32px rgba(14, 46, 90, 0.503);
  z-index: 1;
}

.highlight-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  justify-items: center;
  gap: 1rem;
}
.highlight-row .highlight-box {
  width: auto;
  white-space: nowrap;
  padding: 0.3rem 1rem;
}

@media (max-width: 885px) {
  .highlight-row {
    display: block;
    text-align: center;
  }

  .highlight-row .highlight-box {
    width: 100%;
    max-width: none;
  }
}


/* Container utility */
/* CTA Section */
.cta-section {
  background: #f0f4f8;
  padding: 0 0;
}

.cta-box {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 2rem;
  background: #fff;
  border-radius: 1rem;
  box-shadow: 0 8px 20px rgba(0,0,0,0.08);
  padding: 2rem;
}

.cta-image img {
  width: 100%;
  border-radius: 1rem;
  box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}

.cta-content {
  flex: 1;
  min-width: 250px;
}

.cta-content h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: #003b7c;
}

.cta-content p {
  font-size: 1rem;
  margin-bottom: 1.5rem;
  color: #333;
}

@media (max-width: 700px) {
  .cta-box {
    flex-direction: column;
    text-align: center;
    padding: 1rem;
  }
  .cta-image img {
    max-width: 90vw;
  }}

  /* hero for the subpages */

  .tech-header {
  display: flex;
  justify-content: space-between;  /* push items to the edges */
  align-items: center;             /* vertically center them */
  padding: 2em;                     /* optional spacing */
}

.tech-header h1 {
  margin: 0;                        /* reset default margins */
  font-size: clamp(2rem, 3.5vw, 5rem); /* responsive font size */
}

.tech-header .tagline {
  margin: 0;
  font-size: clamp(1rem, 1.75vw, 2rem);               /* adjust size as needed */
  color: #5b6987;                      /* or whatever color you like */
}

@media (max-width: 768px) {
  .tech-header {
    flex-direction: column;
    align-items: flex-start;  /* left-align content */
    text-align: left;
    gap: 0.5em;
  }
}

/* blue bar for the subpages */

.blue-bar {
  background-color: #002e5a;
  color: white;
  padding: 2rem 1rem;       /* smaller vertical padding */
  text-align: center;
}

.blue-bar h2 {
  font-size: 1.3rem;
  margin-bottom: 1rem;
  color: #fff;
}

/* cards to put in blue bar */

.highlight-cards {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 3rem;               /* more horizontal spacing */
}

.highlight-item {
  flex: 1 1 200px;
  max-width: 24vw;
  padding: 0.5rem;
}

.highlight-icon {
  font-size: 2rem;          /* slightly smaller icon */
  margin-bottom: 0.5rem;
}
.highlight-icon svg {
  width: 40px;
  height: 40px;
  stroke: #d0b81c; /* brand gold */
}


.highlight-title {
  font-size: 1.4rem;       /* slightly smaller number/text */
  font-weight: bold;
  margin-bottom: 0.25rem;
}

.highlight-label {
  font-size: 0.9rem;
  opacity: 0.9;
}

@media (max-width: 885px) {
  .highlight-cards {
    flex-direction: column;
    align-items: center; /* center the stacked cards */
  }

  .highlight-item {
    max-width: 60vw;  
  }
}

/* end of code for blue bar */

/* Generic video container for embedding videos responsively */
.video-container {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  padding: 2rem 0;
}

.video-container video {
  width: 100%;
  max-width: 1000px;
  aspect-ratio: 16/9;
  border-radius: 1rem;
  box-shadow: 0 8px 32px 0 rgba(0,0,0,0.18);
  background: #000;
  display: block;
  object-fit: cover;
}

/* FAQ Section */
.faq-section {
  background: #F0F4F8;
  padding: 0rem 1rem 2rem 1rem;
  max-width: 100%;
  margin: 0 auto;
}
.faq-title {
  text-align: center;
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 2rem;
  color: #082342;
}
.faq-grid {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
  justify-content: center;
}
.faq-col {
  flex: 1 1 100px;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  min-width: 320px;
}
.faq-item {
  background: #f5f7fa;
  border-radius: 1rem;
  box-shadow: 0 2px 12px rgba(0,0,0,0.04);
  padding: 1.5rem;
  transition: box-shadow 0.2s;
}
.faq-item.active, .faq-item:hover {
  box-shadow: 0 8px 32px rgba(14,46,90,0.08);
}
.faq-question {
  background: none;
  border: none;
  font-size: 1.2rem;
  font-weight: 600;
  color: #0E2E5A;
  cursor: pointer;
  width: 100%;
  text-align: left;
  outline: none;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.faq-question::after {
  content: "▼";
  font-size: 1rem;
  color: #d0b81c;
  margin-left: 0.5rem;
  transition: transform 0.2s;
}
.faq-item.active .faq-question::after {
  transform: rotate(-180deg);
}
.faq-answer {
  font-size: 1rem;
  color: #333;
  margin-top: 0.5rem;
  display: block;
}
.faq-item:not(.active) .faq-answer {
  display: none;
}
@media (max-width: 900px) {
  .faq-grid {
    flex-direction: column;
  }
  .faq-col {
    min-width: 0;
  }
}
/* bluebar with countdown */

.stats-section {
  background-color: #002e5a;
  color: #fff;
  width: 100%;
}

/* center the content and lay out three items evenly */
.stats-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
}

/* each stat box */
.stat-item {
  flex: 1;
  text-align: center;
  padding: 2rem 1rem;
  box-sizing: border-box;
  /* add a divider on the right except the last one */
}
.stat-item:not(:last-child) {
  border-right: 1px solid rgba(255, 255, 255, 0.2);
}

/* your icon on top */

/* big, bold percentage */
.stat-item h2 {
  font-size: 3rem;
  margin: 0.2rem 0;
  color: #d0b81c;   /* match your yellow accent */
}

/* label beneath */
.stat-item p {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 500;
}

/* skelet for mosaic like about us  section on homepage */

.mosaic{
  display:grid;
  grid-template-columns:repeat(12,1fr);
  grid-auto-rows:minmax(80px,8vw);
  gap:16px;
  width:100%;
  padding:4rem 2rem;
  background:transparent;
  box-sizing:border-box;
}

.mosaic__tile {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  display: block; /* so <a> acts like a block element */
}

.mosaic__tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Text tile base */
.mosaic__tile--text{
  display:flex;
  flex-direction:column;
  justify-content:center;
  gap:1rem;
  background:#fff;
  padding:2rem;
  border-radius:20px;
}

.mosaic__tile--text h2{margin:0;color:#002147;}
.mosaic__tile--text h3{margin:0 ;color:#002147; font-size: clamp(1rem, 2.5vw, 1.5rem);}
.mosaic__tile--text p{margin:0;color:#5b6987;}

.tile-stats {
  list-style: none;
  padding: 0;
  gap: 0rem;
}
.tile-stats li {
  font-size: 1rem;
  margin: 0rem 0;
  color:#5b6987;
}
.tile-stats strong {
  font-size: 1.15rem;
}

.mosaic__tile--quote {
  background: #fff;
  color: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  text-align: center;
  border: 1px solid #eee;
}

.mosaic__tile--quote blockquote {
  max-width: 26rem;
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.5;
  font-style: italic;
}

.mosaic__tile--quote footer {
  margin-top: 0.75rem;
  font-size: 0.9rem;
  font-style: normal;
  opacity: 0.7;
}

.mosaic__tile--quote cite {
  font-style: normal;
}


.mosaic__tile--quote a {
  color: #002e5a; /* HydroVolta blue */
  text-decoration: underline;
}

.mosaic__tile--quote a:visited {
  color: #002e5a; /* HydroVolta blue */
  text-decoration: underline;
}
.mosaic__tile--quote a:hover {
  color: #005f8d; /* darker hover */
}


.about-cta{
  display:inline-block;padding:.7rem 1.1rem;border:1px solid #e6e8ec;border-radius:999px;
  text-decoration:none;color:#002147;transition:transform .25s, background .25s;
}
.about-cta:hover{transform:translateX(2px);background:#f0f2f5;}

/* Generic responsiveness */
@media (max-width:1000px){
  .mosaic{grid-template-columns:repeat(6,1fr);}
  .mosaic__tile--text{grid-column:1 / -1; grid-row:auto;}
}
@media (max-width:640px){
  .mosaic{grid-template-columns:repeat(2,1fr); grid-auto-rows:minmax(120px,28vw);}
  .mosaic__tile{grid-column:span 1; grid-row:auto;}
}
/* ipad fix */

@media (max-width: 1000px){
.hide-ipad { display: none !important; }
}

/* MOBILE MASONRY – one clean column, no weird stretching */
@media (max-width: 885px){
  .mosaic{
    grid-template-columns: 1fr;
    grid-auto-rows: unset;     /* stop fixed row math */
    gap: 12px;
    padding: 2rem 1rem;
  }
  .mosaic__tile{               /* consistent rounded cards */
    border-radius: 16px;
  }
  .mosaic__tile img{
    width: 100%; height: 100%;
    object-fit: cover;         /* crop nicely */
  }
  .mosaic__tile--text{
    padding: 1.25rem 1rem;
    gap: .75rem;
  }
  .hide-mobile { display: none !important; }
}


/* ===== Scrollytelling Skeleton (reusable) ===== */
.pin {
  position: sticky;
  top: 5%;
  height: 100svh;
  overflow: hidden;
  background: #f2f3f4;
}

.meta {
  position: absolute;
  top: clamp(120px, 10vw, 1000px);
  left: clamp(0px, 8vw, 1800px);
  z-index: 3;
  color: #fff;
}

.meta h3 {
  margin: 0 0 .3rem 0;
  font-weight: 600;
  font-size: clamp(1.75rem, 2.8vw, 2.2rem);
  letter-spacing: -0.01em;
}
.meta p {
  margin: 0;
  opacity: .9;
  font-size: clamp(.9rem, 1.6vw, 1.2rem);
}

/* stacked frames */
.frame {
  position: absolute;
  display: flex;
  justify-content: center;
  align-items: center;
  inset: 0;
  margin: 0;
  opacity: 0;
  transition: opacity .6s ease;
  z-index: 1;
  background-color: #f2f3f4;
}
.frame img {
  width: 90vw;
  height: 80vh;
  object-fit: cover;
  border-radius: 16px;
  cursor: pointer;
}

@media (max-width: 600px) {
  .frame img {
    width: 95vw;
    height: 80vh;
  }
  
}

.frame.is-active {
  opacity: 1;
  transform: scale(1) translateY(0);
  z-index: 2;
}

.timeline-scrollbox {
  max-height: 700px;
  overflow-y: auto;
  background: #fff;
  /*border-radius: 16px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.07); */ 
  padding: 2rem 0;
  display: flex;
  justify-content: center;
  align-items: flex-start;
}

.timeline-vertical {
  position: relative;
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

.timeline-row {
  display: grid;
  grid-template-columns: 1fr 120px 1fr;
  align-items: center;
  min-height: 160px;
  position: relative;
}

.timeline-card {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.08);
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  min-width: 340px;
  max-width: 480px;
  font-size: 1.15rem;
  color: #222;
  height: 100%;
  position: relative;
}

.timeline-card.left {
  justify-self: end;
}

.timeline-card.right {
  justify-self: start;
}

.timeline-card:not(:empty) {
  background: #fff;
}

.timeline-icon {
  font-size: 2rem;
  color: #0077c2;
  margin: 1.5rem;
}

.timeline-text {
  font-size: 1.15rem;
  font-weight: 500;
  color: #222;
}

.timeline-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  height: 100%;
}

.timeline-dot {
  width: 18px;
  height: 18px;
  background: #fff;
  border: 3px solid #0077c2;
  border-radius: 50%;
  margin-bottom: 0.5rem;
  z-index: 2;
}

.timeline-dot.active {
  background-color: #0077c2; /* Fill with the same color as the border */
  transform: scale(1.1); /* Optional: make it slightly larger */
  box-shadow: 0 0 8px rgba(0, 119, 194, 0.5); /* Optional: add a subtle glow */
}

.timeline-year {
  color: #0077c2;
  font-weight: bold;
  font-size: 1.1rem;
  margin-top: 0.5rem;
  text-align: center;
}

.timeline-year.left {
  justify-self: end;
  text-align: right;
  color: #0077c2;
  font-weight: bold;
  font-size: 1.1rem;
  margin-right: 1rem;
}
.timeline-year.right {
  justify-self: start;
  text-align: left;
  color: #0077c2;
  font-weight: bold;
  font-size: 1.1rem;
  margin-left: 1rem;
}

.timeline-vertical::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 3px;
  background: #0077c2;
  transform: translateX(-50%);
  z-index: 0;
  pointer-events: none;
}

.timeline-card.active {
  background-color: #003b7c;
  box-shadow: 0 8px 32px rgba(0,119,194,0.18);
  transform: scale(1.1);
  border: 2px solid #0077c2;
  z-index: 2;
  transition: 
    background 0.3s,
    box-shadow 0.3s,
    transform 0.3s,
    border 0.3s;
}
.timeline-card.active .timeline-text {
  color: #fff;
}
.timeline-card.active .timeline-icon {
  color: #d0b81c; /* brand gold */
}

@media (max-width: 900px) {
  .timeline-vertical {
    max-width: 98vw;
  }
  .timeline-card {
    min-width: 0;
    max-width: 98vw;
    padding: 1rem;
    font-size: 1rem;
  }
  .timeline-row {
    grid-template-columns: 1fr 70px 1fr;
    min-height: 120px;
  }
}
@media (max-width: 600px) {
  .timeline-row {
    display: grid;
    grid-template-columns: 30px 1fr; /* Line | Content */
    min-height: 110px;
    align-items: start;
  }
  .timeline-vertical::before {
    left: 15px; /* Position line at left edge */
    width: 2px;
    transform: none;
  }
  .timeline-center {
    grid-column: 1 / 2;
    justify-content: center;
    align-items: center;
    height: 100%;
  }
  .timeline-year,
  .timeline-year.left,
  .timeline-year.right {
    grid-column: 2 / 3 !important;
    grid-row: 1 / 2 !important;
    justify-self: start !important;
    text-align: left;
    font-size: 1rem;
    margin-bottom: 0.3rem;
    margin-top: 0.2rem;
  }
  .timeline-card,
  .timeline-card.left,
  .timeline-card.right {
    grid-column: 2 / 3 !important;
    grid-row: 2 / 3 !important;
    justify-self: start !important;
    max-width: 95vw;
    min-width: 0;
    padding: 0.75rem 0.75rem;
    font-size: 1rem;
    margin-bottom: 1.2rem;
    border-radius: 1rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    height: auto;
    display: flex;
    align-items: flex-start;
  }
  .timeline-icon {
    display: none !important;
  }
}
.story-box {
  padding: 2rem;
  font-size: 1.5rem;
  line-height: 2;
  text-align: center;
  margin: 4rem auto;
}

.highlight-word {
  color: inherit;           /* Use normal text color */
  font-weight: inherit;     /* Use normal font weight */
  transition: color 0.3s;
  font-size: 1.5rem;        /* Or inherit, if you want */
}

.highlight-word.highlighted {
  color: #0077c2;           /* Blue when highlighted */
}

.highlight-word.active {
  font-size: 1.5rem;
  font-weight: bold;
  color: #0077c2;           /* Blue when active */
}

.story-partners-container {
  display: flex;
  gap: 3rem;
  width: 90vw;      /* Use viewport width for responsiveness */
  max-width: 2300px; /* Optional: limit max width */
  margin: 3rem auto;
  justify-content: center;
}

.story-left {
  flex: 2 1 0;      /* Take up twice as much space as the right side */
  padding: 2rem;
  border-radius: 1.5rem;
  background: #fff;
  box-shadow: 0 2px 12px rgba(0,0,0,0.07);
  display: flex;
  align-items: center;
  justify-content: center;
}
.story-right {
  flex: 1 1 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between; /* Distribute reviews top to bottom */
  gap: 2rem;
  padding: 0;
  margin: 0;
  border: none;
  background: transparent;
  box-shadow: none;
  height: 100%; /* Fill height of parent */
}

.partner-review {
  background: #f5f7fa;
  border-radius: 1.25rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
  padding: 2rem;
  margin: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 100%; /* <-- This makes each review fill available space */

}

.partner-title {
  font-weight: bold;
  font-size: 1.2rem;
  margin-bottom: 1rem;
}

.partner-quote {
  font-size: 1.15rem;
  color: #222;
}

.partner-name {
  color: #0077c2;
  font-weight: bold;
}

.partner-quote {
  margin: 1.5rem 0;
  font-size: 1.15rem;
  color: #222;
}

.partner-name {
  color: #0077c2;
  font-weight: bold;
}

@media (max-width: 900px) {
  .story-partners-container {
    flex-direction: column;
    gap: 2rem;
  }
}

/* === Applications Grid (Skeleton) === */
.feature-grid, .feature-grid-hero { /* reuse your existing class */
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 2rem;
  padding: 2rem 1rem;
  max-width: 1200px;
  margin: 0 auto;
}

/* === Responsive 3x2→2x3→1x6 grid === */
.app-grid {
  display: grid;
  gap: 2rem;
}

/* Desktop (≥1025px): 3 columns = 3x2 */
@media (min-width: 1025px) {
  .app-grid--3-2-1 { grid-template-columns: repeat(3, 1fr); }
}

/* Tablet (641–1024px): 2 columns = 2x3 */
@media (max-width: 1024px) and (min-width: 641px) {
  .app-grid--3-2-1 { grid-template-columns: repeat(2, 1fr); }
}

/* Mobile (≤640px): 1 column = 1x6 */
@media (max-width: 640px) {
  .app-grid--3-2-1 { grid-template-columns: 1fr; }

  .story-box {
    margin: 0;
    padding: 1rem;
  }
}

/* Base application card */
.application-card {
  background: transparent;
  border: 2px solid #eee;
  border-radius: 1.25rem;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  box-shadow: 0 4px 14px rgba(0,0,0,0.05);
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
  align-items: flex-start;
}

.application-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.126);
}

/* Card internals */
.app-icon svg { stroke: #002e5a; fill: none; transition: stroke .3s ease; }

.app-icon:hover svg { stroke: #d0b81c; }


.application-card h3 {
  margin: 0;
  font-size: 1.2rem;
  color: #002e5a;
  transition: color .25s ease;
}

.solution-features { list-style: none; margin: 0; padding: 0; }
.solution-features li {
  position: relative;
  padding-left: 1.5em;
  font-size: .95rem;
  margin-bottom: .4rem;
  color: #444;
}

.solution-features li::before {
  content: "✔";
  position: absolute;
  left: 0;
  color: #002e5a;
  transition: color .25s ease;
}

/* Utility: standard container variant (no background) */
.standard-container--flat {
  background: transparent !important;
  box-shadow: none !important;
  padding: 0; /* let page decide the spacing */
}

/* === Generic comparison table skeleton === */
.section-title{
  font-size: clamp(1.6rem, 3.2vw, 2.4rem);
  font-weight: 700;
  text-align: center;
  margin: 0 0 1.5rem 0;
  color: #002147;
}

.compare-table{
  display: grid;
  gap: 0.5rem;
  width: min(1100px, 100%); /* was 100vw → causes overflow inside padded containers */
  margin: 0 auto;
  background-color: #ffffff;
}

.compare-row{
  display: grid;
  grid-template-columns: 1.1fr 1fr 1fr 1fr; /* left labels, middle SonixED, right Traditional */
  align-items: center;
  border-radius: 16px;
  background: #F2F3F4;
  box-shadow: 0 1px 0 rgba(0,0,0,0.06) inset;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.compare-row:hover{
  transform: scale3d(1.02, 1.02, 1);
}

/* Remove hover for the first row */
.compare-table .compare-row:first-child:hover {
  transform: none;
}

.compare-row--head{
  background: #F2F3F4;
  box-shadow: none;
}

.compare-cell{
  padding: clamp(.8rem, 1.8vw, 1.1rem) clamp(.8rem, 2vw, 1.25rem);
  font-size: clamp(.95rem, 1.6vw, 1.05rem);
  color: #334155;
}

.compare-cell--head{
  font-weight: 600;
  color: #64748b;
  border-bottom: 1px solid #eaeef3;
}

.compare-cell--label{
  font-weight: 500;
  color: #0f233f;
}

.compare-cell--value strong{
  font-size: clamp(1.05rem, 2vw, 1.2rem);
  font-weight: 700;
}

/* compact row separators like Apple */
.compare-row + .compare-row{
  border-top: 1px solid #f0f3f7;
}


.team-section {
  background: #f5f7fa;
  padding: 2rem 0 3rem 0;
  border-radius: 2rem;
  max-width: 98vw;
  margin: 2rem auto;
  justify-content: center;
}

.team-title {
  text-align: center;
  margin-bottom: 2rem;
}

.team-subtitle {
  display: block;
  color: #d0b81c;
  font-weight: 600;
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  letter-spacing: 0.08em;
}

.team-title h2 {
  color: #003b7c;
  font-size: 2.5rem;
  font-weight: 700;
  margin: 0;
  line-height: 1.2;
}

.team-cards {
  display: flex;
  gap: 2rem;
  justify-content: center;
  flex-wrap: wrap;
}

.team-card {
  background: #fff;
  border-radius: 1.25rem;
  box-shadow: 0 2px 16px rgba(0,0,0,0.08);
  padding: 1.5rem 1rem 2rem 1rem;
  width: 240px;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: box-shadow 0.2s;
}

.team-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 1rem;
  margin-bottom: 0.5rem;
  background: #eee;
}

.team-card-info {
  text-align: center;
  width: 100%;
}

.team-card-name {
  font-weight: 700;
  font-size: 1.15rem;
  color: #082342;
  margin-top: 0.5rem;
  margin-bottom: 0.2rem;
  border-bottom: 3px solid #d0b81c;
  display: inline-block;
  padding-bottom: 0.2rem;
}

.team-card-role {
  font-size: 1rem;
  color: #003b7c;
  font-weight: 500;
  margin-bottom: 0.5rem;
}

.team-card-desc {
  font-size: 0.98rem;
  color: #222;
  margin-top: 0.5rem;
}

@media (max-width: 900px) {
  .team-cards {
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
  }
  .team-card {
    width: 90vw;
    max-width: 340px;
  }
  .team-title h2 {
    font-size: 2rem;
  }
}
/* === Split base === */
.split { padding: clamp(4rem, 8vw, 8rem) 2rem; }
.split__inner { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: 0.45fr 1fr; gap: clamp(2rem, 4vw, 4rem); align-items: start; }

/* Type + microcopy */
.split__title { font-size: clamp(1.75rem, 4.2vw, 2.5rem); line-height: 1.1; margin: 0 0 1rem; }
.split__eyebrow { letter-spacing: .12em; text-transform: uppercase; font-size: 1.1rem; opacity: .6; margin: 0 0 .5rem;}
.split__lede { font-size: clamp(1rem, 2vw, 1.125rem); opacity: .9; margin: 0 0 1.25rem; max-width: 50ch; }

/* Media wrapper */
.split__media img, .split__media video { width: 100%; height: auto; display: block; border-radius: 16px;}

/* Ghost button */
.btn-ghost { display: inline-block; color: inherit; padding: .9rem 1.25rem; border-radius: 999px; border: 1px solid #e5e5e5; text-decoration: none; transition: scale 0.2s ease-in-out; }
.btn-ghost:hover { scale: 0.97 0.97;}
.btn-ghost:visited {
  color: inherit; /* or set a specific color like #000 */
  border-color: #e5e5e5;
}

/* === Cases nav (left) === */
.cases-nav { position: sticky; top: 6rem; align-self: start; }
.cases-nav__list { list-style: none; padding: 0; margin: 1rem 0 0; display: grid; gap: .25rem; }
.cases-nav__item {
  width: 100%; text-align: left; background: transparent; border: 0; padding: .6rem .5rem;
  border-radius: 12px; cursor: pointer; font: inherit; opacity: .7; transition: background .2s ease, opacity .2s ease;
}
.cases-nav__item:hover { background: #d0b81c; color: #002e5a; opacity: .9; }
.cases-nav__item.is-active { background: #002e5a; color: #f2f3f4; opacity: 1;}

/* Cases container fixed height + stacked panels */
.cases-panels {
  position: relative;
  min-height: 40vh; /* adjust based on your tallest panel */
}

.case-panel {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(1.5rem, 3.2vw, 3rem);
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity .28s ease, transform .28s ease;
  transform: translateY(6px);
}

.case-panel.is-active {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
  position: absolute; /* keeps it stacked */
}

.case-panel__text { max-width: 56ch; }

/* Stats row */
.stats { display: flex; flex-wrap: wrap; gap: 1rem 2rem; list-style: none; padding: 0; margin: 0 0 1.5rem; }
.stats li { font-size: 1rem; opacity: .85; }
.stats strong { font-size: 1.25rem; margin-right: .35rem; }

/* Responsive */
@media (max-width: 1024px) {
  .split__inner { grid-template-columns: 1fr; }
  .cases-nav { position: static; }

}
@media (max-width: 820px) {
  .case-panel { grid-template-columns: 1fr; }
}

/* Mobile: hide the right image pane entirely */
@media (max-width: 850px) {
  /* If your layout is a grid/flex, this targets the figure itself */
  .cases-panels .case-panel .split__media {
    display: none !important;
    background: none !important;   /* in case it's a background-image */
  }

  /* Make text take full width if you use grid */
  .cases-panels .case-panel .case-panel__text {
    grid-column: 1 / -1;
  }
}

@media (max-width: 1250px) {
    .a-card-grid {
    justify-content: left;
    padding-left: 2rem;
  }
}



/* cta buttons*/ 
.learn-more {
  background-color: #082342;
  color: #fff;
}
.get-quote {
  background-color: #f2f3f4;
  color: #082342;
  font-weight: 600;
}
.learn-more:hover, .get-quote:hover {
  background-color: #e8d228 !important;
  color: #082342 !important;
}

/* If you use a matte/gradient overlay */
#solutions-parallax .pin::after { pointer-events: none !important; }

/* Force pointer on the visible frame + its image (no reliance on inherit) */
#solutions-parallax .frame,
#solutions-parallax .frame img { cursor: pointer !important; }


/* Add once in your CSS */
.hero-spot, .a-card-grid, .home-cases, .mosaic, .cta-section, .logo-slider, .stats-section {
  content-visibility: auto;
  contain-intrinsic-size: 1000px 800px;
}
.lazy-bg { background-size: cover; background-position: center; min-height: 320px; }

@media (max-width: 820px) {
  .timeline-scrollbox {
    max-height: 65vh;
    overflow-y: auto;
    background: #fff;
    /*border-radius: 16px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.07); */ 
    padding: 2rem 0;
    display: flex;
    justify-content: center;
    align-items: flex-start;
  }
}
@media (max-width: 700px) {
  .stats-container {
    flex-direction: column            ;
    max-width: 98vw;
    gap: 0.5rem;
    padding: 0.5rem 0;
  }
  .stat-item {
    max-width: 98vw;
    padding: 0.7rem 0.2rem;
  }
  .stat-item svg {
    width: 32px;
    height: 32px;
  }
  .stat-item h2 {
    font-size: 1.3rem;
  }
}

.cases-contact-button {
  display: flex;
  justify-content: center;
  margin: 2rem 0 1rem;
}

.cases-email-btn {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background-color: #002e5a;
  color: #fff;
  padding: 0.9rem 1.6rem;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.2s ease;
  box-shadow: 0 4px 12px rgba(0, 46, 90, 0.15);
}

.cases-email-btn:hover {
  background-color: #d0b81c;
  color: #002e5a;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 46, 90, 0.2);
}

.cases-email-btn .email-icon {
  transition: transform 0.3s ease;
}

.cases-email-btn:hover .email-icon {
  transform: translateY(-2px);
}

/* Responsive adjustments */
@media (max-width: 820px) {
  .cases-contact-button {
    margin: 1.5rem 0;
  }
  
  .cases-email-btn {
    padding: 0.8rem 1.2rem;
    font-size: 0.95rem;
  }
}

.lazy-bg { background-size: cover; background-position: center; opacity: 0; transition: opacity .35s ease; }
.lazy-bg.is-loaded { opacity: 1; }