/* –––––––––––––––––––––––––––––– HEADER ––––––––––––––––––––––––––––––––  */
header {
  opacity: 0;
  transform: translateY(-40px);
  transition: transform 1s, opacity 1s;
  will-change: transform, opacity;
}

body.a-seq-none header,
body.a-seq-header header {
  opacity: 1;
  transform: translateY(0);
}

/* –––––––––––––––––––––––––––––– HERO SECTION ––––––––––––––––––––––––––––––––  */

#hero {
  padding-top: var(--spacing-header);
  min-height: 100vh;
  align-items: center;
}

#hero > .container {
  transform: translateY(calc(var(--p-ratio) * -30vh + 12vh));
  transition: transform 0.1s;
  will-change: transform;
}

#hero .hero-animated-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--c-accent-1);
  z-index: 0;
  transform-origin: top;
  transition: transform 0.6s;
  transition-timing-function: var(--cubic-bezier);
  will-change: transform;
}

body.a-seq-none #hero .hero-animated-background,
body.a-seq-bg-remove #hero .hero-animated-background {
  transform: scaleY(0);
}

#hero > .container {
  z-index: 1;
}

#hero .hero-bracket {
  display: inline-block;
  font-size: calc(var(--fs-hero-l) * 0.85);
  font-weight: 700;
  position: absolute;
  top: calc(50%);
  transform: translateY(-50%);
  width: calc(50% + 0.5em);
  height: 120%;
  pointer-events: none;
  overflow: hidden;
}

#hero .hero-bracket.left {
  left: -0.5em;
  text-align: left;
}

#hero .hero-bracket.right {
  left: 50%;
  text-align: right;
}

#hero .hero-bracket span {
  display: inline-block;
  position: absolute;
  top: 0.13em;
  left: 0;
  width: 100%;
  transform: translateX(0);
  opacity: 1;
  transition: transform 3s, opacity 4s;
  will-change: transform, opacity;
  transition-timing-function: cubic-bezier(0.6, 0.0, 0.8, 0.2);
}

body.a-seq-none #hero .hero-bracket.left span,
body.a-seq-squeeze #hero .hero-bracket.left span {
  transform: translateX(100%);
}

body.a-seq-none #hero .hero-bracket.right span,
body.a-seq-squeeze #hero .hero-bracket.right span {
  transform: translateX(-100%);
}

#hero .hero-animation {
  position: relative;
  white-space: nowrap;
  transform: translateY(0.025em);
  font-weight: 700;
  font-family: var(--font-primary);
}

#hero sup {
  vertical-align: top;
  font-family: var(--font-secondary);
  font-size: var(--fs-l);
  letter-spacing: var(--ls-m);
  font-weight: 500;
}

#hero .hero-animation sup {
  font-size: var(--fs-2xl);
  font-weight: 400;
  margin-top: 0.1em;
  display: inline-block;
}

#hero .hero-top,
#hero .hero-bottom {
  display: inline-block;
  opacity: 1;
  will-change: transform, opacity;
  transition: transform 1.35s, opacity 4.2s;
}

#hero .hero-top {
  transform: translateY(-60%);
}

body.a-seq-none #hero .hero-top,
body.a-seq-move-to-center #hero .hero-top {
  transform: translateY(0);
}

#hero .hero-bottom {
  transform: translateY(60%);
}

body.a-seq-none #hero .hero-bottom,
body.a-seq-move-to-center #hero .hero-bottom {
  transform: translateY(0);
}

#hero .hero-middle {
  display: inline-block;
  position: relative;
}

#hero .hero-middle-placeholder {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

#hero .hero-middle-left,
#hero .hero-middle-right {
  display: inline-block;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  overflow: hidden;
}

#hero .hero-middle-left {
  left: 0;
  width: 50%;
}

#hero .hero-middle-right {
  left: 50%;
  width: 50%;
}

#hero .hero-middle-left span,
#hero .hero-middle-right span {
  display: inline-block;
  white-space: nowrap;
  opacity: 0;
  transition: transform 1s, opacity 1s;
  will-change: transform, opacity;
}

#hero .hero-middle-left span {
  transform: translateX(50%);
}

body.a-seq-none #hero .hero-middle-left span,
body.a-seq-expand #hero .hero-middle-left span {
  opacity: 1;
  transform: translateX(0%);
}

