@font-face {
  font-family: 'Arkhip';
  src: url('../fonts/Arkhip.woff2') format('woff2'),
    url('../fonts/Arkhip.woff') format('woff');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Brown';
  src: url('../fonts/Brown-Light.woff2') format('woff2'),
    url('../fonts/Brown-Light.woff') format('woff');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Brown';
  src: url('../fonts/Brown-Regular.woff2') format('woff2'),
    url('../fonts/Brown-Regular.woff') format('woff');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}


:root {
  --page-padding: 60px;
  --text-color: #3C3C3B;
}

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

html,
body {
  margin: 0;
  min-height: 100%;
  font-size: 62.5%;
}

body {
  font-family: 'Brown';
  font-size: 2.4rem;
  line-height: 3.2rem;
  color: var(--text-color);
  background: url("../img/bg-iridescent.jpg") top center / cover no-repeat;
  overflow-x: hidden;
}

body,
a,
button,
[role="button"],
input,
textarea,
select,
label {
  cursor: none !important;
}

.custom-cursor {
  position: fixed;
  width: 30px;
  height: 30px;
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
}

a,
button,
[role="button"] {
  cursor: url('../img/hand-cursor.png') 10 4, pointer;
}

/* =========================
   ANIMATION 
========================= */
.reveal-words .word {
  display: inline-block;
  overflow: hidden;
  vertical-align: top;
}

.reveal-words .word .word-inner {
  display: inline-block;
  transform: translateY(110%);
  will-change: transform;
}

.reveal-lines .line {
  display: block;
  overflow: hidden;
}

.reveal-lines .line .line-inner {
  display: inline-block;
  transform: translateY(110%);
  opacity: 0;
  will-change: transform, opacity;
}

/* =========================
   HERO
========================= */

