/* ===============================================================
 * === Global Styles & CSS Variables =============================
 * =============================================================== */


@font-face {
  font-display: swap;
  font-family: 'Oxanium';
  font-style: normal;
  font-weight: 400;
  src: url('https://static.igem.wiki/teams/5916/assets/fonts/oxanium-v21-latin-regular.woff2') format('woff2');
}


@font-face {
  font-display: swap;
  font-family: 'Oxanium';
  font-style: normal;
  font-weight: 600;
  src: url('https://static.igem.wiki/teams/5916/assets/fonts/oxanium-v21-latin-600.woff2') format('woff2');
}


@font-face {
  font-display: swap;
  font-family: 'Commissioner';
  font-style: normal;
  font-weight: 400;
  src: url('https://static.igem.wiki/teams/5916/assets/fonts/commissioner-v24-latin-regular.woff2') format('woff2');
}

@font-face {
  font-display: swap;
  font-family: 'Commissioner';
  font-style: normal;
  font-weight: 600;
  src: url('https://static.igem.wiki/teams/5916/assets/fonts/commissioner-v24-latin-600.woff2') format('woff2');
}



:root {
  --color-background: #F2F2F0;
  --color-foreground: #111111;
  --color-muted: #555555;
  --color-accent: #111111;
  --font-family-headings: 'Oxanium', sans-serif;
  --font-family-body: 'Commissioner', sans-serif;
  --font-size-base: 16px;
  --font-weight-normal: 400;
  --font-weight-bold: 600;
  --spacing-unit: 1rem;
  --content-max-width: 85vw;
  --header-height: 110px;
}

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

html {
  font-size: var(--font-size-base);
  scroll-behavior: smooth;
}


body {
  background-color: var(--color-background);
  font-family: var(--font-family-body);
  color: var(--color-foreground);
  line-height: 1.6;
}

a {
  color: var(--color-accent);
  text-decoration: none;
  transition: color 0.3s ease;
}



h1,
h2,
h3 {
  font-family: var(--font-family-headings);
  font-weight: var(--font-weight-bold);
  margin-bottom: calc(var(--spacing-unit) * 1.5);
}

/* ===============================================================
 * === Canvas & Content Layout ===================================
 * =============================================================== */

#geometric-canvas {
  position: fixed;
  top: 0;
  left: 0;
  z-index: -1;
}

.content {
  position: relative;
  z-index: 1;
  max-width: var(--content-max-width);
  margin: 0 auto;
  padding: 0px 0px;
  background-color: transparent;
  clip-path: none;
  border-radius: 0;
  margin-top: calc(var(--header-height) + 1rem);
}

.width-75 {
  width: 75vw;
  margin-left: auto;
  margin-right: auto;
}


.content h1,
.content h2,
.content h3 {
  color: var(--color-foreground);
}

.content p {
  color: #000000;
  font-size: clamp(0.25rem, 1.5vw, 1.2rem);
}

.content ul li {
  font-size: 14pt
}


.page-title {
  text-align: center;
  font-size: clamp(2.5rem, 4vw, 50pt);
}

.page-section {
  padding: 1px 20px;
  text-align: center;
  min-height: auto;
  background-color: #F2F2F0;
  position: relative;
}



.is-white {
  background-color: #FFFFFF;
}

.two-column-container {
  display: flex;
  align-items: left;
  width: 100%;
  gap: 2.5vw;
}

.column-left,
.column-right {
  flex: 1;
  display: flex;
  flex-direction: column;
}



.is-transparent {
  background-color: transparent;
  clip-path: none;

}

#hero-section {
  max-width: 85vw;
  padding-top: 0.25rem;
  padding-bottom: 0;
  margin-left: auto;
  margin-right: auto;
}