#hero .hero-middle-right span {
  transform: translateX(-100%);
}

body.a-seq-none #hero .hero-middle-right span,
body.a-seq-expand #hero .hero-middle-right span {
  opacity: 1;
  transform: translateX(-50%);
}

#hero .hero-animation-wrapper {
  position: relative;
}

#hero #hero-animation-images {
  position: absolute;
  top: 15.5%;
  left: 50%;
  transform: translateX(-50%);
  width: 30%;
  height: 70%;
  background-color: #fec1c0;
  z-index: 1;
  clip-path: polygon(0% 0%, 100% 0%, 100% 100%, 0% 100%);
  transition: clip-path 0.4s ease-in-out;
}

body.a-seq-none #hero #hero-animation-images,
body.a-seq-squeeze-images #hero #hero-animation-images {
  clip-path: polygon(50% 0%, 50% 0%, 50% 100%, 50% 100%);
}

#hero #hero-animation-images img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 1;
  object-fit: cover;
  transition: opacity 0.2s var(--cubic-bezier);
  will-change: opacity;
}

#hero #hero-animation-images img.opacity-0 {
  opacity: 0;
}

body.a-seq-none #hero .hero-animated-background,
body.a-seq-none #hero .hero-bracket.left span,
body.a-seq-none #hero .hero-bracket.right span,
body.a-seq-none #hero #hero-animation-images,
body.a-seq-none #hero .hero-middle-left span,
body.a-seq-none #hero .hero-middle-right span,
body.a-seq-none #hero .hero-top,
body.a-seq-none #hero .hero-bottom {
  transition: all 0s;
}

#hero .forward-slash {
  --offset: 15%;
  font-family: var(--font-secondary);
  letter-spacing: 0;
  text-transform: none;

  position: absolute;
  width: auto;
  top: 48%;
}

body.a-seq-none #hero .forward-slash.left {
  --transition-delay: 0.6s !important;
}

body.a-seq-none #hero .forward-slash.right {
  --transition-delay: 0.9s !important;
}

#hero .forward-slash.left {
  right: calc(100% + var(--offset));
  transform: translateY(-50%);
}

#hero .forward-slash.right {
  left: calc(100% + var(--offset));
  transform: translateY(-50%);
}

@media screen and (max-width: 1850px) {
  #hero .forward-slash {
    --offset: 10%;
  }
}

@media screen and (max-width: 1250px) {
  #hero .forward-slash {
    --offset: 40px;
  }
}

@media screen and (max-width: 1100px) {
  #hero .forward-slash {
    display: none;
  }
}

@media screen and (max-width: 749px) {
  #hero .hero-top {
    transform: translateY(-120%);
  }

  #hero .hero-bottom {
    transform: translateY(120%);
  }

  #hero .hero-animation {
    font-size: calc(var(--fs-hero-l) * 1.2) !important;
  }

  #hero .hero-animation sup {
    font-size: var(--fs-xl) !important;
    margin-top: 0;
  }

  #hero #hero-animation-images {
    top: 0;
    height: 100%;
    width: 40%;
  }

  #hero .hero-bracket {
    width: 50%;
  }

  #hero .hero-bracket.left {
    left: 0
  }
}

#hero h1 {
  line-height: var(--lh-m);
  letter-spacing: -0.01em;
  font-weight: 400;
  font-family: var(--font-secondary);
}

#hero h1 sup {
  position: relative;
  top: 0.05em;
  font-weight: 400;
  font-size: 0.8em;
}

body.a-seq-none #hero h1 {
  transition-delay: 0.2s !important;
}
  
/* –––––––––––––––––––––––––––––– INTRO SECTION ––––––––––––––––––––––––––––––––  */

#intro > .max-container {
  position: relative;
  z-index: 1;
}

#intro .full-col-image {
  margin-left: min(40%, 250px);
}

#intro .full-col-image .image-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
}

#intro .full-col-image img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 1;
  visibility: visible;
}

@media screen and (max-width: 749px) {
  #intro .full-col-image {
    order: 2;
    width: 100%;
    height: 250px;
    margin: 0;
    padding: 0 var(--spacing-s) var(--spacing-l) var(--spacing-s);
    box-sizing: border-box;
  }
}