.hero {
  position: relative;
  min-height: 100vh;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero__top {
  position: absolute;
  top: var(--page-padding);
  left: var(--page-padding);
  right: var(--page-padding);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: start;
  z-index: 3;
}

.hero__logo {
  grid-column: 2;
  justify-self: center;
  display: inline-flex;
}

.hero__logo img {
  display: block;
  width: 170px;
  max-width: 100%;
  height: auto;
}

.hero__menu {
  grid-column: 3;
  justify-self: end;
  appearance: none;
  border: 0;
  background: transparent;
  padding: 0;
  font-family: 'Arkhip';
  font-size: 2rem;
  color: var(--text-color);
  cursor: pointer;
}

.hero__3d {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.hero__3d canvas {
  width: min(620px, 80vw) !important;
  height: min(620px, 80vw) !important;
  display: block;
}

.hero__marquee {
  position: relative;
  z-index: 2;
  width: 100vw;
  overflow: hidden;
}

.hero__marquee-track {
  display: flex;
  width: max-content;
  animation: marqueeScroll 24s linear infinite;
}

.hero__marquee-group {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.hero__marquee-item {
  display: flex;
  align-items: center;
  gap: 34px;
  padding-right: 34px;
  flex-shrink: 0;
}

.hero__marquee-item img {
  display: block;
  height: auto;
}

.hero__marquee-item img:first-child,
.hero__marquee-item img:last-child {
  width: auto;
  height: 48px;
}

@keyframes marqueeScroll {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}

@media (max-width: 900px) {
  :root {
    --page-padding: 30px;
  }

  .hero__logo img {
    width: 140px;
  }

  .hero__marquee-item {
    gap: 20px;
    padding-right: 50px;
  }

  .hero__marquee-item img:first-child,
  .hero__marquee-item img:last-child {
    height: 30px;
  }
}

/* =========================
   SECTIONS
========================= */

.centered {
  text-align: center;
}

.small-heading {
  font-family: 'Brown';
  font-weight: 300;
  font-size: 2rem;
  text-transform: uppercase;
  margin-bottom: 7.8rem;
}

.work .small-heading {
  margin-bottom: 4.8rem;
}

.big-heading {
  font-family: 'Arkhip';
  font-size: 26rem;
  line-height: 30rem;
  text-transform: uppercase;
  margin: 0;
}

.about {
  position: relative;
  z-index: 2;
  padding: 31rem 6rem 34.2rem;
}

.about p {
  font-family: 'Arkhip';
  font-size: 4.8rem;
  line-height: 6.4rem;
  text-transform: uppercase;
  max-width: 132rem;
  margin: auto;
}

.stars {
  margin: 19rem 0;
  display: flex;
  justify-content: center;
  gap: 2.2rem;
}

.stars img {
  width: 4rem;
  height: auto;
}

.floating-block {
  position: relative;
}

.floating-curve {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  overflow: visible;
}

.floating-curve-svg {
  position: absolute;
  top: 54rem;
  width: 100%;
  height: auto;
  padding: 6rem;
  overflow: visible;
}

.floating-curve-text {
  fill: #3c3c3b;
  font-family: 'Brown';
  font-size: 6rem;
  font-weight: 300;
  text-transform: uppercase;
}

.curve-star-svg {
  opacity: 1;
}

.services {
  position: relative;
  z-index: 2;
  padding: 22rem 4rem 34.2rem;
}

.services .small-heading {
  text-align: center;
  margin-bottom: 70px;
}

.accordion {
  max-width: 118rem;
  margin: 0 auto;
  border-top: 2px solid var(--text-color);
}

.accordion-item {
  overflow: hidden;
  border-bottom: 2px solid var(--text-color);
}

.accordion-trigger {
  width: 100%;
  padding: 3rem 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  background: transparent;
  border: 0;
  cursor: pointer;
  text-align: left;
  color: inherit;
  font: inherit;
  transform: translateY(40px);
  opacity: 0;
  will-change: transform, opacity;
}

.accordion-left {
  display: flex;
  align-items: center;
  gap: 2.4rem;
}

.accordion-icon {
  width: 6rem;
  height: auto;
  object-fit: contain;
  flex-shrink: 0;
}

.accordion-title {
  font-size: 2.4rem;
  line-height: 3.2rem;
  text-transform: uppercase;

  background: linear-gradient(120deg,
      #111 0%,
      #111 40%,
      #aaa 48%,
      #fff 50%,
      #aaa 52%,
      #111 60%,
      #111 100%);
  background-size: 230% 100%;
  background-position: 100% 0;

  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;

  transition: background-position 1.4s ease;
}

.accordion-trigger:hover .accordion-title {
  background-position: 0% 0;
}

.accordion-panel {
  height: 0;
  overflow: hidden;
}

.accordion-panel-inner {
  padding: 0 0 2.4rem 8.6rem;
  max-width: 100rem;
}

.accordion-text {
  margin: 0;
}

.accordion-text .line {
  display: block;
  overflow: hidden;
}

.accordion-text .line .line-inner {
  display: inline-block;
  transform: translateY(110%);
  opacity: 0;
  will-change: transform, opacity;
}

@media (max-width: 900px) {
  .services {
    padding: 120px 24px;
  }

  .accordion-trigger {
    padding: 22px 0;
    align-items: flex-start;
  }

  .accordion-left {
    gap: 14px;
  }

  .accordion-icon {
    width: 22px;
    height: 22px;
  }

  .accordion-panel-inner {
    padding: 0 0 24px 36px;
  }
}

.carousel-section {
  padding-bottom: 20rem;
  overflow: hidden;
}

.slider {
  position: relative;
  width: 100%;
  overflow: hidden;
  height: 42vw;
  /* hauteur max du slide central */
}

.slider__track {
  display: flex;
  align-items: flex-end;
  gap: 30px;
  height: 100%;
  will-change: transform;
  transition: transform 1.2s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.slider__item {
  flex: 0 0 auto;
  width: 32vw;
  height: 32vw;
  opacity: 0.72;
  transition:
    width 1.2s cubic-bezier(0.22, 0.61, 0.36, 1),
    height 1.2s cubic-bezier(0.22, 0.61, 0.36, 1),
    opacity 0.8s ease;
  will-change: width, height, opacity;
}

.slider__item.is-active {
  width: 42vw;
  height: 42vw;
  opacity: 1;
}

.slider__inner {
  width: 100%;
  height: 100%;
  overflow: hidden;
}

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

@media (max-width: 900px) {
  .slider {
    height: 72vw;
  }

  .slider__item {
    width: 56vw;
    height: 56vw;
  }

  .slider__item.is-active {
    width: 72vw;
    height: 72vw;
  }
}

.work {
  padding: 20rem 6rem;
}

.work__frame {
  position: relative;
  width: 100%;
  min-height: 70rem;
  border-radius: 8rem;
  overflow: hidden;
  background: url("../img/work-bg.png") center / contain no-repeat;
}

.work__content {
  position: relative;
  z-index: 3;
  padding: 10rem;
  color: #fff;
}

.work__content p {
  max-width: 97.8rem;
  margin: auto;
}

/* .border-glow {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  z-index: 2;


  background: conic-gradient(
    from 0deg,
    rgba(255,255,255,0.2),
    rgba(180,220,255,0.6),
    rgba(255,200,220,0.6),
    rgba(255,240,180,0.5),
    rgba(180,220,255,0.6),
    rgba(255,255,255,0.2)
  );


  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;

  padding: 6px;

  animation: rotateBorder 6s linear infinite;

  filter: blur(1.5px) saturate(120%);
}

@keyframes rotateBorder {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}  */

.client p {
  font-family: 'Arkhip';
  font-size: 3.4rem;
  line-height: 4.8rem;
  text-transform: uppercase;
  max-width: 118.6rem;
  margin: auto;
}

.footer {
  color: #fff;
  background: url("../img/footer-bg.png") top center / cover no-repeat;
}

.footer__wrapper {
  padding: 66rem 10.6rem 0;
}

.footer h2 {
  font-family: 'Arkhip';
  font-size: 8rem;
  line-height: 8rem;
  text-transform: uppercase;
  margin: auto;
}

.footer__wrapper-col {
  display: flex;
  gap: 14.6rem;
  margin-top: 7.2rem;
  padding-bottom: 16rem;
}

.footer__col {
  max-width: 48rem;
}

.footer__col h3 {
  font-size: 2.4rem;
  line-height: 3.2rem;
  font-weight: normal;
  text-transform: uppercase;
}

.footer__col p {
  font-weight: 300;
}

.footer__email a {
  display: flex;
  justify-content: space-between;
  font-size: 2rem;
  text-transform: uppercase;
  color: #fff;
  text-decoration: none;
  border-top: 1px solid #fff;
  border-bottom: 1px solid #fff;
  padding: 2.4rem 0;
}

.bottom-footer {
  position: relative;
  max-width: 50rem;
  margin-left: auto;
  padding: 0 10.6rem 6.4rem;
}

.legals {
  margin-top: 3.2rem;
}

.bottom-footer a {
  color: #fff;
  font-size: 1.8rem;
  line-height: 2.6rem;
  font-weight: 300;
  text-decoration: none;
}

.footer__3d {
  position: relative;
  width: 12rem;
  height: 12rem;
  flex: 0 0 12rem;
  margin: auto;
  pointer-events: none;
}

.footer__3d canvas {
  display: block;
  width: 100%;
  height: 100%;
}

.footer__email a:hover img {
  -webkit-animation: slide-right .8s cubic-bezier(0.455, 0.030, 0.515, 0.955) infinite both;
  animation: slide-right .8s cubic-bezier(0.455, 0.030, 0.515, 0.955) infinite both;
}

@-webkit-keyframes slide-right {
  0% {
    -webkit-transform: translateX(-10px);
    transform: translateX(-10px);
  }

  100% {
    -webkit-transform: translateX(0);
    transform: translateX(0);
  }
}

@keyframes slide-right {
  0% {
    -webkit-transform: translateX(-10px);
    transform: translateX(-10px);
  }

  100% {
    -webkit-transform: translateX(0);
    transform: translateX(0);
  }
}

.pinned-story {
  position: relative;
  height: 100vh;
  /* important pour avoir de la matière au scroll */
}

.pinned-story__inner {
  position: relative;
  height: 100vh;
  padding: 6rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.pinned-story__title {
  position: absolute;
  top: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  width: max-content;
}

.pinned-story__title img {
  display: block;
  width: 100vw;
  height: auto;
}

.pinned-story__content {
  position: relative;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 12rem;
}

.pinned-story__text {
  position: absolute;
  inset: auto 0 auto 0;
  margin: 0 auto;
  max-width: 110rem;
  font-size: 3.4rem;
  line-height: 4.8rem;
  text-align: center;
  opacity: 0;
  transform: translateY(40px);
  will-change: transform, opacity;
}

/* WORK PAGE */

.page-header {
  padding: 6rem;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: start;
  width: 100%;
}

.page-header__logo {
  grid-column: 2;
  justify-self: center;
  display: inline-flex;
}

.work-page {
  padding: 18rem 2.4rem 0;
}

.work-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.work-title {
  margin: 0 0 3rem;
  font-family: 'Arkhip', sans-serif;
  font-size: 26rem;
  line-height: 26rem;
  text-transform: uppercase;
  text-align: center;
  font-weight: 400;
}

.work-filters {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2.8rem;
  margin-bottom: 4rem;
}

.work-filters__primary,
.work-filters__secondary {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.8rem 1.2rem;
}

.work-filters__secondary {
  min-height: 2.8rem;
}

.work-filters__secondary.is-hidden {
  display: none;
}

.filter-chip {
  font-size: 2rem;
  border: 2px solid var(--text-color);
  background: transparent;
  color: var(--text-color);
  text-transform: uppercase;
  border-radius: 999px;
  padding: 0.8rem 1.2rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  transition: all 0.3s ease;
}

/* icônes */
.filter-chip__icon,
.filter-chip__chevron {
  display: flex;
  align-items: center;
  justify-content: center;
}

.filter-chip__icon svg {
  width: auto;
  height: 22px;
}

.filter-chip__chevron svg {
  width: 12px;
  height: 12px;
}

/* état actif */
.filter-chip.is-active {
  color: #3c3c3b;
  border-color: #3c3c3b;
}

/* animation chevron */
.filter-chip__chevron {
  transition: transform 0.3s ease;
}

.filter-chip.is-active .filter-chip__chevron {
  transform: rotate(-180deg);
}

.subfilter-chip {
  border: 0;
  padding: 0;
  border-radius: 0;
  background: transparent;
  font-size: 2rem;
  color: var(--text-color);
}

.filter-chip.is-active {
  color: #fff;
  background: var(--text-color);
}

.work-grid-section {
  padding-top: 2rem;
  padding-bottom: 20rem;
}

.work-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1.6rem;
  grid-auto-flow: dense;
}

.work-card {
  overflow: hidden;
  background: #3a3a3a;
}

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

/* largeur */
.span-4 {
  grid-column: span 4;
}

.span-8 {
  grid-column: span 8;
}

/* hauteurs */
.h-sm {
  min-height: 18rem;
}

.h-md {
  min-height: 28rem;
}

.h-lg {
  min-height: 38rem;
}

@media (max-width: 900px) {
  .work-page {
    padding-top: 14rem;
  }

  .work-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .span-4,
  .span-8 {
    grid-column: span 2;
  }

  .h-sm,
  .h-md,
  .h-lg {
    min-height: 24rem;
  }
}