.hero-columns {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.hero-column-left,
.hero-column-right {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
}


.page-section.is-transparent:not(:last-child) {
  border-bottom: none;
}

.page-section p {
  max-width: 85vw;
  margin: 0 auto;
  font-size: 18pt;
}




.page-section-deep-gray {
  padding: 5rem 10px;
  text-align: center;
  min-height: auto;
  background-color: #333333;
  clip-path: inset(0 -100vmax);
  box-shadow: 0 0 0 100vmax #333333;
  position: relative;
  z-index: -1;
}

.page-section-deep-gray h2,

.page-section-deep-gray p {
  color: #FFFFFF;
  font-size: 18pt;
}




.section-image {
  max-width: 65%;
  height: auto;
}

.section-image-small {
  max-width: 30%;
  height: auto;
}

.section-image-large {
  max-width: 125%;
  height: auto;
}

.image-aligner-left {
  display: flex;
  justify-content: flex-start;
}

.image-aligner-right {
  display: flex;
  justify-content: flex-end;
}

.image-aligner-center {
  display: flex;
  justify-content: center;
}

.hero-logo {
  max-width: 2000px;
  width: 100%;
  height: auto;
  margin-bottom: 0.5rem;
  display: block;
  margin-right: 0;
  margin-left: 0;
}

.tagline {
  font-family: var(--font-family-headings);
  font-weight: 600;
  font-size: 60pt;
  color: var(--color-foreground);
  text-shadow: none;
  margin-bottom: 1.5rem;
  text-align: center;
  max-width: auto;
  margin-left: 0;
  margin-right: 0;
}

.tagline span {
  background-color: transparent;
  padding: 0.1em 0.4em;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

.icon-separator {
  height: 1.5em;

  width: auto;

  vertical-align: middle;

  margin-left: 3rem;

  margin-right: 3rem;

}

.span-yellow span {
  background-color: #FFF75C;
}


.tagline-transparent span {
  background-color: transparent;
}

.span-lime-green span {
  background-color: #D6FF36;
}

.tagline-mint-green span {
  background-color: #8AFF7B;
}

.span-sky-blue span {
  background-color: #00C8FF;
}

.span-orange span {
  background-color: #FF8B00;
}

.span-pink span {
  background-color: #FF417B;
}

.span-mint-green span {
  background-color: #8AFF7B;
}








.tagline-subline {
  font-family: var(--font-family-headings);
  font-weight: 600;
  font-size: 32pt;
  color: var(--color-foreground);
  text-shadow: none;
  margin-bottom: 1.5rem;
  text-align: center;
  max-width: auto;
  margin-left: 0rem;
  margin-right: 0rem;
}

.tagline-subline-sub {
  font-size: 20pt;
  font-weight: 400;
}

.tagline-subline-no-wrap {
  white-space: nowrap;
}

.tagline-subline span {
  background-color: transparent;
  padding: 0.1em 0em;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

.tagline-subline-yellow-text {
  color: #FAF067;
}

.tagline-subline-lime-green span {
  background-color: #D6FF36;
}

.tagline-subline-yellow span {
  background-color: #FAF067;
}

.tagline-subline-sky-blue span {
  background-color: #00C8FF;
}

.tagline-subline-orange span {
  background-color: #FF8B00;
}


.tagline-subline-bold {
  font-weight: 600;
}


.tagline-row {
  display: flex;
  justify-content: flex-start;
  align-items: flex-end;
  gap: 1rem;
}

.tagline-staggered {
  transform: translateX(5vw);
}

.tagline-icon {
  height: 1em;
  width: auto;
  vertical-align: middle;
  margin-left: 0.5rem;
}

/* ===============================================================
 * === Spacer ==================================
 * =============================================================== */

.spacer30 {

  height: 30vw;
}

.spacer20 {

  height: 20vw;
}

.spacer15 {
  height: 15vw;
}

.spacer10 {
  height: 10vw;
}

.space7 {
  height: 7vw;
}

.spacer5 {

  height: 5vw;
}

.spacer3 {
  height: 3vw;
}

.spacer2 {
  height: 2vw;
}


.spacer {
  height: 1vw;
}


/* ===============================================================
 * === Centered List Container ===================================
 * =============================================================== */


.centered-list-container {
  display: flex;
  justify-content: center;
}

.justify-left {
  justify-content: left;
}



.centered-list-container ul li {
  text-align: left;
  font-family: var(--font-family-body);
  font-size: 18pt;
  color: var(--color-foreground);
  line-height: 1.6;
  text-align: left;
}

.centered-list-container-bold ul li {
  font-weight: 600;
}

.coloured-block {
  background-color: #FFF75C;
  color: white;
  width: 100%;
  padding: 2rem;
  border-radius: 0px;
  text-align: center;
}

.coloured-block-lime-green {
  background-color: #D6FF36;
}

.coloured-block-orange {
  background-color: #FF8B00;
}

.coloured-block-sky-blue {
  background-color: #00C8FF;
}

.coloured-block-white {
  background-color: #F2F2F0;
}

.coloured-block-mint-green {
  background-color: #8AFF7B;
}

.coloured-block-grey {
  background-color: #333333;
}



.padding2 {
  padding: 2rem
}



/* ===============================================================
 * === Header & Navigation  ===================
 * =============================================================== */

#fixed-header-container {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background-color: transparent;
  transition: opacity 0.3s ease, background-color 0.3s ease;
}


.main-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: var(--header-height);
  padding: 0 calc(var(--spacing-unit) * 2);
  max-width: 85vw;
  width: 100%;
  margin: 0 auto;
  z-index: 101;
}

.logo-container {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  transform: translateX(-100px) translateY(-10px);
}

.logo img {
  height: 105px;
  width: auto;
}

.header-title {
  position: relative;
  font-family: var(--font-family-headings);
  font-weight: 600;
  font-size: clamp(15pt, 2vw, 20pt);
  white-space: nowrap;
  transition: opacity 0.1s ease-out;

}



.main-nav>ul {
  list-style: none;
  display: flex;
  white-space: nowrap;
  gap: 2.5rem;
}

.main-nav>ul>li>a {
  font-family: var(--font-family-body);
  font-weight: 400;
  font-size: clamp(12pt, 1.4vw, 18pt);
  padding: 0.5rem 0;
  border-bottom: 2px solid transparent;
  transition: opacity 0.1s;

}

.main-nav a:hover {
  color: var(--color-highlight);
}

.main-nav a.active {
  border-bottom-color: var(--color-foreground);
  color: var(--color-foreground);
}

/* ===============================================================
 * === Interactive Header Logic  ============
 * =============================================================== */


#top-hover-trigger {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 30px;
  z-index: 1001;
  display: none;
}