/* –––––––––––––––––––––––––––––– CLIENTS SECTION ––––––––––––––––––––––––––––––––  */

#clients {
  overflow: hidden;
}

#clients .hero-text-row {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 0.1em;
  line-height: 0.77;
}

#clients .hero-text-row.row-1 {
  transform: translateX(calc(var(--p-ratio) * -15vw + 1vw));
  will-change: transform;
}

#clients .hero-text-row.row-2 {
  transform: translateX(calc(var(--p-ratio) * 12vw - 10vw));
  will-change: transform;
}

#clients .hero-text-row.row-3 {
  transform: translateX(calc(var(--p-ratio) * -10vw + 10vw));
  will-change: transform;
}

#clients .hero-text-row > div:not(.long-text) {
  flex-shrink: 0;
}

#clients .hero-text-row > div:not(.long-text) span {
  font-family: var(--font-primary);
  font-size: var(--fs-hero-m);
  line-height: 0.77;
  text-transform: uppercase;
  white-space: nowrap;
  letter-spacing: -0.015em;
}

#clients .hero-text-row .long-text {
  display: inline-block;
  flex: 1;
  max-width: clamp(150px, calc(23vw + 12vh), 450px);
}

#clients .long-text {
  font-family: var(--font-secondary);
  font-size: var(--fs-m);
  line-height: var(--lh-s);
  white-space: normal;
  letter-spacing: var(--ls-s);
  text-transform: none;
}

#clients .long-text > p:last-child {
  margin-bottom: 0;
}

#clients .long-text sup {
  line-height: 0;
  top: 0.12em;
  position: relative;
}

@media screen and (max-width: 749px) {
  #clients {
    padding-bottom: var(--spacing-m);
  }
}

@media screen and (min-width: 750px) {
  #clients .hero-text-row.row-1 {
    transform: translateX(calc(var(--p-ratio) * -10vw));
  }
  
  #clients .hero-text-row.row-2 {
    transform: translateX(calc(var(--p-ratio) * 7vw));
  }
  
  #clients .hero-text-row.row-3 {
    transform: translateX(calc(var(--p-ratio) * -5vw));
  }
}

/* –––––––––––––––––––––––––––––– TICKER SECTION ––––––––––––––––––––––––––––––––  */

#ticker {
  padding: var(--spacing-s) 0; /* Add some vertical spacing */
  overflow: hidden;
}

.ticker-wrapper {
  overflow: hidden; /* Hide the overflowing content */
}

.ticker-content {
  display: flex;
  width: max-content; /* Ensure the container is wide enough for all items */
  will-change: transform; /* Optimize animation performance */
  filter: brightness(0) opacity(0.25);
}

.ticker-group {
  display: flex;
  padding-right: min(150px, 10vw);
  width: max-content; /* Ensure the container is wide enough for all items */
  gap: min(150px, 10vw); /* Gap between logos */
  animation: ticker-scroll 20s linear infinite; /* Adjust duration for speed */
}

.ticker-item {
  flex-shrink: 0; /* Prevent items from shrinking */
}

.ticker-item img {
  display: block; /* Remove extra space below image */
  width: min(100px, 10vw); /* Logo width */
  height: 40px; /* Logo height */
  object-fit: contain; /* Ensure logo aspect ratio is maintained */
}

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

/* –––––––––––––––––––––––––––––– ABOUT SECTION ––––––––––––––––––––––––––––––––  */

@media screen and (max-width: 749px) {
  #about {
    padding-top: var(--spacing-m);
  }
}




/* –––––––––––––––––––––––––––––– NEWS SECTION ––––––––––––––––––––––––––––––––  */

#news h2 {
  margin-bottom: 0.2em;
}

#news .category-content:not(.category-hide),
#news .cta-button:not(.button-hide) {
  animation: categoryFadeIn 0.3s ease forwards;
  will-change: opacity, transform;
}

#news .category-content.category-hide,
#news .cta-button.button-hide {
  display: none;
}

@keyframes categoryFadeIn {
  from {
      opacity: 0;
      transform: translateY(10px);
  }
  to {
      opacity: 1;
      transform: translateY(0);
  }
}

@media screen and (max-width: 749px) {
  #news-categories {
    display: grid;
    grid-template-columns: auto auto;
    gap: var(--spacing-2xs);
  }
}