/* ==========================================================================
   paoperrim — portfolio
   Tipografia: Google Sans Code
   ========================================================================== */

:root {
  --black: #151515;
  --cream: #fffbea;
  --gray-placeholder: #d9d9d9;
  --gray-text: #9a9a9a;
  --gray-body: #333333;
  --white: #ffffff;
  --max-width: 1100px;
  --gutter: 40px;
  --font-regular: "Google Sans Code", monospace;
  --font-narrow: Arial, Helvetica, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  -webkit-font-smoothing: antialiased;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-regular);
  color: var(--black);
  background: var(--white);
}

a {
  color: inherit;
}

img,
video {
  max-width: 100%;
  display: block;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* --------------------------------------------------------------------------
   Inner page header (icon + nav)
   -------------------------------------------------------------------------- */

.page-header {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 128px;
  padding: 24px var(--gutter);
}

.page-header-logo-link {
  display: inline-block;
}

.page-header-logo {
  width: 96px;
  height: auto;
}

.page-header-links {
  display: flex;
  align-items: center;
  gap: 24px;
}

.page-header-social {
  display: flex;
  align-items: center;
  gap: 14px;
}

.page-header-social a {
  display: inline-flex;
  color: var(--black);
}

.page-header-social svg {
  width: 18px;
  height: 18px;
}

.page-header-contact {
  position: relative;
  display: inline-block;
  font-family: var(--font-regular);
  font-size: 14px;
  font-weight: bold;
  color: var(--black);
  text-decoration: none;
}

.page-header-contact::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 100%;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.page-header-contact:hover::after {
  transform: scaleX(1);
}

@media (max-width: 480px) {
  .page-header {
    padding: 14px 16px;
    gap: 8px;
    min-height: auto;
  }

  .page-header-logo {
    width: 64px;
  }

  .page-header-links {
    gap: 10px;
  }

  .page-header-social {
    gap: 8px;
  }

  .page-header-social svg {
    width: 14px;
    height: 14px;
  }

  .page-header-contact {
    font-size: 11px;
  }
}

/* Header superposat sobre el slideshow (index.html): sense fons, flotant
   per damunt de les slides, amb el text, el logo i les icones en blanc
   perquè es llegeixin bé sobre el vídeo/imatge fosca. */
.page-header--overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
  background: transparent;
}

.page-header--overlay::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(to bottom, rgba(21, 21, 21, 0.55) 0%, rgba(21, 21, 21, 0) 100%);
  pointer-events: none;
}

.page-header--overlay .page-header-contact,
.page-header--overlay .page-header-social a {
  color: var(--white);
}

.page-header--overlay .page-header-logo {
  filter: invert(1);
}

/* --------------------------------------------------------------------------
   Video hero (index.html)
   -------------------------------------------------------------------------- */

.video-hero {
  position: relative;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  background: var(--gray-placeholder);
}

.video-hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Slides del hero: vídeos apilats que es fonen per opacitat.
   L'entrant puja per sobre (z-index 2) i fa el fade; el sortint es queda
   opac a sota fins que acaba, així no es veu mai el fons gris. */
.hero-slides {
  position: absolute;
  inset: 0;
  z-index: 0; /* tanca els z-index dels slides aquí dins, per sota del títol i la fletxa */
  pointer-events: none;
  user-select: none;
}

.hero-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  z-index: 0;
}

.hero-slide.is-leaving {
  opacity: 1;
  z-index: 1;
}

.hero-slide.is-active {
  opacity: 1;
  z-index: 2;
  transition: opacity 1s ease-in-out;
}

.video-hero-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 var(--gutter);
  background: rgba(21, 21, 21, 0.35);
}

.video-hero-title {
  max-width: 780px;
  margin: 0;
  font-family: var(--font-regular);
  font-weight: 700;
  font-size: 25px;
  line-height: 1.25;
  color: var(--white);
}

@media (max-width: 600px) {
  .video-hero-title {
    font-size: 26px;
  }
}

.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 32px;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--cream);
  animation: scroll-cue-bounce 1.8s ease-in-out infinite;
}

.scroll-cue svg {
  width: 28px;
  height: 28px;
}

@keyframes scroll-cue-bounce {
  0%,
  100% {
    transform: translate(-50%, 0);
  }
  50% {
    transform: translate(-50%, 8px);
  }
}

.see-all-wrap {
  display: flex;
  justify-content: center;
  padding: 36px var(--gutter) 60px;
}