#fixed-header-container.hidden-by-scroll {
  opacity: 0;
  pointer-events: none;
}


#fixed-header-container.visible-by-hover {
  background-color: #F2F2F0;
  opacity: 1;
  pointer-events: auto;
  box-shadow: 0 4px 30px rgba(255, 255, 255, 0.8);
}

.hamburger-icon {
  width: 20px;
  height: 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.hamburger-icon span {
  display: block;
  height: 3px;
  width: 100%;
  background-color: var(--color-foreground);
  border-radius: 3px;
}

/* ===============================================================
 * === Transforming Text on Scroll =============================
 * =============================================================== */


.transforming-text-container {
  min-width: 100px;

  display: grid;
  align-items: center;
  justify-items: stretch;
}

.text-initial,
.text-final {

  grid-column: 1;
  grid-row: 1;




  transition: opacity 0.25s ease-out;
}

.text-final {
  opacity: 0;
}


.transforming-text-container.is-transformed .text-initial {
  opacity: 0;
}

.transforming-text-container.is-transformed .text-final {
  opacity: 1;
}

.main-header.scrolled .header-title {
  opacity: 0;
  pointer-events: none;
}



/* ===============================================================
 * === Footer =======================================
 * =============================================================== */

.main-footer {
  text-align: center;
  padding: calc(var(--spacing-unit) * 3);
  margin-top: calc(var(--spacing-unit) * 4);
  color: var(--color-muted);
  font-size: 0.9rem;
  position: relative;
  z-index: 1;
  background-color: var(--color-background);
}

.main-footer p {
  margin-bottom: 0.5rem;
}

#project-section {
  background-color: #F2F2F0;
  color: #000000;
}

.accent-text {
  background-color: #8AFF7B;
  padding: 0.1em 0.4em;
  font-weight: 600;
  color: var(--color-foreground);/
}


/* ===============================================================
 * === Animate on scroll =======================================
 * =============================================================== */

.animate-on-scroll {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.animate-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.long-animate {
  transition: opacity 4s ease-out, transform 4s ease-out;
}

/* --- Slide-in Animations --- */
.animate-slide-left,
.animate-slide-right {
  opacity: 0;
  transition: opacity 0.8s ease-out, transform 0.8s cubic-bezier(0.23, 1, 0.32, 1);
}

.animate-slide-left {
  transform: translateX(-50px);
}

.animate-slide-right {
  transform: translateX(50px);
}

.animate-slide-left.is-visible,
.animate-slide-right.is-visible {
  opacity: 1;
  transform: translateX(0);
}



.animate-mask-reveal.is-visible {
  opacity: 1;
  clip-path: inset(0 0 0 0);
}


/* ===============================================================
 * === Team Page Styles ==========================================
 * =============================================================== */
.team-grid {
  display: flex;
  flex-direction: column;
  gap: 40px;
  width: 65vw;
  margin: 2rem auto 0 auto;
}

.team-member {
  display: flex;
  align-items: stretch;
  max-width: 100%;
  box-sizing: border-box;
}

.member-photo {
  width: 20%;
  height: 40%;
  object-fit:contain;
  flex-shrink: 0;
}

.member-textbox {
  flex-grow: 1;
  background-color: white;
  padding: 20px 30px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.member-info {
  margin-bottom: 20px;
}

.member-name {
  font-family: var(--font-family-headings);
  font-size: 1.8em;
  font-weight: 600;
  color: #333;
  margin-bottom: 5px;
}

.member-role {
  font-family: var(--font-family-body);
  font-size: 1.1em;
  color: #555;
  margin-top: 0;
}

.attributions-dropdown {
  width: 100%;
  margin-top: auto;
  padding-top: 15px;
  border-top: 1px solid #eee;
}

.attributions-toggle {
  background: none;
  border: none;
  color: #333;
  cursor: pointer;
  font-size: 1em;
  padding: 10px 0;
  width: 100%;
  text-align: left;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: color 0.2s ease-in-out;
  font-weight: 600;
  font-family: var(--font-family-body);
}

.attributions-toggle:hover {
  color: #007bff;
}

.toggle-icon {
  font-size: 1.2rem;
  transition: transform 0.3s ease-in-out;
}

.attributions-dropdown.open .toggle-icon {
  transform: rotate(45deg);
}

.attributions-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease-out;
}

.attributions-dropdown.open .attributions-content {
  max-height: 500px;

}

.attributions-content p {
  font-size: 0.95em;
  line-height: 1.6;
  color: #666;
  margin-top: 1rem;
  margin-bottom: 0;
}

.team-page-wide .content {
  max-width: 100%;
}


/* ===============================================================
 * === Button Styles ======================================
 * =============================================================== */
.accent-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.1rem;
  padding: 0.8rem 2rem;
  background-color: var(--color-highlight);
  color: var(--color-foreground);
  font-family: var(--font-family-headings);
  font-weight: 500;
  text-decoration: none;
  border-radius: 80px;
  transition: transform 0.3s ease;
  border: 0px solid var(--color-foreground);
}

.btn-icon {
  width: 1em;
  height: 1em;
}

.accent-btn:hover {
  transform: scale(1.05);
  color: var(--color-foreground);
}

