html {
  font-size: clamp(12px, 0.6vw + 8px, 24px);
}

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

:root {
  /* Colors: */
  --color-body-text: rgba(0, 0, 0, 1);
  --color-body-text-toned: rgba(0, 0, 0, 0.5);
  --color-body-text-transparent: rgba(0, 0, 0, 0);
  --color-body-background: rgba(255, 255, 255, 1);
  --color-body-background-toned: rgba(255, 255, 255, 0.5);
  --color-body-background-transparent: rgba(255, 255, 255, 0);
  --color-lightgrey: #ebebeb;
  --color-sand: #f0e1cf;
  --color-transparent-stroke: rgba(0, 0, 0, 0.1);

  /* Styles: */
  --radii-md: 0.5rem;
  --radii-button: 1000px;
  --background-blur-lg: blur(2rem);
  --transition-time: 0.3s;
  --stroke-width: 1px;

  /* Sizes: */
  --height-button: 2.5rem;

  /* Spacing: */
  --spacing-2xs: 0.5rem;
  --spacing-xs: 1rem;
  --spacing-sm: 1.5rem;
  --spacing-md: 2rem;
  --spacing-lg: 2.5rem;
  --spacing-xl: 3rem;
  --spacing-2xl: 4rem;

  /* Font sizes: */
  --font-size-cannes: 11.5rem;
  --font-size-h1: 4rem;
  --font-size-h2: 2.5rem;
  --font-size-h3: 1.8rem;
  --font-size-h4: 1.2rem;
  --font-size-p: 0.875rem;
  --font-size-btn: 0.75rem;
}

html,
body {
  color: var(--color-body-text);
  background-color: var(--color-body-background);
  scroll-behavior: smooth;
  margin: 0;
  padding: 0;
}

/* TYPOGRAPHY */
body {
  font-family: "Urbanist", sans-serif;
  font-optical-sizing: auto;
  font-weight: normal;
  font-style: normal;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  letter-spacing: 0.02em;
}
h1,
h2,
h3,
h4,
h5,
p {
  margin: 0;
  padding: 0;
}
h1,
.size-h1 {
  font-size: var(--font-size-h1);
  line-height: 1.1;
  font-weight: normal;
}
h2,
.size-h2 {
  font-size: var(--font-size-h2);
  line-height: 1.2;
}
h2 {
  font-weight: 500;
}
h3,
.size-h3 {
  font-size: var(--font-size-h3);
  line-height: 1.3;
}
h3 {
  font-weight: 500;
}
h4,
.size-h4 {
  font-size: var(--font-size-h4);
  line-height: 1.5;
}
h4 {
  font-weight: 500;
  letter-spacing: 0.5em;
  text-transform: uppercase;
}
.small-title {
  font-weight: normal;
  font-size: var(--font-size-h3);
  letter-spacing: 0.5em;
  text-transform: uppercase;
  line-height: 1;
}
h5 {
  font-size: var(--font-size-p);
  font-weight: 500;
  line-height: 1.5;
}
p {
  font-size: var(--font-size-p);
  line-height: 1.6;
  text-align: justify;
}
p.opaque {
  opacity: 0.65;
}
p.size-sm {
  font-size: 1rem;
  line-height: 1.7;
}
p.size-md {
  font-size: 1.25rem;
  line-height: 1.5;
}
p.size-lg {
  font-size: 1.75rem;
  line-height: 1.5;
}
p.size-xl {
  font-size: 2.5rem;
  max-width: 30em;
}
a {
  text-decoration: none;
  color: inherit;
}
.cannes {
  font-family: "MADE Cannes";
  letter-spacing: 0;
  line-height: 0.8;
  font-size: var(--font-size-cannes);
  text-transform: lowercase;
}
sup {
  font-size: 0.5em;
  font-weight: 700;
}