.btn-see-all {
  display: inline-block;
  font-family: var(--font-regular);
  font-weight: bold;
  font-size: 14px;
  letter-spacing: 0.5px;
  color: var(--black);
  text-decoration: none;
  padding: 14px 34px;
  border: 1.5px solid var(--black);
  border-radius: 999px;
  transition: background 0.25s ease, color 0.25s ease;
}

.btn-see-all:hover {
  background: var(--black);
  color: var(--cream);
}

@media (max-width: 600px) {
  .slideshow {
    height: 60vh;
    min-height: 320px;
  }

  .slide-caption {
    padding: 24px 16px;
  }

  .slide-caption-title {
    font-size: 26px;
  }

  .slideshow-arrow {
    width: 36px;
    height: 36px;
    font-size: 16px;
  }

  .slideshow-arrow--prev {
    left: 10px;
  }

  .slideshow-arrow--next {
    right: 10px;
  }
}

/* --------------------------------------------------------------------------
   Media grid (projectes.html)
   -------------------------------------------------------------------------- */

.page-title {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 40px var(--gutter) 10px;
  font-family: var(--font-narrow);
  font-weight: 700;
  font-size: 32px;
  text-align: center;
}

.media-grid {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: none;
  margin: 0;
  padding: 0 0 70px;
  container-type: inline-size;
}

/* Cada fila és el seu propi contenidor flex (nowrap): els ítems només es
   redistribueixen entre ells mateixos, mai amb els d'una altra fila, així
   el hover no pot fer "saltar" cap ítem de fila. */
.media-row {
  display: flex;
  gap: 16px;
}

.media-item {
  display: block;
  text-decoration: none;
  color: inherit;
  flex: 1 1 calc(25% - 12px);
  transition: flex-grow 0.45s ease, flex-basis 0.45s ease;
}

/* Quan hi ha un item amb hover: encongim la resta de la mateixa fila i
   expandim el que té el cursor a sobre */
.media-row:has(.media-item:hover) .media-item {
  flex-grow: 0.6;
  flex-basis: calc(14% - 12px);
}

.media-row:has(.media-item:hover) .media-item:hover {
  flex-grow: 6;
  flex-basis: calc(40% - 12px);
}

.media-thumb {
  position: relative;
  /* Alçada fixa en funció de l'amplada de la graella (no de l'ítem), perquè
     l'animació de hover només creixi en horitzontal i mai desplaci verticalment. */
  height: calc((25cqw - 12px) * 7 / 5);
  background: var(--gray-placeholder);
  overflow: hidden;
}

.media-thumb img,
.media-thumb video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.35s ease;
}

/* Foto estática por defecto + vídeo que aparece en bucle al pasar el ratón */
.media-thumb video {
  opacity: 0;
}

.media-item:hover .media-thumb video,
.media-item.is-playing .media-thumb video {
  opacity: 1;
}

/* Degradat fosc (a baix) a transparent (a dalt) que apareix darrere del
   text en fer hover. Viu a ::after de .media-thumb perquè un background
   no es pot animar suaument d'un color pla a un degradat. */
.media-thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(to top, rgba(21, 21, 21, 0.85) 0%, rgba(21, 21, 21, 0) 60%);
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
}

.media-item:hover .media-thumb::after {
  opacity: 1;
}

/* Títol + subtítol sobre la foto, justificats a l'esquerra. Per defecte
   centrats verticalment amb un vel pla; en hover, el fons pla desapareix
   (el degradat de sobre el substitueix) i el text baixa a la part
   inferior del frame. El desplaçament s'anima amb flex-grow (animable)
   en comptes de justify-content (no ho és). */
.thumb-caption {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  padding: 20px;
  background: rgba(21, 21, 21, 0.25);
  transition: background 0.35s ease;
}

.thumb-caption::before,
.thumb-caption::after {
  content: "";
  flex: 1 1 0;
  transition: flex-grow 0.35s ease;
}

.thumb-caption-title {
  font-family: var(--font-regular);
  font-weight: 700;
  font-size: 30px;
  color: var(--white);
  margin: 0;
  transition: font-size 0.35s ease;
}

.thumb-caption-subtitle {
  font-family: var(--font-narrow);
  font-weight: 400;
  font-size: 14px;
  color: var(--white);
  opacity: 0.85;
  margin: 0;
  transition: font-size 0.35s ease;
}

.media-item:hover .thumb-caption {
  background: transparent;
}

.media-item:hover .thumb-caption-title {
  font-size: 42px;
}