.accent-btn.btn-yellow {
  background-color: #FFF75C;
}

.accent-btn.btn-lime-green {
  background-color: #D6FF36;
}

.accent-btn.btn-sky-blue {
  background-color: #00C8FF;
}

.accent-btn.btn-orange {
  background-color: #FF8B00;
}

.button-row {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  margin-top: 2rem;
}



@media (max-width: 768px) {
  .accent-btn {
    font-size: 0.6rem;
    padding: 0.6rem 1.5rem;
  }
}

@media (max-width: 768px) {
  .button-row {
    flex-direction: column;
    align-items: center;
    gap: 1rem;
  }
}

/* ===============================================================
 * === Mobile & Smaller screen ====================================
 * =============================================================== */

@media (max-width: 1500px) {
  .page-section p {
    font-size: 12pt;
  }

  .timeline-content p {
    font-size: 12pt;
  }


  .content ul li {
    font-size: 12pt
  }

  .tagline-subline {
    font-size: 25pt;
  }

  .scroll-nav a {
    font-size: 8pt;
  }

  .education-hero {
    max-height: 200px;
  }

  .feature-card p {
    font-size: 12pt;
  }

  .dropdown-menu a {
    font-size: 12pt !important;
  }



}


@media (max-width: 768px) {

  html {
    font-size: 14px;
  }

  .content {
    max-width: 75vw;
  }

  .content ul li {
    font-size: 6pt
  }

  .tagline {
    font-size: 10pt;
    line-height: 1.2;
  }

  .tagline-subline {
    font-size: 8pt;
  }


  .page-section p {
    font-size: 1rem;
  }

  .hero-columns {
    flex-direction: column;
    gap: rem;
  }

  .hero-logo {
    max-width: 70%;
  }



  .two-column-container {
    flex-direction: column;
    gap: 1.5rem;
  }


  .tagline-row {
    justify-content: center;
  }

  .section-image-large {
    width: 60%;
  }

  .tagline-row h3,
  .column-right p,
  .column-left p {
    text-align: center !important;
  }

  :root {
    --header-height: 80px;
  }

  .main-header {
    padding: 0 1rem;
    max-width: 70vw;
  }

  .logo img {
    height: 60px;
  }

  .header-title {
    font-size: 10pt;
  }

  .main-nav a {
    font-size: 5pt;
    padding: 0rem 0;
  }

  .main-nav ul {
    gap: 0.1rem;
  }


  .hamburger-icon {
    display: none;
  }

  .menu-text {
    display: inline;
  }

}

/* ===============================================================
 * === Education Page Styles ============================
 * =============================================================== */

.education-hero {
  background-image: url('https://static.igem.wiki/teams/5916/education/edu-banner.webp');
  background-size: cover;
  background-position: center;
  height: 350px;
  width: 100vw;
  position: relative;
  left: 50%;
  transform: translateX(-50%);
  margin-bottom: 0rem;
  display: flex;
}

.hp-banner {
  background-image: url("https://static.igem.wiki/teams/5916/hp/bannerhp.webp");
}

.team-banner {
  background-image: url("https://static.igem.wiki/teams/5916/assets/images/team/team-banner.webp");
}


.dsp-banner {
  background-image: url("https://static.igem.wiki/teams/5916/dsp/dsp-banner.webp");
}


.education-hero-content-container {
  max-width: 85vw;
  width: 100%;
  height: 100%;
  margin: 0 auto;
  display: flex;
  align-items: flex-end;
  padding-bottom: 2rem;
  position: relative;
  z-index: 2;
}

.education-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
  z-index: 1;
}

.education-hero .education-hero-content-container h1 {
  font-size: 4rem;
  margin: 0;
  font-family: var(--font-family-headings);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #FFFFFF !important;
}

@media (max-width: 768px) {
  .education-hero {
    height: 300px;
  }

  .education-hero-content-container {
    max-width: 90vw;
  }

  .education-hero h1 {
    font-size: 2.5rem;
  }
}





.simple-carousel {
  position: relative;
  width: 100%;
}

.simple-carousel img:first-child {
  width: 100%;
  height: auto;
  display: block;
}


.simple-carousel img:nth-child(2) {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  animation: simpleFade 10s infinite;
  animation-delay: 10s;
}

@keyframes simpleFade {
  0% {
    opacity: 0;
  }

  25% {
    opacity: 1;
  }

  75% {
    opacity: 1;
  }

  100% {
    opacity: 0;
  }
}

.carousel-inner {
  border-radius: 15px;
  overflow: hidden;
  margin-bottom: 1rem;
}

.carousel-indicators {
  position: static;
  margin-top: vw;
  justify-content: center;
  gap: 1rem;
}

.carousel-indicators button {
  width: 15%;
  height: auto;
  opacity: 0.5;
  transition: opacity 0.3s ease;
  padding: 0;
  text-indent: 0;
  background-color: transparent;
}

.carousel-indicators button.active,
.carousel-indicators button:hover {
  opacity: 1;
}

.carousel-indicators button img {
  border-radius: 3px;
  width: 100%;
}



#webtoonCarousel .carousel-item img {
  max-height: 35vw;
  width: auto;
  margin: 0 auto;
}