/* REUSED STYLES */
.material-symbols-outlined {
  font-variation-settings: "FILL" 0, "wght" 100, "GRAD" 0, "opsz" 48;
}
.esterel-logo-container {
  display: block;
}
.esterel-logo {
  width: auto;
  height: 4.5rem;
}
.esterel-logo > * {
  fill: var(--color-body-background);
}
.invert-colors {
  background-color: var(--color-body-text);
  color: var(--color-body-background);
}
.color-lightgrey {
  background-color: var(--color-lightgrey);
}
.color-sand {
  background-color: var(--color-sand);
}
img {
  border: none;
}
img.article-img {
  border-radius: var(--radii-md);
  object-fit: cover;
}

/* HEADER */
header {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 100;
  mix-blend-mode: difference;
}
.logo-area {
  position: fixed;
  top: var(--spacing-lg);
  right: var(--spacing-lg);
  z-index: 10;
  display: flex;
  align-items: center;
  gap: var(--spacing-lg);
}
.nav-expander {
  background-color: var(--color-body-background);
  width: 4rem;
  height: 4rem;
  overflow: hidden;
  border-radius: var(--radii-button);
  cursor: pointer;
  position: relative;
}
.nav-expander span {
  height: var(--stroke-width);
  width: 50%;
  background-color: var(--color-body-text);
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  margin: auto;
  transition: all var(--transition-time);
  transform-origin: center center;
}
.nav-expander span:nth-child(1) {
  transform: translateY(-0.5rem);
}
.nav-expander span:nth-child(3) {
  transform: translateY(0.5rem);
}
.nav-expanded .nav-expander span:nth-child(1) {
  transform: translateY(0) rotate(45deg);
}
.nav-expanded .nav-expander span:nth-child(3) {
  transform: translateY(0) rotate(-45deg);
}
.nav-expanded .nav-expander span:nth-child(2) {
  transform: scaleX(0);
}
.nav-container {
  position: fixed;
  z-index: 5;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  margin: auto;
  background-color: rgba(0, 0, 0, 0.8);
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
  padding: var(--spacing-2xl) 15%;
  align-items: flex-start;
  justify-content: center;
  -webkit-backdrop-filter: var(--background-blur-lg);
  backdrop-filter: var(--background-blur-lg);
  transition: all var(--transition-time);
  /* Hiding the nav */
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
}
.nav-container nav {
  width: fit-content;
  max-width: 100%;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
}
.nav-container nav .some-icons {
  display: flex;
  flex-direction: row;
  gap: var(--spacing-md);
  margin-top: var(--spacing-xs);
}
.nav-container nav a {
  font-weight: 600;
  font-size: var(--font-size-h1);
  text-transform: uppercase;
  letter-spacing: 0.2em;
  cursor: pointer;
  color: var(--color-body-background);
  line-height: 1.5;
}
@media screen and (max-width: 1000px) {
  .nav-container nav a {
    font-size: var(--font-size-h2);
    line-height: 2.5;
  }
}
@media (hover: hover) {
  .nav-container nav a {
    transition: all var(--transition-time);
  }
  .nav-container nav:hover a {
    -webkit-filter: blur(0.25rem);
    filter: blur(0.25rem);
  }
  .nav-container nav:hover a:hover,
  .nav-container nav a:hover {
    -webkit-filter: blur(0);
    filter: blur(0);
  }
}
.nav-expanded {
  overflow: hidden;
}
.nav-expanded header {
  mix-blend-mode: unset;
}
.nav-expanded .nav-container {
  visibility: visible;
  opacity: 1;
  pointer-events: unset;
}