.media-item:hover .thumb-caption-subtitle {
  font-size: 26px;
}

.media-item:hover .thumb-caption::after {
  flex-grow: 0;
}

.media-caption {
  margin-top: 10px;
  font-size: 50px;
  color: var(--black);
}

/* Sota els 860px cada fila (de 4 ítems) passa a mostrar-ne 2 per línia: com que
   una mateixa .media-row aleshores ocuparia dues línies visuals, desactivem
   l'efecte de creixement aquí (podria fer "saltar" un ítem entre aquestes
   dues línies igual que abans passava entre files senceres). */
@media (max-width: 860px) {
  .media-row {
    flex-wrap: wrap;
  }

  .media-item,
  .media-row:has(.media-item:hover) .media-item,
  .media-row:has(.media-item:hover) .media-item:hover {
    flex-grow: 0;
    flex-basis: calc(50% - 8px);
  }

  .media-thumb {
    height: calc((50cqw - 8px) * 7 / 5);
  }
}

@media (max-width: 480px) {
  .media-item,
  .media-row:has(.media-item:hover) .media-item,
  .media-row:has(.media-item:hover) .media-item:hover {
    flex-grow: 0;
    flex-basis: 100%;
  }

  /* Meitat d'alçada, com al carrusel de l'inici */
  .media-thumb {
    height: calc(100cqw * 7 / 10);
  }
}

/* --------------------------------------------------------------------------
   Text d'introducció (index.html)
   -------------------------------------------------------------------------- */

.section-title {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 48px var(--gutter) 0;
  font-family: var(--font-regular);
  font-weight: 700;
  font-size: 30px;
  text-align: left;
}

.detail-back + .section-title {
  padding-top: 16px;
}

.section-title + .media-grid {
  margin-top: 32px;
}

.intro-text {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 12px var(--gutter) 40px;
  font-family: var(--font-narrow);
  font-size: 18px;
  line-height: 1.5;
  color: var(--gray-body);
  text-align: left;
}

/* --------------------------------------------------------------------------
   Fila de projectes destacats (index.html): estàtica (sense desplaçament),
   amb la mateixa mecànica de hover que la media grid de projectes.html
   (l'ítem sobre el qual passes creix i la resta de la fila s'encongeix),
   mantenint els mateixos espais blancs (gap) entre caselles.
   -------------------------------------------------------------------------- */

.carousel-intro {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--gutter) 24px;
}

/* Cinta contínua: els projectes es desplacen sols cap a l'esquerra en
   bucle (script.js mou el track i clona els ítems). Amplades explícites en
   lloc de flex-grow, perquè el track és més ample que la pantalla. */
.carousel {
  --cols: 5;
  --gap: 16px;
  --item-w: calc((100cqw - (var(--cols) - 1) * var(--gap)) / var(--cols));
  width: 100%;
  padding: 10px 0 0;
  container-type: inline-size;
  overflow: hidden;
  overscroll-behavior-x: contain;
}

.carousel-track {
  display: flex;
  gap: var(--gap);
  width: max-content;
  will-change: transform;
  /* L'scroll vertical continua sent del navegador; l'horitzontal el gestiona
     script.js per poder arrossegar la cinta */
  touch-action: pan-y;
  user-select: none;
  -webkit-user-select: none;
}

.carousel-track.is-dragging,
.carousel-track.is-dragging .carousel-item {
  cursor: grabbing;
}

.carousel-track img {
  -webkit-user-drag: none;
}

.carousel-item.media-item {
  flex: 0 0 auto;
  width: var(--item-w);
  transition: width 0.45s ease;
}

/* Mateixes proporcions que el carrusel estàtic de 5 columnes: la resta
   s'encongeix a ~12.7% i el que té el cursor creix a ~49% */
@media (hover: hover) {
  .carousel-track:not(.is-scrolling):has(.carousel-item:hover) .carousel-item {
    width: calc(12.71cqw - 12.8px);
  }

  .carousel-track:not(.is-scrolling):has(.carousel-item:hover) .carousel-item:hover {
    width: calc(49.14cqw - 12.8px);
  }
}

.carousel-item .media-thumb {
  height: calc(var(--item-w) * 7 / 5);
}

/* Barra de desplaçament: zona de toc alta (padding) i línia fina que
   s'engruixeix en passar-hi el cursor o en arrossegar */
.carousel-scrub {
  max-width: var(--max-width);
  margin: 0 auto 60px;
  padding: 22px var(--gutter);
  cursor: grab;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
  outline: none;
}