@media (max-width: 767.98px) {
  .carousel-indicators {
    position: absolute;
    bottom: -20px;
  }

  .carousel-indicators button {
    width: 30px;
    height: 3px;
    background-color: #fff;
    border: 0;
    opacity: 0.5;
  }

  .carousel-indicators button.active {
    opacity: 1;
  }
}

/* ===============================================================
 * === PDF Embed Styles ==========================================
 * =============================================================== */
.pdf-container {
  width: 80%;
  aspect-ratio: 4 / 3;
  margin-top: 1.5rem;
  border-radius: 5px;
  overflow: hidden;
  margin-left: auto;
  margin-right: auto;
}

.pdf-container iframe {
  width: 100%;
  height: 100%;
  border: none;
}

@media (max-width: 768px) {
  .pdf-container {
    width: 100%;
  }
}

/* ===============================================================
 * === Navigation Dropdown Styles ================================
 * =============================================================== */

.main-nav li.has-dropdown {
  position: relative;
}


.dropdown-menu {
  position: absolute;
  left: 0;
  top: 100%;
  list-style: none;
  background-color: white;
  border-radius: 15px;
  padding: 0.5rem 0;
  min-width: 200px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s;
}

.dropdown-menu a {
  display: block;
  padding: 0rem 0.5rem;
  font-size: 15pt;
  color: var(--color-foreground);
  border-bottom: none;
  text-transform: uppercase;
}

.dropdown-menu a:hover {
  background-color: var(--color-background);
}

.main-nav li.has-dropdown:hover>.dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}


/* ===============================================================
 * === Data-Viz Bar Chart Styles =================================
 * =============================================================== */

.data-viz-container {
  max-width: 900px;
  margin: 4rem auto;
  padding: 2rem;
  font-family: var(--font-family-body);
}

.data-viz-bar-chart {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.chart-row {
  display: grid;
  grid-template-columns: 200px 1fr;
  align-items: center;
  gap: 1.5rem;
}

.chart-label {
  text-align: right;
  color: var(--color-muted);
}

.chart-label .retailer {
  display: block;
  font-weight: var(--font-weight-bold);
  font-family: var(--font-family-headings);
  color: var(--color-foreground);
  font-size: 1.2rem;
}

.chart-label .cut {
  font-size: 0.9rem;
}

.chart-bar-container {
  background-color: rgba(0, 0, 0, 0.05);
  border-radius: 4px;
  overflow: hidden;
}

.chart-bar {
  background-color: var(--color-muted);
  width: 0;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding-right: 1rem;
  color: #fff;
  white-space: nowrap;
  transition: width 1.5s cubic-bezier(0.23, 1, 0.32, 1);

}

.chart-row.is-hero .chart-bar {
  background-color: #00C8FF;

}

.chart-row.is-hero .chart-label .retailer {
  color: #00C8FF;
}

.price {
  font-family: var(--font-family-headings);
  font-weight: var(--font-weight-bold);
  font-size: 1.1rem;
  opacity: 0;

  transform: translateX(-10px);
  transition: opacity 0.5s ease 0.8s, transform 0.5s ease 0.8s;

}


.data-viz-container.is-visible .chart-bar {
  color: none
}

.data-viz-container.is-visible .price {
  opacity: 1;
  transform: translateX(0);
}


/* ===============================================================
 * ===  Solution Section Styles ============================
 * =============================================================== */

.solution-headline {
  font-family: var(--font-family-headings);
  font-weight: 600;
  font-size: clamp(2rem, 5vw, 3.5rem);
  color: #FFFFFF;
  line-height: 1.1;
  text-align: left;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.solution-intro {
  font-size: 1.2rem;
  color: #FFFFFF;
  text-align: left;
}

.highlight-green {
  background-color: #8AFF7B;
  color: var(--color-foreground);
  padding: 0.1em 0.4em;
  font-weight: var(--font-weight-bold);
  font-family: var(--font-family-headings);
}

.benefit-list {
  list-style: none;
  padding-left: 0;
  margin-top: 2rem;
  text-align: left;
}

.benefit-list li {
  font-family: var(--font-family-headings);
  color: #FFFFFF;
  font-size: 1.3rem;
  margin-bottom: 1rem;
  padding-left: 2.5rem;
  position: relative;
  text-transform: uppercase;
}

.benefit-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 1.2rem;
  height: 1.2rem;
  background-color: #8AFF7B;
  clip-path: polygon(0% 50%, 25% 0%, 100% 0%, 100% 100%, 25% 100%, 0 50%);
}


/* ===============================================================
 * ===Stagger Animation =========================
 * =============================================================== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}


.stagger-children>* {
  opacity: 0;
}

.stagger-children.animate-on-scroll.is-visible>* {
  animation: fadeInUp 0.8s ease-out forwards;
}

.stagger-children.animate-on-scroll.is-visible>*:nth-child(1) {
  animation-delay: 0.2s;
}

.stagger-children.animate-on-scroll.is-visible>*:nth-child(2) {
  animation-delay: 0.4s;
}

.stagger-children.animate-on-scroll.is-visible>*:nth-child(3) {
  animation-delay: 0.6s;
}

.stagger-children.animate-on-scroll.is-visible>*:nth-child(4) {
  animation-delay: 0.8s;
}


/* ===============================================================
 * === Statistic Counter Styles ==================================
 * =============================================================== */

.stat-container {
  text-align: center;
  padding: 0.25rem 1rem;
}

.stat-title {
  font-family: var(--font-family-headings);
  font-weight: 600;
  font-size: 25pt;
  color: #FFFFFF;
  text-shadow: none;
  text-align: center;
  max-width: auto;
  margin-left: 0rem;
  margin-right: 0rem;
  line-height: 1.1;
}

.stat-number {
  font-family: var(--font-family-headings);
  font-weight: 600;
  font-size: clamp(8pt, 30pt, 40pt);
  color: #FFFFFF;
  line-height: 1;
  margin: 0.1rem 0;
  text-align: left;
}

.stat-label {
  font-size: 1.1rem;
  color: var(--color-muted);
}

/* ===============================================================
 * === Full Bleed Image Effect ===================================
 * =============================================================== */

.bleed-left {

  margin-left: calc(50% - 30vw);
  width: 50vw;
  max-width: none;
}

.bleed-right {
  width: calc(100% + (100vw - var(--content-max-width)) / 2);
  margin-right: calc((100vw - var(--content-max-width)) / -2);
  height: 25vw;
  object-fit: cover;
}


/* ===============================================================
 * === Dropdown Menu Icons =====================================
 * =============================================================== */

.dropdown-menu {
  width: max-content !important;
  min-width: 0;
  box-sizing: border-box;
  border-radius: 10px;
  background-color: #F2F2F0;
}



.dropdown-menu a {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.2rem 0.75rem;
}

.nav-icon-img {
  width: 25px;
  height: 25px;
  object-fit: contain;
}

/* ===============================================================
 * === Mobile Orientation Overlay ================================
 * =============================================================== */

#orientation-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(20, 20, 20, 0.95);
  z-index: 9999;
  display: none;
  justify-content: center;
  align-items: center;
  color: #FFFFFF;
  text-align: center;
}