/* SECTIONS */
section {
  position: relative;
  overflow: hidden;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  padding: var(--spacing-2xl);
  align-items: center;
  justify-content: center;
  background-position: 50% 50%;
  background-size: cover;
  background-repeat: no-repeat;
}
section.full-height {
  min-height: 100svh;
}
section.extra-padding {
  padding-top: 13%;
  padding-bottom: 13%;
  gap: 13vh;
}
section.hero {
  justify-content: flex-end;
  align-items: flex-start;
}
.hero-slides {
  position: absolute;
  z-index: 1;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  margin: auto;
}
.hero-slides .slide {
  position: absolute;
  z-index: 1;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  margin: auto;
  background-size: cover;
  background-position: 50% 50%;
}
section.cover .inner {
  text-align: center;
  width: 100%;
  gap: var(--spacing-lg);
}
section.cover .inner .cannes {
  font-size: 29vw;
}
section.cover .inner h4 {
  font-size: 3vw;
  font-weight: 600;
}
@media screen and (max-width: 1000px) {
  section.cover .inner h4 {
    font-size: 4vw;
    font-weight: 600;
  }
}
section.cover .button {
  position: absolute;
  bottom: var(--spacing-xl);
}
.inner {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-2xl);
  width: 54rem;
  max-width: 100%;
  box-sizing: border-box;
  position: relative;
  z-index: 10;
}
.hero .inner {
  gap: var(--spacing-lg);
  width: 48rem;
}

/* COLUMNS */
div.columns {
  display: flex;
  flex-direction: row;
  gap: var(--spacing-2xl);
}
div.column {
  display: flex;
  flex-direction: column;
  flex-basis: 50%;
  gap: var(--spacing-2xl);
}
@media screen and (max-width: 1000px) {
  div.columns {
    flex-direction: column;
  }
  div.column {
    flex-basis: 100%;
  }
}

/* BUTTONS */
.button {
  display: flex;
  flex-direction: row;
  text-decoration: none;
  font-weight: 600;
  font-size: var(--font-size-btn);
  text-transform: uppercase;
  letter-spacing: 0.2em;
  border-width: var(--stroke-width);
  border-style: solid;
  border-color: var(--color-body-text);
  width: fit-content;
  box-sizing: border-box;
  height: var(--height-button);
  padding-inline: var(--spacing-sm);
  align-items: center;
  border-radius: var(--radii-button);
  cursor: pointer;
  overflow: hidden;
  position: relative;
  gap: var(--spacing-xs);
}
.button .icon {
  font-size: calc(var(--font-size-btn) * 3);
  margin-inline: -0.3em;
}
.button > * {
  position: relative;
  z-index: 2;
}
.invert-colors .button {
  border-color: var(--color-body-background);
}
@media (hover: hover) {
  .button {
    transition: all var(--transition-time);
  }
  .button:hover {
    color: var(--color-body-background);
  }
  .invert-colors .button:hover {
    color: var(--color-body-text);
  }
  .button::after {
    display: block;
    position: absolute;
    content: "";
    z-index: 1;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    margin: auto;
    background-color: var(--color-body-text);
    transform: translateY(100%);
    transition: var(--transition-time) all;
  }
  .invert-colors .button::after {
    background-color: var(--color-body-background);
  }
  .button:hover::after {
    transform: translateY(0%);
  }
}

/* IMAGES */
.image-container {
  display: block;
  position: relative;
  overflow: hidden;
  background-color: var(--color-body-text);
  width: 10rem;
  height: 10rem;
  border-radius: var(--radii-md);
  background-position: 50% 50%;
  background-size: cover;
  background-repeat: no-repeat;
}
.image-container img {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  margin: auto;
  object-fit: cover;
}
.image-container.image-01 {
  width: 200%;
  height: 26rem;
  margin-left: -100%;
}
.image-container.image-02 {
  width: 200%;
  height: 26rem;
  margin-right: -100%;
}
.image-container.image-03 {
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
}
@media screen and (max-width: 1000px) {
  .image-container.image-01 {
    width: 130%;
    height: 18rem;
    margin-left: -40%;
  }
  .image-container.image-02 {
    width: 130%;
    height: 18rem;
    margin-left: 20%;
    margin-right: auto;
  }
  .image-container.image-03 {
    width: 50%;
    height: auto;
    aspect-ratio: 1 / 1;
  }
}