.carousel-scrub.is-dragging {
  cursor: grabbing;
}

.carousel-scrub-track {
  position: relative;
  height: 4px;
  border-radius: 999px;
  background: var(--gray-placeholder);
  overflow: hidden;
  transition: height 0.2s ease;
}

.carousel-scrub:hover .carousel-scrub-track,
.carousel-scrub.is-dragging .carousel-scrub-track,
.carousel-scrub:focus-visible .carousel-scrub-track {
  height: 10px;
}

.carousel-scrub:focus-visible .carousel-scrub-track {
  box-shadow: 0 0 0 2px var(--white), 0 0 0 4px var(--black);
}

.carousel-scrub-thumb {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  border-radius: 999px;
  background: var(--black);
}

@media (max-width: 860px) {
  .carousel {
    --cols: 2.5;
  }
}

@media (max-width: 480px) {
  .carousel {
    --cols: 1.6;
  }

  .carousel-item .media-thumb {
    height: calc(var(--item-w) * 6 / 5);
  }
}

/* --------------------------------------------------------------------------
   Project detail page
   -------------------------------------------------------------------------- */

.detail-back {
  display: block;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--gutter);
  font-size: 14px;
  color: var(--gray-text);
  text-decoration: none;
}

.detail-back:hover {
  color: var(--black);
}

.detail-media {
  max-width: var(--max-width);
  margin: 20px auto 40px;
  padding: 0 var(--gutter);
}

/* El vídeo s'adapta a la pantalla: mai més alt que el 80% de l'alçada
   visible, i en pantalles baixes s'estreny i queda centrat. La proporció
   per defecte és 16:9; si un vídeo en té una altra, es canvia amb --ratio. */
.video-embed {
  --ratio: 16 / 9;
  --max-h: 80vh;
  position: relative;
  width: min(100%, calc(var(--max-h) * var(--ratio)));
  margin: 0 auto;
  aspect-ratio: var(--ratio);
  background: var(--gray-placeholder);
  overflow: hidden;
}

@supports (height: 1svh) {
  .video-embed {
    --max-h: 80svh;
  }
}

.video-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* Variante: vídeo a pantalla completa (sin el margen lateral del contenedor).
   Úsala en .detail-media cuando el vídeo vaya después del texto. */
.detail-media.detail-media--full {
  max-width: none;
  padding: 0;
  margin-top: 0;
  margin-bottom: 100px;
}

@media (max-width: 600px) {
  .detail-media.detail-media--full {
    margin-bottom: 60px;
  }
}

.detail-body {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--gutter) 100px;
}

/* Variante: menos espacio debajo del texto, para cuando el texto va
   justo antes del vídeo (en vez de ser el último bloque de la página). */
.detail-body.detail-body--tight {
  padding-bottom: 24px;
}

/* Pàgina de projecte amb recomanacions: text a l'esquerra i, a la dreta,
   franges horitzontals amb un fotograma del projecte que emmarquen el títol.
   El bloc apareix amb un fos al cap de 5 s d'entrar a la pàgina.
   En mòbil, a sota del text. */
.detail-body--related {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 48px;
  align-items: start;
}

.detail-related {
  opacity: 0;
  visibility: hidden; /* no clicable mentre és invisible */
  transform: translateX(100vw);
  animation: detail-related-in 1.2s cubic-bezier(0.22, 1, 0.36, 1) 5s forwards;
}

@keyframes detail-related-in {
  to {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
  }
}

/* La columna de recomanacions surt del contenidor centrat i es desplaça
   fins a 24px del límit dret de la pantalla: el marge negatiu compensa
   l'espai lateral del contenidor (la meitat del que sobra fora del
   max-width) més el gutter. Amplada fixa + justify-self: end perquè es
   mogui sense eixamplar-se. */
.detail-body--related .detail-related {
  width: 300px;
  justify-self: end;
  margin-right: calc(-1 * (max(0px, (100vw - var(--max-width)) / 2) + var(--gutter) - 24px));
}

/* Mentre entra des de fora de la pantalla no ha de crear scroll horitzontal */
body:has(.detail-related) {
  overflow-x: clip;
}

.detail-related-title {
  font-family: var(--font-narrow);
  font-size: 14px;
  color: var(--gray-text);
  margin: 0 0 10px;
}

.detail-related-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.related-card {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 5 / 1;
  overflow: hidden;
  background: var(--gray-placeholder);
  text-decoration: none;
}