.orientation-message {
  padding: 2rem;
}

.orientation-message p {
  color: #FFFFFF;
  font-size: 1.2rem;
  margin-top: 1.5rem;
  max-width: 300px;
}

.phone-icon {
  width: 60px;
  height: 100px;
  border: 3px solid #FFFFFF;
  border-radius: 10px;
  margin: 0 auto;
  position: relative;
  animation: rotate-animation 1.5s ease-in-out infinite;
}

.phone-icon::before {
  content: '';
  position: absolute;
  width: 40px;
  height: 5px;
  background: #FFFFFF;
  border-radius: 3px;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
}

@keyframes rotate-animation {
  0% {
    transform: rotate(0deg);
  }

  50% {
    transform: rotate(90deg);
  }

  100% {
    transform: rotate(90deg);
  }
}


@media only screen and (max-width: 768px) and (orientation: portrait) {
  #orientation-overlay {
    display: flex;
  }
}

/* ===============================================================
 * === Feature Card Styles =======================================
 * =============================================================== */

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  width: 100%;
  max-width: 90vw;
  margin: 0.5rem auto;
  padding: 0 2rem;
}

.feature-card {
  background-color: #333333;
  padding: 0rem 1.5rem;
  border-radius: var(--bs-border-radius-lg);
  text-align: center;
  color: #FFFFFF;
  clip-path: polygon(20px 0, 100% 0, 100% calc(100% - 20px), calc(100% - 20px) 100%, 0 100%, 0 20px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
}


.feature-card.stagger-down {
  margin-top: 0.1rem;
}

.feature-icon {
  width: 20vw;
  max-width: 50vw;
  min-width: 80px;
  height: auto;
  margin-bottom: 0.5rem;
}

.feature-title {
  font-family: var(--font-family-headings);
  font-weight: 600;
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  margin-bottom: 1rem;
  text-transform: uppercase;
  text-align: left;
}

.feature-link {
  padding-top: 1.5rem;
  text-decoration: none;
  font-weight: 600;
  color: #FAF067;
  transition: letter-spacing 0.3s ease, color 0.3s ease;
  align-self: center;
}

.feature-link:hover {
  color: #FFFFFF;
  letter-spacing: 0.5px;
}

@media (max-width: 991px) {
  .feature-card.stagger-down {
    margin-top: 0;
  }

  .feature-grid {
    margin-top: 3rem;
  }
}

/* ===============================================================
 * ===  Timeline Styles ============================
 * =============================================================== */

/* People Timeline */
.people-timeline {
  position: relative;
  width: 85vw;
  margin-top: 0.1rem;
  margin-bottom: 2rem;
  margin-left: auto;
  margin-right: auto;
  height: 300px;
}

.timeline-line {
  position: absolute;
  top: 50%;
  left: 2%;
  right: 2%;
  height: 3px;
  background-color: #333333;
  transform: translateY(-50%);
}

.timeline-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  position: absolute;
  width: 100%;
  left: 0;
}

.timeline-row-top {
  bottom: 50%;
  padding-bottom: 15px;
}

.timeline-row-bottom {
  top: 50%;
  align-items: flex-start;
  padding-top: 15px;

}

.timeline-item {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  flex-basis: 9%;
  min-width: 80px;
}