/* FOOTER */
footer {
  text-align: center;
  position: relative;
  overflow: hidden;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: var(--spacing-lg);
  padding: var(--spacing-2xl);
  align-items: center;
  justify-content: center;
}
.footer-nav {
  display: flex;
  flex-direction: row;
  gap: var(--spacing-xs);
  align-items: center;
}
footer .icon-link {
  display: block;
  line-height: 0.8;
  padding: 0.25rem;
  margin-inline: -0.1rem;
}
footer .icon-link ion-icon {
  width: 1.1rem;
  height: 1.1rem;
}
@media screen and (max-width: 1000px) {
  .footer-nav {
    flex-wrap: wrap;
    justify-content: center;
    flex-direction: column;
    gap: var(--spacing-xs);
  }
}

/* CUSTOM SECTIONS */
/* Cards */
.card {
  background-color: var(--color-body-text);
  color: var(--color-body-background);
  border-radius: var(--radii-md);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: flex-start;
  box-sizing: border-box;
  padding: var(--spacing-lg);
  position: relative;
  overflow: hidden;
  background-size: cover;
  background-position: 50% 50%;
}
.card .project-logo {
  height: 9%;
  max-height: 2.2rem;
  width: auto;
  position: relative;
  z-index: 10;
}
@media screen and (max-width: 1000px) {
  .card .project-logo {
    height: 9%;
    max-height: 2.8rem;
  }
  .card {
    padding: var(--spacing-sm);
  }
}
.card .card-bg {
  position: absolute;
  z-index: 1;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  margin: 0;
  height: 100%;
  width: 100%;
  object-fit: cover;
}
@media (hover: hover) {
  .card .card-bg {
    transition: all var(--transition-time);
    transform: scale(1);
  }
  .card:hover .card-bg {
    transform: scale(1.025);
  }
}
.card::after {
  display: block;
  content: "";
  position: absolute;
  z-index: 2;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  margin: 0;
  height: 100%;
  width: 100%;
  background: var(--color-body-text-toned);
  background: linear-gradient(
    10deg,
    rgba(0, 0, 0, 0.7) 0%,
    rgba(0, 0, 0, 0.1) 70%
  );
}
@media (hover: hover) {
  .card::after {
    transition: all var(--transition-time);
    opacity: 1;
  }
  .card:hover::after {
    opacity: 0.5;
  }
}

/* Stacked cards */
.stacked-cards-container {
  padding-top: 0;
  padding-bottom: 13%;
}
.stacked-cards {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  justify-content: center;
  width: 54rem;
  max-width: 100%;
  box-sizing: border-box;
}
.stacked-cards .card {
  width: 44%;
  aspect-ratio: 3 / 4;
  margin-inline: -5%;
}
.stacked-cards .card:nth-child(1) {
  margin-top: 40%;
  z-index: 1;
}
.stacked-cards .card:nth-child(2) {
  margin-top: 20%;
  z-index: 2;
}
.stacked-cards .card:nth-child(3) {
  margin-top: 0%;
  z-index: 3;
}
@media screen and (max-width: 1000px) {
  .stacked-cards-container {
    padding: 0;
    width: 100%;
    overflow: auto;
    display: block;
  }
  .stacked-cards {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    justify-content: flex-start;
    justify-items: flex-start;
    width: max-content;
    max-width: unset;
    box-sizing: border-box;
    gap: var(--spacing-lg);
    padding: var(--spacing-2xl);
  }
  .stacked-cards .card {
    width: 50vw;
    aspect-ratio: 3 / 4;
    margin-inline: 0;
  }
  .stacked-cards .card:nth-child(1) {
    margin-top: 0%;
  }
  .stacked-cards .card:nth-child(2) {
    margin-top: 0%;
  }
  .stacked-cards .card:nth-child(3) {
    margin-top: 0%;
  }
}

/* Big cards */
.big-cards-section {
  justify-content: space-between;
  justify-items: stretch;
  align-items: stretch;
  gap: var(--spacing-2xl);
}
.big-cards {
  display: flex;
  flex-direction: row;
  gap: var(--spacing-sm);
  flex-grow: 2;
}
.big-cards .card {
  flex-basis: 33%;
}
@media screen and (max-width: 1000px) {
  .big-cards {
    flex-direction: column;
    padding-top: calc(var(--spacing-2xl) * 2.5);
  }
  .big-cards .card {
    flex-basis: 100%;
    flex-grow: 2;
  }
  .small-title {
    display: none;
  }
}