.related-card-image,
.related-card-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.related-card-video {
  opacity: 0;
  transition: opacity 0.4s ease;
}

.related-card.is-playing .related-card-video {
  opacity: 1;
}

/* Vel fosc perquè el títol es llegeixi sobre qualsevol imatge */
.related-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(21, 21, 21, 0.35);
  transition: background 0.4s ease;
}

.related-card:hover::after {
  background: rgba(21, 21, 21, 0.15);
}

.related-card-title {
  position: relative;
  z-index: 1;
  padding: 0 12px;
  font-family: var(--font-regular);
  font-weight: 700;
  font-size: 18px;
  color: var(--white);
  text-align: center;
}

/* Mòbil: ordre text → vídeo → recomanacions, sense animació d'entrada.
   El body passa a flex en columna i .detail-body--related es "dissol"
   (display: contents), així text i recomanacions esdevenen fills directes
   del body i es poden reordenar amb `order` al voltant del vídeo. */
@media (max-width: 860px) {
  body:has(.detail-body--related) {
    display: flex;
    flex-direction: column;
  }

  .detail-body--related {
    display: contents;
  }

  .detail-body--related .detail-main {
    padding: 0 var(--gutter) 24px;
  }

  .detail-body--related .detail-related {
    order: 1;
    width: auto;
    margin-right: 0;
    padding: 28px var(--gutter) 40px;
    opacity: 1;
    visibility: visible;
    transform: none;
    animation: none;
  }

  body:has(.detail-body--related) .site-footer {
    order: 2;
  }

  /* En un flex en columna, els marges laterals "auto" fan que l'element
     s'encongeixi al seu contingut; el vídeo (iframe absolut) no en té i
     es quedava a 0 d'amplada. Forcem l'amplada completa. */
  body:has(.detail-body--related) .detail-media,
  body:has(.detail-body--related) .detail-back {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .detail-related {
    animation-duration: 0.01s;
  }
}

.detail-title {
  font-family: var(--font-regular);
  font-weight: 700;
  font-size: 30px;
  margin: 0 0 2px;
}

.detail-subtitle {
  font-family: var(--font-narrow);
  font-weight: 400;
  font-size: 26px;
  color: var(--gray-text);
  margin: 0 0 22px;
}

.detail-text {
  font-family: var(--font-narrow);
  font-size: 14px;
  line-height: 1.7;
  color: var(--gray-body);
  max-width: 700px;
}

/* Enllaços dins el text: mateixa línia animada que el "contacte" del header,
   però amb la font i el color del text */
.detail-text a {
  position: relative;
  display: inline-block;
  color: inherit;
  text-decoration: none;
}

.detail-text a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 3px; /* el line-height 1.7 del text fa la caixa més alta que la paraula */
  width: 100%;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.detail-text a:hover::after {
  transform: scaleX(1);
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */

.site-footer {
  background: var(--black);
  margin-top: 0;
  flex-shrink: 0;
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 42px var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}

.social-icons {
  display: flex;
  gap: 20px;
}

.social-icons a {
  display: inline-flex;
  color: var(--white);
  text-decoration: none;
}

.social-icons svg {
  width: 28px;
  height: 28px;
}

.icon-stroke {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.icon-fill {
  fill: currentColor;
  stroke: none;
}

/* Iconos propios (imágenes) recoloreados al crema con mask-image, para que
   se vean igual (color y tamaño) que los dibujados a mano de las otras páginas. */
.social-icon {
  display: inline-block;
  width: 22px;
  height: 22px;
  background-color: var(--white);
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
  -webkit-mask-size: contain;
  mask-size: contain;
}

.social-icon--x {
  -webkit-mask-image: url('assets/images/twitter.png');
  mask-image: url('assets/images/twitter.png');
}

.footer-cta {
  font-family: var(--font-regular);
  font-size: 17px;
  color: var(--white);
  letter-spacing: 0.3px;
  margin: 0;
}

.footer-contact-info {
  flex-basis: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
}

.footer-contact-item {
  font-family: var(--font-regular);
  font-size: 14px;
  color: var(--white);
  opacity: 0.75;
}

.contact-link {
  position: relative;
  display: inline-block;
  font-family: var(--font-regular);
  font-weight: bold;
  color: var(--white);
  text-decoration: none;
}

.contact-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 100%;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.contact-link:hover::after {
  transform: scaleX(1);
}

@media (max-width: 600px) {
  .footer-inner {
    flex-direction: column;
    text-align: center;
  }
}