.timeline-item::before {
  content: '';
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-style: solid;
  z-index: 2;
}

.timeline-row-top .timeline-item::before {
  top: 100%;
  margin-top: 0px;
  border-width: 0 8px 8px 8px;
  border-color: transparent transparent #000000 transparent;
}

.timeline-row-bottom .timeline-item::before {
  bottom: 100%;

  margin-bottom: 0px;
  border-width: 8px 8px 0 8px;

  border-color: #333333 transparent transparent transparent;
}

.timeline-item a {
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  align-items: center;
}


.timeline-row-top .timeline-item a {
  flex-direction: column-reverse;
}

.timeline-icon {
  width: clamp(78px, 7.8vw, 140px);
  height: clamp(78px, 7.8vw, 140px);
  background-color: #e0e0e0;
  border-radius: 50%;
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
}


.timeline-row-top .timeline-icon {
  margin-bottom: 15px;
}

.timeline-row-bottom .timeline-icon {
  margin-top: 15px;
  margin-bottom: 10px;
}


.timeline-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.timeline-name {
  font-size: clamp(0.7rem, 0.9vw, 1.55rem);
  font-weight: 400;
  line-height: 1.2;
}


@media (max-width: 1200px) {
  .people-timeline {
    height: auto;
    padding: 2rem 0;
    width: 90vw;
  }

  .timeline-line,
  .timeline-item::before {
    display: none;
  }

  .timeline-row {
    position: static;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
    padding: 0;
  }

  .timeline-row-top {
    margin-bottom: 1.5rem;
  }

  .timeline-item {
    flex-basis: auto;
    min-width: 120px;
  }


  .timeline-row-top .timeline-item a {
    flex-direction: column;
  }
}


/* Snake Timeline */
.snake-timeline {
  position: relative;
  max-width: 100vw;
  padding: 2rem 0;
}

.snake-timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 3px;
  top: -2vw;
  height: 100%;
  background-color: #333333;
  z-index: -1;
}

.timeline-event {
  position: relative;
  margin-bottom: 0rem;
  gap: 5rem;
}

.timeline-dot {
  position: absolute;
  top: 1rem;
  left: 50%;
  transform: translateX(-50%);
  width: 18px;
  height: 18px;
  background-color: #333333;
  border: 3px solid #F2F2F0;
  border-radius: 50%;
  z-index: 1;
}

.timeline-content {
  padding: 0.5rem;
  background-color: transparent;
}

.timeline-content p {
  font-size: 15pt;
}

.timeline-section-header {
  text-align: center;
  margin-bottom: 2rem;
}

.timeline-header-link {
  text-decoration: none;
  display: inline-block;
  color: inherit;
}

.timeline-section-header .tagline-subline {
  display: inline-block;
  position: relative;
  z-index: 1;
  background-color: var(--color-background);
  padding: 1rem 1.5rem;
  margin-bottom: 0;
}

.timeline-header-link:hover .tagline-subline {
  color: #000000;
  text-decoration: underline;
}

.timeline-event-grey {
  background-color: #333333;
  box-shadow: 0 0 0 100vmax #333333;
  clip-path: inset(0 -100vmax);
  padding-top: 2rem;
  padding-bottom: 2rem;
}

.timeline-section-header.header-grey {
  position: relative;
  background-color: #333333;
  box-shadow: 0 0 0 100vmax #333333;
  clip-path: inset(0 -100vmax);
  padding: 1.5rem 0;
  margin: -0.1rem 0;
}


.timeline-section-header.header-grey::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 3px;
  background-color: #FFFFFF;
  z-index: 0;
}


.timeline-section-header.header-grey .tagline-subline {
  background-color: #333333;
  color: #FFFFFF;
}

.timeline-event-grey::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 3px;
  background-color: #FFFFFF;
  z-index: 0;
}

.timeline-event-grey .timeline-content p,
.timeline-event-grey .timeline-content span {
  color: #FFFFFF;
}

.timeline-event-grey .timeline-dot {
  background-color: #FFFFFF;
  border-color: #333333;
}



@media (max-width: 768px) {
  .snake-timeline::before {
    left: 1.25rem;
  }

  .timeline-event {
    flex-direction: column;
    gap: 1.5rem;
  }

  .column-left,
  .column-right {
    width: 100%;
    padding-left: 3rem;
  }

  .timeline-event .column-right {
    order: 1;
  }

  .timeline-event .column-left {
    order: 2;
  }


  .timeline-dot {
    left: 1.25rem;
  }

  .timeline-section-header {
    text-align: left;
    padding-left: 3rem;
  }
}

/* ===============================================================
 * === Side Scroll ==================================
 * =============================================================== */

.side-scroll-nav {
  position: fixed;
  left: 0.05vw;
  top: 10vh;
  height: max-content;
  width: max-content;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  padding: 1rem;
  background-color: #F2F2F0;
  border: 1px solid #F2F2F0;

  z-index: 80;
  overflow-y: auto;
  opacity: 0;
  pointer-events: none;
  transform: translateX(-100%);
  transition: opacity 1s ease, transform 1s ease;
}


.side-scroll-nav::-webkit-scrollbar {
  width: 12px;
}

.side-scroll-nav::-webkit-scrollbar-track {
  background: transparent;

}

