:root {
  --bg-color: #ecf2f2;
  --text-color: #031a47;
  --line-color: #031a47;

  --row-height: 50px;
  --container-width: 1000px;
  --line-thickness: 4px;
  --title-size: 1.15rem;
  --project-size: 1.1rem;
}

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

html {
  font-size: 16px;
  background-color: var(--bg-color);  
  scrollbar-gutter: stable;  
}

body {
  margin: 0;
  background-color: var(--bg-color);
  color: var(--text-color);
  font-family: Arial, Helvetica, sans-serif;
}

.page {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 48px 0px 80px;
}

.footer {
  position: fixed;
  bottom: 0;
  width: 100%;
  max-width: var(--container-width);
  background-color: var(--bg-color);
  z-index: 10;
}

.footer-inner {
  max-width: var(--container-width);
  margin: 0px 0px 15px 0px;
  padding: 10px 0px;
  border-top: 1px solid var(--line-color);
  opacity: 0;
  animation: fadeInSection 2s ease forwards;
}

.hero {
  margin-top: 60px;
  margin-bottom: 70px;
  animation: fadeInSection 2s ease forwards;
}

.hero-intro {
  margin: 0 0 60px 0;
  font-size: 1.2rem;
  max-width: 100%;
  line-height: 1.4;
  opacity: 0;
  animation: fadeInSection 2s ease forwards;
}

.hero-intro a {
  color: var(--text-color);
}

.logo {
  display: block;
  width: 130px;
  max-width: 100%;
  height: auto;
}

.accordion {
  display: block;
  position: relative;
}

.accordion-item,
.accordion-title,
.accordion-content {
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.accordion-item {
  position: relative;
  border-top: none;
  opacity: 1;
  transform: none;
  --item-delay: 0ms;
}

/* línia superior */
.accordion-item::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--line-thickness);
  background: var(--line-color);
  z-index: 0;
  pointer-events: none;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  will-change: transform, opacity;
  transform: translate3d(0, 0, 0);
  opacity: 1;
}

.js .accordion-item::before {
  opacity: 0;
  transform: translate3d(0, 8px, 0);
}

.js .accordion-item.is-visible::before {
  animation: fadeInSection 0.55s ease forwards;
  animation-delay: var(--item-delay);
}

/* línia inferior (últim element) */
.accordion-item:last-of-type::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: var(--line-thickness);
  background: var(--line-color);
  z-index: 0;
  pointer-events: none;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  will-change: transform, opacity;
  transform: translate3d(0, 0, 0);
  opacity: 1;
}

.js .accordion-item:last-of-type::after {
  opacity: 0;
  transform: translate3d(0, 8px, 0);
}

.js .accordion-item.is-visible:last-of-type::after {
  animation: fadeInSection 0.55s ease forwards;
  animation-delay: var(--item-delay);
}

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

.accordion-title {
  display: flex;
  align-items: center;
  min-height: var(--row-height);
  width: 100%;
  list-style: none;
  cursor: pointer;
  padding: 0;
  margin: 0;
  border: 0;
  background: transparent;
  text-align: left;
  font-size: var(--title-size);
  font-weight: 800;
  line-height: 1;
  text-transform: uppercase;
  user-select: none;
  position: relative;
  z-index: 1;
  appearance: none;
  -webkit-appearance: none;
  color: var(--text-color);  
}

.accordion-title-text {
  display: inline-block;
  position: relative;
  z-index: 1;
  opacity: 1;
  transform: translateY(0);
  will-change: transform, opacity;
}

.js .accordion-title-text {
  opacity: 0;
  transform: translateY(8px);
}

.js .accordion-item.is-visible .accordion-title-text {
  animation: fadeInSection 0.55s ease forwards;
  animation-delay: var(--item-delay);
}

.accordion-content {
  padding: 0;
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.5s ease;
}

.accordion-spacer {
  height: var(--row-height);
  border-top: var(--line-thickness) solid var(--line-color);
}

.project-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.project-list li {
  border-top: var(--line-thickness) solid var(--line-color);
  min-height: var(--row-height);
  display: flex;
  align-items: center;
  opacity: 0;
  transform: translateY(6px);
  will-change: transform, opacity;
}

.accordion-item.is-open .project-list li {
  animation: fadeInItem 0.35s ease forwards;
}

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

.project-link {
  display: flex;
  align-items: center;
  width: 100%;
  min-height: var(--row-height);
  color: var(--text-color);
  text-decoration: none;
  font-size: var(--project-size);
  font-weight: 700;
  line-height: 1.15;
}

.project-link:hover,
.project-link:focus-visible {
  text-decoration: underline;
  outline: none;
}

p.info-mobile {
  font-size: 0.9rem;
  margin-left: 2px;
}

.toggle-all {
  position: absolute;
  top: -35px;
  right: 0;
  transform: none;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--text-color);
  font: inherit;
  font-size: 2rem;
  font-weight: 400;
  line-height: 1;
  cursor: pointer;
  z-index: 5;
  appearance: none;
  -webkit-appearance: none;
}

.toggle-all::before {
  content: "+";
}

.toggle-all.is-open::before {
  content: "−";
}

.toggle-all:hover,
.toggle-all:focus,
.toggle-all:focus-visible {
  outline: none;
}

.js .toggle-all {
  opacity: 0;
  transform: translateY(8px);
}

.js .accordion.is-visible .toggle-all {
  animation: fadeInSection 0.55s ease forwards;
  animation-delay: 600ms;
}

/* .space-height {
	width: 100%;
	margin-top: 50px;
	height: 30px;
	background-color: red;
} */

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.pc {
  display: block;
}

.mobile {
  display: none;
}


@media (max-width: 1920px) {
  .hero {
    margin-top: 10px;
    margin-bottom: 35px;
  }

.hero-intro {
  margin: 0 0 48px 0;
}

}	
	

/* mòbil */
@media (max-width: 768px) {
  :root {
    --row-height: 40px;
    --title-size: 1rem;
    --project-size: 0.9rem;
    --container-width: 90%;
    --line-thickness: 4px;
  }

  .page {
    padding: 32px 0px 56px;
  }

  .hero {
    margin-top: 15px;
    margin-bottom: 30px;
  }

  .hero-intro {
    margin: 0 0 35px 0;
    font-size: 0.9rem;
    max-width: 100%;
    line-height: 1.2;
  }
  
  .logo {
    width: 90px;
  }

  .toggle-all {
    font-size: 1.6rem;
  }

  .footer {
    position: fixed;
    bottom: 0;
    width: 90%;
    max-width: 100%;
    background-color: var(--bg-color);
  }

  .footer-inner {
    max-width: 100%;
    margin: 0px auto;
    padding: 5px 0px;
    border-top: 1px solid;
  }

  .pc {
    display: none;
  }

  .mobile {
    display: block;
  }
}