/* Gallery */
.gallery {
  display: grid;
  width: 100%;
  grid-template-columns: 1fr 1fr 1fr;
  gap: var(--spacing-sm);
  padding-top: var(--spacing-xl);
}
.gallery-item img {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  margin: auto;
  object-fit: cover;
}
.gallery-item {
  background-color: var(--color-body-text);
  color: var(--color-body-background);
  border-radius: var(--radii-md);
  display: block;
  position: relative;
  overflow: hidden;
  background-size: cover;
  background-position: 50% 50%;
  height: 30rem;
  max-height: 60svh;
}
.gallery-item:nth-child(1) {
  grid-column-end: span 2;
}
.gallery-item:nth-child(4) {
  grid-column-end: span 2;
}
.gallery-item:nth-child(5) {
  grid-column-end: span 3;
}
.gallery-item:nth-child(6) {
  grid-column-end: span 2;
}
.gallery-item:nth-child(9) {
  grid-column-end: span 2;
}
.gallery-item:nth-child(10) {
  grid-column-end: span 3;
}

/* Special text styles */
.fit-to-width-gallery {
  width: 100%;
  font-size: 45vw;
  line-height: 0.75;
  margin-left: -0.13em;
}
@media screen and (max-width: 1000px) {
  .fit-to-width-gallery {
    font-size: 42vw;
  }
  .gallery {
    display: flex;
    flex-direction: column;
  }
  .gallery-item {
    height: 30rem;
    max-height: 35svh;
  }
}

/* Fact box */
.fact-box {
  background-color: var(--color-lightgrey);
  border-radius: var(--radii-md);
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr;
  padding-block: var(--spacing-sm);
}
.fact-box .fact {
  text-align: center;
  border-right: var(--stroke-width) solid var(--color-transparent-stroke);
  padding-inline: var(--spacing-sm);
}
.fact-box .fact:last-child {
  border: none;
}
.fact-box .fact > p,
.fact-box .fact > * {
  text-align: center;
}
@media screen and (max-width: 1000px) {
  .fact-box {
    grid-template-columns: 1fr 1fr;
    padding-block: 0;
    padding-inline: var(--spacing-sm);
  }
  .fact-box .fact {
    border-right: none;
    padding-inline: 0;
    padding-block: var(--spacing-sm);
    border-bottom: var(--stroke-width) solid var(--color-transparent-stroke);
  }
  .fact-box .fact:nth-child(3) {
    border: none;
  }
}

/* Misc. custom styles */
.reach-out-img {
  position: absolute;
  width: 55rem;
  max-width: 100vw;
  left: 54%;
  top: 0;
  bottom: 0;
  margin: auto;
  z-index: 1;
}
@media screen and (max-width: 1000px) {
  .reach-out-img {
    width: 40rem;
    max-width: 80vw;
    left: 48%;
    top: -15%;
    bottom: auto;
  }
}

@media screen and (max-width: 1000px) {
  .push-from-top,
  section.push-from-top,
  section.extra-padding.push-from-top {
    padding-top: calc(var(--spacing-2xl) * 4);
  }
}
@media screen and (max-width: 600px) {
  :root {
    /* Spacing: */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1.5rem;
    --spacing-md: 1.75rem;
    --spacing-lg: 2rem;
    --spacing-xl: 2rem;
    --spacing-2xl: 2.5rem;

    /* Sizes: */
    --height-button: 3.2rem;

    /* Font sizes: */
    --font-size-cannes: 7rem;
    --font-size-h1: 3rem;
    --font-size-h2: 2rem;
    --font-size-h3: 1.5rem;
    --font-size-h4: 1.2rem;
    --font-size-p: 1rem;
    --font-size-btn: 1rem;
  }
}