.side-scroll-nav::-webkit-scrollbar-thumb {
  background-color: #adb5bd;

  border: 2px solid #f8f9fa;
}

.side-scroll-nav::-webkit-scrollbar-thumb:hover {
  background-color: #6c757d;
}


.side-scroll-nav.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.side-scroll-nav-label {
  font-size: clamp(0.6rem, 0.4vw + 0.3rem, 0.9rem);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-muted);
}

.side-scroll-nav a {
  font-size: clamp(0.9rem, 1vw + 0.3rem, 1.2rem);
  color: var(--color-foreground);
  text-align: left;
  line-height: 1.3;
  display: block;
  transition: color 0.2s ease;
}

.side-scroll-nav span {
  background-color: none;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

.side-scroll-group {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-left: 0.25rem;
  padding-left: 0.75rem;
  border-left: 1px solid rgba(17, 17, 17, 0.12);
}


.side-scroll-nav a.sub-link:hover,
.side-scroll-nav a.sub-link.active {
  color: var(--color-accent);
}

.side-scroll-nav a:hover,
.side-scroll-nav a.active {
  color: var(--color-accent);
}



@media (max-width: 992px) {
  .side-scroll-nav {
    display: none;
  }
}

/* ===============================================================
 * === Collapse the content ==================================
 * =============================================================== */
.collapsible-trigger {
  cursor: pointer;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  user-select: none;
  position: relative;
  padding-bottom: 5px;
  font-weight: 600;
  margin-top: 2rem;
  width: fit-content;
}

.collapsible-trigger::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: #000000;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

.collapsible-trigger:hover::before {
  transform: scaleX(1);
}

.collapsible-trigger::after {
  content: '+';
  font-size: 2rem;
  font-weight: 400;
  color: #000000;
  transition: transform 0.5s cubic-bezier(0.23, 1, 0.32, 1);
  margin-left: 0.75rem;
  line-height: 1;
}

.collapsible-trigger.active::after {
  transform: rotate(45deg);
}

.collapsible-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.8s cubic-bezier(0.65, 0, 0.35, 1);
}

.collapsible-close {
  display: block;
  margin-top: 2rem;
  padding: 0.5rem;
  text-align: center;
  cursor: pointer;
  font-weight: 600;
  color: #000000;
  border-top: 1px solid #080808;
  transition: color 0.2s ease, background-color 0.2s ease;
}

.collapsible-close:hover {
  color: #ffffff;
  background-color: #000000;
}


.timeline-event-grey .collapsible-trigger,
.timeline-event-grey .collapsible-trigger::after {
  color: #ffffff;
}

.timeline-event-grey .collapsible-trigger::before {
  background-color: #ffffff;
}

.collapsible-close-grey {
  color: #ffffff;
  border-top: 1px solid #ffffff;
}

.collapsible-close-grey:hover {
  color: #000000;
  background-color: #ffffff;
}

@keyframes glitch {

  2%,
  64% {
    transform: translate(2px, -2px);
    text-shadow: -1px 0 #000000, 1px 0 #ffffff;
  }

  4%,
  60% {
    transform: translate(-2px, 2px);
    text-shadow: 1px 0 #000000, -1px 0 #ffffff;
  }

  62% {
    transform: translate(13px, -1px) skew(-13deg);
  }

  63% {
    text-shadow: 0.8em 0 0 #f1f1f1, -0.8em 0 0 #000000;
  }
}

.text-glitch {
  position: relative;
}


.text-glitch.glitching {
  animation: glitch 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94) both infinite;
}



.image-aligner-center,
.image-aligner-left,
.image-aligner-right {
  perspective: 1200px;
}

.tilt-effect {
  transition: transform 0.1s ease-out;
  transform: scale(1.0);
  will-change: transform;
  border-radius: 4px;
}

.no-wrap {
  white-space: nowrap;
}

/* ===============================================================
 * === Sponsor me pls ==================================
 * ============================================================ */

@keyframes ticker-scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}


.sponsor-ticker-wrap {
    max-width: 70vw;  
    margin: 0 auto;   
    overflow: hidden;
    padding: 2rem 0;
    background-color: var(--color-background);
    border-top: 1px solid #dee2e6;
    margin-bottom: 2rem;
}


.sponsor-ticker {
    display: flex;
    width: fit-content;
    animation: ticker-scroll 40s linear infinite;
}

.sponsor-ticker-wrap:hover .sponsor-ticker {
    animation-play-state: paused;
}

.sponsor-item {
    flex-shrink: 0;
    width: 200px;
    margin: 0 2rem;
    display: flex;
    justify-content: center;
    align-items: center;
}

.sponsor-item img {
    max-width: 100%;
    height: auto;
    max-height: 100px;
}

/* ===============================================================
 * === Footer Socials ============================================
 * =============================================================== */

.footer-socials {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: nowrap; 
    gap: 0.5rem 1.5rem; 
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #dee2e6; 
    font-family: var(--font-family-body);
}

.footer-socials a {
    color: var(--color-muted);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-socials a:hover {
    color: var(--color-foreground);
    text-decoration: underline;
}

.footer-socials strong {
    color: var(--color-foreground);
    margin-right: -0.5rem; 
}